CN110908642B - Policy generation execution method and device - Google Patents

Policy generation execution method and device Download PDF

Info

Publication number
CN110908642B
CN110908642B CN201811074015.7A CN201811074015A CN110908642B CN 110908642 B CN110908642 B CN 110908642B CN 201811074015 A CN201811074015 A CN 201811074015A CN 110908642 B CN110908642 B CN 110908642B
Authority
CN
China
Prior art keywords
strategy
event
action
policy
actions
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811074015.7A
Other languages
Chinese (zh)
Other versions
CN110908642A (en
Inventor
欧阳军
陈丹
王春生
李艳平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bright Oceans Inter Telecom Co Ltd
Original Assignee
Bright Oceans Inter Telecom Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bright Oceans Inter Telecom Co Ltd filed Critical Bright Oceans Inter Telecom Co Ltd
Priority to CN201811074015.7A priority Critical patent/CN110908642B/en
Publication of CN110908642A publication Critical patent/CN110908642A/en
Application granted granted Critical
Publication of CN110908642B publication Critical patent/CN110908642B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a policy generation executing method, which comprises the following steps: defining an event model, the event model describing data formats of different types of events; defining and storing a strategy template, and obtaining and storing a strategy for the strategy template configuration parameters according to requirements, wherein the strategy template comprises events, actions and the relation between the events and the actions; and describing the messages received from the external system as events according to the event model, and executing the strategy on the events in the strategy. The invention also discloses a strategy generation executing device. The invention can flexibly define the strategy template generation strategy by using the event, the action and the relation thereof to form the strategy, thereby realizing the flexible and effective execution of the strategy.

Description

Policy generation execution method and device
Technical Field
The invention relates to the field of telecommunication and computer software, in particular to a strategy generation and execution technology.
Background
In the field of telecommunications, two technologies are generally adopted to define a policy or a rule to solve the problem of fault handling, one is to solve the problem one to one by using a programming method according to requirements, and the other is to define a simple rule by using a rule engine in general, and then implement a fault solution. In summary, both schemes are effective to address a single failure. The first solution is efficient but flexible. The second solution is more flexible. However, the expansibility of both schemes is not very strong, and if a fault needs to be more comprehensively defined, and the fault processing is limited by matching with other systems.
Therefore, a method for flexibly defining policies and diversifying processing policies is urgent.
Disclosure of Invention
The invention discloses a policy generation executing method, which comprises the following steps:
defining an event model, the event model describing data formats of different types of events;
defining and storing a strategy template, and obtaining and storing a strategy for the strategy template configuration parameters according to requirements, wherein the strategy template comprises events, actions and the relation between the events and the actions;
and describing the messages received from the external system as events according to the event model, and executing the strategy on the events in the strategy.
Preferably, the method further comprises:
storing the execution result information of the strategy and the event information of strategy execution;
and updating the strategy after analyzing and optimizing the execution result of the strategy.
Preferably, the method further comprises:
the policy may be a simple policy, which is a policy containing only a single event;
and the corresponding system calls an interface directly connected with the simple strategy, and executes the simple strategy.
Further, the method for defining and storing the policy template specifically comprises the following steps:
defining an event, namely defining a filtering condition of the event, a unique identifier of the event, an event model corresponding to the event and an event source;
defining an action, namely defining a unique identification of the action, an action type, description of the action and a condition for executing the action;
defining rules, namely defining rule attribute information, event information contained in the rules, event preprocessing information, action information associated with the rules, and relationships between events and actions;
defining different types of policy templates according to different applications;
and storing the strategy template and the strategy.
Specifically, the method for executing the policy on the event in the policy according to the event model description of the event received from the external system specifically includes:
describing the messages received from the external system as unified data format events according to the event model;
filtering the event according to the filtering condition of the event in the strategy;
preprocessing the event according to the event preprocessing information in the strategy, wherein the preprocessing comprises variable calculation, correlation inquiry and correlation factor correlation;
and executing rules in the strategy on the event which is preprocessed after filtering.
More specifically, the method for updating the policy after analyzing and optimizing the execution result of the policy is specifically:
detecting the execution condition of the strategy through historical data, and correspondingly judging the result information generated by the strategy through corresponding actual data to determine the accuracy of the strategy;
according to the accuracy of the strategy, adjusting parameters of the strategy;
and storing and updating the strategy of the adjustment parameters.
The invention of the present year also discloses a policy generation executing device, which comprises:
an event model definition unit for defining an event model describing data formats of different types of events;
the system comprises a policy template definition and policy storage unit, a policy management unit and a policy management unit, wherein the policy template definition and policy storage unit is used for defining and storing a policy template, acquiring and storing a policy for the configuration parameters of the policy template according to requirements, and the policy template comprises events, actions and the relation between the events and the actions;
an event acquisition unit for describing a message received from an external system as an event according to the event model defined by the event model definition unit;
and the policy execution unit is used for executing the policy on the event in the policy.
Preferably, the device further comprises:
the result storage unit is used for storing execution result information of the strategy and event information of strategy execution;
the analysis and tuning unit is used for analyzing and tuning the execution result of the strategy; detecting the execution condition of the strategy through historical data, and correspondingly judging the result information generated by the strategy through corresponding actual data to determine the accuracy of the strategy; according to the accuracy of the strategy, adjusting parameters of the strategy;
and the strategy updating unit is used for updating the strategy after the analysis and tuning unit analyzes and tunes.
Preferably:
the strategy can be a simple strategy, and the simple strategy is directly called and executed through an interface directly connected with a corresponding system; the simple policy is a policy that contains only a single event.
Further, the policy template definition and policy storage unit further comprises:
the strategy template definition module is used for defining events, defining actions and defining rules, namely the relationship between the events and the actions; defining an event, namely defining a filtering condition of the event, a unique identifier of the event, an event model corresponding to the event and an event source; defining an action, namely defining a unique identification of the action, an action type, description of the action and a condition for executing the action; defining rules, namely defining rule attribute information, event information contained in the rules, event preprocessing information, action information associated with the rules, and relationships between events and actions;
the strategy acquisition module is used for configuring parameters for the strategy template according to requirements to acquire a strategy;
the storage module is used for storing the strategy template defined by the strategy template definition module and the strategy acquired by the strategy acquisition module;
the policy template definition unit defines different types of policy templates according to different applications.
Preferably:
the event acquisition unit describes the messages received from the external system as uniform data format events according to the event model defined by the event model definition unit.
Specifically, the policy enforcement unit further includes:
the event filtering module is used for filtering the event according to the filtering condition of the event in the strategy acquired by the strategy acquisition module;
the event preprocessing module is used for preprocessing the event according to the event preprocessing information in the strategy acquired by the strategy acquisition module, wherein the preprocessing comprises variable calculation, correlation inquiry and correlation factor correlation;
and the execution module executes rules in the strategy for the event which is preprocessed after filtering.
The method defines the event model, so that different types of events from different systems can be received, and the events are converted into usable events through the event model, so that the sources of the events in the strategy are expanded, and the strategy is wider and comprehensive; by defining the strategy templates, different types of strategies can be generated, so that the strategy generation program is simplified, the efficiency is improved, and the cost is reduced; the strategy is decomposed into events and actions, the relation between the events and the actions is described, and the conditions for triggering the actions can be defined more flexibly; the method for analyzing and optimizing the strategy is also preferred, the strategy after analysis and optimization is stored for convenient subsequent use, the process of analysis and optimization is a self-learning process, and the strategy can be continuously optimized to achieve the best treatment effect through self-learning.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a policy generation executing method according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of a method according to a second embodiment of the present disclosure;
FIG. 3 is a schematic flow chart of a method according to a third embodiment of the present disclosure;
fig. 4 is a schematic flow chart of a method provided in the fourth embodiment of the present application;
FIG. 5 is a schematic flow chart of a method provided in a fifth embodiment of the present application;
fig. 6 is a schematic structural diagram of a policy generation executing device according to a sixth embodiment of the present application;
fig. 7 is a schematic structural diagram of a device according to a seventh embodiment of the present application.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, fig. 1 is a policy generation execution method provided in an embodiment of the present application, where the method includes:
step S101: an event model is defined that describes the data formats of the different types of events.
The event model is a data format describing different types of events. When receiving messages of different types from different applications and different systems, the messages can be described according to the description of the event model to form events which can be identified by the strategy templates. Such as an alarm model, a performance model, or other model may be defined.
Defining an event model is essentially a process of converting data, standardizing the data format of the event, and facilitating subsequent processing.
Step S102: defining and storing a strategy template, and obtaining and storing a strategy for the strategy template configuration parameters according to requirements, wherein the strategy template comprises events, actions and the relation between the events and the actions.
A policy template is defined, i.e., events, actions, and relationships of events and actions that are contained by the policy are defined. The strategy can be generated according to a strategy template, the strategy is disassembled into individual events, actions and the relation between the events and the actions in the strategy template, and the related information of the events can be obtained through the events, wherein the related information comprises event attributes, event models corresponding to the events, filtering conditions and preprocessing information of the events and the like; the related information of the action can be obtained through the action, including the attribute of the action, the triggering condition of the action, the execution object of the action and the like; through the relationship between the event and the action, the relevance of the event and the action can be known.
By disassembling the event and the action, the strategy is more flexible in generating.
And obtaining and storing the strategy according to the configuration parameters of the strategy template, namely giving specific values to the events and actions in the strategy template, and generating the executable strategy.
Step S103: and describing the messages received from the external system as events according to the event model, and executing the strategy on the events in the strategy.
After the event model and the strategy template are well defined, the information of an external system can be received, the information is described by the event model and is changed into the identifiable time for executing the strategy, and the strategy is executed for the event in the strategy according to the relationship among the event, the action and the event action recorded in the strategy.
It should be noted that, the policy configuration is performed according to the actual requirement, and the filtering and preprocessing methods of the configurable events, the execution methods of the actions, and the like are performed.
By defining an event model, events of different types and different services can be accepted, so that event sources required by generating strategies are wider, strategies comprising multiple service types can be generated, meanwhile, the events of different types are described through an event template, the efficiency can be improved, and a large amount of data can be processed; the defined strategy template splits the strategy into events, actions, relations of the events and the actions, and the strategy is generated more flexibly after parameters are configured for the strategy template.
In the network management system of the NFV, a large number of alarm performance events exist, and a large number of requirements for carrying out association analysis on the events and subsequent tracking after association processing exist, so that the strategy generation execution method provided by the invention is suitable for strategy processing in the scene of the NFV. Meanwhile, the strategy generation execution method provided by the invention can be expanded to not only NFV network management systems, but also be applied to all scenes of similar event processing.
In order to better describe the policy generation and execution method of the present invention, in order to reuse the current policy and continuously optimize and adjust the policy according to the execution situation of the policy, a second embodiment of the present invention is provided, as shown in fig. 2.
Step S201: an event model is defined that describes the data formats of the different types of events.
Step S202: defining and storing a strategy template, and obtaining and storing a strategy for the strategy template configuration parameters according to requirements, wherein the strategy template comprises events, actions and the relation between the events and the actions.
Step S203: and describing the messages received from the external system as events according to the event model, and executing the strategy on the events in the strategy.
Step S204: and storing the execution result information of the strategy and the event information of strategy execution.
And storing the execution result information of the strategy, wherein the execution result information is used for judging the advantages and disadvantages of the strategy and the effects generated after the strategy is executed.
Step S205: and updating the strategy after analyzing and optimizing the execution result of the strategy.
The method can support machine learning and mining analysis of various data source data through data analysis, intelligently extract and formulate strategy rules of the data analysis, and simultaneously support mining analysis of historical execution results of the existing strategies, intelligently adjust relevant parameters of the optimized activation strategy, realize optimization promotion of the strategy, and continuously improve the execution effect of the strategy.
To better illustrate the process of generating policies by the policy templates, an embodiment three is given below in connection with an example, as shown in fig. 3.
Defining policy templates includes defining events, defining actions, defining rules.
Different types of policy templates are defined according to different applications.
Step S301: defining the event, namely defining the filtering condition of the event, the unique identification of the event, the event model corresponding to the event and the event source.
The filtering condition of the event is to filter the event according to the condition, and the time meeting the execution requirement of the strategy is screened from the event, so that the event can be filtered through the unique identifier and the name of the event in general, other key characteristics can be defined to filter the event, and the event can be flexibly set in practical application.
The event can be found by its unique identification.
The data format of the event can be known through the event model corresponding to the event.
The event source may be a channel name, a file name.
Step S302: defining an action, namely defining a unique identification of the action, an action type, a description of the action and a condition for executing the action.
The action is known by its unique identification.
The action type may be defined according to the kind of action, and different types of actions are represented using symbols or identifications, for example, 0 represents actions self-described by rules, 1 represents external actions, etc.
Description of the action refers to description information of the action and description information of execution of the action, for example, in the case of action type=0, there are two actions of alarm association relation action and derived alarm generation at present, only action names, assignment and the like are described in rules at the time of action instantiation. When the action type=1, the external action is called, and the class name, the method name or the interface name of the action can be described, and the specific description mode discusses the decision again.
The condition for executing the action may be to set some condition, and the execution of the action is triggered when the condition is satisfied.
Step S303: defining rules, namely defining rule attribute information, event information contained in the rules, event preprocessing information, action information associated with the rules, and relationships between events and actions.
The rule attribute information contains the ID, name, and the like of the rule.
The event information contained in the rule contains the name of the event in the rule, and a unique value is generated by the rule name and the event name; the rule event alias is mainly defined and used in conditions and associated actions; event conditions, describing conditional expressions of whether the event can be satisfied in the rule, such as:
“<condition>
< -! [ CDATA [ alarm definition Condition support: matches, =, ++! =, & &, |, (, standard drools grammar ] ] >
</condition>”;
Event life cycle, which represents the life cycle value of the event after entering the rule; event variables, variable values for event preprocessing may be set, and these variables may be applied in the associated actions such as: < key name = "re1_a" type = "reg" > alarm_text = -/IDENTIFICATION = \s (\s+)/</key >;
the action information associated with the rule includes the type of action, the name of the action, the action description, and the like.
The action name associated with the rule is generated by the rule name and the action name; when the associated actions are a group, the sequence numbers of the associated actions are included to indicate the execution order of the actions.
The relationship of an action to an event contains a description of which event performs which actions.
The name of the rule association action is an association mode executed when the condition of the event is satisfied, and if the rule association action is successful, the rule association action is executed and is equivalent to the case of the event; the association condition sets the association condition of the action event and can support the association conditions of various grammar descriptions.
Step S304: the policy template is stored.
Step S305: and configuring the specific values of the defined events, actions and rules according to the requirements, generating a strategy and storing the strategy.
The policy template is provided with events, actions and rules, and each related attribute value is configured into the policy template according to actual requirements, so that a policy is generated.
The policy is stored.
The policy may be a simple policy, which is a policy that contains only a single event.
And the corresponding system calls an interface directly connected with the simple strategy, and executes the simple strategy.
Simple policies store rules, events in rules, policy conditions, action names, action types, action descriptions, etc.
Wherein the policy conditions are descriptions of conditional expressions in the policy.
The simple strategy is a strategy for executing a single event faster and better, so that time is saved and efficiency is improved.
By the method for defining the strategy templates and generating the strategies, the events and actions in the strategies are defined in detail, and the strategies are disassembled one by one, so that the purpose of comprehensively, detailed and flexible defining the strategies is achieved.
In a fourth embodiment of the present invention, a process of executing a policy, which is shown in fig. 4, is described in detail as to how to receive an event.
Step S401: and describing the messages received from the external system as uniform data format events according to the event model.
Step S402: and filtering the event according to the filtering condition of the event in the strategy.
Filtering the event based on the defined strategy, namely, finding out the event related to the defined strategy in the event; the filtering can be performed in multiple ways, such as forward (condition passing) and reverse (condition discarding).
Step S403: and preprocessing the event according to the event preprocessing information in the strategy, wherein the preprocessing comprises variable calculation, correlation inquiry and correlation factor correlation.
A series of preprocessing calculation can be carried out on the event according to the requirement, and various complex operations can be carried out based on preprocessing, so that a foundation is laid for efficient processing of the association calculation.
The preprocessing event is to prepare for policy processing execution in advance, and a single event with complex system is preprocessed correspondingly, so that the efficiency of policy execution can be improved due to the distributed process operation. At the same time, preprocessing events can be defined, so that the flexibility and diversity of the whole strategy definition are enhanced. The processing flow in the preprocessing can be realized by external calculation through a custom script or the like.
For example: the correlation factor of the event, namely a certain value of the event correlation, which can be obtained through a series of calculation or calculation of values of a query database, after the calculation method of the event is defined, the preprocessing module calculates the correlation factor in advance when receiving the event and determining that the event accords with the strategy, and the correlation factor is used for correlation when the strategy is correlated.
Step S404: and executing rules in the strategy on the event which is preprocessed after filtering.
Policies may be enforced by the enforcement engine.
The simple strategy can be directly interfaced with the corresponding system, and the external system can return the strategy executing result by calling the strategy interface to execute.
The automatic configuration execution is also a kind of policy execution, and a type execution method of actions can be defined in the policy configuration, and the like, and an external system can be mainly called to execute the policy actions of the corresponding interfaces, so that the purpose of policy execution is achieved.
The execution of the strategy by the script engine is more flexible, when the strategy processing is very complex to execute, the strategy can be realized by writing based on java or a groovy script and then can be embedded into the strategy execution engine for execution.
In the fifth embodiment of the present invention, an analysis optimization method for an analysis strategy is disclosed, as shown in fig. 5, where the method includes the following steps:
step S501: detecting the execution condition of the strategy through historical data, and correspondingly judging the result information generated by the strategy through corresponding actual data to determine the accuracy of the strategy.
The Hadoop big data platform is used for analyzing various data through different algorithms, intelligent creation and optimization of analysis strategies are achieved, analysis and judgment can be carried out from multiple dimensions according to service requirements, and for example, alarm data strategy analysis, performance prediction strategy analysis and flow prediction strategy analysis are achieved.
Step S502: and adjusting parameters of the strategy according to the accuracy of the strategy.
And according to the accuracy of the set parameter standard judging strategy, storing the executed strategy into a database to form a historical strategy, judging the adjustment target of the parameter according to the execution result of the historical strategy, and further adjusting the parameter.
Step S503: and storing and updating the strategy of the adjustment parameters.
Through analysis and optimization of the strategy, the aim of optimizing the strategy can be achieved, and more accurate results can be obtained when the strategy is executed in the future.
The sixth embodiment of the invention discloses a policy generation executing device, as shown in fig. 6:
an event model definition unit 1 for defining an event model describing the data formats of different types of events.
And the policy template definition and policy storage unit 2 is used for defining and storing a policy template, and obtaining and storing a policy for the policy template configuration parameters according to requirements, wherein the policy template comprises events, actions and the relationship between the events and the actions.
An event acquisition unit 3 for describing the message received from the external system as an event according to the event model defined by the event model definition unit.
And the policy execution unit 4 is used for executing the policy on the event in the policy.
The seventh embodiment of the invention further discloses a policy generation executing device, as shown in fig. 7:
an event model definition unit 1 for defining an event model describing the data formats of different types of events.
The policy template definition and policy storage unit 2 further comprises:
the policy template definition module 21 is used for defining events, defining actions, and defining rules, namely the relationship between events and actions.
Defining an event, namely defining a filtering condition of the event, a unique identifier of the event, an event model corresponding to the event and an event source; defining an action, namely defining a unique identification of the action, an action type, description of the action and a condition for executing the action; defining rules, namely defining rule attribute information, event information contained in the rules, event preprocessing information, action information associated with the rules, and relationships between events and actions.
And the policy obtaining module 22 is configured to configure parameters for the policy template according to requirements to obtain a policy.
The storage module 23 is configured to store the policy template defined by the policy template definition module, and the policy acquired by the policy acquisition module.
The strategy can be a simple strategy, and the simple strategy is directly called and executed through an interface directly connected with a corresponding system; the simple policy is a policy that contains only a single event.
The policy template definition unit defines different types of policy templates according to different applications.
An event acquisition unit 3 for describing the message received from the external system as an event according to the event model defined by the event model definition unit.
The event acquisition unit describes the messages received from the external system as uniform data format events according to the event model defined by the event model definition unit.
The policy enforcement unit 4 further comprises:
the event filtering module 41 is configured to filter the event according to the filtering condition of the event in the policy acquired by the policy acquiring module.
The event preprocessing module 42 is configured to preprocess the event according to the event preprocessing information in the policy acquired by the policy acquisition module, where the preprocessing includes variable computation, correlation query, and correlation factor correlation.
The execution module 43 executes the rules in the policy for the event that has been preprocessed after filtering.
And a result storage unit 5 for storing execution result information of the policy and event information of policy execution.
The analysis tuning unit 6 is used for analyzing and tuning the execution result of the strategy; detecting the execution condition of the strategy through historical data, and correspondingly judging the result information generated by the strategy through corresponding actual data to determine the accuracy of the strategy; and adjusting parameters of the strategy according to the accuracy of the strategy.
And the strategy updating unit 7 is used for updating the strategy after the analysis and tuning by the analysis and tuning unit.
It will be apparent to those skilled in the art that, for convenience and brevity of description, reference may be made to the foregoing method steps for the specific corresponding operation of the systems, units and units described above, and their descriptions are omitted here.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (7)

1. A policy generation enforcement method, the method comprising:
defining an event model, the event model describing data formats of different types of events;
defining and storing a strategy template, and obtaining and storing a strategy for the strategy template configuration parameters according to requirements, wherein the strategy template comprises events, actions and the relation between the events and the actions;
describing the message received from the external system as an event according to the event model, and executing the strategy on the event in the strategy;
the method for defining and storing the policy templates specifically comprises the following steps:
defining an event, namely defining a filtering condition of the event, a unique identifier of the event, an event model corresponding to the event and an event source;
defining an action, namely defining a unique identification of the action, an action type, description of the action and a condition for executing the action;
defining rules, namely defining rule attribute information, event information contained in the rules, event preprocessing information, action information associated with the rules, and relationships between events and actions;
defining different types of policy templates according to different applications; the strategy template is provided with events, actions and rules, and each attribute value is configured into the strategy template according to actual requirements, so that a strategy is generated;
storing the policy template and the policy;
the action type is defined according to the type of the action, and different types of actions are represented by using symbols or marks; wherein, the action type of 0 represents the action self-described by the rule, comprising two actions of alarm association relation action and derivative alarm generation; an action type of 1 indicates that the external action includes invoking the external action; the description of the action refers to the description information of the action and the description information of the execution of the action; describing an action name when the action type is 0; describing class names or method names or interface names of the actions when the action type is 1;
the condition for executing the action is that the execution of the action is triggered when the condition is satisfied; the action information associated with the rule comprises the type of the action, the name of the action and the action description; the name of the rule association action is generated by the rule name and the action name; when the associated actions are taken as a group, the method also comprises a serial number of the associated actions, which indicates the execution sequence of the actions; the relationship of an action and an event contains a description of which event performs which actions; the name of the rule association action is an association mode executed when the event condition is satisfied; association conditions, setting association conditions of action events, the association conditions supporting various grammar descriptions,
the method for executing the strategy on the event in the strategy specifically comprises the following steps of:
describing the messages received from the external system as unified data format events according to the event model;
filtering the event according to the filtering condition of the event in the strategy;
preprocessing the event according to the event preprocessing information in the strategy, wherein the preprocessing comprises variable calculation, correlation inquiry and correlation factor correlation;
and executing rules in the strategy on the event which is preprocessed after filtering.
2. The method according to claim 1, wherein the method further comprises:
storing the execution result information of the strategy and the event information of strategy execution;
and updating the strategy after analyzing and optimizing the execution result of the strategy.
3. The method according to claim 2, wherein the method further comprises:
the policy is a simple policy, which is a policy containing only a single event;
and the corresponding system calls an interface directly connected with the simple strategy, and executes the simple strategy.
4. The method according to claim 2, wherein the method for updating the policy after analyzing and optimizing the execution result of the policy specifically comprises:
detecting the execution condition of the strategy through historical data, and correspondingly judging the result information generated by the strategy through corresponding actual data to determine the accuracy of the strategy;
according to the accuracy of the strategy, adjusting parameters of the strategy;
the policies of the tuning parameters are stored and updated.
5. A policy generation execution device, characterized in that:
an event model definition unit for defining an event model describing data formats of different types of events;
the system comprises a policy template definition and policy storage unit, a policy management unit and a policy management unit, wherein the policy template definition and policy storage unit is used for defining and storing a policy template, acquiring and storing a policy for the configuration parameters of the policy template according to requirements, and the policy template comprises events, actions and the relation between the events and the actions;
an event acquisition unit for describing a message received from an external system as an event according to the event model defined by the event model definition unit;
a policy execution unit, configured to execute the policy on an event in the policy;
wherein the policy template definition and policy storage unit comprises:
the strategy template definition module is used for defining events, defining actions and defining rules, namely the relationship between the events and the actions; defining an event, namely defining a filtering condition of the event, a unique identifier of the event, an event model corresponding to the event and an event source; defining an action, namely defining a unique identification of the action, an action type, description of the action and a condition for executing the action; defining rules, namely defining rule attribute information, event information contained in the rules, event preprocessing information, action information associated with the rules, and relationships between events and actions;
the action type is defined according to the type of the action, and different types of actions are represented by using symbols or marks; wherein, the action type of 0 represents the action self-described by the rule, comprising two actions of alarm association relation action and derivative alarm generation; an action type of 1 indicates that the external action includes invoking the external action; the description of the action refers to the description information of the action and the description information of the execution of the action; describing an action name when the action type is 0; describing class names or method names or interface names of the actions when the action type is 1;
the condition for executing the action is that the execution of the action is triggered when the condition is satisfied; the action information associated with the rule comprises the type of the action, the name of the action and the action description; the name of the rule association action is generated by the rule name and the action name; when the associated actions are taken as a group, the method also comprises a serial number of the associated actions, which indicates the execution sequence of the actions; the relationship of an action and an event contains a description of which event performs which actions; the name of the rule association action is an association mode executed when the event condition is satisfied; association conditions for setting association conditions for action events, the association conditions supporting multiple grammar descriptions
The strategy acquisition module is used for configuring parameters for the strategy template according to requirements to acquire a strategy; the strategy template is provided with events, actions and rules, and each attribute value is configured into the strategy template according to actual requirements, so that a strategy is generated;
the storage module is used for storing the strategy template defined by the strategy template definition module and the strategy acquired by the strategy acquisition module;
the policy template definition unit defines different types of policy templates according to different applications,
the event acquisition unit is used for describing the information received from the external system as a unified data format event according to the event model; and is also provided with
The policy enforcement unit further comprises:
the event filtering module is used for filtering the event according to the filtering condition of the event in the strategy;
the event preprocessing module is used for preprocessing the event, wherein the preprocessing comprises variable calculation, correlation inquiry and correlation factor correlation;
and the execution module is used for executing rules in the strategy on the event which is preprocessed after filtering.
6. The apparatus of claim 5, wherein the apparatus further comprises:
the result storage unit is used for storing execution result information of the strategy and event information of strategy execution;
the analysis and tuning unit is used for analyzing and tuning the execution result of the strategy; detecting the execution condition of the strategy through historical data, and correspondingly judging the result information generated by the strategy through corresponding actual data to determine the accuracy of the strategy; according to the accuracy of the strategy, adjusting parameters of the strategy;
and the strategy updating unit is used for updating the strategy after the analysis and tuning unit analyzes and tunes.
7. The apparatus according to claim 6, wherein:
the strategy is a simple strategy, and the simple strategy is directly called and executed through an interface directly connected with a corresponding system; the simple policy is a policy that contains only a single event.
CN201811074015.7A 2018-09-14 2018-09-14 Policy generation execution method and device Active CN110908642B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811074015.7A CN110908642B (en) 2018-09-14 2018-09-14 Policy generation execution method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811074015.7A CN110908642B (en) 2018-09-14 2018-09-14 Policy generation execution method and device

Publications (2)

Publication Number Publication Date
CN110908642A CN110908642A (en) 2020-03-24
CN110908642B true CN110908642B (en) 2024-04-05

Family

ID=69812569

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811074015.7A Active CN110908642B (en) 2018-09-14 2018-09-14 Policy generation execution method and device

Country Status (1)

Country Link
CN (1) CN110908642B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111738763B (en) * 2020-06-19 2024-04-19 京东科技控股股份有限公司 Policy processing method, device, equipment and storage medium
CN114240456B (en) * 2021-12-10 2023-05-19 北京质云数据科技有限公司 Vehicle quality complaint information collection platform based on mobile phone APP

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004002062A1 (en) * 2002-06-24 2003-12-31 Siemens Aktiengesellschaft A policy management method and system
CN101141295A (en) * 2007-03-02 2008-03-12 中兴通讯股份有限公司 Strategy management method
CN106506654A (en) * 2016-11-18 2017-03-15 国云科技股份有限公司 A kind of policy template implementation method of high flexibility
CN107993150A (en) * 2017-12-28 2018-05-04 武汉楚鼎信息技术有限公司 A kind of method and system device of quantization strategy operation state tune ginseng
CN108021809A (en) * 2017-12-19 2018-05-11 北京明朝万达科技股份有限公司 A kind of data processing method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004002062A1 (en) * 2002-06-24 2003-12-31 Siemens Aktiengesellschaft A policy management method and system
CN101141295A (en) * 2007-03-02 2008-03-12 中兴通讯股份有限公司 Strategy management method
CN106506654A (en) * 2016-11-18 2017-03-15 国云科技股份有限公司 A kind of policy template implementation method of high flexibility
CN108021809A (en) * 2017-12-19 2018-05-11 北京明朝万达科技股份有限公司 A kind of data processing method and system
CN107993150A (en) * 2017-12-28 2018-05-04 武汉楚鼎信息技术有限公司 A kind of method and system device of quantization strategy operation state tune ginseng

Also Published As

Publication number Publication date
CN110908642A (en) 2020-03-24

Similar Documents

Publication Publication Date Title
CN109684053B (en) Task scheduling method and system for big data
US7834875B2 (en) Method and system for automatically assembling stream processing graphs in stream processing systems
US8838777B2 (en) Web service management
CN106886558B (en) Data processing method and server
CN103138981A (en) Method and device for social network service analysis
CN110908642B (en) Policy generation execution method and device
CN110781180A (en) Data screening method and data screening device
CN114338746A (en) Analysis early warning method and system for data collection of Internet of things equipment
CN110730220B (en) Intelligent scheduling method and device based on system current business capability integration
CN115529232A (en) Control method and device for convergence and distribution equipment and storage medium
EP3665623A1 (en) Multi-platform model processing and execution management engine
CN110807542A (en) Method, apparatus and computer readable storage medium for intelligently orchestrating system business capabilities
CN113098854B (en) Task arranging method, system, storage medium and electronic equipment
CN113326523A (en) Privacy calculation method and device and electronic equipment
CN114004708A (en) Risk control method and device for business system
US10481836B2 (en) Machine learning method and system for predicting file controls
CN108121545A (en) The unloading feedback method and device of application program
CN213126061U (en) Neural network flow prediction device based on controller
CN108805462A (en) The method and device of distribution Risk-warning, storage medium, processor
CN110971664B (en) Interface service management system
CN114356712A (en) Data processing method, device, equipment, readable storage medium and program product
CN117406960A (en) Low-code social data computing platform and device for agile analysis scene
CN117371773A (en) Business process arranging method, device, electronic equipment and medium
CN112632113B (en) Operator management method and operator management system
CN114219305B (en) Method and system for enhancing stability of network vehicle-closing wind control system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant