Strategy arranging method, apparatus and device, and message processing method, apparatus, device and system

MYPI2025001405A0Undetermined Publication Date: 2024-06-08HANGZHOU HIKVISION SYST TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
MYPI2025001405
Authority / Receiving Office
MY · MY
Patent Type
Applications
Current Assignee / Owner
Priority Date
2022-12-08
Filing Date
2023-06-30
Publication Date
2024-06-08

AI Technical Summary

Technical Problem

There are problems with false positives and duplicate messages in the AI ​​monitoring system, which results in poor alarm data filtering and the inability to accurately filter out different types of precise alarm events.

Method used

Provides a strategy orchestration method that adds processing components through the strategy visual orchestration interface, determines the connection relationships and parameters between components, generates and saves strategies for specific events, and optimizes alarm event filtering.

Benefits of technology

It improves the pertinence and intuitiveness of policy orchestration, achieves precise filtering of alarm events, and reduces noisy data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure PI2025001405_DRAWING_001
    Figure PI2025001405_DRAWING_001
  • Figure PI2025001405_DRAWING_002
    Figure PI2025001405_DRAWING_002
  • Figure PI2025001405_DRAWING_003
    Figure PI2025001405_DRAWING_003
Patent Text Reader

Abstract

ABSTRACT STRATEGY ARRANGING METHOD, APPARATUS AND DEVICE, AND MESSAGE PROCESSING METHOD, APPARATUS, DEVICE AND SYSTEM The present disclosure provides a strategy arranging method, apparatus and device, and a message processing method, apparatus, device and system, where the strategy arranging method includes: determining a target event that needs to be performed with strategy arrangement; adding, according to a detected element add instruction, a target element pointed by the element add instruction to a strategy visualized arranging interface; determining a connection relation between the processing elements according to a detected connection operation instruction for the processing elements in the strategy visualized arranging interface; and determining parameters of the processing elements according to a detected parameter editing instruction for the processing elements in the strategy visualized arranging interface; and when a strategy saving instruction is detected, generating and saving a strategy of the target event according to the processing elements, the connection relation between the processing elements, and the parameters of the processing elements. The method improves pertinence of strategy arrangement and intuitiveness of a strategy arranging process. FIG. 1
Need to check novelty before this filing date? Find Prior Art

Description

Policy arrangement method, message processing method, device, equipment and system

[0001] Cross-references to related publications

[0002] This disclosure claims priority to Chinese patent publication with application number 202211574967.1, filed on December 8, 2022, the entire contents of which are incorporated herein by reference. Technical Field

[0003] The present application relates to the field of AI intelligent algorithm technology, and in particular to a policy orchestration method, message processing method, device, equipment and system. Background Art

[0004] With the continuous development of artificial intelligence (AI) technology, AI products have gradually become an important part of systems in various industries. By using deep learning algorithms to intelligently analyze monitoring data from monitoring points deployed in cities, AI products can detect whether there are abnormal events in the monitoring area and automatically provide alarm data.

[0005] Due to the diversity and complexity of events, there may be false positives or duplicate reports in the messages for intelligently identified events, which require filtering.

[0006] Summary of the Invention

[0007] In view of this, the present application provides a policy orchestration method, a message processing method, an apparatus, a device and a system.

[0008] According to a first aspect of an embodiment of the present application, a policy orchestration method is provided, including:

[0009] Identify target events that require strategy orchestration;

[0010] According to the detected component adding instruction, the target component pointed to by the component adding instruction is added to the policy visualization orchestration interface; wherein the target component includes a processing element; the processing element includes one or more of a function element, an algorithm element, and an execution element; wherein the function element is used to perform logical operations on the data to be processed; the algorithm element is used to perform algorithmic processing on the data to be processed using a preset algorithm; and the execution element is used to control the designated device to perform a corresponding action;

[0011] Determining the connection relationship between the processing elements based on the detected connection operation instructions for the processing elements in the policy visualization orchestration interface; and determining the parameters of the processing elements based on the detected parameter editing instructions for the processing elements in the policy visualization orchestration interface;

[0012] When a policy saving instruction is detected, a policy for the target event is generated and saved according to the processing elements, the connection relationship between the processing elements, and the parameters of the processing elements.

[0013] According to a second aspect of an embodiment of the present application, a message processing method is provided, including:

[0014] When an execution instruction for a target policy is detected, obtaining a target element included in the target policy; wherein the target policy is generated and arranged according to the method provided in the first aspect;

[0015] The running order of each processing element is determined according to the connection relationship between each processing element in the target element, and the processing elements are run according to the running order, and the running processing elements use corresponding parameters to process the event message to be processed.

[0016] According to a third aspect of an embodiment of the present application, a policy orchestration device is provided, including:

[0017] A first determining unit is configured to determine a target event requiring policy orchestration;

[0018] An orchestration unit is configured to add a target element pointed to by a detected element addition instruction to a policy visualization orchestration interface; wherein the target element includes a processing element; the processing element includes one or more of a function element, an algorithm element, and an execution element; wherein the function element is used to perform logical operations on data to be processed; the algorithm element is used to perform algorithmic processing on the data to be processed using a preset algorithm; and the execution element is used to control a designated device to perform a corresponding action;

[0019] a second determining unit configured to determine a connection relationship between the processing elements based on a detected connection operation instruction for the processing elements in the policy visual orchestration interface; and to determine parameters of the processing elements based on a detected parameter editing instruction for the processing elements in the policy visual orchestration interface;

[0020] The generating unit is configured to generate and save the policy of the target event according to the processing elements, the connection relationship between the processing elements, and the parameters of the processing elements when a policy saving instruction is detected.

[0021] According to a fourth aspect of an embodiment of the present application, a policy orchestration device is provided, comprising a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;

[0022] A memory for storing a strategy visualization orchestration software program;

[0023] The processor is configured to execute the policy visualization orchestration software program stored in the memory to implement the policy orchestration method provided in the first aspect.

[0024] According to a fifth aspect of an embodiment of the present application, a message processing device is provided, including:

[0025] An acquisition unit is configured to, upon detecting an execution instruction for a target policy, acquire a target element included in the target policy; wherein the target policy is generated and arranged according to the method provided in the first aspect;

[0026] The processing unit is configured to determine the running order of each processing element according to the connection relationship between the processing elements in the target element, and run the processing elements according to the running order, and the running processing elements use corresponding parameters to process the event message to be processed.

[0027] According to a sixth aspect of an embodiment of the present application, there is provided a message processing device, comprising a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;

[0028] A memory for storing software programs for running the programmed strategies;

[0029] The processor is used to execute the software program stored in the memory and run the arranged strategy to implement the message processing method provided in the second aspect.

[0030] According to a seventh aspect of an embodiment of the present application, a message processing system is provided, comprising the policy orchestration device provided by the fourth aspect and the message processing device provided by the sixth aspect.

[0031] The policy orchestration method of the embodiment of the present application determines the target event that needs to be policy orchestrated, and adds the target element pointed to by the element adding instruction to the policy visualization orchestration interface based on the detected element adding instruction, determines the connection relationship between the processing elements based on the detected connection operation instruction for the processing elements included in the target element in the policy visualization orchestration interface; and determines the parameters of the processing elements based on the detected parameter editing instruction for the processing elements in the policy visualization orchestration interface. Then, when the policy saving instruction is detected, the policy of the target event is generated and saved based on the processing elements, the connection relationship between the processing elements, and the parameters of the processing elements, thereby realizing policy visualization orchestration for specific events and improving the targeted nature of policy orchestration. In addition, the visual policy orchestration method improves the intuitiveness of the policy orchestration process. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] FIG1 is a flow chart of a policy orchestration method provided in an embodiment of the present application;

[0033] FIG2 is a flow chart of a message processing method provided in an embodiment of the present application;

[0034] FIG3A is a schematic diagram of strategy effectiveness statistics provided by an embodiment of the present application;

[0035] FIG3B is a schematic diagram of a policy output event ratio according to an embodiment of the present application;

[0036] FIG4 is a schematic diagram of a policy arrangement and execution process provided by an embodiment of the present application;

[0037] FIG5 is a schematic diagram of a visual policy arrangement provided by an embodiment of the present application;

[0038] FIG6 is a schematic structural diagram of a policy orchestration device provided in an embodiment of the present application;

[0039] FIG7 is a schematic diagram of the hardware structure of a policy orchestration device provided in an embodiment of the present application;

[0040] FIG8 is a schematic structural diagram of a message processing device provided in an embodiment of the present application;

[0041] FIG9 is a schematic diagram of the hardware structure of a message processing device provided in an embodiment of the present application;

[0042] FIG10 is a schematic structural diagram of a message processing system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0043] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.

[0044] The terms used in this application are for the purpose of describing particular embodiments only and are not intended to limit this application. As used in this application and the appended claims, the singular forms "a," "an," "the," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.

[0045] In order to enable those skilled in the art to better understand the technical solutions provided by the embodiments of the present application, and to make the above-mentioned purposes, features and advantages of the embodiments of the present application more obvious and easy to understand, the technical solutions in the embodiments of the present application are further described in detail below with reference to the accompanying drawings.

[0046] It should be noted that the serial numbers of the steps in the embodiments of the present application do not mean the order of execution. The order of execution of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0047] AI products can use deep learning algorithms to intelligently analyze the monitoring data of monitoring points deployed in the city. They can detect whether there are abnormal events in the monitoring area and report alarm data to the background system in the event of abnormal events. The alarm data can be sent in the form of a message. Due to the diversity and complexity of alarm events (i.e., the above-mentioned abnormal events), there may be cases of false reporting or repeated reporting. Therefore, it is necessary to filter the alarm events according to certain strategies. Based on this, an embodiment of the present application provides a policy orchestration method.

[0048] The policy orchestration method shown in this embodiment can be executed by an electronic device such as a terminal device or a server. The terminal device can be a fixed terminal or a mobile terminal, such as a mobile phone, a tablet computer, a desktop computer, an all-in-one computer, etc. The server includes a local server or a cloud server, etc., which is not limited in this embodiment.

[0049] Please refer to FIG1 , which is a flow chart of a policy orchestration method provided in an embodiment of the present application. As shown in FIG1 , the policy orchestration method may include the following steps:

[0050] Step S100: Determine a target event that requires policy orchestration.

[0051] In the embodiment of the present application, considering that the filtering conditions applicable to filtering different types of alarm events may be different, if a unified filtering setting is directly performed for all alarm events, the filtering effect will be relatively poor, and different types of precise alarm events cannot be accurately screened out, and the noise of the alarm data will still be very large.

[0052] Based on this, in an embodiment of the present application, in order to optimize the filtering effect of alarm events, a policy arrangement method for specific events can be provided to obtain a policy for filtering the specific event.

[0053] For example, the user may determine an event (referred to as a target event herein) for which policy orchestration is required according to actual needs, and trigger policy orchestration for the target event by inputting a policy orchestration instruction for the target event.

[0054] For example, the target event may include one type of event, or multiple types of events.

[0055] Regarding policy orchestration instructions for target events, for example, an event selection interface can be provided in the policy visualization orchestration interface. For example, an event list can be displayed in a designated area in the policy visualization orchestration interface. Users can select the target event from the event list and enter policy orchestration instructions (such as clicking the target event and selecting policy orchestration in the pop-up function menu) as needed to trigger policy orchestration for the target event.

[0056] Regarding the policy orchestration instructions for the target event, for example, a policy orchestration function button can be provided in the policy visualization orchestration interface. The user can click the function button to trigger the display of the policy orchestration window, and enter the identification information of the target event in the window, such as the event code of the target event, and trigger the policy orchestration for the target event by clicking the OK function button in the policy orchestration window.

[0057] For example, in response to the detected prompt instruction, a policy orchestration step description may be displayed in the policy visualization orchestration interface so that the user can understand the policy orchestration steps.

[0058] Step S110: Based on the detected component adding instruction, the target component pointed to by the component adding instruction is added to the policy visualization orchestration interface; wherein the target component includes a processing element; the processing element includes one or more of a function element, an algorithm element, and an execution element; wherein the function element is used to perform logical operations on the data to be processed; the algorithm element is used to perform algorithmic processing on the data to be processed using a preset algorithm; and the execution element is used to control a specified device to perform a corresponding action.

[0059] In the embodiment of the present application, when the target event requiring policy orchestration is determined in the above manner, the target element required for filtering the target event can be added to the policy visualization orchestration interface.

[0060] For example, a user may select one or more target components on a displayed page and add the selected target components to the policy visualization orchestration interface by dragging and dropping.

[0061] Accordingly, based on the detected component adding instruction, such as the instruction triggered by the dragging operation, the target component pointed to by the component adding instruction (such as the selected target component) can be added to the policy visual arrangement interface.

[0062] For example, the policy visualization orchestration interface supports centering operations (i.e., displaying the target elements added to the policy visualization orchestration interface in the middle area of ​​the interface), zooming in and out (proportionally zooming in or out of the interface and the target elements displayed in the interface), undo operations (such as undoing the last operation on the target element, such as adding an operation), and clearing operations (deleting all added target elements).

[0063] Exemplarily, the target element may include but is not limited to a processing element. Exemplarily, the processing element may include one or more of a function element, an algorithm element, and an execution element.

[0064] Function elements can be used to perform logical operations on data to be processed, that is, by running function elements, logical operations can be performed on the data to be processed, for example, logical judgment processing, function operation processing, etc.; wherein, the data to be processed, such as the message reported by the monitoring point after identifying an abnormal event, can also be called the event message to be processed. Exemplarily, function elements can include but are not limited to filtering elements, diversion elements, or single-point deduplication elements (e.g., deduplication of messages reported by the same monitoring point with an interval less than a preset time threshold), etc.

[0065] For example, when the diversion element is running, the event message to be processed can be output to different elements according to the input data and the determination rules in the diversion element.

[0066] For example, taking the forklift identification scenario as an example, in a safe production environment, there must be no personnel around the forklift while it is working. Forklift identification can be performed on the image data collected by the monitoring front end of the forklift working scene. When a forklift is identified, a forklift identification event can be triggered (the event can carry the address information of the captured image containing the forklift identification event); the input data of the diversion element can include the address information of the captured image of the forklift identification event, the position and size of the forklift detection frame in the image; when the diversion element is running, it can be determined based on the size of the forklift detection frame whether the size is greater than the preset size threshold. If so, the captured image can be output to the human body detection element so that human body detection can be performed based on the original captured image by running the human body detection element to determine whether there are personnel around the forklift; otherwise, the captured image is output to the magnification capture element, and the magnification capture element is run to amplify the captured image of the forklift identification event so that it can be more accurately detected whether there are personnel around the forklift in the future.

[0067] The algorithm component can be used to perform algorithmic processing on the data to be processed using a preset algorithm. That is, by running the algorithm component, the algorithmic processing on the data to be processed can be performed using the preset algorithm. For example, the algorithm component may include, but is not limited to, a similarity comparison component or an image secondary analysis component, such as an image quality scoring component (for scoring the quality of the acquired image using a preset image quality scoring algorithm).

[0068] The actuator is used to control a designated device to perform a corresponding action. That is, by running the actuator, the designated device can be controlled to perform a corresponding action. Exemplary actuators include, but are not limited to, a preset point rotation control element (used to control a designated monitoring front end to rotate to a specified preset point), a capture element, or an enlarged capture element.

[0069] Step S120: Determine the connection relationship between the processing elements based on the detected connection operation instructions for the processing elements in the policy visualization orchestration interface; and determine the parameters of the processing elements based on the detected parameter editing instructions for the processing elements in the policy visualization orchestration interface.

[0070] In an embodiment of the present application, after adding the required target elements to the policy visualization orchestration interface, the user can orchestrate the target elements in the policy visualization orchestration interface, which may include but is not limited to associating processing elements and editing parameters of processing elements.

[0071] Accordingly, after the target element pointed to by the element adding instruction is added to the policy visualization orchestration interface, on one hand, the connection relationship between the processing elements can be determined based on the detected connection operation instructions for the processing elements in the policy visualization orchestration interface.

[0072] On the other hand, the parameters of the processing element may be determined according to the detected parameter editing instruction for the processing element in the policy visual orchestration interface.

[0073] For example, parameters of a processing component may include parameters for processing input data. For example, parameters of a filter component for filtering data generated at a specific time or space may include a filtering time period or spatial range; parameters of an algorithm component for performing human body detection on acquired images may include a confidence threshold, etc.

[0074] For example, the processing element can be obtained by importing a program package, encapsulating the processing element, and defining parameters such as input and output of the processing element. The processing element can also be obtained by importing a component package.

[0075] Step S130 : When a policy saving instruction is detected, a policy for the target event is generated and saved based on the processing elements, the connection relationships between the processing elements, and the parameters of the processing elements.

[0076] In the embodiment of the present application, after the required processing elements are added in the above manner and the connection relationship between the processing elements and the parameters of the processing elements are arranged, the user can save the arranged policy.

[0077] For example, a user can trigger a policy save instruction by clicking the save function button in the policy visual orchestration interface.

[0078] Accordingly, when a policy save instruction is detected, a policy for the target event may be generated and saved based on the processing elements added to the policy visualization orchestration interface, the connection relationships between the processing elements, and the parameters of the processing elements.

[0079] It can be seen that in the method flow shown in Figure 1, by determining the target event that needs to be policy-orchestrated, and based on the detected element adding instruction, the target element pointed to by the element adding instruction is added to the policy visualization orchestration interface, and based on the detected connection operation instruction for the processing element included in the target element in the policy visualization orchestration interface, the connection relationship between the processing elements is determined; and based on the detected parameter editing instruction for the processing element in the policy visualization orchestration interface, the parameters of the processing element are determined. Then, when the policy saving instruction is detected, the policy of the target event is generated and saved based on the processing element, the connection relationship between the processing elements, and the parameters of the processing elements, thereby realizing policy visualization orchestration for specific events and improving the targetedness of policy orchestration. In addition, the visual policy orchestration method improves the intuitiveness of the policy orchestration process.

[0080] In some embodiments, the target element may further include an event input element. The policy orchestration method may further include: upon detecting a policy orchestration instruction for a target event, creating an event input element for the target event; or upon detecting an event input element creation instruction, creating an initial event input element; and determining an event input element for the target event based on the detected event identification configuration instruction for the initial event input element.

[0081] Exemplarily, the policy orchestration for the target event may be triggered by creating an event input element for the target event.

[0082] In one example, a target event may be determined first, for example, by selecting the target event in an event list or inputting the event identifier of the target event in a designated input area. Then, in response to detecting a policy orchestration instruction for the target event, an event input element for the target event may be created, thereby triggering policy orchestration for the target event.

[0083] Exemplarily, taking the event identifier as an event code as an example, the event code may be a character string used to uniquely identify a type of event.

[0084] In another example, an event input component may be created first, and then an event identifier of a target event may be configured in the event input component to implement creation of the event input component of the target event.

[0085] For example, upon detecting an event input component creation instruction, an initial event input component may be created, and upon detecting an event identifier configuration instruction for the initial event input component, the event identifier of the target event may be obtained according to the event identifier configuration instruction. The event identifier of the target event may be configured in the initial event input component to obtain an event input component for the target event.

[0086] In an embodiment of the present application, there may be various ways to detect instructions. In one feasible implementation, virtual buttons corresponding to each instruction may be pre-set in the policy visualization orchestration interface, and instructions may be detected by detecting clicks on the virtual buttons. In another feasible implementation, instructions may be detected by analyzing the command line input by the user.

[0087] Exemplarily, the event input component is provided with event source information, which is used to obtain the event message to be processed according to the event source information when the event input component is run. Based on this, creating the event input component of the target event can also include obtaining the event source information of the target event.

[0088] Exemplarily, event source type information can also be set in the event input component to indicate the source type of the event message to be processed obtained by the event input component, for example, central-end analysis (events triggered by analysis of central-end devices, such as central platforms) or edge-end analysis (events triggered by analysis of edge-end devices, such as snapshot machines).

[0089] For example, considering that the central-end analysis usually analyzes the data of multiple monitoring points to determine whether a specified event exists; the edge-end analysis usually analyzes the data of a single monitoring point to determine whether a specified event exists, therefore, when using the same algorithm for analysis, the accuracy of the central-end analysis will usually be lower than the accuracy of the edge-end analysis. Therefore, when performing event reporting accuracy statistics, the event source type information in the event input element can be distinguished, and statistics can be performed on the central-end analysis and edge-end analysis separately.

[0090] Exemplarily, the event source information may include an event input address, and the event message to be processed may be obtained according to the event input address.

[0091] Accordingly, after adding the target element to the policy visualization orchestration interface in the above manner, in addition to determining the connection relationship between the processing elements in the above manner, the connection relationship between the event input element and the processing element can also be determined based on the connection operation instruction detected for the event input element.

[0092] In some embodiments, the target element may further include an event output element, wherein the event output element is provided with an output address for outputting data according to the output address when the event output element is executed. After adding the target element pointed to by the element addition instruction to the policy visualization orchestration interface based on the detected element addition instruction, the method may further include: determining a connection relationship between the event output element and the processing element based on the detected connection operation instruction for the event output element.

[0093] For example, when performing strategy arrangement for a target event, in addition to arranging the processing elements in the manner described above, an event output element may be set, and an output address may be set in the event output element so that when the event output element is run, the output data obtained by executing the strategy may be output to a specified address.

[0094] Accordingly, after adding the target element to the policy visualization orchestration interface in the above manner, in addition to determining the connection relationship between the processing elements in the above manner, the connection relationship between the event output element and the processing element can also be determined based on the connection operation instruction detected for the event output element.

[0095] For example, when the target elements include event input elements and event output elements, the connection relationship between the target elements can be headed by the event input element and ended by the event output element, and the connection order between the processing elements can be set as needed.

[0096] For example, the policy orchestration and execution process can be seen in Figure 4. As shown in Figure 4, the component library stores components used for policy orchestration (which can be called policy components). Among them, policy components can include event input components, event output components, and processing components; processing components can include but are not limited to function components, algorithm components, and execution components.

[0097] For example, function elements may include, but are not limited to, single-point deduplication elements, multi-point deduplication elements, function operation elements, etc. Algorithm elements may include, but are not limited to, similarity comparison elements and error library comparison elements, etc. Execution elements may include, but are not limited to, preset point rotation control elements and screenshot elements, etc.

[0098] During the policy orchestration process, the target component in the component library pointed to by the component addition instruction can be added to the policy visualization orchestration interface (which can be called a canvas in this example) based on the detected component addition instruction, and the connection relationship between the target components can be determined based on the detected connection operation instructions for each target component in the canvas; and the parameters of the target component can be determined based on the detected parameter editing instructions for the target component in the canvas.

[0099] Illustratively, the target element may include an event input element, an event output element, and at least one processing element.

[0100] When a strategy saving instruction is detected, a corresponding strategy may be generated based on the target components, the connection relationship between the target components, and the parameters of the target components, and saved in the strategy library.

[0101] For example, the strategies stored in the strategy library may include, but are not limited to, traffic incident pedestrian intrusion application strategy, traffic incident congestion application strategy, bank reception detection strategy, workplace mobile phone use detection strategy, etc.

[0102] During the strategy execution process, for any strategy in the strategy library, when it is determined that the strategy needs to be executed, the corresponding target element can be obtained from the element library based on the target element involved in the strategy, and the operation order of each target element can be determined based on the connection relationship between the target elements included in the strategy, and each target element can be operated according to the operation order, and the target element to be operated uses the corresponding parameters to process the event message to be processed.

[0103] It can be seen that the policy orchestration method provided in the embodiment of the present application can perform visual policy orchestration around event messages, and can not only provide general processing elements, such as single-point periodic deduplication elements, single-point time period deduplication elements, diversion elements, conditional filtering elements, conditional deletion elements, single-point aggregation elements, target frame filtering elements, similarity comparison elements, image secondary analysis elements and timing calculation elements, etc.; it can also provide processing elements for use in specific scenarios, such as indoor human body detection elements, etc., which can meet the usage requirements of various scenarios and improve the applicability of the policy orchestration solution.

[0104] During the policy orchestration process, you can select the required target components for the events that require policy orchestration according to the actual usage scenario, add them to the policy visualization orchestration interface, and set the connection relationship and parameters between the target components to complete the policy orchestration for an event. This realizes the policy visualization orchestration for specific events, improves the targetedness of policy orchestration, and improves the intuitiveness of the policy orchestration process.

[0105] In some embodiments, the event input component has an event data model conversion function, which is used to parse the acquired event message and add descriptive information to each specified field in the event message. The descriptive information is used to facilitate the processing component to determine the meaning of the corresponding field.

[0106] For example, in practical applications, the formats of alert messages for different events may differ. Processing components may not be able to identify the meaning of fields in messages with different formats, which may cause processing errors. For ease of description, event alert messages are referred to as event messages or pending event messages below.

[0107] Based on this, in an embodiment of the present application, the event input component can have an event data model conversion function. For the acquired event message, the event input component can parse it and add descriptive information to each specified field in the event message (for example, a field whose field value will be used in the subsequent processing flow, a pre-specified field, etc.). This descriptive information is used to explain the meaning of each specified field so that the processing component can determine the meaning of the specified field based on the descriptive information of the specified field.

[0108] Exemplarily, for any event message to be processed, when the event input component is running, the event message to be processed can be parsed to determine the meaning of each specified field in the event message to be processed and generate corresponding descriptive information. For each specified field in the event message to be processed, a correspondence between a field path (used to identify the position of the field in the event message to be processed) and the corresponding descriptive information can be determined, and the correspondence can be transmitted to the processing component so that the processing component can obtain the descriptive information corresponding to the field path based on the correspondence, and determine the meaning of the specified field in the event message to be processed based on the descriptive information.

[0109] In some embodiments, the above-mentioned determination of the parameters of the processing element based on the detected parameter editing instructions for the processing element in the policy visualization orchestration interface may include: when an operation instruction to paste the event message of the target event into a designated area of ​​the event message parsing interface is detected, parsing the event message of the target event to determine the field information included in the event message of the target event; and determining the parameters of the processing element based on the detected parameter editing instructions for the target field in the event message of the target event.

[0110] For example, in addition to the policy visualization interface, an event message parsing interface can also be pre-configured. When parameters of a processing element need to be edited, relevant personnel can enter the event message parsing interface and enter parsing instructions for the event message of the target event or perform a preset parsing operation, such as pasting the event message of the target event into a designated area of ​​the event message parsing interface.

[0111] Accordingly, when an operation instruction to paste the event message of the target event into the designated area of ​​the event message parsing interface is detected, the event message of the target event is parsed to determine the field information included in the event message of the target event.

[0112] For example, for any field, the field information obtained by parsing may include but is not limited to: field identifier, field type, field name, and parsed value.

[0113] For example, the field information included in the event message of the target event can be displayed. Based on the displayed field information, relevant personnel can select the field that needs to be parameter edited for the processing element (referred to as the target field in this article) and enter the parameter editing instructions for the target field.

[0114] Accordingly, for any processing element, the parameters of the processing element may be determined according to the parameter editing instruction of the target field in the event message detected for the target event.

[0115] In order to enable those skilled in the art to better understand the visualization policy arrangement scheme in the embodiments of the present application, the following is an illustration with reference to examples.

[0116] As shown in FIG5 , the policy visualization orchestration interface includes a component list, which includes various policy components for user selection, including but not limited to event input components, event output components, and processing components.

[0117] During policy orchestration, you can select target components based on your needs and add them to the policy visualization interface. For example, in the forklift identification scenario, target components can include: event input components (the forklift identification input component in the figure), event output components (the forklift identification output component in the figure), and processing components.

[0118] The processing elements may include function elements (such as filtering elements and diversion elements in the figure), algorithm elements (such as human body detection elements and secondary analysis elements in the figure), and execution elements (such as the zoom and capture elements in the figure).

[0119] Among them, the visual editing interface supports operation instructions such as "center", "zoom ratio", "undo", "redo", and "clear", and in response to detecting the "zoom ratio" operation instruction, it can support adjusting the interface display ratio.

[0120] For the target components added to the strategy visual orchestration interface, the connection relationship and parameters between the target components can be determined according to the needs. During the strategy operation process, the operation order of the target components can be determined based on the connection relationship between the target components.

[0121] Taking the scenario shown in Figure 5 as an example, considering that in the reported forklift identification events, there may be a problem that the forklift target box is too small and it is impossible to determine whether there is a human body (excluding people in the forklift cab) in the forklift target box, therefore, the forklift identification element can be connected to the filtering element to filter the forklift identification events whose forklift target box is too small (such as the target box area is less than the first area threshold), and the forklift identification events whose forklift target box is greater than or equal to the first area threshold can enter the diversion element for processing.

[0122] The diversion element can be used to determine whether the area of ​​the forklift target frame corresponding to the forklift recognition event is greater than the second area threshold (the second area threshold is greater than the first area threshold). When the forklift target frame corresponding to the forklift recognition event is greater than the second area threshold, the flow is transferred to the human body detection element to determine whether there is a human body in the forklift target frame. The forklift recognition events in which there is no human body in the forklift target frame are filtered through the filtering element, and the forklift recognition events in which there is a human body in the forklift target frame are output through the forklift recognition output element.

[0123] When the forklift target frame corresponding to the forklift identification event is less than or equal to the second area threshold, the forklift identification event is filtered out through the filter element. The forklift identification event in which the forklift target frame does not exist or the confidence level of the forklift target frame is too low is filtered out through the filter element.

[0124] For the forklift recognition events output by the filtering component to the human body detection component, human body detection can be performed to determine whether there is a human body in the forklift target frame, and the forklift recognition events in which there is no human body in the forklift target frame are filtered. The forklift recognition events in which there is a human body in the forklift target frame are output through the forklift recognition output component.

[0125] An embodiment of the present application also provides a message processing method, which can be executed by an electronic device such as a terminal device or a server. The terminal device can be a fixed terminal or a mobile terminal, such as a mobile phone, a tablet computer, a desktop computer, an all-in-one computer, etc. The server includes a local server or a cloud server, etc., which is not limited in this embodiment.

[0126] Please refer to FIG2 , which is a flowchart of a message processing method provided in an embodiment of the present application. As shown in FIG2 , the message processing method may include the following steps:

[0127] Step S200: When an execution instruction for a target policy is detected, the target elements included in the target policy are obtained.

[0128] Exemplarily, the target strategy may be generated by arranging the method described in the method flow shown in FIG1 .

[0129] In the embodiment of the present application, the user can run the strategy generated by the method arrangement described in the method flow shown in Figure 1 according to actual needs.

[0130] For any strategy generated by the method arrangement described in the method flow shown in FIG1 (referred to herein as a target strategy), when an execution instruction for the target strategy is detected, the target elements included in the target strategy can be obtained.

[0131] For example, for other components besides the event input component, the component can be generated by importing a program package, performing component encapsulation, and defining the input and output of the calculation component to obtain the target component included in the target strategy. The corresponding component can also be obtained by importing the component package.

[0132] It should be noted that for any policy, the operation scope of the policy can also be configured, such as the operation time range and / or spatial range, that is, the time periods and / or event locations in which the policy needs to be executed can be configured.

[0133] Accordingly, when there is a run time range configuration, the policy can be automatically run within the configured run time range; when there is a run space range, when running the policy, the policy can be used to process related events within the run space range.

[0134] Step S210: Determine the running order of each processing element according to the connection relationship between each processing element in the target element, and run the processing elements according to the running order. The running processing elements process the event message to be processed using corresponding parameters.

[0135] In the embodiment of the present application, when using a strategy to process any event message to be processed, the running order of each processing element can be determined based on the connection relationship between each processing element in the target element, and the processing elements can be run according to the running order.

[0136] For any processing element, when the processing element is running, the processing element can use the corresponding parameters to process the event message to be processed, which includes time, location (or point of the monitoring front end), picture (or picture address), picture detection result (such as license plate recognition result), etc.

[0137] For example, for a filtering component, whether to filter the event message to be processed can be determined based on the values ​​of fields such as time and point in the event message to be processed.

[0138] For another example, the image quality scoring component can obtain the corresponding image according to the image address carried in the event message to be processed, and use a preset image quality scoring algorithm to perform a quality score on the obtained image to obtain a quality score of the image.

[0139] In some embodiments, the target element also includes an event input element; the above-mentioned operation of the processing element according to the operation order, before the processing element uses the corresponding parameters to process the event message to be processed, can also include: running the event input element in the target element, and obtaining the event message to be processed based on the event source information set in the event input element.

[0140] Exemplarily, the event source information may include an event input address. When the target component includes an event input component, when executing the strategy, the event input component may be executed first to obtain the event message to be processed according to the event input address set in the event input component.

[0141] Exemplarily, the source of the event message to be processed may include but is not limited to a front-end device, a central device, or a trusted third-party platform.

[0142] For example, taking the target strategy as the strategy corresponding to the target event as an example, the above-mentioned event input address can be the address of the message queue (such as a Kafka queue) that stores the event message (i.e., alarm message) of the target event. The event messages generated by the target event can all be saved in the message queue. When running the event input component of the target strategy, the event message can be obtained from the message queue as the event message to be processed according to the event input address set in the event input component.

[0143] For example, when obtaining the event message to be processed based on the event input address, it is necessary to parse the event code of each event message in the message queue corresponding to the event input address (in order to facilitate the distinction between event messages of different types of events, the event message can also include an event code, and a message queue can store event messages with multiple different event codes), and pull the event message in the message queue whose event code is consistent with the event code set in the event input component as the event message to be processed.

[0144] For example, when the policy is configured with an operating time range and / or operating space range, when the event input component obtains the event message to be processed, it is necessary to parse the event occurrence time (such as the reporting time of the event message) and / or the point identifier (or scene identifier) ​​of each event message in the message queue corresponding to the event input address to determine whether the event occurrence time corresponding to the event message is within the preset operating time range and / or whether the event occurrence location is within the preset operating space range. If the event occurrence time corresponding to the event message is not within the preset operating time range, or the event occurrence location is not within the preset operating space range, the event message will not be pulled.

[0145] Alternatively, after the event input component pulls the event message from the message queue corresponding to the event input address, it parses the event occurrence time and / or point identifier (or scene identifier) ​​of the pulled event message to determine whether the event occurrence time corresponding to the event message is within the preset operating time range, and / or whether the event occurrence location is within the preset operating space range. If the event occurrence time corresponding to the event message is not within the preset operating time range, or the event occurrence location is not within the preset operating space range, the event message is filtered and no longer output to the next component.

[0146] For example, assuming the policy's preset operating time range is 9:00-17:00 and the operating space range is points ABCDEF, then for event messages in the message queue corresponding to the event input address with an event occurrence time of 8:00 and an event location of point A (i.e., the event occurrence time is not within the preset operating time range, but the event occurrence location is within the preset operating space range), the event input component may not pull the event message, or, after pulling, filter the event message.

[0147] For the event message in the message queue corresponding to the event input address, where the event occurrence time is 10:00 and the event occurrence location is point T (that is, the event occurrence time is within the preset operating time range, but the event occurrence location is not within the preset operating space range), the event input component may not pull it, or, after pulling it, filter out the event message.

[0148] In some embodiments, the target element also includes an event output element; the above-mentioned operation of the processing element according to the operation order, after the processing element uses the corresponding parameters to process the event message to be processed, can also include: when running to the event output element in the target element, data is output according to the output address set in the event output element.

[0149] Exemplarily, when the target component further includes an event output component and the program runs to the event output component in the target component, data output may be performed according to the output address set in the event output component.

[0150] Exemplarily, the above-mentioned output address can be the storage path of the output data. When the event output component is running, the output data can be saved to the specified storage path according to the output address set in the event output component, for example, stored in the valid alarm message queue.

[0151] Exemplarily, the parameters of the event output component may further include output format information, so that when the event output component is run, the output data may be saved to a designated storage path according to the set output format information.

[0152] It should be noted that in the embodiment of the present application, an event code can also be set in the event output component, and the event code set in the event output component can be different from the event code set in the event input component, that is, the event code in the event message output by the event output component can be different from the event code in the event message pulled by the event input component.

[0153] Taking the forklift identification scenario as an example, the monitoring front-end of the forklift operation scenario can be configured to capture an image and generate a corresponding event message when a forklift is detected (assuming the event code is event code 1, which is used to identify the event type as forklift identification). However, in the actual forklift identification scenario, an alarm will only be issued when a person is identified around the forklift. Therefore, for the forklift identification event, the event code in its event input component can be event code 1. In this way, all events triggered when a forklift is identified (events with event code 1) can be pulled in, and based on the processing components in the configured strategy, it is determined whether a person is detected around the forklift (for example, within a preset distance range centered on the forklift). If a person is detected, the event message is output through the event output component, and the event code of the output event message is adjusted from event code 1 to event code 2 (used to identify the event type as the presence of a person around the forklift).

[0154] Furthermore, any policy compiled according to the method shown in Figure 1 can be verified, for example, to see whether it includes an event input component, an event output component, and at least one processing component; to see whether connections are complete, such as whether any component is disconnected from other components; and to see whether the required parameters for each component are configured, such as whether the event source information is configured for the event input component; whether the output address is configured for the event output component; and whether the filter conditions are configured for the filter component. This allows for verification of the integrity and enforceability of the policy.

[0155] In addition, you can use test data (which can be simulated events) to verify the effectiveness of the policy, for example, to verify whether the policy can achieve the expected results. After completing the verification of the policy in the above manner and the verification passes, the policy status can be set to verified; otherwise, the policy status can be set to unverified.

[0156] Policies in the Verified state can be run directly without re-verification. Furthermore, for verified policies, if it is determined that policy parameters need to be adjusted based on the policy's operational performance, the policy's operational performance after parameter adjustment can be verified based on historical event messages within a preset timeframe. If it is determined that the policy's operational performance after parameter adjustment meets the requirements, message processing will be performed based on the policy's adjusted parameters.

[0157] For example, for a strategy for detecting fishing events, if the parameters used for fishing detection, such as the threshold for the degree of overlap between a person and a fishing rod, the confidence level of the fishing rod, and other parameters, are not set reasonably when the strategy is initially configured, there may be many false alarms. In this case, the parameters of the configured strategy can be adjusted, and the operating effect of the strategy after the parameter adjustment can be verified based on historical event messages within a certain period of time. When it is determined that the operating effect of the strategy after the parameter adjustment meets the conditions, message processing can be performed based on the strategy after the parameter adjustment.

[0158] In some embodiments, the above-mentioned operation of the processing elements according to the operation order may include: for any processing element being operated, if it is determined that the event message to be processed does not meet the conditions for the processing element to output to the next element, stopping the operation of the processing element and outputting the event message to be processed to the specified address.

[0159] Illustratively, during the operation of the processing element, for any processing element, when the processing element is running, it can be determined whether the event message to be processed meets the condition for the processing element to output to the next element.

[0160] Exemplarily, for a filtering element, it can be determined whether a specified field in the event message to be processed matches a preset filtering condition. If it matches, it is determined that the event message to be processed does not meet the condition for the processing element to output it to the next element; otherwise, it is determined that the event message to be processed meets the condition for the processing element to output it to the next element.

[0161] For example, for a non-filtering component, it may be assumed that the event message to be processed meets the condition for the processing component to output to the next component.

[0162] It should be noted that, in actual applications, for a processing element, there may be multiple next elements, that is, there may be multiple output branches. In this case, it is necessary to determine which element the output should be sent to based on the event message to be processed and the preset judgment logic.

[0163] Taking the diversion element as an example, the diversion element can be configured with preset judgment rules, and can jump to different next elements based on the judgment result of running the diversion element. For example, the judgment results of "yes" and "no" of the diversion element can correspond to different branches. When configuring the strategy, different processing elements can be connected to different branches of the diversion element based on the processing logic under different judgment results of the diversion element. Then, when running the diversion element, the corresponding next element can be determined based on the judgment result of "yes" or "no".

[0164] Still taking the above-mentioned forklift identification scenario as an example, the judgment logic in the diversion element can be whether the size of the forklift detection frame is greater than the preset size threshold. If not, the captured image needs to be enlarged. Accordingly, when configuring the strategy, the judgment result of the diversion element is yes (the size of the forklift detection frame is greater than the preset size threshold), and its corresponding next element can be a human detection element, which is used to perform human detection based on the original captured image to determine whether there are people around the forklift; otherwise, its corresponding next element can be an enlarged capture element, so that by running the enlarged capture element, the captured image of the forklift identification event can be enlarged. In the case of running the diversion element, the next element can be determined based on the judgment result.

[0165] For example, for any processing element being run, if it is determined that the event message to be processed does not meet the conditions for the processing element to output to the next element, that is, it is determined that the event message to be processed needs to be intercepted, the event message to be processed can be refused to be output to the next element, and the event message to be processed can be output to the specified address.

[0166] Exemplarily, messages that are determined to be intercepted during the operation of any processing element may be uniformly output to a designated address. For example, the intercepted messages may be output to the designated address via a bus.

[0167] For example, the pending event message output to the designated address may also carry the output reason, that is, the reason why the pending event message was intercepted, so that subsequent relevant personnel can determine the reason why the pending event message was intercepted based on the output reason.

[0168] In some embodiments, when an operating instruction for a target policy is detected, the message processing method provided in an embodiment of the present application also includes: persistently storing the event message output when the target policy is running or the output event message and the output reason of the event message; when a search instruction for the persistently stored event message is detected, searching the persistently stored event message for the event message and its corresponding output reason that matches the search condition indicated by the search instruction.

[0169] Exemplarily, the event messages output when running the target strategy may include event messages output when running the event output element, and also include event messages output when running the processing element. For example, when running a certain processing element, it is determined that the event message output to the next element is not satisfied.

[0170] For example, for event messages output when running a processing element, the reason for the output of the event message can be output. The output reason may include the identification information of the processing element that outputs the event message, and the reason why the processing element outputs the event message, so that relevant personnel can perform policy execution backtracking, such as querying the policy execution link of each event message (such as which elements have processed the event message) and the processing result (such as whether it is a message intercepted by the policy (such as whether the message is a false alarm or duplicate alarm data)).

[0171] Exemplarily, the search conditions may include but are not limited to a time range and / or a spatial range, etc.

[0172] Illustratively, in the process of persistently storing the event message output when the target policy is executed and the reason for outputting the event message, the storage medium may be switched according to the amount of stored data.

[0173] For example, when the data volume is less than the preset data volume threshold, the output event message and the output reason of the event message can be stored in the database; when the data volume is greater than or equal to the preset data volume threshold, ES (an index-based distributed storage method) storage method is used for storage.

[0174] It should be noted that, in the embodiment of the present application, event messages intercepted by the policy can be converted into valid outputs after manual verification, such as being output to a valid alarm message queue.

[0175] Exemplarily, the solution provided in the embodiments of the present application also supports policy effectiveness statistics, for example, counting the total number of policies and the operating status of each policy (such as running, not running, abnormal or unverified, etc.); counting the number of original event messages (that is, the number of originally reported event messages), the number of intercepted event messages (or the number of filtered event messages), and the number of policy output event messages (that is, the number of event messages output by the event output element of the policy, which can also be called the number of valid event messages).

[0176] For example, the statistical results can be displayed in a list format based on the event type. For any type of event, the displayed content may include, but is not limited to, the number of original event messages, the number of intercepted event messages, the number of policy output event messages, and the ratio of filtered event messages (i.e., the ratio of the number of filtered event messages to the number of original event messages), a schematic diagram of which can be shown in Figure 3A.

[0177] For any type of event, data trend prediction can also be performed based on statistical data, for example, whether the number of reports of this type of event increases or decreases.

[0178] In addition, based on the above statistical data, the number of policy output event messages for each different type of event, as well as the proportion of policy output event messages for each different type of event (such as the ratio of the number of policy output event messages for one type of event to the sum of the number of policy output event messages for all types of events) can also be determined, and displayed in a manner of sorting by quantity or sorting by proportion, the schematic diagram of which can be shown in Figure 3B.

[0179] The above describes the method provided by this application. The following describes the device provided by this application:

[0180] Please refer to FIG6 , which is a schematic diagram of the structure of a policy orchestration device provided in an embodiment of the present application. As shown in FIG6 , the policy orchestration device may include:

[0181] A first determining unit 610 is configured to determine a target event that requires policy orchestration;

[0182] The orchestration unit 620 is configured to add the target element pointed to by the element addition instruction to the policy visualization orchestration interface based on the detected element addition instruction; wherein the target element includes a processing element; the processing element includes one or more of a function element, an algorithm element, and an execution element; wherein the function element is used to perform logical operations on the data to be processed; the algorithm element is used to perform algorithmic processing on the data to be processed using a preset algorithm; and the execution element is used to control a specified device to perform a corresponding action;

[0183] The second determining unit 630 is configured to determine the connection relationship between the processing elements based on the detected connection operation instructions for the processing elements in the policy visual orchestration interface; and determine the parameters of the processing elements based on the detected parameter editing instructions for the processing elements in the policy visual orchestration interface;

[0184] The generating unit 640 is configured to generate and save a policy for a target event based on the processing elements, the connection relationships between the processing elements, and the parameters of the processing elements when a policy saving instruction is detected.

[0185] In some embodiments, the target element further comprises an event input element;

[0186] The first determining unit 610 is specifically configured to, upon detecting a policy orchestration instruction for a target event, create an event input element for the target event, wherein the event input element is provided with event source information, and is used to obtain an event message of the target event based on the event source information when the event input element is run; or, upon detecting an event input element creation instruction, create an initial event input element; and determine the event input element for the target event based on the detected event identifier configuration instruction for the initial event input element;

[0187] The arrangement unit 620 is further configured to determine a connection relationship between the event input component and the processing component according to the detected connection operation instruction for the event input component.

[0188] In some embodiments, the target element further includes an event output element; the event output element is provided with an output address, and is used to output data according to the output address when the event output element is run;

[0189] The arrangement unit 620 is further configured to determine a connection relationship between the event output element and the processing element according to the detected connection operation instruction for the event output element.

[0190] In some embodiments, the second determination unit 630 is specifically configured to parse the event message of the target event, determine the field information included in the event message of the target event, and display the field information when an operation instruction to paste the event message of the target event into the designated area of ​​the event message parsing interface is detected; and determine the parameters of the processing element based on the parameter editing instruction of the target field in the event message of the target event detected.

[0191] Please refer to Figure 7, which is a schematic diagram of the hardware structure of a policy orchestration device provided in an embodiment of the present application. The policy orchestration device may include a processor 701, a communication interface 702, a memory 703, and a communication bus 704. The processor 701, the communication interface 702, and the memory 703 communicate with each other via the communication bus 704. The memory 703 stores a policy visualization orchestration software program; the processor 701 can execute the policy orchestration method described above by executing the policy visualization orchestration software program stored in the memory 703.

[0192] The memory 703 mentioned herein can be any electronic, magnetic, optical, or other physical storage device that can contain or store information, such as executable instructions, data, etc. For example, the memory 703 can be: RAM (Random Access Memory), volatile memory, non-volatile memory, flash memory, a storage drive (such as a hard disk drive), a solid-state drive, any type of storage disk (such as a CD, DVD, etc.), or similar storage media, or a combination thereof.

[0193] An embodiment of the present application further provides a computer-readable storage medium storing a policy visualization orchestration software program, such as the memory 703 in FIG. 7 . The software program can be executed by the processor 701 in the policy orchestration device shown in FIG. 7 to implement the policy orchestration method described above.

[0194] The embodiment of the present application also provides a policy visualization orchestration software program, which is stored in a computer-readable storage medium, such as the memory 703 in Figure 7, and when the processor executes the policy visualization orchestration software program, it prompts the processor 701 to execute the policy orchestration method described above.

[0195] Please refer to FIG8 , which is a schematic diagram of the structure of a message processing device provided in an embodiment of the present application. As shown in FIG8 , the message processing device may include:

[0196] The acquisition unit 810 is configured to acquire target elements included in the target policy when an execution instruction for the target policy is detected; wherein the target policy is generated and orchestrated according to the policy orchestration method described in the above embodiment;

[0197] The processing unit 820 is configured to determine the running order of each processing element according to the connection relationship between the processing elements in the target element, and run the processing elements according to the running order, and the running processing elements use corresponding parameters to process the event message to be processed.

[0198] In some embodiments, the target element further comprises an event input element;

[0199] The processing unit 820 is further configured to run the event input component in the target component, and obtain the event message to be processed according to the event source information set in the event input component.

[0200] In some embodiments, the target element further includes an event output element;

[0201] The processing unit 820 is further configured to output data according to the output address set in the event output component when the process reaches the event output component in the target component.

[0202] In some embodiments, the processing unit 820 is specifically configured to stop the operation of any processing element being run and output the event message to be processed to a specified address if it is determined that the event message to be processed does not meet the conditions for the processing element to output to the next element.

[0203] Please refer to Figure 9, which is a schematic diagram of the hardware structure of a message processing device provided in an embodiment of the present application. The message processing device may include a processor 901, a communication interface 902, a memory 903, and a communication bus 904. The processor 901, the communication interface 902, and the memory 903 communicate with each other via the communication bus 904. The memory 903 stores a software program for executing the orchestrated policy; the processor 901 can execute the message processing method described above by executing the software program for executing the orchestrated policy stored in the memory 903.

[0204] The memory 903 mentioned herein may be any electronic, magnetic, optical, or other physical storage device that may contain or store information, such as executable instructions, data, and the like. For example, the memory 903 may be: RAM (Random Access Memory), volatile memory, non-volatile memory, flash memory, a storage drive (such as a hard disk drive), a solid-state drive, any type of storage disk (such as a CD, DVD, etc.), or similar storage media, or a combination thereof.

[0205] An embodiment of the present application also provides a computer-readable storage medium storing a software program for running an orchestrated policy, such as the memory 903 in Figure 9. The software program can be executed by the processor 901 in the electronic device shown in Figure 9 to implement the message processing method described above.

[0206] An embodiment of the present application also provides a software program for running the orchestrated policy, which is stored in a computer-readable storage medium, such as the memory 903 in Figure 9, and when the processor executes the software program for running the orchestrated policy, it prompts the processor 901 to execute the message processing method described above.

[0207] Please refer to Figure 10, which is a structural diagram of a message processing system provided in an embodiment of the present application. As shown in Figure 10, the message processing system may include: a policy orchestration device and a message processing device.

[0208] The policy orchestration device may perform policy orchestration according to the policy orchestration method described in the above embodiment; and the message processing device may perform message processing according to the message processing method described in the above embodiment.

[0209] Illustratively, the structure of the policy orchestration device may be as shown in FIG7 .

[0210] Illustratively, the structure of the message processing device may be as shown in FIG9 .

[0211] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply the existence of any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the element.

[0212] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A policy orchestration method, characterized in that: include: Identify target events that require strategy orchestration; According to the detected component adding instruction, the target component pointed to by the component adding instruction is added to the policy visualization orchestration interface; wherein the target component includes a processing element; the processing element includes one or more of a function element, an algorithm element, and an execution element; wherein the function element is used to perform logical operations on the data to be processed; the algorithm element is used to perform algorithmic processing on the data to be processed using a preset algorithm; and the execution element is used to control the designated device to perform a corresponding action; Determining the connection relationship between the processing elements based on the detected connection operation instructions for the processing elements in the policy visualization orchestration interface; and determining the parameters of the processing elements based on the detected parameter editing instructions for the processing elements in the policy visualization orchestration interface; When a policy saving instruction is detected, a policy for the target event is generated and saved according to the processing elements, the connection relationship between the processing elements, and the parameters of the processing elements.

2. The policy orchestration method according to claim 1, characterized in that: The target element further includes an event input element; and the method further includes: When a policy orchestration instruction for the target event is detected, an event input element for the target event is created, wherein event source information is set in the event input element, and is used to obtain an event message of the target event according to the event source information when the event input element is run; or, In the case where an event input element creation instruction is detected, an initial event input element is created; and according to the detected event identification configuration instruction for the initial event input element, an event input element of the target event is determined; After adding the target component pointed to by the component adding instruction to the policy visualization orchestration interface according to the detected component adding instruction, the method further includes: According to the detected connection operation instruction for the event input component, a connection relationship between the event input component and the processing component is determined.

3. The policy arrangement method according to claim 1, characterized in that: The target element further includes an event output element; the event output element is provided with an output address, and is used to output data according to the output address when the event output element is run; After adding the target component pointed to by the component adding instruction to the policy visualization orchestration interface according to the detected component adding instruction, the method further includes: According to the detected connection operation instruction for the event output component, a connection relationship between the event output component and the processing component is determined.

4. The method according to any one of claims 1 to 3, characterized in that The determining the parameters of the processing element according to the detected parameter editing instruction for the processing element in the policy visualization orchestration interface includes: When an operation instruction to paste the event message of the target event into a designated area of ​​the event message parsing interface is detected, the event message of the target event is parsed to determine field information included in the event message of the target event and to display the field information; The parameters of the processing element are determined according to the parameter editing instruction of the target field in the event message detected for the target event.

5. A message processing method, characterized in that: include: When an execution instruction for a target strategy is detected, obtaining a target element included in the target strategy; wherein the target strategy is generated and arranged according to the method according to any one of claims 1 to 4; According to the connection relationship between the processing elements in the target element, the running order of each processing element is determined, and the processing elements are run according to the running order, and the running processing elements use corresponding parameters to process the event message to be processed.

6. The method according to claim 5, characterized in that The target element also includes an event input element; The processing elements are run according to the running order, and before the running processing elements process the event messages to be processed using corresponding parameters, the process further includes: The event input component in the target component is run, and the event message to be processed is obtained according to the event source information set in the event input component.

7. The method according to claim 5, characterized in that The target element also includes an event output element; After the processing elements are run according to the run order and the run processing elements process the event messages using corresponding parameters, the method further includes: When the event output component in the target component is reached, data is output according to the output address set in the event output component.

8. The method according to any one of claims 5 to 7, characterized in that The running of the processing element according to the running order, and the running processing element processing the event message to be processed using corresponding parameters, includes: For any running processing element, when it is determined that the event message to be processed does not meet the condition for the processing element to output to the next element, the operation of the processing element is stopped, and the event message to be processed is output to the designated address.

9. A policy arrangement device, characterized in that: include: A first determining unit is configured to determine a target event requiring policy orchestration; An orchestration unit is configured to add a target element pointed to by a detected element addition instruction to a policy visualization orchestration interface; wherein the target element includes a processing element; the processing element includes one or more of a function element, an algorithm element, and an execution element; wherein the function element is used to perform logical operations on data to be processed; the algorithm element is used to perform algorithmic processing on the data to be processed using a preset algorithm; and the execution element is used to control a designated device to perform a corresponding action; a second determining unit configured to determine a connection relationship between the processing elements based on a detected connection operation instruction for the processing elements in the policy visual orchestration interface; and to determine parameters of the processing elements based on a detected parameter editing instruction for the processing elements in the policy visual orchestration interface; The generating unit is configured to generate and save the policy of the target event according to the processing elements, the connection relationship between the processing elements, and the parameters of the processing elements when a policy saving instruction is detected.

10. The device according to claim 9, characterized in that The target element also includes an event input element; The first determining unit is specifically configured to create an event input element for the target event when a policy orchestration instruction for the target event is detected, wherein the event input element is provided with event source information for obtaining the target event according to the event source information when the event input element is run. event message; or, in the case of detecting an event input element creation instruction, creating an initial event input element; determining the event input element of the target event according to the detected event identification configuration instruction for the initial event input element; The arrangement unit is further configured to determine a connection relationship between the event input element and the processing element according to the detected connection operation instruction for the event input element; Wherein, the target element further includes an event output element; the event output element is provided with an output address, and is used to output data according to the output address when the event output element is run; The arrangement unit is further configured to determine a connection relationship between the event output element and the processing element according to the detected connection operation instruction for the event output element; Among them, the second determination unit is specifically configured to parse the event message of the target event, determine the field information included in the event message of the target event, and display the field information when an operation instruction to paste the event message of the target event into the designated area of ​​the event message parsing interface is detected; and determine the parameters of the processing element based on the parameter editing instruction of the target field in the event message of the target event detected.

11. A policy orchestration device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; The memory is used to store the strategy visualization arrangement software program; The processor is configured to execute the policy visualization orchestration software program stored in the memory to implement the policy orchestration method according to any one of claims 1 to 4.

12. A message processing device, characterized in that: include: an acquisition unit configured to, upon detecting an execution instruction for a target policy, acquire a target element included in the target policy; wherein the target policy is generated and arranged according to the method according to any one of claims 1 to 4; The processing unit is configured to determine the running order of each processing element according to the connection relationship between the processing elements in the target element, and run the processing elements according to the running order, and the running processing elements use corresponding parameters to process the event message to be processed.

13. The device according to claim 12, characterized in that The target element also includes an event input element; The processing unit is further configured to run the event input component in the target component and obtain the event message to be processed according to the event source information set in the event input component; Wherein, the target element further includes an event output element; The processing unit is further configured to output data according to an output address set in the event output element when the processing reaches the event output element in the target element; The processing unit is specifically configured to stop the operation of any running processing element and output the event message to be processed to a designated address if it determines that the event message to be processed does not meet the condition for the processing element to output it to the next element.

14. A message processing device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; The memory is used to store the software program for running the programmed strategy; The processor is used to execute the software program of the operation-orchestrated strategy stored in the memory, and implement the message processing method according to any one of claims 5 to 8.

15. A message processing system, characterized in that: It includes the policy orchestration device described in claim 11 and the message processing device described in claim 14.