Summary of the invention
The embodiment of the present invention provides a kind of state monitoring method, device, electronic equipment and computer readable storage medium.
In a first aspect, providing a kind of state monitoring method in the embodiment of the present invention.
Specifically, the state monitoring method, comprising:
Obtain status monitoring order, wherein the status monitoring order include status monitoring field language-specific sentence and
Status monitoring object id information;
Condition Monitoring Data is obtained according to the status monitoring order;
Status monitoring result is calculated according to the Condition Monitoring Data.
With reference to first aspect, the embodiment of the present invention is described according to the shape in the first implementation of first aspect
State monitoring order obtains Condition Monitoring Data, comprising:
The status monitoring field language-specific sentence is pre-processed, Condition Monitoring Data required parameter is obtained;
Condition Monitoring Data is generated according to the Condition Monitoring Data required parameter and status monitoring object id information to ask
It asks;
Condition Monitoring Data request is sent to status monitoring object, obtains Condition Monitoring Data.
With reference to first aspect with the first implementation of first aspect, second in first aspect of the embodiment of the present invention
In implementation, it is described pretreatment include it is following processing one of or it is a variety of: morphological analysis, syntactic analysis, dissection process and
Syntactic analysis.
With reference to first aspect, second of implementation of the first implementation of first aspect and first aspect, this hair
It is bright in the third implementation of first aspect, it is described that the status monitoring field language-specific sentence is pre-processed,
Obtain Condition Monitoring Data required parameter, comprising:
The status monitoring field language-specific sentence is pre-processed, status monitoring field language-specific member is obtained
Element;
Status monitoring abstract syntax tree is constructed according to the status monitoring field language-specific element;
The status monitoring abstract syntax tree is traversed, Condition Monitoring Data required parameter is obtained.
With reference to first aspect, the first implementation of first aspect, first aspect second of implementation and first
The third implementation of aspect, the present invention are described according to the status monitoring in the 4th kind of implementation of first aspect
Data request parameter and status monitoring object id information generate Condition Monitoring Data request, comprising:
Data-interface information is determined according to the status monitoring object id information and Condition Monitoring Data required parameter;
Condition Monitoring Data interface calling is generated according to the data-interface information and Condition Monitoring Data required parameter to ask
It asks.
With reference to first aspect, the first implementation, second of implementation of first aspect, first party of first aspect
The third implementation in face and the 4th kind of implementation of first aspect, five kind implementation of the present invention in first aspect
In, it is described that status monitoring result is calculated according to the Condition Monitoring Data, comprising:
The Condition Monitoring Data is compared with the Condition Monitoring Data required parameter;
Status monitoring result is calculated according to comparison result.
Second aspect provides a kind of state monitoring apparatus in the embodiment of the present invention.
Specifically, the state monitoring apparatus, comprising:
First obtains module, is configured as obtaining status monitoring order, wherein the status monitoring order includes state prison
Survey field language-specific sentence and status monitoring object id information;
Second obtains module, is configured as obtaining Condition Monitoring Data according to the status monitoring order;
Computing module is configured as that status monitoring result is calculated according to the Condition Monitoring Data.
In conjunction with second aspect, for the embodiment of the present invention in the first implementation of second aspect, described second obtains mould
Block includes:
First pretreatment submodule, is configured as pre-processing the status monitoring field language-specific sentence, obtain
To Condition Monitoring Data required parameter;
First generates submodule, is configured as according to the Condition Monitoring Data required parameter and status monitoring object identity
Information generates Condition Monitoring Data request;
Sending submodule is configured as requesting the Condition Monitoring Data to be sent to status monitoring object, obtains state
Monitoring data.
In conjunction with the first of second aspect and second aspect implementation, second in second aspect of the embodiment of the present invention
In implementation, it is described pretreatment include it is following processing one of or it is a variety of: morphological analysis, syntactic analysis, dissection process and
Syntactic analysis.
In conjunction with the first implementation of second aspect, second aspect and second of implementation of second aspect, this hair
It is bright in the third implementation of second aspect, it is described first pretreatment submodule includes:
Second pretreatment submodule, is configured as pre-processing the status monitoring field language-specific sentence, obtain
To status monitoring field language-specific element;
Submodule is constructed, is configured as constructing the abstract language of status monitoring according to the status monitoring field language-specific element
Method tree;
Submodule is traversed, is configured as traversing the status monitoring abstract syntax tree, obtains Condition Monitoring Data request ginseng
Number.
In conjunction with the first implementation of second aspect, second aspect, second of implementation and second of second aspect
The third implementation of aspect, for the present invention in the 4th kind of implementation of second aspect, described first generates submodule packet
It includes:
It determines submodule, is configured as according to the status monitoring object id information and Condition Monitoring Data required parameter
Determine data-interface information;
Second generates submodule, is configured as being generated according to the data-interface information and Condition Monitoring Data required parameter
Condition Monitoring Data interface call request.
The first implementation, second of implementation of second aspect, second party in conjunction with second aspect, second aspect
The third implementation in face and the 4th kind of implementation of second aspect, five kind implementation of the present invention in second aspect
In, the computing module includes:
Comparative sub-module is configured as comparing the Condition Monitoring Data and the Condition Monitoring Data required parameter
Compared with;
Computational submodule is configured as that status monitoring result is calculated according to comparison result.
The third aspect, the embodiment of the invention provides a kind of electronic equipment, including memory and processor, the memories
The computer instruction of state monitoring method in above-mentioned first aspect is executed for storing one or more status of support monitoring device,
The processor is configured to for executing the computer instruction stored in the memory.The state monitoring apparatus can be with
Including communication interface, for state monitoring apparatus and other equipment or communication.
Fourth aspect, the embodiment of the invention provides a kind of computer readable storage mediums, for storage state monitoring dress
Computer instruction used is set, it includes be involved by state monitoring apparatus for executing state monitoring method in above-mentioned first aspect
And computer instruction.
Technical solution provided in an embodiment of the present invention can include the following benefits:
Monitoring Rules are abstracted as a kind of field language-specific sentence by above-mentioned technical proposal, i.e., by field language-specific language
Sentence realizes corresponding Monitoring Rules, then obtains Condition Monitoring Data according to field language-specific sentence, and then according to obtaining
Condition Monitoring Data determine status monitoring result.The technical solution is departing from the constraint of java code, either regular interior
Logic changes, or regular quantity increased, and is not required to rewrite corresponding java code, but passes through modification neck
Domain language-specific sentence is directly run, and process is simple, and universality is strong, is capable of the variation of fast reaction rule, and then is greatly improved
The efficiency of data processing.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The embodiment of the present invention can be limited.
Specific embodiment
Hereinafter, the illustrative embodiments of the embodiment of the present invention will be described in detail with reference to the attached drawings, so that art technology
Them are easily implemented in personnel.In addition, for the sake of clarity, being omitted in the accompanying drawings unrelated with description illustrative embodiments
Part.
In embodiments of the present invention, it should be appreciated that the term of " comprising " or " having " etc. is intended to refer in this specification
The presence of disclosed feature, number, step, behavior, component, part or combinations thereof, and be not intended to exclude it is one or more its
A possibility that his feature, number, step, behavior, component, part or combinations thereof exist or are added.
It also should be noted that in the absence of conflict, the feature in embodiment and embodiment in the present invention
It can be combined with each other.Embodiment that the present invention will be described in detail below with reference to the accompanying drawings and embodiments.
Monitoring Rules are abstracted as a kind of field language-specific sentence by technical solution provided in an embodiment of the present invention, i.e., by
Field language-specific sentence realizes corresponding Monitoring Rules, then obtains status monitoring number according to field language-specific sentence
According to, and then status monitoring result is determined according to obtained Condition Monitoring Data.The technical solution departing from java code constraint,
Either regular interior logic changes, or regular quantity increased, and be not required to rewrite corresponding java code,
But directly run by modification field language-specific sentence, process is simple, and universality is strong, is capable of the change of fast reaction rule
Change, and then greatly improves the efficiency of data processing.
Fig. 1 shows the flow chart of state monitoring method according to an embodiment of the present invention, as shown in Figure 1, the state
Monitoring method includes the following steps S101-S103:
In step s101, status monitoring order is obtained, wherein the status monitoring order includes status monitoring field spy
Determine language statement and status monitoring object id information;
In step s 102, Condition Monitoring Data is obtained according to the status monitoring order;
In step s 103, status monitoring result is calculated according to the Condition Monitoring Data.
Mentioned above, with the development of data service, data operation task is presented exponential form and increases, therefore many calculating
Equipment all carries the data operation task of high load capacity.In order to guarantee to calculate the normal operation of equipment, guarantee data operation can
By property, need to calculate these working condition progress effective monitoring in real time of equipment, to there is event in certain calculating equipment
When barrier or other problems, it can be coped in time.And the prior art realizes corresponding monitoring generally by java code
Rule, if but regular interior logic change, or regular quantity increased, it is necessary to rewrite corresponding java generation
Code simultaneously keeps its publication online, and such processing mode process is complicated, and universality is poor, is unable to the variation of fast reaction rule, into
And data-handling efficiency is caused to decline.
In view of the above problem, in this embodiment, a kind of state monitoring method is proposed, this method takes out Monitoring Rules
As for a kind of field language-specific sentence, i.e., realizing corresponding Monitoring Rules by field language-specific sentence, then basis
Field language-specific sentence obtains Condition Monitoring Data, and then determines status monitoring result according to obtained Condition Monitoring Data.
The technical solution changes departing from the constraint of java code, either regular interior logic, or regular quantity is increased
Add, be not required to rewrite corresponding java code, but is directly run by modification field language-specific sentence, process letter
Single, universality is strong, is capable of the variation of fast reaction rule, and then greatly improve the efficiency of data processing.
Wherein, the field language-specific (domain-specific language, DSL) refers to that being absorbed in some answers
With the computer language of programming arts, also it is called Domain Specific Language.Field language-specific can be used in some application program
Certain purpose is realized in field, abstract to obtain with certain building model for realizing purpose.The specific language in status monitoring field
Speech sentence is namely based on the field language-specific, the purpose based on status monitoring and the sentence that generates.
Wherein, the status monitoring object id information refers to uniquely marking the status monitoring object
Information of knowledge, such as status monitoring object address information etc..It can be defined based on the status monitoring object id information true
Whom the targeted object of fixed a certain operation is, where the position that can also lock the status monitoring object.
Wherein, the status monitoring field language-specific sentence and status monitoring object id information constitute status monitoring
Order can execute shape to the status monitoring object that status monitoring object id information identifies according to the status monitoring order
State monitors the operation of status monitoring defined by field language-specific sentence.For example, if the state in a status monitoring order is supervised
Survey field language-specific sentence are as follows: server:ceversion > ' server:cpu > 10 4.0.0'and, status monitoring object IP
Address information are as follows: 192.8.8.1, then the meaning of this status monitoring order is exactly: monitoring IP address are as follows: 192.8.8.1's
The version of the ce of server is greater than 4.0.0, also, current cpu utilization rate is greater than > 10, wherein ce refers to that a kind of java holds
Device.
In an optional implementation of the present embodiment, as shown in Fig. 2, the step S102, i.e., according to the state
The step of monitoring order obtains Condition Monitoring Data, includes the following steps S201-S203:
In step s 201, the status monitoring field language-specific sentence is pre-processed, obtains status monitoring number
According to required parameter;
In step S202, shape is generated according to the Condition Monitoring Data required parameter and status monitoring object id information
The request of state monitoring data;
In step S203, Condition Monitoring Data request is sent to status monitoring object, obtains status monitoring number
According to.
In this embodiment, Condition Monitoring Data request is generated based on status monitoring field language-specific sentence, then led to
It crosses Condition Monitoring Data request and obtains corresponding Condition Monitoring Data.Specifically, first to the specific language in status monitoring field
Speech sentence is pre-processed, and Condition Monitoring Data required parameter is obtained;Then according to the Condition Monitoring Data required parameter and
Status monitoring object id information generates Condition Monitoring Data request;Condition Monitoring Data request is finally sent to state
Monitoring object obtains Condition Monitoring Data.
In an optional implementation of the present embodiment, the pretreatment includes one of following processing or a variety of:
Morphological analysis, syntactic analysis, dissection process and syntactic analysis.Certainly, in practical applications, can according to the needs of practical application,
And the characteristics of field language-specific, selects suitable pretreatment mode, the present invention is not especially limited it.
In an optional implementation of the present embodiment, as shown in figure 3, the step S201, i.e., supervise the state
The step of survey field language-specific sentence is pre-processed, obtains Condition Monitoring Data required parameter, includes the following steps S301-
S303:
In step S301, the status monitoring field language-specific sentence is pre-processed, obtains status monitoring neck
Domain language-specific element;
In step s 302, status monitoring abstract syntax tree is constructed according to the status monitoring field language-specific element;
In step S303, the status monitoring abstract syntax tree is traversed, Condition Monitoring Data required parameter is obtained.
In order to improve the completeness of Condition Monitoring Data required parameter, in this embodiment, the status monitoring is led
Domain language-specific sentence is pre-processed first, obtains status monitoring field language-specific element;Then further according to the state
Monitoring field language-specific element constructs status monitoring abstract syntax tree;The status monitoring abstract syntax tree is finally traversed, is obtained
To Condition Monitoring Data required parameter.
Wherein, the status monitoring field language-specific element is referred to based on for status monitoring field language-specific language
Object elements that the analysis and processing of sentence obtain, related with this status monitoring, operation element, logical elements or numerical value element
Equal elements.
By taking example above as an example, if a status monitoring field language-specific sentence are as follows: server:ceversion > '
4.0.0'and server:cpu > 10, then passing through the pre- places such as morphological analysis, syntactic analysis, dissection process and/or syntactic analysis
Reason, can be obtained status monitoring field language-specific element: server, ceversion, >, 4.0.0, and, server, cpu, >,
10;These status monitoring field language-specific elements being then based on, so that it may construct status monitoring abstract syntax tree, such as
Shown in Fig. 4;Based on the abstract syntax tree, it is traversed, so that it may obtain it is complete, be subsequently used for generate status monitoring number
According to the Condition Monitoring Data required parameter of request.
In an optional implementation of the present embodiment, as shown in figure 5, the step S202, i.e., according to the state
Monitoring data required parameter and status monitoring object id information generate the step of Condition Monitoring Data request, include the following steps
S501-S502:
In step S501, number is determined according to the status monitoring object id information and Condition Monitoring Data required parameter
According to interface message;
In step S502, status monitoring number is generated according to the data-interface information and Condition Monitoring Data required parameter
According to interface call request.
It calculates at equipment or other data sources, obtains for convenience corresponding in view of Condition Monitoring Data is typically found in
Condition Monitoring Data, and guarantee obtain data safety shape is obtained by the way of interface requests in this embodiment
State monitoring data.Specifically, it is determined first according to the status monitoring object id information and Condition Monitoring Data required parameter
Data-interface information;Then Condition Monitoring Data is generated according to the data-interface information and Condition Monitoring Data required parameter to connect
Mouth call request, the Condition Monitoring Data interface call request call license for obtaining interface, to obtain by the interface
Condition Monitoring Data.
Still by taking example above as an example, IP address can be called based on the Condition Monitoring Data interface call request are as follows:
192.8.8.1 the version interface of server, and then IP address can be obtained by Condition Monitoring Data required parameter are as follows:
192.8.8.1 the CE version information of corresponding server is 4.0.1, adjustable based on the Condition Monitoring Data interface call request
With IP address are as follows: the cpu utilization rate interface of the server of 192.8.8.1, and then can be obtained by Condition Monitoring Data required parameter
To IP address are as follows: the cpu utilization rate of the corresponding server of 192.8.8.1 is 0.7.
In an optional implementation of the present embodiment, as shown in fig. 6, the step S103, i.e., according to the state
The step of status monitoring result is calculated in monitoring data, includes the following steps S601-S602:
In step s 601, the Condition Monitoring Data is compared with the Condition Monitoring Data required parameter;
In step S602, status monitoring result is calculated according to comparison result.
In this embodiment, after obtaining Condition Monitoring Data, so that it may by the Condition Monitoring Data and the state
Monitoring data required parameter is compared;Then status monitoring result can be obtained according to comparison result.
Wherein, the Condition Monitoring Data refers to the current corresponding Condition Monitoring Data of status monitoring object, described
It include the requirement for Condition Monitoring Data in Condition Monitoring Data required parameter.
Still it by taking example above as an example, is mentioned above, the Condition Monitoring Data of acquisition includes: that IP address is 192.8.8.1
The CE version information of corresponding server is 4.0.1, and IP address is that the cpu utilization rate of the corresponding server of 192.8.8.1 is
0.7, and the requirement in the Condition Monitoring Data required parameter for state-detection data is: server:ceversion > '
4.0.0'and server:cpu > 10 accordingly compare the two, and the current CE version information of destination server is
4.0.1, greater than the version information of requirement ' 4.0.0', i.e. the current CE version information of destination server meets corresponding CE version
Information requirements;And the current cpu utilization rate of destination server is 0.7, less than the cpu utilization rate 10 of requirement, i.e. destination server
Current cpu utilization rate be unsatisfactory for the requirement of corresponding cpu utilization rate.Finally, it can be obtained according to above-mentioned comparison result for mesh
The status monitoring of server is marked the result is that being unsatisfactory for requirement.In this embodiment, as long as having a Condition Monitoring Data not
It meets the requirements and is considered as the status monitoring result of destination server and is unsatisfactory for related request.But it in practical applications, can be according to reality
The needs of border application and the specific requirement of monitoring are configured and adjust for the judgment mechanism of monitoring result, and the present invention is to it
It is not especially limited.
Following is apparatus of the present invention embodiment, can be used for executing embodiment of the present invention method.
Fig. 7 shows the structural block diagram of state monitoring apparatus according to an embodiment of the present invention, which can be by soft
Part, hardware or both are implemented in combination with as some or all of of electronic equipment.As shown in fig. 7, the status monitoring dress
It sets and includes:
First obtains module 701, is configured as obtaining status monitoring order, wherein the status monitoring order includes shape
State monitors field language-specific sentence and status monitoring object id information;
Second obtains module 702, is configured as obtaining Condition Monitoring Data according to the status monitoring order;
Computing module 703 is configured as that status monitoring result is calculated according to the Condition Monitoring Data.
Mentioned above, with the development of data service, data operation task is presented exponential form and increases, therefore many calculating
Equipment all carries the data operation task of high load capacity.In order to guarantee to calculate the normal operation of equipment, guarantee data operation can
By property, need to calculate these working condition progress effective monitoring in real time of equipment, to there is event in certain calculating equipment
When barrier or other problems, it can be coped in time.And the prior art realizes corresponding monitoring generally by java code
Rule, if but regular interior logic change, or regular quantity increased, it is necessary to rewrite corresponding java generation
Code simultaneously keeps its publication online, and such processing mode process is complicated, and universality is poor, is unable to the variation of fast reaction rule, into
And data-handling efficiency is caused to decline.
In view of the above problem, in this embodiment, a kind of state monitoring apparatus is proposed, which takes out Monitoring Rules
As for a kind of field language-specific sentence, i.e., realizing corresponding Monitoring Rules by field language-specific sentence, then basis
Field language-specific sentence obtains Condition Monitoring Data, and then determines status monitoring result according to obtained Condition Monitoring Data.
The technical solution changes departing from the constraint of java code, either regular interior logic, or regular quantity is increased
Add, be not required to rewrite corresponding java code, but is directly run by modification field language-specific sentence, process letter
Single, universality is strong, is capable of the variation of fast reaction rule, and then greatly improve the efficiency of data processing.
Wherein, the field language-specific (domain-specific language, DSL) refers to that being absorbed in some answers
With the computer language of programming arts, also it is called Domain Specific Language.Field language-specific can be used in some application program
Certain purpose is realized in field, abstract to obtain with certain building model for realizing purpose.The specific language in status monitoring field
Speech sentence is namely based on the field language-specific, the purpose based on status monitoring and the sentence that generates.
Wherein, the status monitoring object id information refers to uniquely marking the status monitoring object
Information of knowledge, such as status monitoring object address information etc..It can be defined based on the status monitoring object id information true
Whom the targeted object of fixed a certain operation is, where the position that can also lock the status monitoring object.
Wherein, the status monitoring field language-specific sentence and status monitoring object id information constitute status monitoring
Order can execute shape to the status monitoring object that status monitoring object id information identifies according to the status monitoring order
State monitors the operation of status monitoring defined by field language-specific sentence.For example, if the state in a status monitoring order is supervised
Survey field language-specific sentence are as follows: server:ceversion > ' server:cpu > 10 4.0.0'and, status monitoring object IP
Address information are as follows: 192.8.8.1, then the meaning of this status monitoring order is exactly: monitoring IP address are as follows: 192.8.8.1's
The version of the ce of server is greater than 4.0.0, also, current cpu utilization rate is greater than > 10, wherein ce refers to that a kind of java holds
Device.
In an optional implementation of the present embodiment, as shown in figure 8, the second acquisition module 702 includes:
First pretreatment submodule 801, is configured as pre-processing the status monitoring field language-specific sentence,
Obtain Condition Monitoring Data required parameter;
First generates submodule 802, is configured as according to the Condition Monitoring Data required parameter and status monitoring object
Identification information generates Condition Monitoring Data request;
Sending submodule 803 is configured as requesting the Condition Monitoring Data to be sent to status monitoring object, obtains shape
State monitoring data.
In this embodiment, Condition Monitoring Data request is generated based on status monitoring field language-specific sentence, then led to
It crosses Condition Monitoring Data request and obtains corresponding Condition Monitoring Data.Specifically, the first pretreatment submodule 801 is to the state
Monitoring field language-specific sentence is pre-processed, and Condition Monitoring Data required parameter is obtained;First generates 802 basis of submodule
The Condition Monitoring Data required parameter and status monitoring object id information generate Condition Monitoring Data request;Sending submodule
Condition Monitoring Data request is sent to status monitoring object by 803, obtains Condition Monitoring Data.
In an optional implementation of the present embodiment, the pretreatment includes one of following processing or a variety of:
Morphological analysis, syntactic analysis, dissection process and syntactic analysis.Certainly, in practical applications, can according to the needs of practical application,
And the characteristics of field language-specific, selects suitable pretreatment mode, the present invention is not especially limited it.
In an optional implementation of the present embodiment, as shown in figure 9, the first pretreatment submodule 801 includes:
Second pretreatment submodule 901, is configured as pre-processing the status monitoring field language-specific sentence,
Obtain status monitoring field language-specific element;
Submodule 902 is constructed, is configured as constructing status monitoring pumping according to the status monitoring field language-specific element
As syntax tree;
Submodule 903 is traversed, is configured as traversing the status monitoring abstract syntax tree, obtains Condition Monitoring Data request
Parameter.
In order to improve the completeness of Condition Monitoring Data required parameter, in this embodiment, the second pretreatment submodule
901 pairs of status monitoring field language-specific sentences pre-process first, obtain status monitoring field language-specific element;
It constructs submodule 902 and constructs status monitoring abstract syntax tree further according to the status monitoring field language-specific element;Traversal
Module 903 traverses the status monitoring abstract syntax tree, obtains Condition Monitoring Data required parameter.
Wherein, the status monitoring field language-specific element is referred to based on for status monitoring field language-specific language
Object elements that the analysis and processing of sentence obtain, related with this status monitoring, operation element, logical elements or numerical value element
Equal elements.
By taking example above as an example, if a status monitoring field language-specific sentence are as follows: server:ceversion > '
4.0.0'and server:cpu > 10, then passing through the pre- places such as morphological analysis, syntactic analysis, dissection process and/or syntactic analysis
Reason, can be obtained status monitoring field language-specific element: server, ceversion, >, 4.0.0, and, server, cpu, >,
10;These status monitoring field language-specific elements being then based on, so that it may construct status monitoring abstract syntax tree, such as
Shown in Fig. 4;Based on the abstract syntax tree, it is traversed, so that it may obtain it is complete, be subsequently used for generate status monitoring number
According to the Condition Monitoring Data required parameter of request.
In an optional implementation of the present embodiment, as shown in Figure 10, the first generation submodule 802 includes:
It determines submodule 1001, is configured as being requested according to the status monitoring object id information and Condition Monitoring Data
Parameter determines data-interface information;
Second generates submodule 1002, is configured as according to the data-interface information and Condition Monitoring Data required parameter
Generate the call request of Condition Monitoring Data interface.
It calculates at equipment or other data sources, obtains for convenience corresponding in view of Condition Monitoring Data is typically found in
Condition Monitoring Data, and guarantee obtain data safety shape is obtained by the way of interface requests in this embodiment
State monitoring data.Specifically, it is determined that submodule 1001 is asked according to the status monitoring object id information and Condition Monitoring Data
Parameter is asked to determine data-interface information;Second generation submodule 1002 is asked according to the data-interface information and Condition Monitoring Data
Parameter is asked to generate the call request of Condition Monitoring Data interface, the Condition Monitoring Data interface call request is for obtaining interface tune
With license, to obtain Condition Monitoring Data by the interface.
Still by taking example above as an example, IP address can be called based on the Condition Monitoring Data interface call request are as follows:
192.8.8.1 the version interface of server, and then IP address can be obtained by Condition Monitoring Data required parameter are as follows:
192.8.8.1 the CE version information of corresponding server is 4.0.1, adjustable based on the Condition Monitoring Data interface call request
With IP address are as follows: the cpu utilization rate interface of the server of 192.8.8.1, and then can be obtained by Condition Monitoring Data required parameter
To IP address are as follows: the cpu utilization rate of the corresponding server of 192.8.8.1 is 0.7.
In an optional implementation of the present embodiment, as shown in figure 11, the computing module 703 includes:
Comparative sub-module 1101, be configured as by the Condition Monitoring Data and the Condition Monitoring Data required parameter into
Row compares;
Computational submodule 1102 is configured as that status monitoring result is calculated according to comparison result.
In this embodiment, after obtaining Condition Monitoring Data, Comparative sub-module 1101 can be by the status monitoring
Data are compared with the Condition Monitoring Data required parameter;State can be obtained according to comparison result in computational submodule 1102
Monitoring result.
Wherein, the Condition Monitoring Data refers to the current corresponding Condition Monitoring Data of status monitoring object, described
It include the requirement for Condition Monitoring Data in Condition Monitoring Data required parameter.
Still it by taking example above as an example, is mentioned above, the Condition Monitoring Data of acquisition includes: that IP address is 192.8.8.1
The CE version information of corresponding server is 4.0.1, and IP address is that the cpu utilization rate of the corresponding server of 192.8.8.1 is
0.7, and the requirement in the Condition Monitoring Data required parameter for state-detection data is: server:ceversion > '
4.0.0'and server:cpu > 10 accordingly compare the two, and the current CE version information of destination server is
4.0.1, greater than the version information of requirement ' 4.0.0', i.e. the current CE version information of destination server meets corresponding CE version
Information requirements;And the current cpu utilization rate of destination server is 0.7, less than the cpu utilization rate 10 of requirement, i.e. destination server
Current cpu utilization rate be unsatisfactory for the requirement of corresponding cpu utilization rate.Finally, it can be obtained according to above-mentioned comparison result for mesh
The status monitoring of server is marked the result is that being unsatisfactory for requirement.In this embodiment, as long as having a Condition Monitoring Data not
It meets the requirements and is considered as the status monitoring result of destination server and is unsatisfactory for related request.But it in practical applications, can be according to reality
The needs of border application and the specific requirement of monitoring are configured and adjust for the judgment mechanism of monitoring result, and the present invention is to it
It is not especially limited.
The embodiment of the invention also discloses a kind of electronic equipment, Figure 12 shows electronics according to an embodiment of the present invention and sets
Standby structural block diagram, as shown in figure 12, the electronic equipment 1200 include memory 1201 and processor 1202;Wherein,
The memory 1201 is for storing one or more computer instruction, wherein one or more computer
Instruction is executed by the processor 1202 to realize any of the above-described method and step.
Figure 13 is suitable for being used to realizing that the structure of the computer system of the state monitoring method of embodiment according to the present invention is shown
It is intended to.
As shown in figure 13, computer system 1300 include central processing unit (CPU) 1301, can according to be stored in only
It reads the program in memory (ROM) 1302 or is loaded into random access storage device (RAM) 1303 from storage section 1308
Program and execute the various processing in above embodiment.In RAM1303, be also stored with system 1300 operate it is required various
Program and data.CPU1301, ROM1302 and RAM1303 are connected with each other by bus 1304.Input/output (I/O) interface
1305 are also connected to bus 1304.
I/O interface 1305 is connected to lower component: the importation 1306 including keyboard, mouse etc.;Including such as cathode
The output par, c 1307 of ray tube (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section including hard disk etc.
1308;And the communications portion 1309 of the network interface card including LAN card, modem etc..Communications portion 1309 passes through
Communication process is executed by the network of such as internet.Driver 1310 is also connected to I/O interface 1305 as needed.It is detachable to be situated between
Matter 1311, such as disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 1310, so as to
In being mounted into storage section 1308 as needed from the computer program read thereon.
Particularly, embodiment according to the present invention, method as described above may be implemented as computer software programs.
For example, embodiments of the present invention include a kind of computer program product comprising be tangibly embodied in and its readable medium on
Computer program, the computer program includes program code for executing the state monitoring method.In such reality
It applies in mode, which can be downloaded and installed from network by communications portion 1309, and/or is situated between from detachable
Matter 1311 is mounted.
Flow chart and block diagram in attached drawing illustrate system, method and computer according to the various embodiments of the present invention
The architecture, function and operation in the cards of program product.In this regard, each box in course diagram or block diagram can be with
A part of a module, section or code is represented, a part of the module, section or code includes one or more
Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box
The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical
On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants
It is noted that the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart, Ke Yiyong
The dedicated hardware based system of defined functions or operations is executed to realize, or can be referred to specialized hardware and computer
The combination of order is realized.
Being described in unit or module involved in embodiment of the present invention can be realized by way of software, can also
It is realized in a manner of through hardware.Described unit or module also can be set in the processor, these units or module
Title do not constitute the restriction to the unit or module itself under certain conditions.
As on the other hand, the embodiment of the invention also provides a kind of computer readable storage mediums, this is computer-readable
Storage medium can be computer readable storage medium included in device described in above embodiment;It is also possible to individually
In the presence of without the computer readable storage medium in supplying equipment.Computer-readable recording medium storage has one or one
Procedure above, described program are used to execute the method for being described in the embodiment of the present invention by one or more than one processor.
Above description is only presently preferred embodiments of the present invention and the explanation to institute's application technology principle.Those skilled in the art
Member is it should be appreciated that invention scope involved in the embodiment of the present invention, however it is not limited to which the specific combination of above-mentioned technical characteristic forms
Technical solution, while should also cover in the case where not departing from the inventive concept, by above-mentioned technical characteristic or its equivalent spy
Levy the other technical solutions for carrying out any combination and being formed.Such as features described above with it is (but unlimited disclosed in the embodiment of the present invention
In) technical characteristic with similar functions is replaced mutually and the technical solution that is formed.