CN109582528A - State monitoring method, device, electronic equipment and computer readable storage medium - Google Patents

State monitoring method, device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN109582528A
CN109582528A CN201811057123.3A CN201811057123A CN109582528A CN 109582528 A CN109582528 A CN 109582528A CN 201811057123 A CN201811057123 A CN 201811057123A CN 109582528 A CN109582528 A CN 109582528A
Authority
CN
China
Prior art keywords
status monitoring
monitoring data
condition monitoring
monitoring
status
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811057123.3A
Other languages
Chinese (zh)
Other versions
CN109582528B (en
Inventor
刘晟东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201811057123.3A priority Critical patent/CN109582528B/en
Publication of CN109582528A publication Critical patent/CN109582528A/en
Application granted granted Critical
Publication of CN109582528B publication Critical patent/CN109582528B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention discloses a kind of state monitoring method, device, electronic equipment and computer readable storage mediums, the described method includes: obtaining status monitoring order, wherein, the status monitoring order includes 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.Constraint of the technical solution departing from java code, either regular interior logic changes, or regular quantity increased, it is not required to rewrite corresponding java code, but directly run by modification field language-specific sentence, process is simple, and universality is strong, it is capable of the variation of fast reaction rule, and then greatly improves the efficiency of data processing.

Description

State monitoring method, device, electronic equipment and computer readable storage medium
Technical field
The present embodiments relate to technical field of information processing, and in particular to a kind of state monitoring method, device, electronics are set Standby and computer readable storage medium.
Background technique
With the development of data service, data operation task is presented exponential form and increases, therefore very multiple computing device is all held The data operation task of high load capacity is carried.In order to guarantee to calculate the normal operation of equipment, guarantees the reliability of data operation, need Effective monitoring in real time is carried out for these working conditions for calculating equipment, with the failure of certain calculatings equipment or other ask When topic, it can be coped in time, especially in data processing peak time, such as the periods such as 618 promote greatly, double 11 shopping sections, Even more to ensure the real-time for calculating equipment working state monitoring.
The prior art realizes corresponding Monitoring Rules, each rule corresponding java generation generally by java code Then the realization of code obtains monitoring data by the multiple data layer interfaces of calling again, it is subsequent can be based on obtained monitoring number According to progress state judgement.But since the prior art realizes corresponding Monitoring Rules by java code, so if regular interior Logic changes, or regular quantity increased, it is necessary to and it rewrites corresponding java code and keeps its publication online, Such processing mode process is complicated, and universality is poor, is unable to the variation of fast reaction rule, and then lead to data-handling efficiency Decline.
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.
Detailed description of the invention
In conjunction with attached drawing, pass through the detailed description of following non-limiting embodiment, other feature, the mesh of the embodiment of the present invention And advantage will be apparent.In the accompanying drawings:
Fig. 1 shows the flow chart of state monitoring method according to an embodiment of the present invention;
Fig. 2 shows the flow charts of the step S102 of the state monitoring method of embodiment according to Fig. 1;
Fig. 3 shows the flow chart of the step S201 of the state monitoring method of embodiment according to Fig.2,;
Fig. 4 shows abstract syntax tree schematic diagram according to an embodiment of the present invention;
Fig. 5 shows the flow chart of the step S202 of the state monitoring method of embodiment according to Fig.2,;
Fig. 6 shows the flow chart of the step S103 of the state monitoring method of embodiment according to Fig. 1;
Fig. 7 shows the structural block diagram of state monitoring apparatus according to an embodiment of the present invention;
Fig. 8 shows the structural block diagram of the second acquisition module 702 of the state monitoring apparatus of embodiment according to Fig.7,;
Fig. 9 shows the structural frames of the first pretreatment submodule 801 of the state monitoring apparatus of embodiment according to Fig.8, Figure;
Figure 10 shows the structural frames of the first generation submodule 802 of the state monitoring apparatus of embodiment according to Fig.8, Figure;
Figure 11 shows the structural block diagram of the computing module 703 of the state monitoring apparatus of embodiment according to Fig.7,;
Figure 12 shows the structural block diagram of electronic equipment according to an embodiment of the present invention;
Figure 13 is adapted for the knot for realizing the computer system of state monitoring method according to an embodiment of the present invention Structure schematic diagram.
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.

Claims (14)

1. a kind of state monitoring method characterized by comprising
Obtain status monitoring order, wherein the status monitoring order includes status monitoring field language-specific sentence and state Monitoring object identification information;
Condition Monitoring Data is obtained according to the status monitoring order;
Status monitoring result is calculated according to the Condition Monitoring Data.
2. the method according to claim 1, wherein described obtain status monitoring according to the status monitoring order Data, comprising:
The status monitoring field language-specific sentence is pre-processed, Condition Monitoring Data required parameter is obtained;
Condition Monitoring Data request is generated according to the Condition Monitoring Data required parameter and status monitoring object id information;
Condition Monitoring Data request is sent to status monitoring object, obtains Condition Monitoring Data.
3. according to the method described in claim 2, it is characterized in that, the pretreatment includes one of following processing or more Kind: morphological analysis, syntactic analysis, dissection process and syntactic analysis.
4. according to the method described in claim 3, it is characterized in that, it is described to the status monitoring field language-specific sentence into Row pretreatment, obtains Condition Monitoring Data required parameter, comprising:
The status monitoring field language-specific sentence is pre-processed, status monitoring field language-specific element is obtained;
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.
5. according to the method described in claim 3, it is characterized in that, described according to the Condition Monitoring Data required parameter and shape State monitoring object identification information generates Condition Monitoring Data request, comprising:
Data-interface information is determined according to the status monitoring object id information and Condition Monitoring Data required parameter;
The call request of Condition Monitoring Data interface is generated according to the data-interface information and Condition Monitoring Data required parameter.
6. according to any method of claim 2-5, which is characterized in that described to be calculated according to the Condition Monitoring Data To status monitoring result, comprising:
The Condition Monitoring Data is compared with the Condition Monitoring Data required parameter;
Status monitoring result is calculated according to comparison result.
7. a kind of state monitoring apparatus characterized by comprising
First obtains module, is configured as obtaining status monitoring order, wherein the status monitoring order includes status monitoring neck Domain 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.
8. device according to claim 7, which is characterized in that described second, which obtains module, includes:
First pretreatment submodule, is configured as pre-processing the status monitoring field language-specific sentence, obtains shape State monitoring data required parameter;
First generates submodule, is configured as according to the Condition Monitoring Data required parameter and status monitoring object id information Generate Condition Monitoring Data request;
Sending submodule is configured as requesting the Condition Monitoring Data to be sent to status monitoring object, obtains status monitoring Data.
9. device according to claim 8, which is characterized in that the pretreatment includes one of following processing or more Kind: morphological analysis, syntactic analysis, dissection process and syntactic analysis.
10. device according to claim 9, which is characterized in that described first, which pre-processes submodule, includes:
Second pretreatment submodule, is configured as pre-processing the status monitoring field language-specific sentence, obtains shape State monitors field language-specific element;
Submodule is constructed, is configured as constructing status monitoring abstract syntax according to the status monitoring field language-specific element Tree;
Submodule is traversed, is configured as traversing the status monitoring abstract syntax tree, obtains Condition Monitoring Data required parameter.
11. device according to claim 9, which is characterized in that described first, which generates submodule, includes:
It determines submodule, is configured as being determined according to the status monitoring object id information and Condition Monitoring Data required parameter Data-interface information;
Second generates submodule, is configured as generating state according to the data-interface information and Condition Monitoring Data required parameter Monitoring data interface call request.
12. according to any device of claim 8-11, which is characterized in that the computing module includes:
Comparative sub-module is configured as the Condition Monitoring Data being compared with the Condition Monitoring Data required parameter;
Computational submodule is configured as that status monitoring result is calculated according to comparison result.
13. a kind of electronic equipment, which is characterized in that including memory and processor;Wherein,
The memory is for storing one or more computer instruction, wherein one or more computer instruction is by institute Processor is stated to execute to realize method and step described in any one of claims 1-6.
14. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the computer instruction quilt Processor realizes method and step described in any one of claims 1-6 when executing.
CN201811057123.3A 2018-09-11 2018-09-11 State monitoring method and device, electronic equipment and computer readable storage medium Active CN109582528B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811057123.3A CN109582528B (en) 2018-09-11 2018-09-11 State monitoring method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811057123.3A CN109582528B (en) 2018-09-11 2018-09-11 State monitoring method and device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109582528A true CN109582528A (en) 2019-04-05
CN109582528B CN109582528B (en) 2023-02-28

Family

ID=65919760

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811057123.3A Active CN109582528B (en) 2018-09-11 2018-09-11 State monitoring method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109582528B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110515369A (en) * 2019-08-29 2019-11-29 西门子工厂自动化工程有限公司 The security association data processing method and processing device of automatic control system
CN112134748A (en) * 2019-06-25 2020-12-25 西安诺瓦星云科技股份有限公司 Equipment state monitoring method, device, system and computer readable medium
CN113139183A (en) * 2020-01-17 2021-07-20 深信服科技股份有限公司 Detection method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050240794A1 (en) * 2004-04-13 2005-10-27 Avik Sinha Method for domain specific test design automation
CN102685221A (en) * 2012-04-29 2012-09-19 华北电力大学(保定) Distributed storage and parallel mining method for state monitoring data
CN106293653A (en) * 2015-05-19 2017-01-04 深圳市腾讯计算机系统有限公司 Code process method and device
CN106469106A (en) * 2015-08-20 2017-03-01 陕西千山航空电子有限责任公司 A kind of state monitoring method based on symbol data model
CN106844380A (en) * 2015-12-04 2017-06-13 阿里巴巴集团控股有限公司 A kind of database operation method, information processing method and related device
US20180032316A1 (en) * 2016-07-29 2018-02-01 Splunk Syntax templates for coding
US20180165336A1 (en) * 2014-11-25 2018-06-14 Sanjay Venkateswarulu Expert System And Data Analysis Tool Utilizing Data As A Concept

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050240794A1 (en) * 2004-04-13 2005-10-27 Avik Sinha Method for domain specific test design automation
CN102685221A (en) * 2012-04-29 2012-09-19 华北电力大学(保定) Distributed storage and parallel mining method for state monitoring data
US20180165336A1 (en) * 2014-11-25 2018-06-14 Sanjay Venkateswarulu Expert System And Data Analysis Tool Utilizing Data As A Concept
CN106293653A (en) * 2015-05-19 2017-01-04 深圳市腾讯计算机系统有限公司 Code process method and device
CN106469106A (en) * 2015-08-20 2017-03-01 陕西千山航空电子有限责任公司 A kind of state monitoring method based on symbol data model
CN106844380A (en) * 2015-12-04 2017-06-13 阿里巴巴集团控股有限公司 A kind of database operation method, information processing method and related device
US20180032316A1 (en) * 2016-07-29 2018-02-01 Splunk Syntax templates for coding

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112134748A (en) * 2019-06-25 2020-12-25 西安诺瓦星云科技股份有限公司 Equipment state monitoring method, device, system and computer readable medium
CN110515369A (en) * 2019-08-29 2019-11-29 西门子工厂自动化工程有限公司 The security association data processing method and processing device of automatic control system
CN110515369B (en) * 2019-08-29 2022-11-15 西门子工厂自动化工程有限公司 Safety association data processing method and device of automatic control system
CN113139183A (en) * 2020-01-17 2021-07-20 深信服科技股份有限公司 Detection method, device, equipment and storage medium
CN113139183B (en) * 2020-01-17 2023-12-29 深信服科技股份有限公司 Detection method, detection device, detection equipment and storage medium

Also Published As

Publication number Publication date
CN109582528B (en) 2023-02-28

Similar Documents

Publication Publication Date Title
US11210204B2 (en) Agentless distributed monitoring of microservices through a virtual switch
CN108920222B (en) Business processing method and device based on rule engine
US9565092B2 (en) Enterprise service bus deployment at the level of individual services
US20140136717A1 (en) Configuring cloud resources
US10223329B2 (en) Policy based data collection, processing, and negotiation for analytics
US20160261522A1 (en) Method and System for Managing Resource Capability in a Service-Centric System
US20080239985A1 (en) Method and apparatus for a services model based provisioning in a multitenant environment
CN103516777A (en) A method of provisioning in a cloud compute environment
CN109117252A (en) Method, system and the container cluster management system of task processing based on container
US11171825B2 (en) Context-based resource allocation with extended user concepts
CN109582528A (en) State monitoring method, device, electronic equipment and computer readable storage medium
CN108021450A (en) Job analysis method and apparatus based on YARN
JP7358005B2 (en) Native code generation for cloud services
US10581696B2 (en) Intelligent information adapter generation for service management
US9842001B2 (en) System level acceleration server
US10002181B2 (en) Real-time tagger
CN110928594A (en) Service development method and platform
US7827132B2 (en) Peer based event conversion
US20180307809A1 (en) Analysis of output files
US11175970B2 (en) Messaging in a multi-cloud computing environment
CN113722007B (en) Configuration method, device and system of VPN branch equipment
CN112528678A (en) Contextual information based dialog system
CN115086321B (en) Multi-cluster traffic forwarding method and device and electronic equipment
CN116450465B (en) Data processing method, device, equipment and medium
US20230214276A1 (en) Artificial Intelligence Model Management

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200922

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200922

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

GR01 Patent grant
GR01 Patent grant