Alarm plug-in management method and device, equipment and medium
By conducting online verification and customization in the alarm plug-in management platform and combining the digital signature mechanism, the problem of plug-in management of traditional alarm systems is solved, and efficient and secure plug-in management and monitoring functions are realized to meet diverse needs.
Patent Information
- Application Number
- CN202410987417.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-11-12
AI Technical Summary
Traditional alarm systems rely on predefined rules and plug-ins, which are difficult to respond to system changes and needs in a timely manner, and lack mechanisms to ensure the integrity and legitimacy of plug-ins' content, and are vulnerable to tampering and attacks.
Online verification and storage are carried out in the alarm plug-in management platform, support plug-in customization and online testing, use digital signature mechanism to ensure the integrity and legality of plug-in content, and manage plug-in versions in the plug-in warehouse to realize real-time writing and adjustment of plug-in.
It improves the development efficiency and user experience of alarm plug-ins, ensures code quality and security, prevents plug-ins from tampering, and meets different monitoring needs.
Smart Images

Figure CN118939304A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of alarm management, and in particular to a management method, device, equipment and medium for an alarm plug-in. Background Art
[0002] With the development of information technology and the increasing demand for business system monitoring in enterprises, alarm systems are often used to monitor business systems in order to detect and solve problems in a timely manner.
[0003] Traditional alarm systems rely heavily on predefined rules and plug-ins, which have certain limitations. If the alarm requirements change, manual operations are required to update and release new plug-ins, which makes it difficult to respond to system changes and requirements in a timely manner. In addition, traditional alarm systems lack effective mechanisms to ensure the integrity and legitimacy of plug-in content and are vulnerable to tampering and attacks. Summary of the invention
[0004] The present invention provides a management method, device, equipment and medium for an alarm plug-in, which can improve the work efficiency of a newly created alarm plug-in and ensure the code quality and security of the alarm plug-in.
[0005] According to one aspect of the present invention, a method for managing an alarm plug-in is provided, which is executed by an alarm plug-in management platform in an alarm system, and includes:
[0006] When a user creates a new first plug-in in the alarm plug-in management platform, the plug-in code of the first plug-in is verified online, and after the verification is passed, the first plug-in is stored in the first memory of the alarm system;
[0007] When it is detected that the second plug-in to be released is updated in the first memory, the second plug-in is released to the plug-in warehouse, and the first plug-in list is updated, so that the user can call the plug-in according to the first plug-in list in the alarm system;
[0008] When the user calls the third plug-in in the alarm system, the third plug-in is updated according to the custom plug-in content input by the user, and after completing the online verification and online testing of the third plug-in, a monitoring plug-in is generated and saved in the second memory in the alarm system, so that the alarm system can perform alarm monitoring according to each monitoring plug-in in the second memory.
[0009] According to another aspect of the present invention, there is provided an alarm plug-in management device, which is executed by an alarm plug-in management platform in an alarm system, and includes:
[0010] An alarm plug-in creation module, used for, when a user creates a new first plug-in in the alarm plug-in management platform, performing online verification on the plug-in code of the first plug-in, and storing the first plug-in in the first storage of the alarm system after the verification passes;
[0011] an alarm plug-in publishing module, configured to, when detecting that a second plug-in to be published is updated in the first memory, publish the second plug-in to the plug-in repository and update the first plug-in list, so that the user can call the plug-in according to the first plug-in list in the alarm system;
[0012] The alarm plug-in customization module is used to update the third plug-in according to the customized plug-in content input by the user when the user calls the third plug-in in the alarm system, and after completing the online verification and online testing of the third plug-in, generate a monitoring plug-in and save it to the second memory in the alarm system, so that the alarm system can perform alarm monitoring according to each monitoring plug-in in the second memory.
[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0014] at least one processor; and
[0015] a memory communicatively connected to the at least one processor; wherein,
[0016] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the alarm plug-in management method described in any embodiment of the present invention.
[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the alarm plug-in management method described in any embodiment of the present invention when executed.
[0018] The technical solution of the embodiment of the present invention performs online verification on the first plug-in newly created by the user in the alarm plug-in management platform, stores the first plug-in that passes the online verification in the first memory of the alarm system, and when it is detected that the second plug-in to be released is updated in the first memory, releases the second plug-in and updates the first plug-in list, so that the user can call the plug-in according to the first plug-in list in the alarm system, and when the user calls the third plug-in in the alarm system, the third plug-in is updated according to the custom plug-in content input by the user, and after completing the online verification and online testing of the third plug-in, a monitoring plug-in is generated and saved in the second memory of the alarm system, so that the alarm system can perform alarm monitoring according to each monitoring plug-in in the second memory, so that the user can write, verify and adjust the alarm plug-in in real time on the front-end page, thereby improving development efficiency and user experience, and the online verification can ensure the code quality and security of the alarm plug-in, and the digital signature mechanism can ensure the integrity and legality of the plug-in content to prevent the plug-in from being tampered with, and also supports user-defined alarm plug-ins and online testing functions to meet different monitoring needs.
[0019] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 This is a flowchart of a method for managing an alarm plug-in provided according to Embodiment 1 of the present invention;
[0022] Figure 2 is a flowchart of another alarm plug-in management method provided according to Embodiment 2 of the present invention;
[0023] Figure 3 This is a schematic diagram of the structure of an alarm plug-in management device provided in Embodiment 3 of the present invention;
[0024] Figure 4 It is a structural diagram of an electronic device for implementing the alarm plug-in management method of an embodiment of the present invention. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0027] Embodiment 1
[0028] Figure 1 This is a flowchart of an alarm plug-in management method provided in the first embodiment of the present invention. This embodiment is applicable to the case of efficiently managing plug-ins in an alarm plug-in management platform. The method can be executed by an alarm plug-in management device. The alarm plug-in management device can be implemented in the form of hardware and / or software, and can generally be configured in an alarm plug-in management platform of an alarm system with data processing functions. Figure 1 As shown, the method includes:
[0029] S110. When a user creates a new first plug-in in the alarm plug-in management platform, the plug-in code of the first plug-in is verified online, and after the verification passes, the first plug-in is stored in a first storage in the alarm system.
[0030] Optionally, the alarm system can be configured within business systems, log management systems and other systems to monitor and alarm these systems. The alarm plug-in management platform can be configured within the alarm system, and users can create, publish and update alarm plug-ins based on the alarm plug-in management platform.
[0031] Optionally, the first plug-in can be a plug-in template created by the user, for example, an email alarm plug-in, an SMS alarm plug-in, a reminder box alarm plug-in, etc., so that when the user defines a personalized plug-in, he can quickly set up personalized alarms based on the first plug-in, thereby improving the efficiency of creating personalized alarm plug-ins.
[0032] Optionally, when a user creates a new first plug-in in the alarm plug-in management platform, the user can enter the plug-in code of the first plug-in. The plug-in code may include the plug-in name, version number, plug-in description and plug-in content of the first plug-in, where the plug-in description can be used to describe some basic information of the plug-in, such as the plug-in author, and the plug-in content can be written in online coding to describe the specific functions of the plug-in.
[0033] Optionally, after the user completes entering the plug-in code of the first plug-in, the user can click the online verification button in the alarm plug-in management platform. When it is detected that the user has clicked the online verification button, the static code analysis tool can be used to automatically perform static analysis on the plug-in code of the first plug-in. The online verification may include checking the plug-in name, version number, plug-in description, and whether the plug-in content is empty. It may also include code quality checks, code vulnerability checks, code security checks, etc. on the online encoded plug-in content.
[0034] Optionally, when a problem is detected in the plug-in code of the first plug-in during the online verification process, a verification report can be generated based on the verification details of the online verification and displayed visually, so that the user can locate the code problem and make modifications based on the verification report. After the user completes each code modification, online verification can be performed again. If there is still a problem, a visual verification report will continue to be generated until the online verification is passed.
[0035] Optionally, after passing the online verification, a save option for the first plug-in can be provided to the user. After it is determined that the user clicks Save, the plug-in code of the first plug-in is verified again. The content of the secondary verification can be customized by the user and can be the same as the initial online verification to improve the security of the first plug-in. It can also be specified as several specific verification contents, which are not limited here.
[0036] Optionally, after determining that the first plug-in has passed the secondary verification, it is determined that the first plug-in meets the usage requirements and is a safe and reliable plug-in. At this time, the timestamp of passing the secondary verification can be obtained, and based on the first plug-in and the timestamp, a digital signature matching the first plug-in is generated, and the plug-in code, digital signature and timestamp of the second verification passing time of the first plug-in are stored together in the first memory.
[0037] The first memory may be a memory configured in the alarm system, and may be used to store a plug-in template created by a user, that is, a first plug-in. The first memory may be a HDFS (Hadoop Distributed File System) memory.
[0038] S120: When it is detected that the second plug-in to be released is updated in the first storage, the second plug-in is released to the plug-in warehouse, and the first plug-in list is updated, so that the user can call the plug-in according to the first plug-in list in the alarm system.
[0039] Optionally, the plug-in stored in the first memory may be a first plug-in written by a user, that is, a plug-in template. However, each time the first plug-in is stored in the first memory, it is necessary to publish the first plug-in. Only after the publishing is completed, the first plug-in can be customized and modified by the user. The second plug-in may refer to a plug-in that has been stored in the first memory and is waiting to be published.
[0040] Optionally, the alarm plug-in management platform can access the first memory and periodically detect the version number of each first plug-in in the first memory. When a new version number is detected, the plug-in with the new version number is stored as the second plug-in to be released.
[0041] Optionally, after determining the second plug-in, the plug-in can be published to the plug-in warehouse and the first plug-in list can be updated. The first plug-in list can include the name of each plug-in in the first memory, and can also include version number, plug-in description and other information. The first plug-in list can be displayed to the user, and the user can call and modify the specified plug-in in the plug-in warehouse by clicking on the first plug-in list.
[0042] S130. When the user calls the third plug-in in the alarm system, the third plug-in is updated according to the custom plug-in content input by the user, and after completing the online verification and online testing of the third plug-in, a monitoring plug-in is generated and saved in the second memory in the alarm system, so that the alarm system can perform alarm monitoring according to each monitoring plug-in in the second memory.
[0043] Optionally, the third plug-in may refer to a plug-in that the user currently needs to customize, and the third plug-in is a plug-in that has been published in the plug-in repository.
[0044] Optionally, when a user initiates a request to create a personalized plug-in in the alarm system, the user may first fill in monitoring information, which may include the name of the monitored problem, trigger conditions, time settings for scheduled monitoring, and other information, which is not limited here.
[0045] Optionally, after the user completes filling in the monitoring information, the first plug-in list can be pulled, and a third plug-in for personalized processing can be selected from the first plug-in list. After the third plug-in selected by the user is determined, the third plug-in is called in the plug-in warehouse for the user to perform personalized settings.
[0046] Optionally, when it is detected that the user has pulled the first plug-in list, the digital signature of each plug-in in the first plug-in list needs to be verified for legitimacy. Only after the legitimacy verification is passed will it be displayed on the user side. If the plug-in signature of a plug-in in the first plug-in list fails the legitimacy verification, the plug-in will be hidden in the first plug-in list displayed to the user side.
[0047] Optionally, after the user calls the third plug-in, a visual configuration page can be generated according to the plug-in code of the third plug-in, and the user can enter custom plug-in content in the visual configuration page. The plug-in content corresponding to different first plug-ins can be different. For example, if the first plug-in is an email alarm plug-in, the plug-in content entered by the user may include information such as the email title, email recipient, cc, and blind recipient. If the first plug-in is an SMS alarm plug-in, the plug-in content entered by the user may include information such as the SMS title, group SMS or designated recipients. This is only an exemplary description and does not limit the custom plug-in content.
[0048] Optionally, after obtaining the custom plug-in content, the plug-in content in the plug-in code of the third plug-in can be updated according to the custom plug-in content, and the updated plug-in code of the third plug-in can be verified online. The online verification operation of the plug-in code of the third plug-in is the same as the online verification in step S110.
[0049] Optionally, after completing the online verification, if a test run request is received from the user, an online test run is performed based on the updated third plug-in. The alarm system will monitor the monitoring content of the third plug-in, execute the third plug-in based on the monitoring results, and display the execution status on the page. The user can further customize the plug-in content of the third plug-in according to the prompt information on the page, and an online verification operation must be performed after each modification until the user initiates a save request for the third plug-in that has passed the online verification, and the finally updated third plug-in is stored in the second memory.
[0050] It should be noted that, although the third plug-in is called, what is stored in the second memory is the customized third plug-in, and the original third plug-in is still stored in the first memory, that is, although the plug-in template is customized into a new plug-in, the original plug-in template is still stored in the first memory, and the customized new plug-in is stored in the second memory.
[0051] Optionally, the second memory may be a memory configured in the alarm system, and may be used to store a custom plug-in generated by a user according to personalized requirements, that is, a second plug-in, and the second memory may be an HDFS (Hadoop Distributed File System) memory.
[0052] Optionally, the alarm system may perform alarm monitoring according to each monitoring plug-in stored in the second memory, and if the triggering condition of the target monitoring plug-in in the second memory is currently met, the alarm content of the target monitoring plug-in is executed.
[0053] The technical solution of the embodiment of the present invention performs online verification on the first plug-in newly created by the user in the alarm plug-in management platform, stores the first plug-in that passes the online verification in the first memory of the alarm system, and when it is detected that the second plug-in to be released is updated in the first memory, releases the second plug-in and updates the first plug-in list, so that the user can call the plug-in according to the first plug-in list in the alarm system, and when the user calls the third plug-in in the alarm system, the third plug-in is updated according to the custom plug-in content input by the user, and after completing the online verification and online testing of the third plug-in, a monitoring plug-in is generated and saved in the second memory of the alarm system, so that the alarm system can perform alarm monitoring according to each monitoring plug-in in the second memory, so that the user can write, verify and adjust the alarm plug-in in real time on the front-end page, thereby improving development efficiency and user experience, and the online verification can ensure the code quality and security of the alarm plug-in, and the digital signature mechanism can ensure the integrity and legality of the plug-in content to prevent the plug-in from being tampered with, and also supports user-defined alarm plug-ins and online testing functions to meet different monitoring needs.
[0054] Embodiment 2
[0055] Figure 2 This is a flowchart of a method for managing an alarm plug-in provided in Embodiment 2 of the present invention. Based on the above embodiments, this embodiment specifically describes the method for managing an alarm plug-in. Figure 2 As shown, the method includes:
[0056] S210: When a user creates a new first plug-in in the alarm plug-in management platform, a plug-in code of the first plug-in input by the user is obtained, and when it is detected that the user initiates an online verification request, the plug-in code of the first plug-in is verified online through a code analysis tool.
[0057] The plug-in code includes the plug-in name, version number, plug-in description and plug-in content.
[0058] S220. When it is determined according to the online verification result that there is at least one problem in the plug-in code of the first plug-in, a verification details page is generated according to the online verification result and displayed to the user, so that the user can modify the plug-in code of the first plug-in according to the verification details page until the first plug-in passes the online verification.
[0059] S230: When it is determined that the first plug-in passes the online verification and a first plug-in save request initiated by a user is received, perform a second verification on the first plug-in code.
[0060] S240. After determining that the secondary verification is passed, generate a hash value corresponding to the first plug-in, and obtain a timestamp of the time when the secondary verification is passed.
[0061] S250: Concatenate the hash value and the timestamp, and encrypt the concatenation result to generate a digital signature of the first plug-in.
[0062] Optionally, the hash value can be a value in the form of a cryptographic hash function, such as MD5 (Message Digest Algorithm MD5, Message Digest Algorithm Fifth Edition) format. After obtaining the hash value and timestamp, the two strings can be concatenated into one string, and the string can be encrypted. The string can also be encrypted using MD5, and the encrypted string can be used as a digital signature.
[0063] The advantage of this setting is that MD5 can quickly calculate hash values, which is suitable for fast processing of large amounts of data. In theory, it is difficult to reverse the original input data from the hash value. It can effectively ensure the security of data and the uniqueness of the digital signature of each plug-in. By setting a digital signature, the integrity and legality of the plug-in content can be ensured.
[0064] S260: Store the plug-in code, digital signature, and timestamp of the second verification passing time of the first plug-in in the first memory.
[0065] S270: When it is detected that the target version number is updated in the first memory, determine that the second plug-in corresponding to the target version number is in a pending release state, release the second plug-in to the plug-in repository, and update the first plug-in list.
[0066] Optionally, the target version number may refer to a new version number that has not been monitored during historical monitoring.
[0067] S280. When a user calls a plug-in in the alarm system, the digital signature of each plug-in in the plug-in repository is verified for legitimacy. Based on the legitimacy verification result and the first plug-in list, the plug-ins that meet the calling conditions are displayed to the user for the user to call.
[0068] S290. When the user calls the third plug-in in the alarm system, the code of the third plug-in is updated according to the custom plug-in content input by the user, and when it is detected that the user initiates an online verification request, the plug-in code of the updated third plug-in is verified online through a code analysis tool.
[0069] S2100: When the plug-in code of the third plug-in passes the online verification and an online test request initiated by a user is received, the third plug-in is executed, and a visualization page is generated according to the execution result of the third plug-in to be displayed to the user.
[0070] S2110: After determining that the third plug-in has completed online verification and online testing, generate a monitoring plug-in and save it to a second memory in the alarm system.
[0071] The technical solution of the embodiment of the present invention performs online verification on the first plug-in newly created by the user in the alarm plug-in management platform, stores the first plug-in that passes the online verification in the first memory of the alarm system, and when it is detected that the second plug-in to be released is updated in the first memory, releases the second plug-in and updates the first plug-in list, so that the user can call the plug-in according to the first plug-in list in the alarm system, and when the user calls the third plug-in in the alarm system, the third plug-in is updated according to the custom plug-in content input by the user, and after completing the online verification and online testing of the third plug-in, a monitoring plug-in is generated and saved in the second memory of the alarm system, so that the alarm system can perform alarm monitoring according to each monitoring plug-in in the second memory, so that the user can write, verify and adjust the alarm plug-in in real time on the front-end page, thereby improving development efficiency and user experience, and the online verification can ensure the code quality and security of the alarm plug-in, and the digital signature mechanism can ensure the integrity and legality of the plug-in content to prevent the plug-in from being tampered with, and also supports user-defined alarm plug-ins and online testing functions to meet different monitoring needs.
[0072] Embodiment 3
[0073] Figure 3 This is a schematic diagram of the structure of a management device for an alarm plug-in provided in Embodiment 3 of the present invention. Figure 3 As shown, the device includes: an alarm plug-in creation module 310, an alarm plug-in publishing module 320 and an alarm plug-in customization module 330.
[0074] The alarm plug-in creation module 310 is used to perform online verification on the plug-in code of the first plug-in when the user creates a new first plug-in in the alarm plug-in management platform, and store the first plug-in in the first memory of the alarm system after the verification is passed.
[0075] The alarm plug-in publishing module 320 is used to publish the second plug-in to the plug-in warehouse and update the first plug-in list when detecting that the second plug-in to be published is updated in the first memory, so that the user can call the plug-in according to the first plug-in list in the alarm system.
[0076] The alarm plug-in customization module 330 is used to update the third plug-in according to the customized plug-in content input by the user when the user calls the third plug-in in the alarm system, and after completing the online verification and online testing of the third plug-in, generate a monitoring plug-in and save it to the second memory in the alarm system, so that the alarm system can perform alarm monitoring according to each monitoring plug-in in the second memory.
[0077] The technical solution of the embodiment of the present invention performs online verification on the first plug-in newly created by the user in the alarm plug-in management platform, stores the first plug-in that passes the online verification in the first memory of the alarm system, and when it is detected that the second plug-in to be released is updated in the first memory, releases the second plug-in and updates the first plug-in list, so that the user can call the plug-in according to the first plug-in list in the alarm system, and when the user calls the third plug-in in the alarm system, the third plug-in is updated according to the custom plug-in content input by the user, and after completing the online verification and online testing of the third plug-in, a monitoring plug-in is generated and saved in the second memory of the alarm system, so that the alarm system can perform alarm monitoring according to each monitoring plug-in in the second memory, so that the user can write, verify and adjust the alarm plug-in in real time on the front-end page, thereby improving development efficiency and user experience, and the online verification can ensure the code quality and security of the alarm plug-in, and the digital signature mechanism can ensure the integrity and legality of the plug-in content to prevent the plug-in from being tampered with, and also supports user-defined alarm plug-ins and online testing functions to meet different monitoring needs.
[0078] Based on the above embodiments, the alarm plug-in creation module 310 may include a first plug-in online verification unit and a first plug-in storage unit;
[0079] The first plug-in online verification unit can be specifically used for:
[0080] When a user creates a new first plug-in in the alarm plug-in management platform, the plug-in code of the first plug-in input by the user is obtained, and when it is detected that the user initiates an online verification request, the plug-in code of the first plug-in is verified online through a code analysis tool;
[0081] When it is determined according to the online verification result that there is at least one problem in the plug-in code of the first plug-in, a verification details page is generated according to the online verification result and displayed to the user, so that the user can modify the plug-in code of the first plug-in according to the verification details page until the first plug-in passes the online verification.
[0082] Based on the above embodiments, the plug-in code includes a plug-in name, a version number, a plug-in description and plug-in content.
[0083] Based on the above embodiments, the first plug-in storage unit may be specifically used for:
[0084] When it is determined that the first plug-in passes the online verification and a first plug-in save request initiated by the user is received, performing a secondary verification on the first plug-in code;
[0085] When it is determined that the secondary verification has passed, a hash value corresponding to the first plug-in is generated, and a timestamp of the time when the secondary verification passed is obtained;
[0086] Concatenate the hash value and the timestamp, and encrypt the concatenation result to generate a digital signature of the first plug-in;
[0087] The plug-in code, digital signature and timestamp of the second verification passing time of the first plug-in are stored together in the first memory.
[0088] Based on the above embodiments, the alarm plug-in publishing module 320 can be specifically used for:
[0089] When it is detected that the target version number is updated in the first memory, it is determined that the second plug-in corresponding to the target version number is in a pending release state, the second plug-in is released to the plug-in repository, and the first plug-in list is updated.
[0090] On the basis of the above embodiments, a plug-in verification module may also be included, which is specifically used to:
[0091] When a user calls a plug-in in the alarm system, the digital signature of each plug-in in the plug-in warehouse is verified for legitimacy, and based on the legitimacy verification result and the first plug-in list, the plug-ins that meet the calling conditions are displayed to the user for the user to call.
[0092] Based on the above embodiments, the alarm plug-in customization module 330 can be specifically used for:
[0093] When the user calls the third plug-in in the alarm system, the code of the third plug-in is updated according to the custom plug-in content input by the user, and when it is detected that the user initiates an online verification request, the plug-in code of the updated third plug-in is verified online through a code analysis tool;
[0094] When the plug-in code of the third plug-in passes the online verification and receives an online test request initiated by the user, the third plug-in is executed, and a visualization page is generated according to the execution result of the third plug-in to be displayed to the user;
[0095] After it is determined that the third plug-in has completed the online verification and the online test, a monitoring plug-in is generated and saved in the second memory in the alarm system.
[0096] The alarm plug-in management device provided in the embodiment of the present invention can execute the alarm plug-in management method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0097] Embodiment 4
[0098] Figure 4 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0099] like Figure 4 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0100] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0101] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 11 executes the various methods and processes described above, such as the management method of the alarm plug-in as described in an embodiment of the present invention. That is:
[0102] When a user creates a new first plug-in in the alarm plug-in management platform, the plug-in code of the first plug-in is verified online, and after the verification is passed, the first plug-in is stored in the first memory of the alarm system;
[0103] When it is detected that the second plug-in to be released is updated in the first memory, the second plug-in is released to the plug-in warehouse, and the first plug-in list is updated, so that the user can call the plug-in according to the first plug-in list in the alarm system;
[0104] When the user calls the third plug-in in the alarm system, the third plug-in is updated according to the custom plug-in content input by the user, and after completing the online verification and online testing of the third plug-in, a monitoring plug-in is generated and saved in the second memory in the alarm system, so that the alarm system can perform alarm monitoring according to each monitoring plug-in in the second memory.
[0105] In some embodiments, the management method of the alarm plug-in can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the management method of the alarm plug-in described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to execute the management method of the alarm plug-in by any other appropriate means (for example, by means of firmware).
[0106] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0107] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0108] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0109] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0110] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0111] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0112] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0113] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for managing an alarm plug-in, executed by an alarm plug-in management platform in an alarm system, It is characterized in that include: When a user creates a new first plug-in in the alarm plug-in management platform, the plug-in code of the first plug-in is verified online, and after the verification is passed, the first plug-in is stored in the first memory of the alarm system; When it is detected that the second plug-in to be released is updated in the first memory, the second plug-in is released to the plug-in warehouse, and the first plug-in list is updated, so that the user can call the plug-in according to the first plug-in list in the alarm system; When the user calls the third plug-in in the alarm system, the third plug-in is updated according to the custom plug-in content input by the user, and after completing the online verification and online testing of the third plug-in, a monitoring plug-in is generated and saved in the second memory in the alarm system, so that the alarm system can perform alarm monitoring according to each monitoring plug-in in the second memory.
2. The method according to claim 1, It is characterized in that When a user creates a first plug-in in the alarm plug-in management platform, the plug-in code of the first plug-in is verified online, including: When a user creates a new first plug-in in the alarm plug-in management platform, the plug-in code of the first plug-in input by the user is obtained, and when it is detected that the user initiates an online verification request, the plug-in code of the first plug-in is verified online through a code analysis tool; When it is determined according to the online verification result that there is at least one problem in the plug-in code of the first plug-in, a verification details page is generated according to the online verification result and displayed to the user, so that the user can modify the plug-in code of the first plug-in according to the verification details page until the first plug-in passes the online verification.
3. The method according to claim 2, It is characterized in that The plug-in code includes the plug-in name, version number, plug-in description and plug-in content.
4. The method according to claim 3, It is characterized in that Storing the first plug-in in a first memory in the alarm system includes: When it is determined that the first plug-in passes the online verification and a first plug-in save request initiated by the user is received, performing a secondary verification on the first plug-in code; When it is determined that the secondary verification has passed, a hash value corresponding to the first plug-in is generated, and a timestamp of the time when the secondary verification passed is obtained; Concatenate the hash value and the timestamp, and encrypt the concatenation result to generate a digital signature of the first plug-in; The plug-in code, digital signature and timestamp of the second verification passing time of the first plug-in are stored together in the first memory.
5. The method according to claim 4, It is characterized in that When it is detected that the second plug-in to be released is updated in the first storage, the second plug-in is released to the plug-in warehouse, and the first plug-in list is updated, including: When it is detected that the target version number is updated in the first memory, it is determined that the second plug-in corresponding to the target version number is in a pending release state, the second plug-in is released to the plug-in repository, and the first plug-in list is updated.
6. The method according to claim 5, It is characterized in that Before the user calls the third plug-in in the alarm system, it also includes: When a user calls a plug-in in the alarm system, the digital signature of each plug-in in the plug-in warehouse is verified for legitimacy, and based on the legitimacy verification result and the first plug-in list, the plug-ins that meet the calling conditions are displayed to the user for the user to call.
7. The method according to claim 6, It is characterized in that When the user calls the third plug-in in the alarm system, the third plug-in is updated according to the custom plug-in content input by the user, and after the online verification and online test of the third plug-in are completed, a monitoring plug-in is generated and saved in the second memory in the alarm system, including: When the user calls the third plug-in in the alarm system, the code of the third plug-in is updated according to the custom plug-in content input by the user, and when it is detected that the user initiates an online verification request, the plug-in code of the updated third plug-in is verified online through a code analysis tool; When the plug-in code of the third plug-in passes the online verification and receives an online test request initiated by the user, the third plug-in is executed, and a visualization page is generated according to the execution result of the third plug-in to be displayed to the user; After it is determined that the third plug-in has completed the online verification and the online test, a monitoring plug-in is generated and saved in the second memory in the alarm system.
8. An alarm plug-in management device, executed by an alarm plug-in management platform in an alarm system, It is characterized in that include: An alarm plug-in creation module, used for, when a user creates a new first plug-in in the alarm plug-in management platform, performing online verification on the plug-in code of the first plug-in, and storing the first plug-in in the first storage of the alarm system after the verification passes; an alarm plug-in publishing module, configured to, when detecting that a second plug-in to be published is updated in the first memory, publish the second plug-in to the plug-in repository and update the first plug-in list, so that the user can call the plug-in according to the first plug-in list in the alarm system; The alarm plug-in customization module is used to update the third plug-in according to the customized plug-in content input by the user when the user calls the third plug-in in the alarm system, and after completing the online verification and online testing of the third plug-in, generate a monitoring plug-in and save it to the second memory in the alarm system, so that the alarm system can perform alarm monitoring according to each monitoring plug-in in the second memory.
9. An electronic device, It is characterized in that The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the alarm plug-in management method described in any one of claims 1 to 7 of the present invention.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the alarm plug-in management method according to any one of claims 1 to 7 when executed.
