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

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

Info

Publication number
CN109582528B
CN109582528B CN201811057123.3A CN201811057123A CN109582528B CN 109582528 B CN109582528 B CN 109582528B CN 201811057123 A CN201811057123 A CN 201811057123A CN 109582528 B CN109582528 B CN 109582528B
Authority
CN
China
Prior art keywords
state monitoring
monitoring data
specific language
data request
state
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.)
Active
Application number
CN201811057123.3A
Other languages
Chinese (zh)
Other versions
CN109582528A (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
Advanced New Technologies Co 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 Advanced New Technologies Co Ltd filed Critical Advanced New Technologies Co 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

Images

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 state monitoring method, a state monitoring device, electronic equipment and a computer readable storage medium, wherein the method comprises the following steps: acquiring a state monitoring command, wherein the state monitoring command comprises a state monitoring field specific language statement and state monitoring object identification information; acquiring state monitoring data according to the state monitoring command; and calculating to obtain a state monitoring result according to the state monitoring data. The technical scheme is free from the constraint of java codes, the corresponding java codes do not need to be rewritten no matter the internal logic of the rules changes or the number of the rules is increased to some extent, the rules can be directly operated by modifying the specific language sentences in the field, the flow is simple, the universality is strong, the change of the rules can be quickly reflected, and the data processing efficiency is greatly improved.

Description

State monitoring method and device, electronic equipment and computer readable storage medium
Technical Field
The embodiment of the invention relates to the technical field of information processing, in particular to a state monitoring method and device, electronic equipment and a computer readable storage medium.
Background
With the development of data services, data computing tasks grow exponentially, and therefore many computing devices carry high-load data computing tasks. In order to ensure the normal operation of the computing devices and the reliability of data operation, the operating states of the computing devices need to be effectively monitored in real time, so that when some computing devices have faults or other problems, the operating states of the computing devices can be timely responded to, and especially in data processing peak periods, such as 618 rush, twenty-one shopping festival and the like, the real-time performance of the monitoring of the operating states of the computing devices is further ensured.
In the prior art, corresponding monitoring rules are usually realized by means of java codes, each rule corresponds to the realization of one java code, then monitoring data is obtained by calling a plurality of data layer interfaces, and then state judgment can be carried out on the basis of the obtained monitoring data. However, in the prior art, the java code is used for realizing the corresponding monitoring rule, so that if the internal logic of the rule changes or the number of the rule is increased, the corresponding java code needs to be rewritten and issued to be online, the processing mode has a complex flow and poor universality, the change of the rule cannot be reflected quickly, and the data processing efficiency is reduced.
Disclosure of Invention
The embodiment of the invention provides a state monitoring method and device, electronic equipment and a computer readable storage medium.
In a first aspect, an embodiment of the present invention provides a condition monitoring method.
Specifically, the state monitoring method includes:
acquiring a state monitoring command, wherein the state monitoring command comprises a state monitoring field specific language statement and state monitoring object identification information;
acquiring state monitoring data according to the state monitoring command;
and calculating to obtain a state monitoring result according to the state monitoring data.
With reference to the first aspect, in a first implementation manner of the first aspect, the obtaining state monitoring data according to the state monitoring command includes:
preprocessing the specific language statements in the state monitoring field to obtain state monitoring data request parameters;
generating a state monitoring data request according to the state monitoring data request parameters and the state monitoring object identification information;
and sending the state monitoring data request to a state monitoring object to obtain state monitoring data.
With reference to the first aspect and the first implementation manner of the first aspect, in a second implementation manner of the first aspect, the preprocessing includes one or more of the following processes: lexical analysis, syntactic analysis, parsing processing, and syntactic analysis.
With reference to the first aspect, the first implementation manner of the first aspect, and the second implementation manner of the first aspect, in a third implementation manner of the first aspect, the preprocessing the state monitoring domain specific language statement to obtain a state monitoring data request parameter includes:
preprocessing the state monitoring field specific language sentence to obtain a state monitoring field specific language element;
constructing a state monitoring abstract syntax tree according to the specific language elements of the state monitoring field;
and traversing the state monitoring abstract syntax tree to obtain a state monitoring data request parameter.
With reference to the first aspect, the first implementation manner of the first aspect, the second implementation manner of the first aspect, and the third implementation manner of the first aspect, in a fourth implementation manner of the first aspect, the generating a status monitoring data request according to the status monitoring data request parameter and the status monitoring object identification information includes:
determining data interface information according to the state monitoring object identification information and the state monitoring data request parameter;
and generating a state monitoring data interface calling request according to the data interface information and the state monitoring data request parameters.
With reference to the first aspect, the first implementation manner of the first aspect, the second implementation manner of the first aspect, the third implementation manner of the first aspect, and the fourth implementation manner of the first aspect, in a fifth implementation manner of the first aspect, the calculating to obtain the state monitoring result according to the state monitoring data includes:
comparing the status monitoring data to the status monitoring data request parameter;
and calculating according to the comparison result to obtain a state monitoring result.
In a second aspect, an embodiment of the present invention provides a condition monitoring apparatus.
Specifically, the state monitoring device includes:
the system comprises a first acquisition module, a second acquisition module and a state monitoring module, wherein the first acquisition module is configured to acquire a state monitoring command, and the state monitoring command comprises a state monitoring field specific language statement and state monitoring object identification information;
a second obtaining module configured to obtain status monitoring data according to the status monitoring command;
and the calculation module is configured to calculate a state monitoring result according to the state monitoring data.
With reference to the second aspect, in a first implementation manner of the second aspect, the embodiment of the present invention includes:
the first preprocessing submodule is configured to preprocess the state monitoring field specific language statement to obtain a state monitoring data request parameter;
the first generation submodule is configured to generate a state monitoring data request according to the state monitoring data request parameter and the state monitoring object identification information;
and the sending submodule is configured to send the state monitoring data request to a state monitoring object to obtain state monitoring data.
With reference to the second aspect and the first implementation manner of the second aspect, in a second implementation manner of the second aspect, the preprocessing includes one or more of the following processes: lexical analysis, syntactic analysis, parsing processing, and syntactic analysis.
With reference to the second aspect, the first implementation manner of the second aspect, and the second implementation manner of the second aspect, in a third implementation manner of the second aspect, the first preprocessing submodule includes:
the second preprocessing submodule is configured to preprocess the state monitoring field specific language statement to obtain a state monitoring field specific language element;
a construction submodule configured to construct a state monitoring abstract syntax tree from the state monitoring domain specific language elements;
and the traversal submodule is configured to traverse the state monitoring abstract syntax tree to obtain a state monitoring data request parameter.
With reference to the second aspect, the first implementation manner of the second aspect, the second implementation manner of the second aspect, and the third implementation manner of the second aspect, in a fourth implementation manner of the second aspect, the first generation submodule includes:
the determining submodule is configured to determine data interface information according to the state monitoring object identification information and the state monitoring data request parameters;
and the second generation submodule is configured to generate a state monitoring data interface calling request according to the data interface information and the state monitoring data request parameter.
With reference to the second aspect, the first implementation manner of the second aspect, the second implementation manner of the second aspect, the third implementation manner of the second aspect, and the fourth implementation manner of the second aspect, in a fifth implementation manner of the second aspect, the computing module includes:
a comparison sub-module configured to compare the status monitoring data with the status monitoring data request parameter;
and the calculation submodule is configured to calculate a state monitoring result according to the comparison result.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a memory and a processor, where the memory is used to store one or more computer instructions that support a status monitoring apparatus to execute the status monitoring method in the first aspect, and the processor is configured to execute the computer instructions stored in the memory. The condition monitoring device may further comprise a communication interface for the condition monitoring device to communicate with other devices or a communication network.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium for storing computer instructions for a condition monitoring apparatus, where the computer instructions include computer instructions for executing the condition monitoring method in the first aspect.
The technical scheme provided by the embodiment of the invention can have the following beneficial effects:
according to the technical scheme, the monitoring rules are abstracted into the field specific language sentences, namely, the corresponding monitoring rules are realized by means of the field specific language sentences, then the state monitoring data are obtained according to the field specific language sentences, and further, the state monitoring results are determined according to the obtained state monitoring data. The technical scheme is free from the constraint of java codes, the corresponding java codes do not need to be rewritten no matter the internal logic of the rules changes or the number of the rules is increased to some extent, the rules can be directly operated by modifying the specific language sentences in the field, the flow is simple, the universality is strong, the change of the rules can be quickly reflected, and the data processing efficiency is greatly improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of embodiments of the invention.
Drawings
Other features, objects and advantages of embodiments of the invention will become more apparent from the following detailed description of non-limiting embodiments thereof, taken in conjunction with the accompanying drawings. In the drawings:
FIG. 1 shows a flow diagram of a condition monitoring method according to an embodiment of the invention;
FIG. 2 shows a flow chart of step S102 of the condition monitoring method according to the embodiment shown in FIG. 1;
fig. 3 shows a flow chart of step S201 of the condition monitoring method according to the embodiment shown in fig. 2;
FIG. 4 illustrates a diagram of an abstract syntax tree, according to an embodiment of the present invention;
FIG. 5 shows a flow chart of step S202 of the condition monitoring method according to the embodiment shown in FIG. 2;
FIG. 6 shows a flow chart of step S103 of the condition monitoring method according to the embodiment shown in FIG. 1;
FIG. 7 is a block diagram illustrating a configuration of a condition monitoring device according to an embodiment of the present invention;
FIG. 8 is a block diagram of a second acquisition module 702 of the condition monitoring device according to the embodiment shown in FIG. 7;
fig. 9 shows a block diagram of a first preprocessing submodule 801 of the condition monitoring device according to the embodiment shown in fig. 8;
FIG. 10 is a block diagram illustrating a first generation submodule 802 of the condition monitoring apparatus according to the embodiment shown in FIG. 8;
fig. 11 is a block diagram showing the structure of the calculation module 703 of the state monitoring device according to the embodiment shown in fig. 7;
FIG. 12 shows a block diagram of an electronic device according to an embodiment of the invention;
FIG. 13 is a schematic block diagram of a computer system suitable for implementing a condition monitoring method according to an embodiment of the present invention.
Detailed Description
Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily implement them. Furthermore, parts that are not relevant to the description of the exemplary embodiments have been omitted from the drawings for the sake of clarity.
In the embodiments of the present invention, it is to be understood that terms such as "including" or "having", etc., are intended to indicate the presence of the features, numbers, steps, actions, components, parts, or combinations thereof disclosed in the present specification, and are not intended to exclude the possibility that one or more other features, numbers, steps, actions, components, parts, or combinations thereof may be present or added.
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict. Embodiments of the present invention will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
According to the technical scheme provided by the embodiment of the invention, the monitoring rule is abstracted into the field specific language statement, namely, the corresponding monitoring rule is realized by means of the field specific language statement, then the state monitoring data is obtained according to the field specific language statement, and further the state monitoring result is determined according to the obtained state monitoring data. The technical scheme is free from the constraint of java codes, the corresponding java codes do not need to be rewritten no matter the internal logic of the rules changes or the number of the rules is increased, the statements in the specific language of the field are modified to directly run, the flow is simple, the universality is strong, the change of the rules can be quickly reflected, and the data processing efficiency is greatly improved.
Fig. 1 shows a flow chart of a condition monitoring method according to an embodiment of the invention, as shown in fig. 1, the condition monitoring method comprising the following steps S101-S103:
in step S101, a state monitoring command is obtained, where the state monitoring command includes a state monitoring domain specific language statement and state monitoring object identification information;
in step S102, acquiring status monitoring data according to the status monitoring command;
in step S103, a state monitoring result is calculated according to the state monitoring data.
As mentioned above, with the development of data services, data computing tasks grow exponentially, and thus many computing devices carry high-load data computing tasks. In order to ensure the normal operation of the computing devices and the reliability of data operation, the operating states of the computing devices need to be effectively monitored in real time, so that some computing devices can respond in time when a fault or other problems occur. However, in the prior art, the corresponding monitoring rule is usually realized by means of java code, but if internal logic of the rule changes or the number of the rule increases, the corresponding java code needs to be rewritten and issued to be online, and such a processing mode has a complex flow and poor universality, cannot quickly reflect the change of the rule, and further causes the data processing efficiency to decrease.
In view of the above problem, in this embodiment, a state monitoring method is provided, in which a monitoring rule is abstracted into a domain-specific language statement, that is, a corresponding monitoring rule is implemented by using the domain-specific language statement, then state monitoring data is obtained according to the domain-specific language statement, and a state monitoring result is determined according to the obtained state monitoring data. The technical scheme is free from the constraint of java codes, the corresponding java codes do not need to be rewritten no matter the internal logic of the rules changes or the number of the rules is increased to some extent, the rules can be directly operated by modifying the specific language sentences in the field, the flow is simple, the universality is strong, the change of the rules can be quickly reflected, and the data processing efficiency is greatly improved.
The domain-specific language (DSL) refers to a computer language that is dedicated to a certain application program domain, and is also called a domain-specific language. The domain specific language can be used to achieve a certain purpose in a certain application program domain, and a construction model with a certain achieving purpose is abstracted. The state monitoring domain specific language statement is a statement generated based on the domain specific language for the purpose of state monitoring.
The state monitoring object identification information refers to information that can uniquely identify the state monitoring object, such as state monitoring object address information and the like. Based on the state monitoring object identification information, it can be definitely determined who an object targeted by a certain operation is, and the position of the state monitoring object can also be locked.
The state monitoring command is composed of the state monitoring field specific language statements and the state monitoring object identification information, and state monitoring operation limited by the state monitoring field specific language statements can be executed on the state monitoring object identified by the state monitoring object identification information according to the state monitoring command. For example, if the status monitoring domain specific language statement in a status monitoring command is: ceVersion > '4.0.0' and server: 192.8.8.1, then the implication of this status monitor command is: the monitoring IP address is: 192.8.8.1, and the current cpu usage is greater than >10, where ce refers to a type of java container.
In an optional implementation manner of this embodiment, as shown in fig. 2, the step S102, namely the step of acquiring the state monitoring data according to the state monitoring command, includes the following steps S201 to S203:
in step S201, preprocessing the state monitoring domain specific language statement to obtain a state monitoring data request parameter;
in step S202, a status monitoring data request is generated according to the status monitoring data request parameter and the status monitoring object identification information;
in step S203, the state monitoring data request is sent to a state monitoring object, so as to obtain state monitoring data.
In the embodiment, the state monitoring data request is generated based on the state monitoring domain specific language statement, and then the corresponding state monitoring data is obtained through the state monitoring data request. Specifically, firstly, preprocessing a specific language statement in the state monitoring field to obtain a state monitoring data request parameter; then generating a state monitoring data request according to the state monitoring data request parameters and the state monitoring object identification information; and finally, sending the state monitoring data request to a state monitoring object to obtain state monitoring data.
In an optional implementation manner of this embodiment, the preprocessing includes one or more of the following processes: lexical analysis, syntactic analysis, parsing processing, and syntactic analysis. In practical applications, of course, a suitable preprocessing method may be selected according to the needs of practical applications and the characteristics of the domain-specific language, and the present invention is not limited thereto.
In an optional implementation manner of this embodiment, as shown in fig. 3, the step S201 of preprocessing the statement in the specific language of the status monitoring domain to obtain the status monitoring data request parameter includes the following steps S301 to S303:
in step S301, preprocessing the state monitoring domain specific language sentence to obtain a state monitoring domain specific language element;
in step S302, a state monitoring abstract syntax tree is constructed according to the state monitoring domain specific language element;
in step S303, the state monitoring abstract syntax tree is traversed to obtain a state monitoring data request parameter.
In order to improve the completeness of the state monitoring data request parameter, in this embodiment, the state monitoring domain specific language statement is preprocessed first to obtain a state monitoring domain specific language element; then constructing a state monitoring abstract syntax tree according to the specific language elements in the state monitoring field; and finally, traversing the state monitoring abstract syntax tree to obtain a state monitoring data request parameter.
The state monitoring domain specific language element refers to an object element, an operation element, a logic element or a numerical value element related to the state monitoring, which are obtained based on analysis and processing of a state monitoring domain specific language statement.
In the above example, if a status monitoring domain specific language statement is: ceVersion > '4.0.0' and server: server, ceversion, >, 4.0.0, and, server, cpu, >, 10; then, based on the obtained specific language elements of the state monitoring field, a state monitoring abstract syntax tree can be constructed, as shown in fig. 4; and traversing the abstract syntax tree based on the abstract syntax tree to obtain complete state monitoring data request parameters which are subsequently used for generating the state monitoring data request.
In an optional implementation manner of this embodiment, as shown in fig. 5, the step S202, that is, the step of generating the status monitoring data request according to the status monitoring data request parameter and the status monitoring object identification information, includes the following steps S501 to S502:
in step S501, data interface information is determined according to the status monitoring object identification information and the status monitoring data request parameter;
in step S502, a status monitoring data interface call request is generated according to the data interface information and the status monitoring data request parameter.
In view of the fact that the status monitoring data generally exists in the computing device or other data sources, in order to facilitate obtaining the corresponding status monitoring data and ensure the security of the obtained data, in this embodiment, the status monitoring data is obtained by means of an interface request. Specifically, firstly, determining data interface information according to the state monitoring object identification information and the state monitoring data request parameter; and then generating a state monitoring data interface calling request according to the data interface information and the state monitoring data request parameters, wherein the state monitoring data interface calling request is used for acquiring interface calling permission so as to acquire state monitoring data by means of the interface.
Still taking the above example as an example, based on the status monitoring data interface call request, the callable IP address is: 192.8.8.1, and further by means of the status monitoring data request parameter, the IP address can be obtained as: 192.8.8.1, the CE version information of the server corresponding to the status monitoring data interface call request is 4.0.1, and the callable IP address based on the status monitoring data interface call request is: 192.8.8.1, and further obtaining the IP address as follows by the status monitoring data request parameter: 192.8.8.1 corresponds to a cpu usage of 0.7.
In an optional implementation manner of this embodiment, as shown in fig. 6, the step S103 of calculating a status monitoring result according to the status monitoring data includes the following steps S601 to S602:
in step S601, comparing the status monitoring data with the status monitoring data request parameter;
in step S602, a condition monitoring result is calculated based on the comparison result.
In this embodiment, after obtaining the status monitoring data, the status monitoring data may be compared to the status monitoring data request parameter; and then obtaining a state monitoring result according to the comparison result.
The state monitoring data refers to current corresponding state monitoring data of a state monitoring object, and the state monitoring data request parameter comprises requirements for the state monitoring data.
Still by way of example above, it is mentioned above that the obtained condition monitoring data includes: the CE version information of the server with an IP address of 192.8.8.1 is 4.0.1, the cpu utilization of the server with an IP address of 192.8.8.1 is 0.7, and the requirement for the status detection data in the status monitoring data request parameter is: ceVersion > '4.0.0' and server; and the current cpu utilization of the target server is 0.7, which is smaller than the required cpu utilization 10, that is, the current cpu utilization of the target server does not meet the corresponding cpu utilization requirement. Finally, according to the comparison result, the condition monitoring result of the target server is not satisfied. In this embodiment, as long as one of the status monitoring data does not satisfy the requirement, the status monitoring result of the target server is considered not to satisfy the relevant requirement. However, in practical applications, the determination mechanism of the monitoring result may be set and adjusted according to the requirements of practical applications and the specific requirements of monitoring, and the present invention is not limited thereto.
The following are embodiments of the apparatus of the present invention that may be used to perform embodiments of the method of the present invention.
Fig. 7 shows a block diagram of a status monitoring apparatus according to an embodiment of the present invention, which may be implemented as part or all of an electronic device by software, hardware, or a combination of both. As shown in fig. 7, the state monitoring device includes:
a first obtaining module 701, configured to obtain a status monitoring command, where the status monitoring command includes a status monitoring domain specific language statement and status monitoring object identification information;
a second obtaining module 702 configured to obtain status monitoring data according to the status monitoring command;
a calculating module 703 configured to calculate a status monitoring result according to the status monitoring data.
As mentioned above, with the development of data services, data computing tasks grow exponentially, and thus many computing devices carry high-load data computing tasks. In order to ensure the normal operation of the computing devices and the reliability of data operation, the operating states of the computing devices need to be effectively monitored in real time, so that some computing devices can respond in time when a fault or other problems occur. However, in the prior art, the corresponding monitoring rule is usually realized by means of java code, but if internal logic of the rule changes or the number of the rule increases, the corresponding java code needs to be rewritten and issued to be online, and such a processing mode has a complex flow and poor universality, cannot quickly reflect the change of the rule, and further causes the data processing efficiency to decrease.
In view of the above problem, in this embodiment, a status monitoring device is provided, which abstracts a monitoring rule into a domain-specific language statement, that is, implements a corresponding monitoring rule by means of the domain-specific language statement, then obtains status monitoring data according to the domain-specific language statement, and determines a status monitoring result according to the obtained status monitoring data. The technical scheme is free from the constraint of java codes, the corresponding java codes do not need to be rewritten no matter the internal logic of the rules changes or the number of the rules is increased to some extent, the rules can be directly operated by modifying the specific language sentences in the field, the flow is simple, the universality is strong, the change of the rules can be quickly reflected, and the data processing efficiency is greatly improved.
The domain-specific language (DSL) refers to a computer language that is dedicated to a certain application program domain, and is also called a domain-specific language. The domain specific language can be used to achieve a certain purpose in a certain application program domain, and a construction model with a certain achieving purpose is abstracted. The state monitoring domain specific language statement is a statement generated based on the domain specific language for the purpose of state monitoring.
The state monitoring object identification information refers to information that can uniquely identify the state monitoring object, such as state monitoring object address information and the like. The object to which a certain operation is directed can be definitely determined based on the state monitoring object identification information, and the position of the state monitoring object can also be locked.
The state monitoring command is composed of the state monitoring domain specific language statement and the state monitoring object identification information, and the state monitoring operation limited by the state monitoring domain specific language statement can be executed on the state monitoring object identified by the state monitoring object identification information according to the state monitoring command. For example, if the specific language statement of the status monitoring domain in a status monitoring command is: ceVersion > '4.0.0' and server: 192.8.8.1, then the meaning of this status monitor command is: the monitoring IP address is: 192.8.8.1, and the current cpu usage is greater than >10, where ce refers to a type of java container.
In an optional implementation manner of this embodiment, as shown in fig. 8, the second obtaining module 702 includes:
a first preprocessing submodule 801 configured to preprocess the state monitoring domain specific language statement to obtain a state monitoring data request parameter;
a first generating submodule 802 configured to generate a status monitoring data request according to the status monitoring data request parameter and the status monitoring object identification information;
the sending sub-module 803 is configured to send the state monitoring data request to a state monitoring object, so as to obtain state monitoring data.
In the embodiment, the state monitoring data request is generated based on the state monitoring domain specific language statement, and then the corresponding state monitoring data is obtained through the state monitoring data request. Specifically, the first preprocessing submodule 801 preprocesses the state monitoring domain specific language statement to obtain a state monitoring data request parameter; the first generation submodule 802 generates a state monitoring data request according to the state monitoring data request parameter and the state monitoring object identification information; the sending submodule 803 sends the state monitoring data request to a state monitoring object to obtain state monitoring data.
In an optional implementation manner of this embodiment, the preprocessing includes one or more of the following processes: lexical analysis, syntactic analysis, parsing processing, and syntactic analysis. Of course, in practical application, a suitable preprocessing mode can be selected according to the needs of practical application and the characteristics of the domain-specific language, and the invention is not limited in particular.
In an optional implementation manner of this embodiment, as shown in fig. 9, the first preprocessing sub-module 801 includes:
a second preprocessing submodule 901, configured to preprocess the statement in the domain of monitoring status to obtain a language element in the domain of monitoring status;
a construction submodule 902 configured to construct a state monitoring abstract syntax tree from the state monitoring domain specific language elements;
and the traversing submodule 903 is configured to traverse the state monitoring abstract syntax tree to obtain a state monitoring data request parameter.
In order to improve the completeness of the request parameter of the state monitoring data, in this embodiment, the second preprocessing sub-module 901 first preprocesses the state monitoring domain specific language statements to obtain state monitoring domain specific language elements; the construction sub-module 902 constructs a state monitoring abstract syntax tree according to the specific language elements in the state monitoring field; the traversal submodule 903 traverses the state monitoring abstract syntax tree to obtain a state monitoring data request parameter.
The state monitoring domain specific language element refers to an object element, an operation element, a logic element or a numerical value element related to the state monitoring, which are obtained based on analysis and processing of a state monitoring domain specific language statement.
For the above example, if a status monitoring domain specific language statement is: ceVersion > '4.0.0' and server: server, ceversion, >, 4.0.0, and, server, cpu, >, 10; then, based on the obtained specific language elements of the state monitoring field, a state monitoring abstract syntax tree can be constructed, as shown in fig. 4; traversing the abstract syntax tree based on the abstract syntax tree to obtain complete state monitoring data request parameters which are subsequently used for generating the state monitoring data request.
In an optional implementation manner of this embodiment, as shown in fig. 10, the first generation sub-module 802 includes:
a determining submodule 1001 configured to determine data interface information according to the status monitoring object identification information and the status monitoring data request parameter;
the second generating submodule 1002 is configured to generate a status monitoring data interface call request according to the data interface information and the status monitoring data request parameter.
In view of the fact that the status monitoring data generally exists in the computing device or other data sources, in order to facilitate obtaining the corresponding status monitoring data and ensure the security of the obtained data, in this embodiment, the status monitoring data is obtained by means of an interface request. Specifically, the determining submodule 1001 determines data interface information according to the status monitoring object identification information and the status monitoring data request parameter; the second generation submodule 1002 generates a status monitoring data interface call request according to the data interface information and the status monitoring data request parameter, where the status monitoring data interface call request is used to obtain an interface call permission, so as to obtain status monitoring data through the interface.
Still taking the above example as an example, based on the status monitoring data interface call request, the callable IP address is: 192.8.8.1, and further by means of the status monitoring data request parameter, the IP address can be obtained as: the CE version information of the server corresponding to 192.8.8.1 is 4.0.1, and the callable IP address based on the status monitoring data interface call request is: 192.8.8.1, and further obtaining the IP address as follows by the status monitoring data request parameter: 192.8.8.1 corresponds to a cpu usage of 0.7.
In an optional implementation manner of this embodiment, as shown in fig. 11, the calculating module 703 includes:
a comparison submodule 1101 configured to compare the status monitoring data with the status monitoring data request parameter;
and a calculation submodule 1102 configured to calculate a state monitoring result according to the comparison result.
In this embodiment, after obtaining the status monitoring data, the comparing sub-module 1101 may compare the status monitoring data with the status monitoring data request parameter; the calculation submodule 1102 may obtain a state monitoring result according to the comparison result.
The state monitoring data refers to current corresponding state monitoring data of a state monitoring object, and the state monitoring data request parameter comprises requirements for the state monitoring data.
Still by way of example above, it is mentioned above that the obtained condition monitoring data includes: the CE version information of the server with an IP address of 192.8.8.1 is 4.0.1, the cpu utilization of the server with an IP address of 192.8.8.1 is 0.7, and the requirement for the status detection data in the status monitoring data request parameter is: ceVersion > '4.0.0' and server; and the current cpu utilization of the target server is 0.7, which is less than the required cpu utilization 10, that is, the current cpu utilization of the target server does not meet the corresponding cpu utilization requirement. Finally, according to the comparison result, the condition monitoring result of the target server is not satisfied. In this embodiment, as long as one of the status monitoring data does not satisfy the requirement, the status monitoring result of the target server is considered not to satisfy the relevant requirement. However, in practical applications, the determination mechanism of the monitoring result may be set and adjusted according to the requirements of practical applications and the specific requirements of monitoring, and the present invention is not limited thereto.
Fig. 12 is a block diagram illustrating a structure of an electronic device according to an embodiment of the present invention, and as shown in fig. 12, the electronic device 1200 includes a memory 1201 and a processor 1202; wherein,
the memory 1201 is used to store one or more computer instructions, which are executed by the processor 1202 to implement any of the method steps described above.
FIG. 13 is a schematic block diagram of a computer system suitable for implementing a condition monitoring method according to an embodiment of the present invention.
As shown in fig. 13, the computer system 1300 includes a Central Processing Unit (CPU) 1301 that can execute various processes in the above-described embodiments according to a program stored in a Read Only Memory (ROM) 1302 or a program loaded from a storage section 1308 into a Random Access Memory (RAM) 1303. In the RAM1303, various programs and data necessary for the operation of the system 1300 are also stored. The CPU1301, the ROM1302, and the RAM1303 are connected to each other via a bus 1304. An input/output (I/O) interface 1305 is also connected to bus 1304.
The following components are connected to the I/O interface 1305: an input portion 1306 including a keyboard, a mouse, and the like; an output portion 1307 including a signal such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 1308 including a hard disk and the like; and a communication section 1309 including a network interface card such as a LAN card, a modem, or the like. The communication section 1309 performs communication processing via a network such as the internet. A drive 1310 is also connected to the I/O interface 1305 as needed. A removable medium 1311 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 1310 as needed, so that a computer program read out therefrom is mounted in the storage section 1308 as needed.
In particular, the above described methods may be implemented as computer software programs according to embodiments of the present invention. For example, embodiments of the invention include a computer program product comprising a computer program tangibly embodied on a medium readable thereby, the computer program comprising program code for performing the condition monitoring method. In such embodiments, the computer program may be downloaded and installed from a network via communications component 1309 and/or installed from removable media 1311.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowcharts or block diagrams may represent a module, a program segment, or a portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules described in the embodiments of the present invention may be implemented by software, or may be implemented by hardware. The units or modules described may also be provided in a processor, and the names of the units or modules do not in some cases constitute a limitation of the units or modules themselves.
As another aspect, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium may be a computer-readable storage medium included in the apparatus in the foregoing embodiment; or it may be a separate computer readable storage medium not incorporated into the device. The computer readable storage medium stores one or more programs for use by one or more processors in performing the methods described in embodiments of the invention.
The foregoing description is only exemplary of the preferred embodiments of the invention and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention according to the embodiments of the present invention is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the inventive concept. For example, the above features and (but not limited to) features with similar functions disclosed in the embodiments of the present invention are replaced with each other to form a technical solution.

Claims (10)

1. A condition monitoring method, comprising:
acquiring a state monitoring command, wherein the state monitoring command comprises a state monitoring field specific language statement and state monitoring object identification information; the state monitoring command is used for monitoring the working states of a plurality of computing devices in real time, and the identification information of the state monitoring object is the identification information of the plurality of computing devices;
preprocessing the specific language statement in the state monitoring field to obtain a state monitoring data request parameter;
determining data interface information according to the state monitoring object identification information and the state monitoring data request parameters;
generating a state monitoring data interface calling request according to the data interface information and the state monitoring data request parameters;
sending the state monitoring data request to the plurality of computing devices to obtain state monitoring data;
and calculating to obtain a state monitoring result according to the state monitoring data.
2. The method of claim 1, wherein the pre-processing comprises one or more of: lexical analysis, syntactic analysis, parsing and syntactic analysis.
3. The method of claim 2, wherein preprocessing the status monitoring domain specific language statement to obtain a status monitoring data request parameter comprises:
preprocessing the state monitoring field specific language sentence to obtain a state monitoring field specific language element;
constructing a state monitoring abstract syntax tree according to the specific language elements of the state monitoring field;
and traversing the state monitoring abstract syntax tree to obtain a state monitoring data request parameter.
4. The method according to any one of claims 1-3, wherein said calculating a condition monitoring result from said condition monitoring data comprises:
comparing the status monitoring data to the status monitoring data request parameter;
and calculating according to the comparison result to obtain a state monitoring result.
5. A condition monitoring device, comprising:
the system comprises a first acquisition module, a second acquisition module and a state monitoring module, wherein the first acquisition module is configured to acquire a state monitoring command, and the state monitoring command comprises a state monitoring field specific language statement and state monitoring object identification information; the state monitoring command is used for monitoring the working states of a plurality of computing devices in real time, and the identification information of the state monitoring object is the identification information of the plurality of computing devices;
the second acquisition module is configured to preprocess the language-specific statement in the state monitoring field to obtain a state monitoring data request parameter; determining data interface information according to the state monitoring object identification information and the state monitoring data request parameters; generating a state monitoring data interface calling request according to the data interface information and the state monitoring data request parameters; sending the state monitoring data request to the plurality of computing devices to obtain state monitoring data;
and the calculation module is configured to calculate a state monitoring result according to the state monitoring data.
6. The apparatus of claim 5, wherein the pre-processing comprises one or more of: lexical analysis, syntactic analysis, parsing and syntactic analysis.
7. The apparatus of claim 6, wherein the second obtaining module comprises:
the second preprocessing submodule is configured to preprocess the state monitoring field specific language statement to obtain a state monitoring field specific language element;
a construction submodule configured to construct a state monitoring abstract syntax tree from the state monitoring domain specific language elements;
and the traversing submodule is configured to traverse the state monitoring abstract syntax tree to obtain a state monitoring data request parameter.
8. The apparatus of any of claims 5-7, wherein the computing module comprises:
a comparison sub-module configured to compare the status monitoring data with the status monitoring data request parameter;
and the calculation submodule is configured to calculate a state monitoring result according to the comparison result.
9. An electronic device comprising a memory and a processor; wherein,
the memory is configured to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the method steps of any of claims 1-4.
10. A computer-readable storage medium having stored thereon computer instructions, characterized in that the computer instructions, when executed by a processor, carry out the method steps of any of claims 1-4.
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 CN109582528A (en) 2019-04-05
CN109582528B true 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)

Families Citing this family (3)

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

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN106844380A (en) * 2015-12-04 2017-06-13 阿里巴巴集团控股有限公司 A kind of database operation method, information processing method and related device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7392509B2 (en) * 2004-04-13 2008-06-24 University Of Maryland Method for domain specific test design automation
US10275305B2 (en) * 2014-11-25 2019-04-30 Datavore Labs, Inc. Expert system and data analysis tool utilizing data as a concept
CN106469106B (en) * 2015-08-20 2019-05-14 陕西千山航空电子有限责任公司 A kind of state monitoring method based on symbol data model
US10528607B2 (en) * 2016-07-29 2020-01-07 Splunk Inc. Syntax templates for coding

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN106844380A (en) * 2015-12-04 2017-06-13 阿里巴巴集团控股有限公司 A kind of database operation method, information processing method and related device

Also Published As

Publication number Publication date
CN109582528A (en) 2019-04-05

Similar Documents

Publication Publication Date Title
CN110516971B (en) Anomaly detection method, device, medium and computing equipment
JP2022137193A (en) Distributed training method and device of deep learning model, electronic apparatus, storage medium and computer program
US10318595B2 (en) Analytics based on pipes programming model
CN109145023B (en) Method and apparatus for processing data
CN109582528B (en) State monitoring method and device, electronic equipment and computer readable storage medium
CN109117252B (en) Method and system for task processing based on container and container cluster management system
US20190042149A1 (en) Writing composite objects to a data store
US20160171121A1 (en) Method, Controller, Program, and Data Storage System for Performing Reconciliation Processing
CN114816393B (en) Information generation method, device, equipment and storage medium
Bellini et al. Managing cloud via smart cloud engine and knowledge base
CN115335821A (en) Offloading statistics collection
US20150142786A1 (en) Modification of cloud application service levels based upon document consumption
KR20150133902A (en) System and method for developing of service based on software product line
CN117667573A (en) Cluster operation and maintenance method and device based on AI language model
WO2024001240A1 (en) Task integration method and apparatus for multiple technology stacks
CN116954754A (en) Business process arranging method, device, equipment and readable storage medium
CN114567537B (en) Information processing method, device, equipment and medium
CN113535568B (en) Verification method, device, equipment and medium for application deployment version
CN114756301A (en) Log processing method, device and system
CN114218313A (en) Data management method, device, electronic equipment, storage medium and product
US11178216B2 (en) Generating client applications from service model descriptions
US11128547B2 (en) Value optimization with intelligent service enablements
US11074508B2 (en) Constraint tracking and inference generation
CN116450465B (en) Data processing method, device, equipment and medium
CN110909191A (en) Graph data processing method and device, storage medium and electronic equipment

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