Policy arrangement method, message processing method, device, equipment and system
Through the policy orchestration method, target events are determined and processing elements are added to the visual interface, which solves the problems of false alarms and repeated reports in AI intelligent algorithms, and improves the accuracy of event filtering and the intuitiveness of policy orchestration.
Patent Information
- Application Number
- CN202211574967.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-08
- Publication Date
- 2025-01-17
- Estimated Expiration
- 2042-12-08
AI Technical Summary
Existing AI intelligent algorithms are prone to false alarms or repeated reports in monitoring data processing, resulting in poor event filtering and the inability to accurately filter out different types of alarm events.
Provide a policy orchestration method, by determining target events, adding processing elements to the visual orchestration interface, determining the connection relationship and parameters between elements, generating and saving policies, and optimizing the filtering of alarm events.
It improves the pertinence and intuitiveness of strategy orchestration, reduces alarm noise, enhances the filtering and processing capabilities of specific events, and improves the accuracy of event reporting.
Smart Images

Figure CN116109909B_ABST
Abstract
Description
Technical Field
[0001] 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
[0002] With the continuous development of artificial intelligence (AI) technology, AI products have gradually become an important part of various industry systems. AI products use deep learning algorithms to intelligently analyze the monitoring data of monitoring points built in cities. They can detect whether there are abnormal events in the monitoring area and automatically provide alarm data.
[0003] 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. Summary of the invention
[0004] In view of this, the present application provides a policy orchestration method, a message processing method, an apparatus, a device and a system.
[0005] According to a first aspect of an embodiment of the present application, a policy orchestration method is provided, including:
[0006] Identify target events that require strategy orchestration;
[0007] According to the detected component adding instruction, the target component pointed to by the component adding instruction is added to the strategy visual arrangement interface; wherein the target component includes a processing component; the processing component includes one or more of a function component, an algorithm component and an execution component; wherein the function component is used to perform logical operation processing on the data to be processed; the algorithm component is used to perform algorithm processing on the data to be processed using a preset algorithm; and the execution component is used to control the designated device to perform a corresponding action;
[0008] Determining the connection relationship between the processing elements according to the detected connection operation instructions for the processing elements in the policy visualization orchestration interface; and determining the parameters of the processing elements according to the detected parameter editing instructions for the processing elements in the policy visualization orchestration interface;
[0009] When a policy saving instruction is detected, a policy of 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.
[0010] According to a second aspect of an embodiment of the present application, a message processing method is provided, including:
[0011] In the case of detecting an operation instruction for a target strategy, obtaining a target element included in the target strategy; wherein the target strategy is generated and arranged according to the method provided in the first aspect;
[0012] According to the connection relationship between the processing elements in the target element, the operation order of the processing elements is determined, and the processing elements are operated according to the operation order, and the processing elements to be operated process the event message to be processed using corresponding parameters.
[0013] According to a third aspect of an embodiment of the present application, a policy orchestration device is provided, including:
[0014] A first determining unit is configured to determine a target event that needs to be orchestrated by a policy;
[0015] The orchestration unit is configured to add the target element pointed to by the element adding instruction to the strategy visualization orchestration interface according to the detected element adding 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 operation processing on the data to be processed; the algorithm element is used to perform algorithm 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;
[0016] A second determining unit is configured to determine the connection relationship between the processing elements according to the detected connection operation instructions for the processing elements in the policy visualization orchestration interface; and determine the parameters of the processing elements according to the detected parameter editing instructions for the processing elements in the policy visualization orchestration interface;
[0017] 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.
[0018] According to a fourth aspect of an embodiment of the present application, a policy orchestration device is provided, including 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;
[0019] A memory for storing a strategy visualization arrangement software program;
[0020] The processor is used to execute the visual arrangement software program stored in the memory to implement the policy arrangement method provided in the first aspect.
[0021] According to a fifth aspect of an embodiment of the present application, a message processing device is provided, including:
[0022] An acquisition unit is configured to acquire a target element included in the target strategy when an operation instruction for the target strategy is detected; wherein the target strategy is generated according to the method provided in the first aspect;
[0023] The processing unit is configured to determine the operation order of each processing element according to the connection relationship between the processing elements in the target element, and operate the processing elements according to the operation order, and the operating processing elements use corresponding parameters to process the event message to be processed.
[0024] According to a sixth aspect of an embodiment of the present application, there is provided a message processing device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus;
[0025] A memory for storing a software program for running the programmed strategy;
[0026] The processor is used to execute the software program stored in the memory and running the arranged strategy to implement the message processing method provided in the second aspect.
[0027] 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.
[0028] 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
[0029] Figure 1 It is a flowchart of a strategy arrangement method provided in an embodiment of the present application;
[0030] Figure 2 It is a flowchart of a message processing method provided in an embodiment of the present application;
[0031] Figure 3A This is a statistical diagram of strategy effectiveness provided by an embodiment of the present application;
[0032] Figure 3B This is a schematic diagram of the proportion of strategy output events provided in an embodiment of the present application;
[0033] Figure 4 This is a schematic diagram of a strategy arrangement and execution process provided by an embodiment of the present application;
[0034] Figure 5 is a schematic diagram of a visual strategy arrangement provided by an embodiment of the present application;
[0035] Figure 6 It is a structural diagram of a policy orchestration device provided in an embodiment of the present application;
[0036] Figure 7 It is a schematic diagram of the hardware structure of a policy orchestration device provided in an embodiment of the present application;
[0037] Figure 8 It is a structural schematic diagram of a message processing device provided in an embodiment of the present application;
[0038] Fig. 9 It is a hardware structure diagram of a message processing device provided in an embodiment of the present application;
[0039] Fig.10 It is a structural diagram of a message processing system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0040] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0041] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0042] 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 understandable, the technical solutions in the embodiments of the present application are further described in detail below in conjunction with the accompanying drawings.
[0043] 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 execution order 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.
[0044] See also Figure 1 , is a flow chart of a strategy arrangement method provided in an embodiment of the present application, such as Figure 1 As shown, the policy orchestration method may include the following steps:
[0045] Step S100: Determine the target event that needs to be policy orchestrated.
[0046] In the embodiment of the present application, considering that there may be differences in the filtering conditions applicable to filtering different types of alarm events, 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 message is still very large.
[0047] Based on this, in an embodiment of the present application, in order to optimize the filtering effect of alarm events, a policy arrangement for a specific event may be provided to obtain a policy for filtering the specific event.
[0048] Exemplarily, the user may determine an event that needs to be policy-programmed (referred to as a target event herein) according to actual needs, and trigger policy programming for the target event by inputting a policy programming instruction for the target event.
[0049] Exemplarily, the target event may include one type of event, or multiple types of events.
[0050] Regarding the policy orchestration instructions for the target event, for example, the policy orchestration interface may provide an event selection interface, such as displaying an event list in a designated area in the policy orchestration interface, and the user may select the target event from the event list as needed and enter the policy orchestration instructions, such as clicking the target event and selecting policy orchestration in the pop-up function menu to trigger the policy orchestration for the target event.
[0051] Regarding the policy orchestration instructions for the target event, for example, a policy orchestration function button may be provided in the policy orchestration interface, and the user may 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.
[0052] Step S110, based on the detected component adding instruction, add the target component pointed to by the component adding instruction to the strategy visualization orchestration interface; wherein the target component includes a processing component; the processing component includes one or more of a function component, an algorithm component and an execution component; wherein the function component is used to perform logical operations on the processed data; the algorithm component is used to perform algorithmic processing on the processed data using a preset algorithm; the execution component is used to control the specified device to perform a corresponding action.
[0053] In the embodiment of the present application, when the target event that needs to be policy-orchestrated is determined in the above manner, the required target element can be added to the policy visualization orchestration interface.
[0054] For example, a user may select one or more target components and add the selected target components to the strategy visualization orchestration interface by dragging and dropping.
[0055] Accordingly, according to the detected component adding instruction, such as the above-mentioned dragging operation instruction, the target component pointed to by the component adding operation instruction (such as the above-mentioned selected target component) can be added to the strategy visual arrangement interface.
[0056] Exemplarily, 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 on 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), etc.
[0057] Exemplarily, the target element may include, but is not limited to, a processing element.
[0058] Exemplarily, the processing element may include one or more of a function element, an algorithm element, and an execution element;
[0059] Function elements can be used to perform logical operations on the data to be processed, that is, logical operations can be performed on the data to be processed by running the function elements, for example, logical determination processing, function operation processing, etc.
[0060] Exemplarily, the function element may include but is not limited to a filtering element, a diversion element or a single-point deduplication element (ie, deduplication of messages whose reporting interval at the same point is less than a preset time threshold), etc.
[0061] Exemplarily, 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.
[0062] For example, taking the forklift identification scene 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 (carrying the address information of the captured image of the forklift identification event) can be triggered; the input data of the shunt 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 shunt 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, it 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, it is output to the magnified capture element, and the captured image of the forklift identification event is magnified by running the magnified capture element so that it can be more accurately detected whether there are personnel around the forklift later.
[0063] The algorithm element can be used to perform algorithmic processing on the data to be processed using a preset algorithm, that is, the algorithm element can be run to perform algorithmic processing on the data to be processed using a preset algorithm.
[0064] Exemplarily, the algorithm element may include, but is not limited to, a similarity comparison element or a secondary image analysis element such as an image quality scoring element (for scoring the quality of the acquired image using a preset image quality scoring algorithm), etc.
[0065] The execution element is used to control the designated device to execute a corresponding action, that is, the designated device can be controlled to execute a corresponding action by running the execution element.
[0066] Exemplarily, the execution element may include but is not limited to a preset point rotation control element (used to control a designated monitoring front end to rotate to a designated preset point), a capture element or an enlarged capture element, etc.
[0067] Step S120: determining the connection relationship between the processing elements according to the detected connection operation instructions for the processing elements in the policy visualization orchestration interface; and determining the parameters of the processing elements according to the detected parameter editing instructions for the processing elements in the policy visualization orchestration interface.
[0068] In an embodiment of the present application, after adding the required target elements to the strategy visualization orchestration interface, the user can orchestrate the target elements in the strategy visualization orchestration interface, which may include but is not limited to connecting processing elements and editing parameters of processing elements.
[0069] Accordingly, after the target element pointed to by the element adding instruction is added to the policy visualization orchestration interface, on the one hand, the connection relationship between the processing elements can be determined according to the detected connection operation instructions for the processing elements in the policy visualization orchestration interface.
[0070] 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.
[0071] Exemplarily, for a processing element, its parameters may include parameters for processing input data. For example, for a filter element for filtering data at a specific time or space, its parameters may include a filtering time period or a spatial range; for an algorithm element for performing human body detection on an acquired image, its parameters may include a confidence threshold, etc.
[0072] Step S130: When a policy saving instruction is detected, a policy for a target event is generated and saved according to processing elements, connection relationships between processing elements, and parameters of processing elements.
[0073] 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 strategy.
[0074] For example, a user can trigger policy saving by clicking a save function button in the policy visual orchestration interface.
[0075] Accordingly, when a policy saving instruction is detected, the policy of the target event can be generated and saved according to the processing elements added to the policy visualization orchestration interface, the connection relationship between the processing elements, and the parameters of the target element.
[0076] It can be seen that in Figure 1 In the method flow shown, by determining the target event that needs to be policy-orchestrated, and according to the detected component adding instruction, adding the target component pointed to by the component adding instruction to the policy visualization orchestration interface, determining the connection relationship between the processing components according to the detected connection operation instruction for the processing components included in the target component in the policy visualization orchestration interface; and determining the parameters of the processing components according to the detected parameter editing instruction for the processing components in the policy visualization orchestration interface, and then, in the case of detecting the policy saving instruction, generating and saving the policy for the target event according to the processing components, the connection relationship between the processing components, and the parameters of the processing components, thereby realizing the policy visualization orchestration for specific events and improving the pertinence of the policy orchestration. In addition, the intuitiveness of the policy orchestration process is improved through the visual policy orchestration method.
[0077] In some embodiments, the target element may further include an event input element.
[0078] The target events that require policy orchestration may include:
[0079] In case a policy orchestration instruction for a target event is detected, an event input element for the target event is created;
[0080] or,
[0081] When an event input component creation instruction is detected, an event input component is created;
[0082] According to the detected event identification configuration instruction for the event input component, a target event associated with the event input component is determined.
[0083] Exemplarily, the strategy orchestration for the target event may be triggered by creating an event input element for the target event.
[0084] In one example, the 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, and then triggering the policy orchestration for the target event to create an event input element for the target event.
[0085] Exemplarily, taking the event identifier as an event code as an example, the event code is a string that can be used to uniquely identify a type of event.
[0086] 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.
[0087] Exemplarily, event source information is provided in the event input component, and is used to obtain the event message to be processed according to the event source information when the event input component is run.
[0088] Exemplarily, an event source type may also be set in the event input element to indicate the source type of the event message to be processed obtained by the event input element, for example, central-end analysis (events triggered by analysis of a central-end device, such as a central platform) or edge-end analysis (events triggered by analysis of an edge-end device, such as a capture machine).
[0089] For example, considering that the central-end analysis usually analyzes the data of multiple monitoring points to determine whether a specified event exists; and the edge-end analysis usually involves a single monitoring point analyzing the data of the 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 that of the edge-end analysis. Therefore, when performing event reporting accuracy statistics, the event source type in the event input element can be distinguished, and statistics can be performed on the central-end analysis type and the edge-end analysis respectively.
[0090] Accordingly, after adding the target element to the visual 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 detected connection operation instruction for the event input element.
[0091] In some embodiments, the target element may further include an event output element, in which an output address is provided for outputting data according to the output address when the event output element is run.
[0092] After adding the target component pointed to by the component adding instruction to the strategy visualization orchestration interface according to the detected component adding instruction, the following may also be included:
[0093] According to the detected connection operation instruction for the event output component, the connection relationship between the event output component and the processing component is determined.
[0094] Exemplarily, when performing strategy arrangement for a target event, in addition to arranging processing elements in the above manner, 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, output data may be output to a specified address.
[0095] Accordingly, after adding the target element to the visual 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 detected connection operation instruction for the event output element.
[0096] Exemplarily, 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.
[0097] For example, the policy orchestration and execution process can be found in Figure 4 .like Figure 4As shown, the component library stores components for policy orchestration (which may be referred to as policy components).
[0098] Among them, the strategy element may include an event input element, an event output element, and a processing element; the processing element may include but is not limited to a function element, an algorithm element, and an execution element.
[0099] Exemplarily, the function element may include but is not limited to a single-point deduplication element, a multi-point deduplication element, a function operation element, and the like.
[0100] The algorithm element may include but is not limited to a similarity comparison element and an error library comparison element.
[0101] The execution components may include but are not limited to preset point control components and capture components.
[0102] In the process of strategy orchestration, the target component in the component library pointed to by the component adding instruction can be added to the strategy visualization orchestration interface (which can be called a canvas in this example) according to the detected component adding instruction, and the connection relationship between the target components can be determined according to the detected connection operation instructions for each target component in the canvas; and the parameters of the target component can be determined according to the detected parameter editing instructions for the target component in the canvas.
[0103] Exemplarily, the target element may include an event input element, an event output element, and at least one processing element.
[0104] When a strategy saving instruction is detected, a corresponding strategy may be generated based on the target element, the connection relationship between the target elements, and the parameters of the target elements, and saved in the strategy library.
[0105] Exemplarily, the policies stored in the policy library may include, but are not limited to, traffic incident pedestrian intrusion application policies, traffic incident congestion application policies, bank reception detection policies, workplace mobile phone use detection policies, etc.
[0106] During the policy execution process, for any policy in the policy library, when it is determined that the policy needs to be executed, the corresponding target element can be obtained from the element library based on the target element included in the policy, and the operating order of each target element can be determined based on the connection relationship between the target elements included in the policy, and each target element can be operated according to the operating order, and the operated target element uses the corresponding parameters to process the event message to be processed.
[0107] 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, single-point time period deduplication, 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, etc., which can be applied to various different scenario usage requirements, thereby improving the applicability of the policy orchestration solution.
[0108] During the policy orchestration process, according to the actual usage scenario, for events that require policy tuning, the required target components can be selected and added to the visual orchestration interface, and the connection relationship and parameters between the target components can be set to complete the policy orchestration for an event. This realizes the visual orchestration of policies for specific events, improves the targetedness of policy orchestration, and improves the intuitiveness of the policy orchestration process.
[0109] In some embodiments, the event input unit 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 by the processing element to determine the meaning of the corresponding field.
[0110] For example, considering that in actual applications, the formats of alarm messages for different events may be different, the processing element may not be able to recognize the meanings of all the fields of different messages, which may cause abnormal processing by the processing element.
[0111] 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 description information to each specified field in the event message (the field whose field value will be used in the subsequent processing flow), and the description 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 description information of the specified field.
[0112] 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. For each specified field in the event message to be processed, it can be transmitted to the running processing component in sequence in the form of a correspondence between a field path (used to identify the position of the field in the event message to be processed) and corresponding descriptive information, so that the processing component can determine the meaning of the specified field in the event message to be processed based on the field path and the corresponding descriptive information.
[0113] In some embodiments, the above-mentioned determining the parameters of the processing element according to the detected parameter editing instruction for the processing element in the policy visualization orchestration interface may include:
[0114] 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;
[0115] For any processing element, the parameters of the processing element are determined according to the parameter editing instruction of the target field in the event message for the target event detected.
[0116] Exemplarily, when it is necessary to edit parameters of a processing element, relevant personnel can enter the event message parsing interface and enter parsing instructions for the event message of the target event. For example, the actual message of the target event can be pasted into a designated area of the event message parsing interface.
[0117] 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.
[0118] Exemplarily, 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.
[0119] Exemplarily, based on the field information included in the event message of the displayed target event, 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 instruction for the target field.
[0120] Accordingly, for any processing element, the parameters of the processing element may be determined according to the detected parameter editing instruction for the target field in the event message of the target event.
[0121] In order to enable those skilled in the art to better understand the visualization strategy arrangement scheme in the embodiment of the present application, an example is provided below for explanation.
[0122] like Figure 5 As shown, the visual strategy arrangement interface includes a component list, and the component list includes various strategy components for users to select, which may include but are not limited to event input components, event output components, and processing components.
[0123] In the process of strategy arrangement, you can select target components according to your needs and add them to the visual arrangement interface. Taking the forklift identification scenario as an example, the target components can include: event input components (forklift identification components in the figure), output components (forklift identification output components in the figure), and processing components.
[0124] The processing elements may include function elements (such as filtering elements and shunt elements in the figure), algorithm elements (such as human body detection elements and secondary analysis elements in the figure) and execution elements (such as zoom-in and capture elements in the figure).
[0125] Among them, the visual editing interface supports operation commands such as "center", "undo", "redo", and "clear", and supports adjustment of the interface display ratio.
[0126] For the target elements added to the visual orchestration interface, the connection relationship and parameters between the target elements can be determined according to the needs. During the strategy operation, the operation order of the target elements can be determined according to the connection relationship between the target elements.
[0127] by Figure 5 Taking the scenario shown as an example, considering that in the reported forklift identification events, the forklift target frame may be too small, and it is impossible to determine whether there is a human body in the forklift target frame (excluding people in the forklift cab). Therefore, the forklift identification element can be connected to the filtering element to filter the forklift identification events with a forklift target frame that is too small (such as the target frame area is less than the first area threshold), and the forklift identification events with a forklift target frame greater than or equal to the first area threshold can enter the diversion element for processing.
[0128] The shunt 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, and the forklift recognition events in which there is no human body in the forklift target frame are filtered, 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.
[0129] 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 filtering element. The forklift identification event for which there is no forklift target frame or the confidence level of the forklift target frame is too low is filtered out through the filtering element.
[0130] 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, and the forklift recognition events in which there is a human body in the forklift target frame are output through the forklift recognition output component.
[0131] See also Figure 2 , is a flow chart of a message processing method provided in an embodiment of the present application, such as Figure 2 As shown, the message processing method may include the following steps:
[0132] Step S200: When an operation instruction for a target strategy is detected, a target element included in the target strategy is obtained.
[0133] For example, the target strategy can be Figure 1 The method described in the method flow shown is arranged to generate.
[0134] In the embodiment of the present application, the user can set the Figure 1 The strategy generated by the method orchestration described in the method flow shown is run.
[0135] For any one Figure 1 The strategy generated by the method arrangement described in the illustrated method flow (referred to herein as the target strategy) can obtain the target elements included in the target strategy when an execution instruction for the target strategy is detected.
[0136] Exemplarily, for other components besides the event input component, the component can be generated by importing a program package in the interface, encapsulating the component, and defining the input and output of the computing component. The corresponding component can also be obtained by importing the component package.
[0137] It should be noted that for any strategy, the operation scope of the strategy can also be configured, such as the time range and / or spatial range of the operation, that is, the time periods and / or event locations in which the strategy needs to be executed can be configured.
[0138] Accordingly, when there is a running time range configuration, the strategy can be automatically run within the configured running time range; when there is an running space range, when running the strategy, the strategy can be used to process related events within the running space range.
[0139] 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 element according to the running order, and the running processing element processes the event message to be processed using corresponding parameters.
[0140] In the embodiment of the present application, when using a strategy to process any event message to be processed, the operation order of each processing element can be determined according to the connection relationship between each processing element in the target element, and the processing elements can be operated according to the operation order.
[0141] For any processing element, when the processing element is running, the processing element can use corresponding parameters to process the event message to be processed, and the message includes time, location, picture (picture address), picture detection result (such as license plate recognition result), etc.
[0142] For example, for a filtering component, it can be determined whether the event message to be processed needs to be filtered according to the values of fields such as time and point in the event message to be processed.
[0143] For another example, for an image quality scoring component, the corresponding image can be obtained according to the image address information carried in the event message to be processed, and the quality of the obtained image can be scored using a preset image quality scoring algorithm to obtain a quality score of the image.
[0144] In some embodiments, the target element further comprises an event input element;
[0145] The above-mentioned operation of the processing elements according to the operation order, before the executed processing elements process the event message to be processed using corresponding parameters, may also include:
[0146] 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.
[0147] Exemplarily, when the target element includes an event input element, when the strategy is executed, the event input element may be executed first, and the event message to be processed may be obtained according to the event input address set in the event input element.
[0148] 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.
[0149] Exemplarily, 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. In the event input component that runs the target strategy, the event message to be processed can be obtained from the message queue according to the event input address set in the event input component.
[0150] For example, when obtaining event messages 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 (a message queue can store event messages with multiple different event codes), and pull out the event message in the message queue whose event code is consistent with the event code set in the event input element as the event message to be processed.
[0151] Exemplarily, when an operating time range and / or operating space range is configured in the policy, 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, and / or the event occurrence location is not within the preset operating space range, the event message will not be pulled.
[0152] Alternatively, after the event input component pulls the event message from the message queue corresponding to the event input address, the event occurrence time and / or point identifier (or scene identifier) of the pulled event message is analyzed 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, and / 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.
[0153] For example, assuming that the preset strategy running time range is 9:00-17:00, and the running space range is: points ABCDEF. Then for the event message in the message queue corresponding to the event input address, the event occurrence time is 8:00, and the event occurrence location is point A (that is, the event occurrence time is not within the preset running time range, but the event occurrence location is within the preset running space range), the event input component may not pull, or, after pulling, filter the event message.
[0154] For the event message in the message queue corresponding to the event input address, whose 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, or, after pulling, filter the event message.
[0155] In some embodiments, the target element further comprises an event output element;
[0156] The above-mentioned operation of the processing elements according to the operation order, after the executed processing elements process the event message to be processed using corresponding parameters, may further include:
[0157] When the event output element in the target element is reached, data is output according to the output address set in the event output element.
[0158] 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 an output address set in the event output component.
[0159] Exemplarily, the event output address may be a storage path for the output data. When the event output element is running, the output data may be saved to a designated storage path, for example, to a valid alarm message queue, according to the event output address set in the event output element.
[0160] 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.
[0161] It should be noted that in the embodiment of the present application, an event code may also be set in the event output element, and the event code set in the event output element may be different from the event code set in the event input element, that is, the event code in the event message output by the event output element may be different from the event code in the event message pulled by the event input element.
[0162] For example, still taking the forklift identification scenario as an example, in the monitoring front end of the forklift operation scenario, it can be configured to capture a picture when a forklift is detected and generate a corresponding event message (assuming that the event code is event code 1, which is used to identify the event type as the identification of a forklift). 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, so that all events triggered when the forklift is identified (the event code is event code 1) can be pulled in, and based on the processing element in the configured strategy, it is determined whether a person is detected around the forklift (such as within a preset distance range centered on the forklift center). If a person is detected, it 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).
[0163] In addition, for any Figure 1The strategy arranged by the method shown can be set with a function to verify it, for example, to verify whether the strategy includes an event input element, an event output element and at least one processing element; to verify whether the connection is complete, such as whether there is an element that is not connected to other elements; to verify whether the required parameters of each element are configured, for example, for the event input element, whether the event input address information is configured; for the event output element, whether the output address information is configured; for the filter element, whether the filter conditions are configured, etc.
[0164] In addition, test data (which may be simulated events) may be used to verify the effectiveness of the strategy, for example, to verify whether the strategy can achieve the expected effect.
[0165] When the policy is verified in the above manner and passes the verification, the policy status can be set to verified; otherwise, the policy status can be set to unverified.
[0166] Policies that are in the Verified state can be run directly without re-verification.
[0167] Furthermore, for verified strategies, when it is determined that the strategy parameters need to be adjusted based on the strategy's operating results, the strategy's operating results after parameter adjustment can be verified based on historical event messages within a preset time. When it is determined that the strategy's operating results after parameter adjustment meet the conditions, message processing is performed based on the strategy after parameter adjustment.
[0168] For example, for the strategy for fishing event detection, if the parameters used for fishing detection, such as the threshold of the overlap between people and fishing rods, the confidence of fishing rods, etc., 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 the 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, the message processing is performed according to the strategy after the parameter adjustment.
[0169] In some embodiments, the operation of the processing elements according to the operation order may include:
[0170] For any processing element being run, when it is determined that the event message to be processed does not satisfy 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.
[0171] Exemplarily, during the operation of the processing element, for any processing element, when the processing element is being operated, it can be determined whether the event message to be processed satisfies the condition for the processing element to output to the next element.
[0172] 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 so, 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; otherwise, it is determined that the event message to be processed meets the condition for the processing element to output to the next element.
[0173] Exemplarily, for a non-filtering component, it may be assumed that the event message to be processed satisfies the condition for the processing component to output to the next component.
[0174] 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 is to be sent to based on the event message to be processed and the preset judgment logic.
[0175] Taking the shunt element as an example, the shunt element may be configured with a preset judgment rule, and may jump to different next elements according to the judgment result of running the shunt element. For example, the judgment results of the shunt element of "yes" and "no" may correspond to different branches. When configuring the strategy, different processing elements may be connected to different branches of the shunt element according to the processing logic under different judgment results of the shunt element. Then, when running the shunt element, the corresponding next element may be determined according to the judgment results of "yes" and "no".
[0176] For example, 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 so, 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 the captured image of the forklift identification event can be enlarged by running the enlarged capture element. In the case of running the diversion element, the next element can be determined based on the judgment result.
[0177] Exemplarily, for any processing element being run, when it is determined that the event message to be processed does not satisfy the condition 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.
[0178] Exemplarily, for messages that are determined to be intercepted during the operation of any processing element, they can be uniformly output to a designated address through a message bus.
[0179] Exemplarily, the pending event message output to the designated address may also carry output reason information, 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 reason information.
[0180] In some embodiments, when an execution instruction for a target policy is detected, the message processing method provided in the embodiment of the present application further includes:
[0181] Persistently store the event messages output when the target strategy is running and the reasons for the output of the event messages;
[0182] When a search instruction for persistently stored event messages is detected, the persistently stored event messages are searched for event messages matching the search condition and their corresponding output reasons.
[0183] Exemplarily, for the event message output when the target policy is executed, the event message and the reason for outputting the event message may be output.
[0184] 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.
[0185] Exemplarily, for event messages output when running a processing element, the reason for the output of the event message can be output, and the output reason may include 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 (i.e., false alarm or duplicate alarm data)).
[0186] Exemplarily, the event message output when the target policy is executed and the reason for outputting the event message may be persistently stored.
[0187] When a search instruction for persistently stored event messages is detected, the persistently stored event messages are searched for event messages matching the search condition and their corresponding output reasons.
[0188] Exemplarily, the search conditions may include but are not limited to a time range and / or a spatial range, etc.
[0189] Exemplarily, 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.
[0190] 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.
[0191] It should be noted that, in the embodiment of the present application, the event message intercepted by the policy can be converted into a valid output after manual verification, such as being output to a valid alarm message queue.
[0192] Exemplarily, the solution provided in the embodiments of the present application also supports strategy effectiveness statistics, for example, counting the total number of strategies and the operating status of each strategy (such as running, not running, abnormal or unverified, etc.); counting the number of original event messages (i.e., 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 (i.e., the number of event messages output by the event output element of the strategy, also referred to as the number of valid event messages).
[0193] For example, the statistical results can be displayed in the form of a list according to 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 proportion of filtered event messages (i.e., the ratio of the number of filtered event messages to the number of original event messages). The schematic diagram can be as follows: Figure 3A shown.
[0194] For any type of event, data trend prediction can also be performed based on statistical data, for example, the number of reports of this type of event increases or decreases.
[0195] In addition, based on the above statistical data, the number of policy output event messages for each type of event and the proportion of policy output event messages for each type of event can also be determined, and displayed in a manner of sorting by number or proportion. The schematic diagram can be as follows: Figure 3B shown.
[0196] The method provided by the present application is described above. The device provided by the present application is described below:
[0197] See also Figure 6 , is a schematic diagram of the structure of a policy arrangement device provided in an embodiment of the present application, such as Figure 6 As shown, the policy orchestration device may include:
[0198] A first determining unit 610 is configured to determine a target event that needs to be orchestrated by a policy;
[0199] The orchestration unit 620 is configured to add the target element pointed to by the element adding instruction to the strategy visualization orchestration interface according to the detected element adding 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 operation processing on the data to be processed; the algorithm element is used to perform algorithm processing on the data to be processed using a preset algorithm; and the execution element is used to control the specified device to perform a corresponding action;
[0200] The second determining unit 630 is configured to determine the connection relationship between the processing elements according to the detected connection operation instruction for the processing elements in the policy visualization orchestration interface; and determine the parameters of the processing elements according to the detected parameter editing instruction for the processing elements in the policy visualization orchestration interface;
[0201] The generating unit 640 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.
[0202] In some embodiments, the target element further comprises an event input element;
[0203] The first determination unit 610 is specifically configured to create an event input element for the target event when a policy arrangement instruction for the target event is detected; or, when an event input element creation instruction is detected, create an event input element; determine the target event associated with the event input element according to the event identification configuration instruction detected for the event input element; wherein the event input element 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 element is run;
[0204] The arrangement unit 620 is further configured to determine the connection relationship between the event input element and the processing element according to the detected connection operation instruction for the event input element.
[0205] In some embodiments, the target element further includes an event output element; an output address is set in the event output element, and is used to output data according to the output address when the event output element is running;
[0206] The arrangement unit 620 is further configured to determine the connection relationship between the event output element and the processing element according to the detected connection operation instruction for the event output element.
[0207] In some embodiments, the second determination unit 630 is specifically configured to parse the event message of the target event and determine the field information included in the event message of the target event 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; for any processing element, determine the parameters of the processing element based on the detected parameter editing instruction for the target field in the event message of the target event.
[0208] See also Figure 7 , which is a hardware structure diagram 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 707. The processor 701, the communication interface 702, and the memory 703 communicate with each other via the communication bus 707. 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.
[0209] The memory 703 mentioned herein may be any electronic, magnetic, optical or other physical storage device that may contain or store information, such as executable instructions, data, etc. For example, the memory 703 may be: RAM (Radom Access Memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard disk drive), solid state drive, any type of storage disk (such as optical disk, DVD, etc.), or similar storage media, or a combination thereof.
[0210] The present application also provides a computer-readable storage medium storing a policy visualization arrangement software program, such as Figure 7 The computer program may be provided by the memory 703 in Figure 7 The processor 701 in the electronic device is executed to implement the policy orchestration method described above.
[0211] The present application also provides a strategy visualization arrangement software program, which is stored in a computer-readable storage medium, such as Figure 7 The memory 703 in the processor, and when the processor executes the policy visualization orchestration software program, it prompts the processor 701 to execute the policy orchestration method described above.
[0212] See also Figure 8 , is a structural diagram of a message processing device provided in an embodiment of the present application, such as Figure 8 As shown, the message processing device may include:
[0213] The acquisition unit 810 is configured to acquire the target element included in the target policy when an operation instruction for the target policy is detected; wherein the target policy is generated by the policy arrangement method described in the above embodiment;
[0214] The processing unit 820 is configured to determine the operation order of each processing element according to the connection relationship between the processing elements in the target element, and operate the processing elements according to the operation order, and the operated processing elements process the event message to be processed using corresponding parameters.
[0215] In some embodiments, the target element further comprises an event input element;
[0216] 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.
[0217] In some embodiments, the target element further comprises an event output element;
[0218] The processing unit 820 is further configured to output data according to an output address set in the event output component when the processing reaches the event output component in the target component.
[0219] 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 condition for the processing element to output to the next element.
[0220] See also Fig. 9 , which is a hardware structure diagram 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 909. The processor 901, the communication interface 902 and the memory 903 communicate with each other through the communication bus 909. Among them, the memory 903 stores a software program for running the arranged strategy; the processor 901 can execute the message processing method described above by executing the software program for running the arranged strategy stored in the memory 903.
[0221] 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, etc. For example, the memory 903 may be: RAM (Radom Access Memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard disk drive), solid state drive, any type of storage disk (such as optical disk, DVD, etc.), or similar storage medium, or a combination thereof.
[0222] The present application also provides a computer-readable storage medium storing a software program for running the programmed strategy, for example Fig. 9 The computer program may be provided by the memory 903 in the Fig. 9 The processor 901 in the electronic device shown executes to implement the message processing method described above.
[0223] The present application also provides a software program for executing the arranged strategy, which is stored in a computer-readable storage medium, such as Fig. 9 The memory 903 in the processor, and when the processor executes the software program that runs the arranged strategy, the processor 901 is prompted to execute the message processing method described above.
[0224] See also Fig.10 , is a structural diagram of a message processing system provided in an embodiment of the present application, such as Fig.10 As shown, the message processing system may include: a policy arrangement device and a message processing device.
[0225] Among them, the policy orchestration device can perform policy orchestration according to the policy orchestration method described in the above embodiment; the message processing device can perform message processing according to the message processing method described in the above embodiment.
[0226] For example, the structure of the policy orchestration device may be as follows: Figure 7 shown.
[0227] For example, the structure of the message processing device may be as follows: Fig. 9 shown.
[0228] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0229] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, 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 strategy arrangement 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 strategy visual arrangement interface; wherein the target component includes a processing component; the processing component includes one or more of a function component, an algorithm component and an execution component; wherein the function component is used to perform logical operation processing on the data to be processed; the algorithm component is used to perform algorithm processing on the data to be processed using a preset algorithm; and the execution component is used to control the designated device to perform a corresponding action; Determining the connection relationship between the processing elements according to the detected connection operation instructions for the processing elements in the policy visualization orchestration interface; and determining the parameters of the processing elements according to the detected parameter editing instructions for the processing elements in the policy visualization orchestration interface; In case a policy saving instruction is detected, generating and saving a policy for the target event according to the processing element, the connection relationship between the processing elements, and the parameters of the processing elements; The target element further includes an event input element; the determining of the target event that needs to be strategy-programmed includes: In case a policy orchestration instruction for a target event is detected, creating an event input element for the target event; or, When an event input component creation instruction is detected, an event input component is created; Determine the target event associated with the event input component according to the detected event identification configuration instruction for the event input component; wherein 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; After adding the target component pointed to by the component adding instruction to the strategy visualization arrangement 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.
2. The strategy arrangement method according to claim 1, characterized in that: The target element further includes an event output element; an output address is set in the event output element, and is used to output data according to the output address when the event output element is running; After adding the target component pointed to by the component adding instruction to the strategy visualization arrangement 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.
3. The method according to claim 1 or 2, 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; For any processing element, the parameters of the processing element are determined according to the parameter editing instruction of the target field in the event message of the target event detected.
4. A message processing method, characterized in that: include: In the case of detecting an operation instruction for a target strategy, 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 3; According to the connection relationship between the processing elements in the target element, the operation order of the processing elements is determined, and the processing elements are operated according to the operation order, and the processing elements to be operated process the event message to be processed using corresponding parameters.
5. The method according to claim 4, characterized in that The target element also includes an event input element; The processing element is run according to the running sequence, and before the running processing element processes the event message to be processed using corresponding parameters, the method 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.
6. The method according to claim 4, characterized in that The target element also includes an event output element; After the processing element is run according to the running sequence and the running processing element processes the event message to be processed using corresponding parameters, the method further includes: When the event output element in the target element is reached, data is output according to the output address set in the event output element.
7. The method according to any one of claims 4 to 6, characterized in that: The operating of the processing element according to the operating order includes: For any processing element being run, when it is determined that the event message to be processed does not satisfy 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.
8. A policy arrangement device, characterized in that: include: A first determining unit is configured to determine a target event that needs to be orchestrated by a policy; The orchestration unit is configured to add the target element pointed to by the element adding instruction to the strategy visualization orchestration interface according to the detected element adding 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 operation processing on the data to be processed; the algorithm element is used to perform algorithm 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; A second determining unit is configured to determine the connection relationship between the processing elements according to the detected connection operation instructions for the processing elements in the policy visualization orchestration interface; and determine the parameters of the processing elements according to the detected parameter editing instructions for the processing elements in the policy visualization orchestration interface; a generating unit configured to generate and save the policy of the target event according to the processing element, the connection relationship between the processing elements, and the parameters of the processing elements when a policy saving instruction is detected; Wherein, the target element also includes an event input element; The first determination 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; or, to create an event input element when an event input element creation instruction is detected; determine the target event associated with the event input element based on the detected event identification configuration instruction for the event input element; wherein event source information is set in the event input element, and is used to obtain the event message to be processed based on the event source information when the event input element is run; 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.
9. The device according to claim 8, characterized in that The target element further includes an event output element; an output address is set in the event output element, and is used to output data according to the output address when the event output element is running; 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; The second determining unit is specifically configured to parse the event message of the target event and determine the field information included in the event message of the target event 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; For any processing element, the parameters of the processing element are determined according to the parameter editing instruction of the target field in the event message of the target event detected.
10. 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 through the communication bus; A memory for storing a strategy visualization arrangement software program; A processor is used to execute a visual orchestration software program stored in a memory to implement the strategy orchestration method described in any one of claims 1 to 3.
11. A message processing device, characterized in that: include: An acquisition unit, configured to acquire a target element included in the target strategy when an operation instruction for the target strategy is detected; wherein the target strategy is generated by arranging according to the method according to any one of claims 1 to 3; The processing unit is configured to determine the operation order of each processing element according to the connection relationship between the processing elements in the target element, and operate the processing elements according to the operation order, and the operating processing elements use corresponding parameters to process the event message to be processed.
12. The device according to claim 11, 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 also 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 unit reaches the event output element in the target element; The processing unit is specifically configured to stop the operation of any processing element being run and output the event message to be processed to a designated address when it is determined that the event message to be processed does not satisfy the condition for the processing element to output to the next element.
13. 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 through the communication bus; A memory for storing a software program for running the programmed strategy; A processor is used to execute a software program stored in a memory and running the arranged strategy to implement the message processing method described in any one of claims 4 to 7.
14. A message processing system, characterized in that: It includes the policy orchestration device described in claim 10 and the message processing device described in claim 13.
Citation Information
Patent Citations
Decision engine implementation method, device and apparatus and storage medium
CN112148260A