CN116089229A - Equipment alarm method, device, electronic equipment and storage medium - Google Patents

Equipment alarm method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116089229A
CN116089229A CN202310087167.5A CN202310087167A CN116089229A CN 116089229 A CN116089229 A CN 116089229A CN 202310087167 A CN202310087167 A CN 202310087167A CN 116089229 A CN116089229 A CN 116089229A
Authority
CN
China
Prior art keywords
alarm
component
configuration
rule
instruction
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.)
Pending
Application number
CN202310087167.5A
Other languages
Chinese (zh)
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.)
Inspur Communication Technology Co Ltd
Original Assignee
Inspur Communication Technology 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 Inspur Communication Technology Co Ltd filed Critical Inspur Communication Technology Co Ltd
Priority to CN202310087167.5A priority Critical patent/CN116089229A/en
Publication of CN116089229A publication Critical patent/CN116089229A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/327Alarm or error message display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/35Creation or generation of source code model driven
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention relates to the technical field of monitoring operation and maintenance, and provides a device alarming method, a device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring a first configuration instruction acting on an alarm rule configuration interface; executing an operation corresponding to the equipment alarm first configuration instruction on the target rule component indicated by the equipment alarm first configuration instruction so as to model an alarm rule configuration model; and carrying out alarm rule configuration on alarm information generated by the alarm equipment based on an alarm rule configuration model determined by the alarm first configuration instruction of each equipment to obtain target alarm data, and carrying out alarm based on the equipment alarm target alarm data. According to the invention, the user can obtain the alarm rule configuration model through visual modeling, does not need to write codes manually, only needs to concentrate on business requirements, reduces the code development of bottom redundancy, and is beneficial to configuring alarm rules quickly and conveniently, so that the convenience of alarm rule configuration is improved, and the convenience of equipment alarm is further improved.

Description

Equipment alarm method, device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of monitoring operation and maintenance technologies, and in particular, to a device alarm method, a device, an electronic device, and a storage medium.
Background
With rapid development of technology, a variety of devices are more and more, and a variety of devices to be monitored, which are required to be managed by a management system, are more and more, so that the management system is more and more complex. The management system needs to analyze and configure the alarm information generated by the equipment so as to alarm the configured alarm data. And for the alarm information generated by different devices, different alarm rules need to be configured for alarming. The alert rules are associated by an alert rule configuration model.
At present, an alarm rule configuration model is obtained by manually writing codes, however, different devices correspond to different alarm rules, and based on the model, a great deal of manpower and material resources are required to be consumed by manually writing the codes, users are required to have code capability, and the configuration threshold of the alarm rules is too high. In summary, how to improve the convenience of the alarm rule configuration to improve the convenience of the equipment alarm is a problem to be solved urgently at present.
Disclosure of Invention
The invention provides a device alarm method, a device, electronic equipment and a storage medium, which are used for solving the defects of high threshold configuration and high cost of alarm rule configuration in the prior art and realizing high-convenience device alarm.
The invention provides a device alarming method, which comprises the following steps:
acquiring a first configuration instruction acting on an alarm rule configuration interface;
executing the operation corresponding to the first configuration instruction on the target rule component indicated by the first configuration instruction so as to model an alarm rule configuration model;
based on the alarm rule configuration model determined by each first configuration instruction, carrying out alarm rule configuration on alarm information generated by alarm equipment to obtain target alarm data, and carrying out alarm based on the target alarm data;
the first configuration instruction comprises a first component configuration instruction, wherein the first component configuration instruction is used for indicating a rule component to be configured and indicating configuration content for configuring the rule component.
According to the device alarm method provided by the invention, if the first configuration instruction is a first component dragging instruction of the first component configuration instruction, the executing the operation corresponding to the first configuration instruction on the target rule component indicated by the first configuration instruction includes:
determining a first dragged component indicated by the first component dragging instruction and a first insertion position of the first dragged component;
And inserting the first dragged component into the first insertion position so that the alarm rule configuration model is associated with rule contents corresponding to the first dragged component.
According to the device alarm method provided by the invention, if the first configuration instruction is a first parameter configuration instruction of the first component configuration instruction, the executing the operation corresponding to the first configuration instruction on the target rule component indicated by the first configuration instruction includes:
determining a first component to be configured indicated by the first parameter configuration instruction and a first configuration parameter of the first component to be configured;
and carrying out parameter configuration on the first component to be configured based on the first configuration parameter so as to edit rule contents corresponding to the first component to be configured.
According to the device alarm method provided by the invention, the alarm is performed based on the target alarm data, and the method comprises the following steps:
processing the target alarm data based on an alarm notification model to obtain an alarm notification message, and determining a notification object of the target alarm data based on the alarm notification model;
sending the alarm notification message to the notification object;
The alarm notification model is associated with alarm notification rules, and the alarm notification rules comprise at least one of names, notification contents, notification modes, notification object information, numbers of the alarm notification rules, equipment names of alarm equipment, equipment addresses of the alarm equipment, alarm date formats, alarm time and alarm trigger descriptions.
According to the equipment alarm method provided by the invention, the alarm notification model is modeled based on the following steps:
acquiring a second configuration instruction acting on an alarm notification rule configuration interface;
executing the operation corresponding to the second configuration instruction on the target notification rule component indicated by the second configuration instruction so as to model an alarm notification model;
determining the alarm notification model based on each second configuration instruction;
the second configuration instruction comprises a second component configuration instruction, wherein the second component configuration instruction is used for indicating a notification rule component to be configured and indicating configuration content for configuring the notification rule component.
According to the device alarm method provided by the invention, if the second configuration instruction is a second component dragging instruction of the second component configuration instruction, the notifying the rule component of the target indicated by the second configuration instruction, and executing the operation corresponding to the second configuration instruction, includes:
Determining a second dragged component indicated by the second component dragging instruction and a second insertion position of the second dragged component;
and inserting the second dragged component into the second insertion position so that the alarm notification model is associated with the rule content corresponding to the second dragged component.
According to the device alarm method provided by the invention, if the second configuration instruction is a second parameter configuration instruction of the second component configuration instruction, the notifying the rule component of the target indicated by the second configuration instruction, and executing the operation corresponding to the second configuration instruction, includes:
determining a second component to be configured indicated by the second parameter configuration instruction and a second configuration parameter of the second component to be configured;
and carrying out parameter configuration on the second component to be configured based on the second configuration parameters so as to edit rule contents corresponding to the second component to be configured.
The invention also provides a device alarm apparatus, comprising:
the acquisition module is used for acquiring a first configuration instruction acting on the alarm rule configuration interface;
the execution module is used for executing the operation corresponding to the first configuration instruction on the target rule component indicated by the first configuration instruction so as to model an alarm rule configuration model;
The configuration module is used for carrying out alarm rule configuration on alarm information generated by alarm equipment based on the alarm rule configuration model determined by each first configuration instruction to obtain target alarm data and carrying out alarm based on the target alarm data;
the first configuration instruction comprises a first component configuration instruction, wherein the first component configuration instruction is used for indicating a rule component to be configured and indicating configuration content for configuring the rule component.
The invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the device alert method as described in any of the above when executing the program.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a device alert method as described in any of the above.
According to the equipment alarming method, the equipment alarming device, the electronic equipment and the storage medium, the first configuration instruction acting on the alarming rule configuration interface is obtained, the operation corresponding to the first configuration instruction is executed on the target rule component indicated by the first configuration instruction, so that an alarming rule configuration model can be obtained through modeling in a visual mode, a user does not need to write codes manually, the user only needs to concentrate on service requirements, the development of the code of the bottom redundancy is reduced, the alarming rule can be configured quickly and conveniently, the configuration convenience of the alarming rule is improved, and the alarming convenience of the equipment is improved.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of an apparatus alarm method according to the present invention;
FIG. 2 is a second flow chart of the device alert method according to the present invention;
FIG. 3 is a third flow chart of the device alert method according to the present invention;
FIG. 4 is a flow chart of an apparatus alarm method according to the present invention;
FIG. 5 is a schematic diagram of the structure of the alarm device of the present invention;
fig. 6 is a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
With rapid development of technology, various devices are more and more, various devices to be monitored are more and more required to be managed by a management system, and more manpower, material resources and financial resources are required to analyze alarm information and report alarm information and notification for alarms generated by different devices, so that the management system is increasingly complex. The management system needs to analyze and configure the alarm information generated by the equipment so as to alarm the configured alarm data. And for the alarm information generated by different devices, different alarm rules need to be configured for alarming. The alert rules are associated by an alert rule configuration model.
At present, an alarm rule configuration model is obtained by manually writing codes, however, different devices correspond to different alarm rules, and based on the model, a great deal of manpower and material resources are required to be consumed by manually writing the codes, users are required to have code capability, and the configuration threshold of the alarm rules is too high. For example, when the managed edge devices are too many, the management system will re-analyze, warehouse in, match the alarm rule for the alarm information generated by the edge device and match with the new alarm notification logic, and the like, this way will cause the management system to be more and more confused, and modify the original alarm rule for the new device, so that the modified alarm rule matches with the new device, however, the modification will affect other original devices, and in order to match all devices, it will take a lot of time to modify the alarm rule, resulting in higher and higher modification cost. In summary, how to improve the convenience of the alarm rule configuration to improve the convenience of the equipment alarm is a problem to be solved urgently at present.
In view of the above problems, the present invention proposes the following embodiments. Fig. 1 is a schematic flow chart of an apparatus alarm method provided in the present invention, as shown in fig. 1, the apparatus alarm method includes:
step 110, a first configuration instruction acting on an alarm rule configuration interface is obtained.
In the embodiment of the invention, the device alarm method provided by the invention can be applied to a management system (monitoring system), and the management system can comprise but is not limited to: desktop computers, notebook computers, smart phones, tablet computers, servers, and the like.
Here, the alert rule configuration interface is a modeling interface of the alert rule configuration model. The alarm rule configuration interface is used for the user to configure the alarm rule, namely, the alarm rule configuration interface is used for the user to trigger a first configuration instruction on the alarm rule configuration interface.
The alert rule configuration interface may include, but is not limited to, one or more of the following: the modeling area, the component selection area, the menu bar area, the shortcut operation area, the parameter configuration area, etc. of the alert rule configuration model are not particularly limited in this embodiment of the present invention.
The modeling area of the alarm rule configuration model is used for modeling the alarm rule configuration model, namely, the modeling area is used for configuring the alarm rule. Specifically, the modeling area is used for inserting a component, dragging the component and inserting the dragged component, custom drawing the component, connecting any two components, generating a directional arrow of the connecting line, editing a text, configuring component parameters, setting component styles, setting directional arrow styles, inserting an alarm rule configuration model, dragging the alarm rule configuration model and inserting an alarm rule configuration model, moving the alarm rule configuration model, flipping the alarm rule configuration model, setting an alarm rule configuration model styles and the like.
The component selection area is used for placing each rule component so that the rule component is selected from the component selection area to be inserted into the modeling area, or the component is dragged from the component selection area to be inserted into the modeling area.
The menu bar area is used for placing function options, and the function options are used for providing editing functions or configuration functions of the alarm rule configuration model.
The shortcut operation area is used for placing shortcut function options, and the shortcut function options are used for providing a shortcut editing function or a shortcut configuration function of the alarm rule configuration model, so that modeling efficiency of the alarm rule configuration model is improved, and convenience of alarm rule configuration is further improved.
The parameter configuration area is used for carrying out parameter configuration on the rule component.
The functional options may include, but are not limited to: model enlargement options, model reduction options, size adaptation options, location reduction options, grid display options, last step options, next step options, model download options, parameter view options for rule components, and the like, to which embodiments of the present invention are not particularly limited.
Here, the first configuration instruction is an instruction generated in response to an operation of the user acting on the alert rule configuration interface. The first configuration instruction may be triggered in all areas in the alert rule configuration interface. For example, in the modeling area, a component drag instruction, a component custom instruction, a component connection instruction, a connection direction determination instruction, a text editing instruction, a parameter configuration instruction, a style operation instruction, a component click instruction, a connection click instruction, a component flip instruction, a connection flip instruction, a model click instruction, a model drag instruction, a model setting instruction, a model flip instruction, and the like are triggered; triggering a component dragging instruction, a component clicking instruction and the like in a component selection area; triggering a function click command, a function drag command and the like in the menu bar area; triggering a function click command, a function drag command and the like in the shortcut operation region; triggering parameter configuration instructions in the parameter configuration area, and so on.
The first configuration instructions include first component configuration instructions and operation instructions. The first component configuration instruction is used for configuring a rule component, and specifically, the first component configuration instruction may be used for indicating a rule component to be configured, for example, the rule component to be configured indicated by the first component configuration instruction is a dragged component or an added component or a component to be connected or a component to be edited with rule content or a component to be set with style content or a component to be configured with parameters, and the like, and the first component configuration instruction may also be used for indicating other operation information, which is not described in detail herein. The operation instructions are used to operate on other elements than components, such as wires, models, directional arrows, grids, and the like.
It should be noted that, the first configuration instruction may be triggered by clicking a display screen of the execution body, or may be triggered by an input device, where the input device may include, but is not limited to: a mouse, a keyboard, etc. For example, the first configuration instruction is triggered according to various mouse events, or the first configuration instruction is triggered according to a keyboard shortcut key.
The first configuration instructions may include, but are not limited to, one or more of the following: component drag instructions, component custom instructions, component join line instructions, join line direction determination instructions, text editing instructions, parameter configuration instructions, style operation instructions, component click instructions, join line click instructions, component flip instructions, join line flip instructions, model click instructions, model drag instructions, model setup instructions, model flip instructions, function click instructions, function drag instructions, component attribute configuration instructions, join line attribute configuration instructions, and the like. It should be noted that, each first configuration instruction provides each function necessary for modeling the alarm rule configuration model.
And 120, executing the operation corresponding to the first configuration instruction on the target rule component indicated by the first configuration instruction to model an alarm rule configuration model.
Here, the target rule component indicated by the first configuration instruction may include, but is not limited to: a dragged component, a component to be configured, a custom component, a component to be wired, and the like. Specifically, if the first configuration instruction is a component dragging instruction, the target rule component indicated by the component dragging instruction is a dragged component; if the first configuration instruction is a parameter configuration instruction, the target rule component indicated by the parameter configuration instruction is a component to be configured; if the first configuration instruction is a component connection instruction, the target rule component indicated by the component connection instruction is a component to be connected, and the component to be connected comprises two rule components.
Specifically, for the target rule component indicated by the first configuration instruction, executing an operation corresponding to the first configuration instruction to perform alarm rule configuration, and further modeling an alarm rule configuration model.
And 130, performing alarm rule configuration on alarm information generated by the alarm equipment based on the alarm rule configuration model determined by each first configuration instruction to obtain target alarm data, and performing alarm based on the target alarm data.
The first configuration instruction comprises a first component configuration instruction, wherein the first component configuration instruction is used for indicating a rule component to be configured and indicating configuration content for configuring the rule component.
Specifically, steps 110 and 120 are performed several times, and finally, the alarm rule configuration model is determined based on each first configuration instruction. More specifically, the alert rule configuration model is finally determined based on the graph data determined by each of the first configuration instructions. Namely, drawing data corresponding to the drawing is exported, and an alarm rule configuration model is determined based on the drawing data.
Here, the alarm device is a device that generates alarm information, and transmits the generated alarm information to the execution body of the embodiment of the present invention. In an embodiment, the alarm device is a newly accessed device, i.e. the alarm device sends its alarm information to the executing body for the first time. The alarm device may be set according to the actual situation, for example an edge device.
It should be noted that, because there are differences between different alarm devices, for example, a difference in generation rule of alarm information, a difference in content of alarm information, a difference in presentation mode of alarm information, etc., alarm information generated by different alarm devices is different. Therefore, different alarm rules need to be configured to configure different alarm information, namely different alarm rule configuration models need to be modeled to configure different alarm information so as to finally configure and obtain target alarm data. The alarm rule is used for analyzing the alarm information to obtain target alarm data.
Here, the target alarm data is alarm data obtained after an alarm rule is configured for the alarm information. The target alarm data is presentable data or notifiable data.
It should be noted that, the target alarm data can be displayed by alarming based on the target alarm data, or the target alarm data is sent to the alarm display device for displaying, or the target alarm data is notified to a preset notification object.
Here, the first component configuration instruction is used to operate the rule component, and specifically, the first component configuration instruction may be used to indicate that the rule component to be configured is a rule component to be configured, for example, the rule component to be configured indicated by the first component configuration is a dragged component, a component to be configured, a new component, a component to be connected, a component to be provided with style content, or a component to be configured with an attribute, and so on.
The first component configuration instructions may also be used to indicate configuration content to configure the rule component, which may include, but is not limited to: the drag operation of the component, the parameter configuration of the component, the custom operation of the component (such as the drawing operation of the component graph), the connection operation of the component, the text editing operation of the component, the style setting operation of the component, the attribute configuration operation of the component, and the like. Of course, the first component configuration instruction may also be used to indicate other configuration contents, which are not described in detail in the embodiment of the present invention.
The first component configuration instructions may include, but are not limited to, one or more of the following: component drag instructions, parameter configuration instructions, component custom instructions, component join line instructions, text edit instructions, style manipulation instructions, component click instructions, component flip instructions, component attribute configuration instructions, and the like.
It should be noted that the alert rule configuration model may be used as a component, so that another alert rule configuration model may be further modeled based on the component corresponding to the alert rule configuration model.
In one embodiment, embodiments of the present invention may be implemented on a low code platform. The low-code platform is an ighing platform, the ighing platform is a method for generating an application program by using rules and a predefined template, the application program can be understood as an alarm rule configuration model or an alarm notification model, so that a user can create an alarm application program required by the user in a short time by using the low-code platform, alarm analysis codes required to be written by the user are greatly reduced, the convenience of alarm rule configuration is improved, and the convenience of equipment alarm is further improved; the low-code platform can be visually operated, and a user can use the low-code platform to configure the alarm rules without having a professional technical background, so that more people can participate in the configuration of the alarm rules.
In one embodiment, the alert rule is a set of template files, which may be Json files. The template file may include, but is not limited to, at least one or more of the following: the ID of the template file, the alarm field to be analyzed, the data type of the alarm field, the visibility of the alarm field, whether the alarm field is available, the alarm processing mode of the alarm information, the transmission mode of the alarm information, the display position of the alarm field, the form type, the form size, the time format, whether the alarm field can be deleted, the title of the template, the equipment data of the alarm equipment, the alarm triggering condition of the alarm equipment and the like.
The alert field may include, but is not limited to, at least one or more of the following: alarm title, alarm update time, alarm name, alarm ID, alarm unique identification, alarm type, manufacturer of alarm device, alarm object, alarm level, alarm object name, alarm generation time, alarm information, etc.
The visibility of the alert field is used to characterize whether the alert field can be presented in the target alert data. Whether the alert field is available or not is used to characterize whether the alert field can be further parsed. The transmission mode of the alarm information is used for limiting an HTTP method and/or a header. The presentation location of the alert field is used to characterize the location of the alert field in the interface, or in the file. The form type is the type of an alarm form on which an alarm field or alarm content can be presented. The form size is the size of the alert form.
The device data of the alert device may include, but is not limited to, at least one or more of the following: device model, device type, networking protocol, CPU architecture, device manufacturer, device description information. The device type includes a computing type device or a management type device. The networking protocols include WIFI, cellular, ethernet, and the like. The CPU architecture includes X86, ARM64, ARM32, GPU, and the like.
The alert trigger conditions may include, but are not limited to, at least one or more of the following: triggering mode, equipment name of the alarm equipment, monitoring attribute of the alarm equipment, comparison threshold value corresponding to the monitoring attribute, triggering condition and the like. The monitoring attribute of the alarm device is an attribute to be monitored, namely, the alarm is carried out when the monitoring attribute does not meet the requirement, for example, when the monitoring attribute is larger than the corresponding comparison threshold value, the alarm device generates alarm information.
According to the equipment alarm method provided by the embodiment of the invention, the first configuration instruction acting on the alarm rule configuration interface is obtained, the operation corresponding to the first configuration instruction is executed on the target rule assembly indicated by the first configuration instruction, so that the alarm rule configuration model is modeled in a visual mode, a user can obtain the alarm rule configuration model without manually writing codes, the user only needs to concentrate on service requirements, the development of the code of the bottom redundancy is reduced, the alarm rule is quickly and conveniently configured, the convenience of the alarm rule configuration is improved, and the convenience of equipment alarm is further improved.
Based on the above embodiment, fig. 2 is a second flowchart of the device alert method provided by the present invention, as shown in fig. 2, if the first configuration instruction is a first component drag instruction of the first component configuration instruction, the step 120 includes:
step 121, determining a first dragged component indicated by the first component dragging instruction and a first insertion position of the first dragged component.
And step 122, inserting the first dragged component into the first insertion position so that the alarm rule configuration model is associated with rule contents corresponding to the first dragged component.
Here, the first component drag instruction may be used to insert a new rule component or may be used to move an old rule component. The new rule component may be a rule component in the component selection area and the old rule component may be a rule component in the modeling area. Specifically, the new rule component is inserted to insert a new component in the modeling area, that is, the first dragged component indicated by the first component dragging instruction is the new component, and the first insertion position indicated by the first component dragging instruction is the new position; the old rule component is moved to move the rule component in the modeling area, namely, a first dragged component indicated by a first component dragging instruction is an original rule component of the modeling area, and a first inserting position indicated by the first component dragging instruction is a moved position.
The first component dragging instruction is an instruction generated in response to a user's component dragging operation, for example, the user triggers a corresponding first component dragging instruction by selecting and dragging a regular component in a component selection area, and at this time, the execution body acquires the first component dragging instruction.
Here, the first dragged component includes a rule component in the component selection area, or a rule component in the modeling area. The rule content corresponding to the first dragged component can be preset rule content, or rule content configured before, or rule content configured or edited. The rule component may include, but is not limited to, at least one or more of the following: the module corresponding to the ID of the template file, the module corresponding to the alarm field to be analyzed, the module corresponding to the data type of the alarm field, the module corresponding to the visibility of the alarm field, the module corresponding to whether the alarm field is available, the module corresponding to the alarm processing mode of the alarm information, the module corresponding to the transmission mode of the alarm information, the module corresponding to the display position of the alarm field, the module corresponding to the form type, the module corresponding to the form size, the module corresponding to the time format, the module corresponding to whether the alarm field can be deleted, the module corresponding to the title of the template, the module corresponding to the equipment data of the alarm equipment, the module corresponding to the alarm triggering condition of the alarm equipment and the like.
In an embodiment, the components corresponding to the alert field may include, but are not limited to, at least one or more of the following: the system comprises a component corresponding to an alarm title, a component corresponding to alarm update time, a component corresponding to an alarm name, a component corresponding to an alarm ID, a component corresponding to an alarm unique identifier, a component corresponding to an alarm type, a component corresponding to a manufacturer of alarm equipment, a component corresponding to an alarm object, a component corresponding to an alarm level, a component corresponding to the name of the alarm object, a component corresponding to alarm generation time, a component corresponding to alarm information and the like.
In an embodiment, the components corresponding to the device data of the alarm device may include, but are not limited to, at least one or more of the following: the device comprises a component corresponding to a device model, a component corresponding to a device type, a component corresponding to a networking protocol, a component corresponding to a CPU architecture, a component corresponding to a device manufacturer and a component corresponding to device description information.
In an embodiment, the components corresponding to the alarm triggering condition may include, but are not limited to, at least one or more of the following: a component corresponding to a triggering mode, a component corresponding to a device name of the alarm device, a component corresponding to a monitoring attribute of the alarm device, a component corresponding to a comparison threshold corresponding to the monitoring attribute, a component corresponding to a triggering condition, and the like.
Here, the first insertion position is used to characterize the final position of the first towed component, i.e. the position where the towing operation is stopped. For example, if the first dragged component is dragged from point a to point B to point C, the first insertion position is point C.
It should be noted that, the first component drag instruction, the component connection instruction, the parameter configuration instruction, the text editing instruction, the style operation instruction, the component click instruction, the component flip instruction, the component attribute configuration instruction, and the like may be triggered for the first dragged component.
The device alarm method provided by the embodiment of the invention comprises the steps of obtaining a first component dragging instruction acting on an alarm rule configuration interface, and determining a first dragged component indicated by the first component dragging instruction and a first inserting position of the first dragged component; the first dragged component is inserted into the first insertion position, so that the alarm rule configuration model is associated with rule contents corresponding to the first dragged component, the rule contents can be added by a user in a visual mode, the alarm rule can be configured quickly and conveniently, the convenience of alarm rule configuration is improved, and the convenience of equipment alarm is improved.
Based on any one of the foregoing embodiments, in the method, if the first configuration instruction is a first parameter configuration instruction of the first component configuration instruction, the step 120 includes:
Determining a first component to be configured indicated by the first parameter configuration instruction and a first configuration parameter of the first component to be configured;
and carrying out parameter configuration on the first component to be configured based on the first configuration parameter so as to edit rule contents corresponding to the first component to be configured.
Here, the first parameter configuration instruction is used for performing parameter configuration on the rule component in the alarm rule configuration interface, that is, editing rule content of the rule component. Specifically, the first parameter configuration instruction may be used to indicate a first component to be configured; and may also be used to indicate a first configuration parameter of the first component to be configured.
The first parameter configuration instruction is an instruction generated in response to a parameter configuration operation of a user, for example, the user inputs a first configuration parameter or selects the first configuration parameter from a plurality of preset parameters in an alarm rule configuration interface to trigger a corresponding first parameter configuration instruction, and at this time, the execution subject acquires the first parameter configuration instruction.
Here, the first component to be configured is a rule component in the modeling area. The rule component may include, but is not limited to, at least one or more of the following: the module corresponding to the ID of the template file, the module corresponding to the alarm field to be analyzed, the module corresponding to the data type of the alarm field, the module corresponding to the visibility of the alarm field, the module corresponding to whether the alarm field is available, the module corresponding to the alarm processing mode of the alarm information, the module corresponding to the transmission mode of the alarm information, the module corresponding to the display position of the alarm field, the module corresponding to the form type, the module corresponding to the form size, the module corresponding to the time format, the module corresponding to whether the alarm field can be deleted, the module corresponding to the title of the template, the module corresponding to the equipment data of the alarm equipment, the module corresponding to the alarm triggering condition of the alarm equipment and the like.
In an embodiment, the components corresponding to the alert field may include, but are not limited to, at least one or more of the following: the system comprises a component corresponding to an alarm title, a component corresponding to alarm update time, a component corresponding to an alarm name, a component corresponding to an alarm ID, a component corresponding to an alarm unique identifier, a component corresponding to an alarm type, a component corresponding to a manufacturer of alarm equipment, a component corresponding to an alarm object, a component corresponding to an alarm level, a component corresponding to the name of the alarm object, a component corresponding to alarm generation time, a component corresponding to alarm information and the like.
In an embodiment, the components corresponding to the device data of the alarm device may include, but are not limited to, at least one or more of the following: the device comprises a component corresponding to a device model, a component corresponding to a device type, a component corresponding to a networking protocol, a component corresponding to a CPU architecture, a component corresponding to a device manufacturer and a component corresponding to device description information.
In an embodiment, the components corresponding to the alarm triggering condition may include, but are not limited to, at least one or more of the following: a component corresponding to a triggering mode, a component corresponding to a device name of the alarm device, a component corresponding to a monitoring attribute of the alarm device, a component corresponding to a comparison threshold corresponding to the monitoring attribute, a component corresponding to a triggering condition, and the like.
The device alarm method provided by the embodiment of the invention comprises the steps of obtaining a first parameter configuration instruction acting on an alarm rule configuration interface, and determining a first component to be configured indicated by the first parameter configuration instruction and a first configuration parameter of the first component to be configured; based on the first configuration parameters, parameter configuration is carried out on the first component to be configured so as to edit rule contents corresponding to the first component to be configured, so that a user can edit the rule contents in a visual mode, and the alarm rule can be quickly and conveniently configured, thereby improving the convenience of alarm rule configuration and further improving the convenience of equipment alarm.
Based on any of the above embodiments, fig. 3 is a third flowchart of the device alert method provided by the present invention, as shown in fig. 3, in the step 130, the alerting based on the target alert data includes:
and 131, processing the target alarm data based on an alarm notification model to obtain an alarm notification message, and determining a notification object of the target alarm data based on the alarm notification model.
The alarm notification model is associated with alarm notification rules, and the alarm notification rules comprise at least one of names, notification contents, notification modes, notification object information, numbers of the alarm notification rules, equipment names of alarm equipment, equipment addresses of the alarm equipment, alarm date formats, alarm time and alarm trigger descriptions.
Here, the notification content includes targeted alert data, which may also include other relevant notification content. Notification means may include, but are not limited to: short message notification, weChat communication, mail notification, etc. The notification object information may include, but is not limited to: user name, phone number, micro-signal, mailbox, etc. The alert trigger description may include, but is not limited to: alert trigger reasons, alert trigger conditions, etc.
Specifically, based on the alarm notification rule associated with the alarm notification model, processing the target alarm data to obtain an alarm notification message conforming to the alarm notification rule; based on the notification object information in the alarm notification rule associated with the alarm notification model, a notification object of the target alarm data is determined.
And step 132, sending the alarm notification message to the notification object.
Specifically, the alarm notification message is sent to the notification object based on the notification object information in the alarm notification rule associated with the alarm notification model.
According to the equipment alarm method provided by the embodiment of the invention, the target alarm data is processed based on the alarm notification model to obtain the alarm notification message, and the notification object of the target alarm data is determined based on the alarm notification model to send the alarm notification message to the notification object, so that the alarm information of the alarm equipment can be analyzed according to the alarm rule to obtain the target alarm data, and the target alarm data is further processed according to the alarm notification rule to obtain the alarm notification message, so that the alarm is better performed, the alarm accuracy of the equipment is further improved, and the user experience is improved.
Based on any of the above embodiments, fig. 4 is a flow chart of a device alarm method provided by the present invention, as shown in fig. 4, where the alarm notification model is modeled based on the following steps:
step 410, obtaining a second configuration instruction acting on the alarm notification rule configuration interface.
Here, the alert notification rule configuration interface is a modeling interface of the alert notification model. The alarm notification rule configuration interface is used for the user to configure the alarm notification rule, namely, the alarm notification rule configuration interface is used for the user to trigger a second configuration instruction on the alarm notification rule configuration interface.
The alert notification rule configuration interface may include, but is not limited to, one or more of the following: the modeling area, the component selection area, the menu bar area, the shortcut operation area, the parameter configuration area, etc. of the alert notification model are not particularly limited in this embodiment of the present invention.
The modeling area of the alarm notification model is used for modeling the alarm notification model, namely, the modeling area is used for configuring alarm notification rules. Specifically, the modeling area is used for inserting a component, dragging the component and inserting the dragged component, custom drawing the component, connecting any two components, generating a directional arrow of the connecting line, editing text, configuring component parameters, setting component styles, setting directional arrow styles, inserting an alarm notification model, dragging the alarm notification model and inserting the alarm notification model, moving the alarm notification model, turning the alarm notification model, setting an alarm notification model style, and the like.
The component selection area is used for placing each notification rule component so that the notification rule component can be selected from the component selection area to be inserted into the modeling area, or the notification rule component can be dragged from the component selection area to be inserted into the modeling area.
The menu bar area is used for placing function options, and the function options are used for providing editing functions or configuration functions of the alarm notification model.
The quick operation area is used for placing quick function options, the quick function options are used for providing quick editing functions or quick configuration functions of the alarm notification model, so that modeling efficiency of the alarm notification model is improved, convenience of alarm notification rule configuration is further improved, and convenience of equipment alarm is finally improved.
The parameter configuration area is used for carrying out parameter configuration on the notification rule component.
The functional options may include, but are not limited to: model enlargement options, model reduction options, size adaptation options, location reduction options, grid display options, last step options, next step options, model download options, parameter view options of notification rules components, and the like, to which embodiments of the present invention are not particularly limited.
Here, the second configuration instruction is an instruction generated in response to an operation of the user acting on the alert notification rule configuration interface. The second configuration instruction may be triggered in all areas in the alert notification rule configuration interface. For example, in the modeling area, a component drag instruction, a component custom instruction, a component connection instruction, a connection direction determination instruction, a text editing instruction, a parameter configuration instruction, a style operation instruction, a component click instruction, a connection click instruction, a component flip instruction, a connection flip instruction, a model click instruction, a model drag instruction, a model setting instruction, a model flip instruction, and the like are triggered; triggering a component dragging instruction, a component clicking instruction and the like in a component selection area; triggering a function click command, a function drag command and the like in the menu bar area; triggering a function click command, a function drag command and the like in the shortcut operation region; triggering parameter configuration instructions in the parameter configuration area, and so on.
The second configuration instructions include second component configuration instructions and operation instructions. The second component configuration instruction is configured to configure the notification rule component, and specifically, the second component configuration instruction may be used to indicate the notification rule component to be configured, for example, the notification rule component to be configured indicated by the second component configuration instruction is a dragged component, a newly added component, a component to be connected, a component to be edited with rule content, a component to be set with style content, or a component to be configured with parameters, etc., which may, of course, also be used to indicate other operation information, and is not described herein in detail. The operation instructions are used to operate on other elements than components, such as wires, models, directional arrows, grids, and the like.
The second configuration instructions may include, but are not limited to, one or more of the following: component drag instructions, component custom instructions, component join line instructions, join line direction determination instructions, text editing instructions, parameter configuration instructions, style operation instructions, component click instructions, join line click instructions, component flip instructions, join line flip instructions, model click instructions, model drag instructions, model setup instructions, model flip instructions, function click instructions, function drag instructions, component attribute configuration instructions, join line attribute configuration instructions, and the like. It should be noted that the second configuration instructions provide functions necessary for modeling the alert notification model.
Step 420, executing the operation corresponding to the second configuration instruction on the target notification rule component indicated by the second configuration instruction, so as to model an alarm notification model.
Here, the target notification rule component indicated by the second configuration instruction may include, but is not limited to: a dragged component, a component to be configured, a custom component, a component to be wired, and the like. Specifically, if the second configuration instruction is a component dragging instruction, the target notification rule component indicated by the component dragging instruction is a dragged component; if the second configuration instruction is a parameter configuration instruction, the target notification rule component indicated by the parameter configuration instruction is a component to be configured; if the second configuration instruction is a component connection instruction, the target notification rule component indicated by the component connection instruction is a component to be connected, and the component to be connected comprises two notification rule components.
Specifically, for the target notification rule component indicated by the second configuration instruction, executing an operation corresponding to the second configuration instruction to perform alarm notification rule configuration, so as to model an alarm notification model.
Step 430, determining the alarm notification model based on each of the second configuration instructions.
The second configuration instruction comprises a second component configuration instruction, wherein the second component configuration instruction is used for indicating a notification rule component to be configured and indicating configuration content for configuring the notification rule component.
Specifically, steps 410 and 420 are performed several times, and finally, the alert notification model is determined based on each second configuration instruction. More specifically, the alert notification model is finally determined based on the graph data determined by each of the second configuration instructions. Namely, drawing data corresponding to the drawing is derived, and an alarm notification model is determined based on the drawing data.
Here, the second component configuration instruction is configured to operate the notification rule component, and specifically, the second component configuration instruction may be used to indicate that the notification rule component to be configured is a notification rule component to be configured, for example, the notification rule component to be configured indicated by the second component configuration is a dragged component, a component to be configured, a new component, a component to be connected, a component to be provided with style content, a component to be configured with an attribute, or the like.
The second component configuration instructions may also be used to indicate configuration content to configure the notification rules component, which may include, but is not limited to: the drag operation of the component, the parameter configuration of the component, the custom operation of the component (such as the drawing operation of the component graph), the connection operation of the component, the text editing operation of the component, the style setting operation of the component, the attribute configuration operation of the component, and the like. Of course, the second component configuration instruction may also be used to indicate other configuration contents, which are not described in detail in the embodiment of the present invention.
The second component configuration instructions may include, but are not limited to, one or more of the following: component drag instructions, parameter configuration instructions, component custom instructions, component join line instructions, text edit instructions, style manipulation instructions, component click instructions, component flip instructions, component attribute configuration instructions, and the like.
It should be noted that the alarm notification model may be used as a component, so that another alarm notification model may be further modeled based on the component corresponding to the alarm notification model.
The notification rules component may include, but is not limited to, at least one or more of the following: a component corresponding to a name of an alarm notification rule, a component corresponding to a notification content, a component corresponding to a notification mode, a component corresponding to notification object information, a component corresponding to a number of the alarm notification rule, a component corresponding to a device name of the alarm device, a component corresponding to a device address of the alarm device, a component corresponding to an alarm date format, a component corresponding to alarm time, a component corresponding to an alarm trigger description, and the like.
According to the equipment alarm method provided by the embodiment of the invention, the second configuration instruction acting on the alarm notification rule configuration interface is obtained, the operation corresponding to the second configuration instruction is executed on the target notification rule component indicated by the second configuration instruction, so that the alarm notification model can be modeled by a user in a visual mode, the user does not need to write codes manually, the user only needs to concentrate on service requirements, the development of the code of the bottom redundancy is reduced, the alarm notification rule can be configured quickly and conveniently, the convenience of the alarm notification rule configuration is improved, and the convenience of equipment alarm is further improved.
Based on any of the above embodiments, if the second configuration instruction is a second component dragging instruction of the second component configuration instruction, the step 420 includes:
determining a second dragged component indicated by the second component dragging instruction and a second insertion position of the second dragged component;
and inserting the second dragged component into the second insertion position so that the alarm notification model is associated with the rule content corresponding to the second dragged component.
Here, the second component drag instruction may be used to insert a new notification rule component, or may be used to move an old notification rule component. The new notification rule component may select a notification rule component in the area for the component and the old notification rule component may be a notification rule component in the modeled area. Specifically, the new notification rule component is inserted to insert a new component in the modeling area, that is, the second dragged component indicated by the second component dragging instruction is the new component, and the second insertion position indicated by the second component dragging instruction is the new position; the old notification rule component is used for moving the notification rule component in the modeling area, namely a second dragged component indicated by a second component dragging instruction is an original notification rule component of the modeling area, and a second insertion position indicated by the second component dragging instruction is a moved position.
The second component dragging instruction is an instruction generated in response to a user's component dragging operation, for example, the user triggers a corresponding second component dragging instruction by selecting and dragging a notification rule component in a component selection area, and at this time, the execution body acquires the second component dragging instruction.
Here, the second dragged component includes a notification rule component in the component selection area, or a notification rule component in the modeling area. The rule content corresponding to the second dragged component can be preset rule content, or rule content configured before, or rule content configured or edited.
It should be noted that, the second component drag instruction, the component connection instruction, the parameter configuration instruction, the text editing instruction, the style operation instruction, the component click instruction, the component flip instruction, the component attribute configuration instruction, and the like may be triggered for the second dragged component.
The equipment alarming method provided by the embodiment of the invention obtains a second component dragging instruction acted on an alarming notification rule configuration interface, and determines a second dragged component indicated by the second component dragging instruction and a second inserting position of the second dragged component; the second dragged component is inserted into the second insertion position, so that the alarm notification model is associated with rule contents corresponding to the second dragged component, the user can add the rule contents of the alarm notification in a visual mode, the alarm notification rule can be configured quickly and conveniently, the configuration convenience of the alarm notification rule is improved, and the convenience of equipment alarm is further improved.
Based on any of the above embodiments, if the second configuration instruction is a second parameter configuration instruction of the second component configuration instruction, the step 420 includes:
determining a second component to be configured indicated by the second parameter configuration instruction and a second configuration parameter of the second component to be configured;
and carrying out parameter configuration on the second component to be configured based on the second configuration parameters so as to edit rule contents corresponding to the second component to be configured.
Here, the second parameter configuration instruction is used for performing parameter configuration on the notification rule component in the alarm notification rule configuration interface, that is, editing rule contents on the notification rule component. Specifically, the second parameter configuration instruction may be used to instruct the second component to be configured; and may also be used to indicate a second configuration parameter of a second component to be configured.
The second parameter configuration instruction is an instruction generated in response to a parameter configuration operation of a user, for example, the user inputs the second configuration parameter or selects the second configuration parameter from a plurality of preset parameters in an alarm rule configuration interface to trigger the corresponding second parameter configuration instruction, and at this time, the execution subject acquires the second parameter configuration instruction.
Here, the second component to be configured is a notification rule component in the modeling area.
The equipment alarm method provided by the embodiment of the invention obtains a second parameter configuration instruction acting on an alarm notification rule configuration interface, and determines a second component to be configured indicated by the second parameter configuration instruction and a second configuration parameter of the second component to be configured; based on the second configuration parameters, parameter configuration is performed on the second component to be configured so as to edit rule contents corresponding to the second component to be configured, so that a user can edit rule contents of the notification rule in a visual mode, thereby being beneficial to configuring the alarm notification rule quickly and conveniently, improving the convenience of configuring the alarm notification rule, and further improving the convenience of equipment alarm.
In summary, through the above embodiments, first, a developer does not need to write a large amount of alarm processing repetition codes, so that a large amount of development time can be saved, and the developer can be helped to avoid errors. Second, it is easy to integrate and use, so the developer does not need to learn how to use it specifically. In addition, it can help enterprises quickly implement agile development methodologies to enable faster processing of new device alarms. Finally, because the method greatly simplifies the development process, the cost of modifying the alarm rule is relatively low, and meanwhile, the method can help enterprises to reduce the risk of operation and maintenance alarms, because the development cost is relatively low if analysis of the alarms is unsuccessful.
The device alarm device provided by the invention is described below, and the device alarm device described below and the device alarm method described above can be referred to correspondingly.
Fig. 5 is a schematic structural diagram of an apparatus alarm device provided by the present invention, as shown in fig. 5, the apparatus alarm device includes:
an obtaining module 510, configured to obtain a first configuration instruction acting on the alert rule configuration interface;
an execution module 520, configured to execute, for the target rule component indicated by the first configuration instruction, an operation corresponding to the first configuration instruction, so as to model an alarm rule configuration model;
the configuration module 530 is configured to perform alarm rule configuration on alarm information generated by the alarm device based on the alarm rule configuration model determined by each of the first configuration instructions, obtain target alarm data, and perform an alarm based on the target alarm data;
the first configuration instruction comprises a first component configuration instruction, wherein the first component configuration instruction is used for indicating a rule component to be configured and indicating configuration content for configuring the rule component.
According to the equipment alarm device provided by the embodiment of the invention, the first configuration instruction acting on the alarm rule configuration interface is obtained, the operation corresponding to the first configuration instruction is executed on the target rule assembly indicated by the first configuration instruction, so that the alarm rule configuration model is modeled in a visual mode, a user can obtain the alarm rule configuration model without manually writing codes, the user only needs to concentrate on service requirements, the development of the code of the bottom redundancy is reduced, the alarm rule is quickly and conveniently configured, the convenience of the alarm rule configuration is improved, and the convenience of equipment alarm is further improved.
Fig. 6 illustrates a physical schematic diagram of an electronic device, as shown in fig. 6, which may include: processor 610, communication interface (Communications Interface) 620, memory 630, and communication bus 640, wherein processor 610, communication interface 620, and memory 630 communicate with each other via communication bus 640. The processor 610 may invoke logic instructions in the memory 630 to perform a device alert method comprising: acquiring a first configuration instruction acting on an alarm rule configuration interface; executing the operation corresponding to the first configuration instruction on the target rule component indicated by the first configuration instruction so as to model an alarm rule configuration model; based on the alarm rule configuration model determined by each first configuration instruction, carrying out alarm rule configuration on alarm information generated by alarm equipment to obtain target alarm data, and carrying out alarm based on the target alarm data; the first configuration instruction comprises a first component configuration instruction, wherein the first component configuration instruction is used for indicating a rule component to be configured and indicating configuration content for configuring the rule component.
Further, the logic instructions in the memory 630 may be implemented in the form of software functional units and stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, the computer program product including a computer program, the computer program being storable on a non-transitory computer readable storage medium, the computer program, when executed by a processor, being capable of executing the device alert method provided by the methods described above, the method comprising: acquiring a first configuration instruction acting on an alarm rule configuration interface; executing the operation corresponding to the first configuration instruction on the target rule component indicated by the first configuration instruction so as to model an alarm rule configuration model; based on the alarm rule configuration model determined by each first configuration instruction, carrying out alarm rule configuration on alarm information generated by alarm equipment to obtain target alarm data, and carrying out alarm based on the target alarm data; the first configuration instruction comprises a first component configuration instruction, wherein the first component configuration instruction is used for indicating a rule component to be configured and indicating configuration content for configuring the rule component.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform the device alert method provided by the above methods, the method comprising: acquiring a first configuration instruction acting on an alarm rule configuration interface; executing the operation corresponding to the first configuration instruction on the target rule component indicated by the first configuration instruction so as to model an alarm rule configuration model; based on the alarm rule configuration model determined by each first configuration instruction, carrying out alarm rule configuration on alarm information generated by alarm equipment to obtain target alarm data, and carrying out alarm based on the target alarm data; the first configuration instruction comprises a first component configuration instruction, wherein the first component configuration instruction is used for indicating a rule component to be configured and indicating configuration content for configuring the rule component.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A device alert method, comprising:
acquiring a first configuration instruction acting on an alarm rule configuration interface;
executing the operation corresponding to the first configuration instruction on the target rule component indicated by the first configuration instruction so as to model an alarm rule configuration model;
based on the alarm rule configuration model determined by each first configuration instruction, carrying out alarm rule configuration on alarm information generated by alarm equipment to obtain target alarm data, and carrying out alarm based on the target alarm data;
the first configuration instruction comprises a first component configuration instruction, wherein the first component configuration instruction is used for indicating a rule component to be configured and indicating configuration content for configuring the rule component.
2. The device alert method according to claim 1, wherein, if the first configuration instruction is a first component drag instruction of the first component configuration instruction, the executing, on the target rule component indicated by the first configuration instruction, an operation corresponding to the first configuration instruction includes:
determining a first dragged component indicated by the first component dragging instruction and a first insertion position of the first dragged component;
And inserting the first dragged component into the first insertion position so that the alarm rule configuration model is associated with rule contents corresponding to the first dragged component.
3. The device alert method according to claim 1, wherein, if the first configuration instruction is a first parameter configuration instruction of the first component configuration instruction, the executing, on the target rule component indicated by the first configuration instruction, an operation corresponding to the first configuration instruction includes:
determining a first component to be configured indicated by the first parameter configuration instruction and a first configuration parameter of the first component to be configured;
and carrying out parameter configuration on the first component to be configured based on the first configuration parameter so as to edit rule contents corresponding to the first component to be configured.
4. The device alert method of claim 1, wherein the alerting based on the target alert data comprises:
processing the target alarm data based on an alarm notification model to obtain an alarm notification message, and determining a notification object of the target alarm data based on the alarm notification model;
Sending the alarm notification message to the notification object;
the alarm notification model is associated with alarm notification rules, and the alarm notification rules comprise at least one of names, notification contents, notification modes, notification object information, numbers of the alarm notification rules, equipment names of alarm equipment, equipment addresses of the alarm equipment, alarm date formats, alarm time and alarm trigger descriptions.
5. The device alert method of claim 4, wherein the alert notification model is modeled based on the steps of:
acquiring a second configuration instruction acting on an alarm notification rule configuration interface;
executing the operation corresponding to the second configuration instruction on the target notification rule component indicated by the second configuration instruction so as to model an alarm notification model;
determining the alarm notification model based on each second configuration instruction;
the second configuration instruction comprises a second component configuration instruction, wherein the second component configuration instruction is used for indicating a notification rule component to be configured and indicating configuration content for configuring the notification rule component.
6. The device alert method according to claim 5, wherein, if the second configuration instruction is a second component drag instruction of the second component configuration instruction, the notifying the target notification rule component indicated by the second configuration instruction of the operation corresponding to the second configuration instruction includes:
determining a second dragged component indicated by the second component dragging instruction and a second insertion position of the second dragged component;
and inserting the second dragged component into the second insertion position so that the alarm notification model is associated with the rule content corresponding to the second dragged component.
7. The device alert method according to claim 5, wherein, if the second configuration instruction is a second parameter configuration instruction of the second component configuration instruction, the notifying the rule component of the target indicated by the second configuration instruction, executing the operation corresponding to the second configuration instruction includes:
determining a second component to be configured indicated by the second parameter configuration instruction and a second configuration parameter of the second component to be configured;
and carrying out parameter configuration on the second component to be configured based on the second configuration parameters so as to edit rule contents corresponding to the second component to be configured.
8. An apparatus alert device, comprising:
the acquisition module is used for acquiring a first configuration instruction acting on the alarm rule configuration interface;
the execution module is used for executing the operation corresponding to the first configuration instruction on the target rule component indicated by the first configuration instruction so as to model an alarm rule configuration model;
the configuration module is used for carrying out alarm rule configuration on alarm information generated by alarm equipment based on the alarm rule configuration model determined by each first configuration instruction to obtain target alarm data and carrying out alarm based on the target alarm data;
the first configuration instruction comprises a first component configuration instruction, wherein the first component configuration instruction is used for indicating a rule component to be configured and indicating configuration content for configuring the rule component.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the device alert method according to any one of claims 1 to 7 when the program is executed by the processor.
10. A non-transitory computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when executed by a processor, implements the device alert method according to any one of claims 1 to 7.
CN202310087167.5A 2023-01-29 2023-01-29 Equipment alarm method, device, electronic equipment and storage medium Pending CN116089229A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310087167.5A CN116089229A (en) 2023-01-29 2023-01-29 Equipment alarm method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310087167.5A CN116089229A (en) 2023-01-29 2023-01-29 Equipment alarm method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116089229A true CN116089229A (en) 2023-05-09

Family

ID=86186754

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310087167.5A Pending CN116089229A (en) 2023-01-29 2023-01-29 Equipment alarm method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116089229A (en)

Similar Documents

Publication Publication Date Title
CN108108297B (en) Method and device for automatic testing
CN110795148B (en) Method and device for generating layout file and electronic equipment
CN107562556B (en) Failure recovery method, recovery device and storage medium
CN110598868A (en) Machine learning model building method and device and related equipment
CN111078695B (en) Method and device for calculating association relation of metadata in enterprise
CN111782651A (en) Visual editing method, device and equipment for data association relation and storage medium
CN115437933A (en) Automatic testing method and device, computer equipment and storage medium
CN112925555A (en) Model management method, device, equipment and storage medium
CN110399232B (en) Paste processing method, paste processing device, paste processing equipment and computer-readable storage medium
CN110413161B (en) Component configuration method and device and electronic equipment
CN115794641A (en) Method, device and equipment for making number based on business process and storage medium
CN113590097B (en) API interface generation method and device, electronic equipment and storage medium
CN114185750A (en) Process monitoring method, device, equipment and storage medium
CN113468212A (en) Event execution method and device and electronic equipment
CN107220044B (en) Method and device for driving business object based on meta-model
CN116089229A (en) Equipment alarm method, device, electronic equipment and storage medium
CN115237425A (en) Code viewing method and device, computer equipment and storage medium
CN113867706A (en) Code generation method and device
CN114282760A (en) Workflow generation method and device combining dynamic form and dynamic flow
CN112559357A (en) Access method and device of third-party equipment, electronic equipment and readable storage medium
CN113821202B (en) Method, device and equipment for generating management software file and readable storage medium
CN114500227B (en) Alarm analysis method, device, equipment and computer storage medium
CN117008890B (en) Extended application development system and method
CN113626409B (en) Test data processing method, device, equipment and storage medium
US9342215B2 (en) Automatic environment restoration for a particular artwork

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