CN112532485B - Service detection control method and device, electronic equipment and readable storage medium - Google Patents

Service detection control method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN112532485B
CN112532485B CN202011364567.9A CN202011364567A CN112532485B CN 112532485 B CN112532485 B CN 112532485B CN 202011364567 A CN202011364567 A CN 202011364567A CN 112532485 B CN112532485 B CN 112532485B
Authority
CN
China
Prior art keywords
event
judgment
index
rule
service
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
CN202011364567.9A
Other languages
Chinese (zh)
Other versions
CN112532485A (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.)
Beijing Didi Infinity Technology and Development Co Ltd
Original Assignee
Beijing Didi Infinity Technology and Development 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 Beijing Didi Infinity Technology and Development Co Ltd filed Critical Beijing Didi Infinity Technology and Development Co Ltd
Priority to CN202011364567.9A priority Critical patent/CN112532485B/en
Publication of CN112532485A publication Critical patent/CN112532485A/en
Application granted granted Critical
Publication of CN112532485B publication Critical patent/CN112532485B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications

Abstract

The embodiment of the invention provides a service detection control method, a device, electronic equipment and a readable storage medium, relating to the technical field of computers, in the embodiment of the present invention, the service detection control system may monitor each link node in the service link, and if an index event of the link node is triggered, the service detection control system may cache event data corresponding to the index event, if a determination event of the link node is triggered, the service detection control system can perform rule judgment according to the event data of each index event corresponding to the judgment event to realize service detection control, in the process, because the service detection control system can integrate the event data of a plurality of link nodes to judge the service logic, therefore, the service detection control system in the embodiment of the invention has the capability of comprehensive judgment, and can ensure that the consistency and the correctness of data flow in a service link are timely detected, controlled and early warned.

Description

Service detection control method and device, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for controlling service detection, an electronic device, and a readable storage medium.
Background
At present, based on the development of internet technology, more and more online services are applied to various industries, wherein each specific service may be a service link in the process of using the online service by a user, for example, when the user uses a network car-booking service, one service link of the network car-booking service may be: the method comprises the steps of positioning a current position, determining a destination position, selecting a vehicle type, issuing an order, determining getting on, determining getting off, paying and evaluating an order, wherein each specific action can be a link node in the service link.
In the related art, in order to detect whether each link node in the control service link correctly completes the service logic that should be completed, a detection control service may be provided at each node, for example, at a payment node, whether the user correctly pays.
However, in the related art, the detection control services are not related to each other, so that an obvious fault exists between the detection control services, and the consistency and correctness of data flow in a service link cannot be detected, controlled and early warned in time.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for controlling service detection, an electronic device, and a readable storage medium, so as to ensure that consistency and correctness of data flow in a service link are timely detected, controlled, and early-warned.
In a first aspect, a traffic detection control method is provided, where the method is applied to an event engine, and the method includes:
for each link node in a service link, responding to the triggering of an index event of any link node, and caching event data corresponding to the index event, wherein the event data is used when at least one corresponding judgment event carries out rule judgment; and
and responding to the triggering of a judgment event of any link node, and calling a rule engine to enable the rule engine to perform rule judgment on each index event corresponding to the judgment event and execute preset operation based on a preset judgment rule and event data of each index event corresponding to the judgment event.
In a second aspect, a traffic detection control method is provided, where the method is applied to a rule engine, and the method includes:
in response to receiving a call instruction sent by an event engine when a judgment event of any link node is triggered, acquiring event data of each index event corresponding to the judgment event, wherein the event data is used when rule judgment is carried out on at least one corresponding judgment event;
carrying out rule judgment on each index event corresponding to a judgment event based on a preset judgment rule and event data of each index event corresponding to the judgment event; and
and executing corresponding preset operation according to the result of the rule judgment.
In a third aspect, a method for controlling service detection is provided, where the method is applied to a service detection control system, and the method includes:
for each link node in a service link, responding to the triggering of an index event of any link node, and caching event data corresponding to the index event, wherein the event data is used when at least one corresponding judgment event carries out rule judgment; and
responding to the triggering of a judgment event of any link node, and acquiring event data of each index event corresponding to the judgment event; carrying out rule judgment on each index event corresponding to a judgment event based on a preset judgment rule and event data of each index event corresponding to the judgment event; and executing corresponding preset operation according to the result of the rule judgment.
In a fourth aspect, a service detection control system is provided, the system including:
the event engine is configured to execute, aiming at each link node in a service link, responding to the triggering of an index event of any link node, caching event data corresponding to the index event, wherein the event data is used when at least one corresponding judgment event carries out rule judgment; responding to the trigger of the judgment event of any link node, and calling a rule engine;
the rule engine is configured to execute a calling instruction sent by the event engine when a judgment event of any link node is triggered, and acquire event data of each index event corresponding to the judgment event; carrying out rule judgment on each index event corresponding to a judgment event based on a preset judgment rule and event data of each index event corresponding to the judgment event; and executing corresponding preset operation according to the result of the rule judgment.
In a fifth aspect, a service detection control apparatus is provided, where the apparatus is applied to a service detection control system, and the apparatus includes:
the event processing device is used for responding to the triggering of an index event of any link node aiming at each link node in a service link and caching event data corresponding to the index event, wherein the event data is used when at least one corresponding judgment event carries out rule judgment; and
the rule processing device is used for responding to the triggering of a judgment event of any link node and acquiring event data of each index event corresponding to the judgment event; carrying out rule judgment on each index event corresponding to a judgment event based on a preset judgment rule and event data of each index event corresponding to the judgment event; and executing corresponding preset operation according to the result of the rule judgment.
In a sixth aspect, an embodiment of the present invention provides an electronic device, including a memory and a processor, the memory being configured to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method according to the first to third aspects.
In a seventh aspect, an embodiment of the present invention provides a computer-readable storage medium on which computer program instructions are stored, the computer program instructions, when executed by a processor, implementing the method according to the first to third aspects.
In the embodiment of the present invention, the service detection control system may monitor each link node in the service link, and if an index event of the link node is triggered, the service detection control system may cache event data corresponding to the index event, if a determination event of the link node is triggered, the service detection control system can perform rule judgment according to the event data of each index event corresponding to the judgment event to realize service detection control, in the process, since the service detection control system can integrate the event data of a plurality of link nodes to judge the service logic, therefore, the service detection control system in the embodiment of the invention has the capability of comprehensive judgment, and compared with an independent judgment mode in the related technology, the embodiment of the invention can ensure that the consistency and the correctness of data flow in a service link are timely detected, controlled and early warned.
Drawings
The above and other objects, features and advantages of the embodiments of the present invention will become more apparent from the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:
fig. 1 is a schematic diagram of a service detection control system according to an embodiment of the present invention;
fig. 2 is a flowchart of a service detection control method according to an embodiment of the present invention;
fig. 3 is a flowchart of another service detection control method according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a relationship between an event engine and a rules engine according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a corresponding relationship between an index event and a judgment event according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a rule determination process according to an embodiment of the present invention;
FIG. 7 is an exemplary flow chart for providing a decision rule according to an embodiment of the present invention;
fig. 8 is an exemplary diagram illustrating a service detection control process according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a service detection control apparatus according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The present invention will be described below based on examples, but the present invention is not limited to only these examples. In the following detailed description of the present invention, certain specific details are set forth. It will be apparent to one skilled in the art that the present invention may be practiced without these specific details. Well-known methods, procedures, flows, components and circuits have not been described in detail so as not to obscure the present invention.
Further, those of ordinary skill in the art will appreciate that the drawings provided herein are for illustrative purposes and are not necessarily drawn to scale.
Unless the context clearly requires otherwise, throughout the description, the words "comprise", "comprising", and the like are to be construed in an inclusive sense as opposed to an exclusive or exhaustive sense; that is, what is meant is "including, but not limited to".
In the description of the present invention, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present invention, "a plurality" means two or more unless otherwise specified.
Currently, more and more online services are applied to various industries, wherein, in the process of using the online services, each specific service may be a service link, that is, a service flow with a predetermined execution sequence, for example, when a user uses a network car-booking service, one service link of the network car-booking service may be: the method comprises the steps of positioning the current position, determining the position of a destination, selecting a vehicle type, issuing an order, determining getting on, determining getting off, paying and evaluating an order, wherein each specific action can be a link node in a service link, namely each specific action can be a service node in a service flow.
In the related art, in order to detect whether each link node in the service link completes the service logic that should be completed correctly, a detection control service may be set at each node, for example, whether a user pays correctly at a payment node, however, in the related art, there is no correlation between each detection control service, so that there is an obvious fault between each detection control service, and further, the consistency and correctness of data flow in the service link cannot be detected, controlled and early-warned in time.
For example, traffic link a includes: a1, the service side distributes the coupons to the user side; a2, prompting the user to use the coupon; a3, user payment; a4, prompt of payment success. In the related art, because the existing detection control service only targets at an individual link node, when the detection control service performs detection control on the a3 node, the detection control service cannot detect whether a control user holds a coupon and whether the user meets a condition for using the coupon, and further, when the user can use the coupon but does not use the coupon for payment, the existing detection control service does not perform alarm reminding (that is, the existing detection control service only detects whether the user successfully pays, and at this time, the user may suffer from a loss caused by the unused coupon, and at the same time, the user may not trust the service platform.
In order to solve the above problem, an embodiment of the present invention provides a service detection control system, as shown in fig. 1, the system specifically includes: the system comprises terminal equipment 1, a server 2 and a service detection control system 3.
The terminal device 1 may be a terminal device such as a smart phone, a tablet Computer, or a Personal Computer (PC), and the server 2 may be a single server, a server cluster configured in a distributed manner, or a cloud server. When the server 2 provides a service for the terminal device 1, the terminal device 1 and the server 2 may communicate with each other through a network.
The service detection control system 3 may be a service detection control system (i.e., the connection mode a in fig. 1) disposed in the terminal device 1, the service detection control system 3 may also be a service detection control system (i.e., the connection mode b in fig. 1) disposed in the service end 2, and the service detection control system 3 may also be disposed in a separate device and detect and control a service flow through a network (i.e., the connection mode c in fig. 1).
Specifically, when the service end 2 provides a service for the terminal device 1, the terminal device 1 may execute a service process (a service link) according to a predetermined execution sequence, and each time the terminal device 1 executes a predetermined operation of a link node in the service link, may trigger an event (an index event and/or a judgment event) set at the link node by the service detection control system 3, where the index event is used to cache event data related to the operation of the terminal device 1 at the link node, and the judgment event is used to perform rule judgment according to the event data corresponding to the index event, so as to determine whether a service logic of the service link is normal.
The service detection control system 3 includes an event engine 3.1 and a rule engine 3.2, where the event engine 3.1 is configured to monitor an event (index event and/or judgment event) triggered by each link node in the service link, if the triggered event is the index event, the event engine 3.1 may store event data corresponding to the index event in a classified manner, if the triggered event is the judgment event, the event engine 3.1 may invoke the rule engine 3.2 to perform rule judgment, and the rule engine 3.2 may perform rule judgment according to a preset rule to determine whether the service logic of the service link is normal.
A detailed description will be given below of a service detection control method provided in an embodiment of the present invention, which is applied to the service detection control system 3 in fig. 1.
Specifically, as shown in fig. 2, the event engine in the service detection control system may perform the following steps:
in step 21, for each link node in the service link, in response to an index event of any link node being triggered, event data corresponding to the index event is cached.
The event data is data used when the rule judgment is performed on the corresponding at least one judgment event.
In step 22, in response to the determination event of any link node being triggered, the rule engine is invoked, so that the rule engine performs rule determination on each index event corresponding to the determination event and executes a predetermined operation based on a preset determination rule and event data of each index event corresponding to the determination event.
Accordingly, as shown in fig. 3, the rule engine in the traffic detection control system may perform the following steps:
in step 31, in response to receiving a call instruction sent by the event engine when a judgment event of any link node is triggered, event data of each index event corresponding to the judgment event is acquired.
In step 32, rule determination is performed on each index event corresponding to the determination event based on a determination rule set in advance and event data of each index event corresponding to the determination event.
In step 33, the corresponding predetermined operation is performed according to the result of the rule judgment.
In summary, from the perspective of the service detection control system, the service detection control system may perform as follows:
for each link node in a service link, responding to the triggering of an index event of any link node, and caching event data corresponding to the index event; and
responding to the triggering of a judgment event of any link node, and acquiring event data of each index event corresponding to the judgment event; carrying out rule judgment on each index event corresponding to the judgment event based on a preset judgment rule and event data of each index event corresponding to the judgment event; and executing corresponding preset operation according to the result of the rule judgment.
In combination with the steps executed by the event engine and the rule engine, in the embodiment of the present invention, the service detection control system may monitor each link node in the service link, and if an index event of a link node is triggered, the service detection control system may cache event data corresponding to the index event, and if a determination event of the link node is triggered, the service detection control system can perform rule judgment according to the event data of each index event corresponding to the judgment event to realize service detection control, in the process, since the service detection control system can integrate the event data of a plurality of link nodes to judge the service logic, therefore, the service detection control system in the embodiment of the invention has the capability of comprehensive judgment, and compared with an independent judgment mode in the related technology, the embodiment of the invention can ensure that the consistency and the correctness of data flow in a service link are timely detected, controlled and early warned.
Referring to fig. 1, a relationship between an event engine 3.1 and a rule engine 3.2 in fig. 1 is now explained, as shown in fig. 4, fig. 4 is a schematic diagram of a relationship between an event engine and a rule engine according to an embodiment of the present invention, where the schematic diagram includes: event engine 3.1, rules engine 3.2, event data and decision events.
As shown in fig. 4, when the indicator event is triggered (as a data flow direction indicated by a solid arrow in fig. 4), the event engine 3.1 may obtain event data corresponding to the indicator event (that is, operation data of a user on a corresponding link node), and then the event engine 3.1 may cache the event data to a storage area corresponding to the judgment event, so that the rule engine 3.2 may obtain the event data when the rule judges.
As shown in fig. 4, when the determination event is triggered (as the data flow direction indicated by the dashed arrow in fig. 4), the event engine 3.1 may invoke the rule engine 3.2 to perform rule determination, and after the rule engine 3.2 is invoked, the event data cached in the corresponding determination event storage area may be acquired, and then, based on the acquired event data and the predetermined rule, the rule determination is performed.
It should be further explained that the service link is used to represent the service flow with the predetermined execution sequence, the link node is used to represent the service node in the service flow with the predetermined execution sequence, and the index event and the determination event are triggered when the operation data occurs in the corresponding service node.
When an index event of a link node is triggered, an event engine in the service detection control system may cache event data corresponding to the index event, and specifically, the event engine in the service detection control system may perform: determining each judgment event corresponding to the index event, and caching the event data corresponding to the index event into a storage area corresponding to each judgment event.
As shown in fig. 5, fig. 5 is a schematic diagram of a corresponding relationship between an index event and a judgment event according to an embodiment of the present invention, where the schematic diagram includes: index event 1, index event 2, index event 3, index event 4, judgment event 1, and judgment event 2.
In fig. 5, the connection line between the index event and the judgment event is used to represent the corresponding relationship between the index event and the judgment event, as can be seen from fig. 5, judgment event 1 corresponds to index events 1-3, and judgment event 2 corresponds to index events 3 and 4.
That is, when the service detection control system of the embodiment of the present invention performs service detection control, after determining that the event 1 is triggered, the rule engine of the service detection control system calls the event data corresponding to the index events 1-3, then based on the event data corresponding to the index events 1-3 and the preset judgment rule for judging the event 1, judging whether the partial service link formed by the link nodes corresponding to the index events 1-3 accords with the service logic, and after the judgment event 2 is triggered, the rule engine of the traffic detection control system will retrieve event data corresponding to each of index events 3 and 4, and then, judging whether a part of service links formed by link nodes corresponding to the index events 3 and 4 conform to service logic or not based on the event data corresponding to the index events 3 and 4 and a preset judgment rule for judging the event 2.
It should be noted that, as shown in fig. 5, one judgment event may correspond to multiple index events, and one index event may also correspond to multiple judgment events, and when an event engine in the service detection control system caches event data of an index event, if the index event corresponds to multiple judgment events, the event engine may cache one copy of event data of the index event for each judgment event in a storage area corresponding to each judgment event.
For example, as shown in fig. 5, index event 3 corresponds to determination events 1 and 2, and when the service detection control system caches the event data of index event 3, the event data of index event 3 may be cached in a storage area corresponding to determination event 1 and a storage area corresponding to determination event 2, respectively.
When a judgment event of a link node is triggered, an event engine in the service detection control system may call a rule engine to perform rule judgment for the judgment event.
Specifically, the rule engine may acquire event data in a storage area corresponding to the triggered determination event, perform rule determination on each index event corresponding to the determination event according to a preset determination rule, and then execute a corresponding predetermined operation according to a result of the rule determination.
As shown in fig. 6, fig. 6 is a schematic diagram of a rule determining process according to an embodiment of the present invention, where the schematic diagram includes: event data 1, event data 2, event data 3, and judgment event 1.
The event data 1, the event data 2 and the event data 3 are event data cached by the event engine in the storage area for judging the event 1.
When the rule engine carries out rule judgment aiming at the judgment event 1, the event data 1-3 in the storage area of the judgment event 1 can be obtained, then the rule judgment is carried out based on the event data 1-3 and a preset judgment rule, if the judgment result is yes, alarm reminding is carried out, then the event data cache in the storage area is emptied, and if the judgment result is not, the event data cache in the storage area is emptied.
It should be noted that "yes" and "no" of the determination result are only an example provided by the embodiment of the present invention, and "yes" indicates that an error occurs in the service logic, and "no" indicates that no error occurs in the service logic.
In one example, if a traffic link B is a traffic link for a network car booking service, the event data of the traffic link B includes: b1, the user gets on the car; b2, user modifying terminal; b3, the user gets off the vehicle. Event B4 is judged as: and judging whether the user gets off the vehicle at the modified terminal.
When the rule engine performs rule judgment on the judgment event B4, the rule engine may first acquire event data B1, B2, and B3, then perform rule judgment according to B1, B2, B3, and a preset judgment rule, perform alarm reminding if the judgment result is that the user does not get off at the modified destination, then empty the cache of the event data B1, B2, and B3 in the storage area, and empty the cache of the event data B1, B2, and B3 in the storage area if the judgment result is that the user gets off at the modified destination.
With reference to the foregoing example, for a preset determination rule, an embodiment of the present invention provides an exemplary flowchart of the determination rule, where as shown in fig. 7, the flowchart includes the following steps:
in step 71, it is determined whether the user gets on the vehicle, and if the user gets on the vehicle, step 72 is executed, and if the user does not get on the vehicle, step 74 is executed.
At step 72, it is determined whether the user modified the endpoint, and if the user modified the endpoint, step 73 is performed, and if the user did not modify the endpoint, step 75 is performed.
In step 73, it is determined whether the user alighting point is the same as the modified destination, if the user alighting point is the same as the modified destination, step 75 is executed, and if the user alighting point is not the same as the modified destination, step 74 is executed.
At step 74, an alarm is alerted.
At step 75, the event data cache in the memory area is emptied.
For example, if the index event X corresponds to the judgment event Y and the judgment event Z, when the event engine caches the event data corresponding to the index event X, the event data is respectively stored in the storage areas corresponding to the judgment event Y and the judgment event Z, and when the rule engine empties the event data in the storage area corresponding to the judgment event Y, only the cache of the event data of the index event X in the storage area corresponding to the judgment event Y is emptied, but the cache of the event data of the index event X in the storage area corresponding to the judgment event Y is not emptied.
It should be noted that the content shown in fig. 7 is only an exemplary illustration of the embodiment of the present invention, the number of event data may be set according to actual situations, the content of the event data may also represent a numerical value, the number of the determining steps is not limited to 3, the content of the determining condition is not limited to the 3 conditions shown in fig. 7, and the embodiment of the present invention is not limited thereto.
Moreover, in practical applications, the determination condition may also be set in a parallel manner (the setting manner shown in fig. 7 is a serial setting), and there may also be a serial setting manner and a parallel setting manner, which is not described herein in detail in the embodiments of the present invention.
In summary, the service detection control system may determine whether the service logic is correct based on a preset determination rule and the cached event data.
Further, an exemplary schematic diagram of a service detection control process is provided in an embodiment of the present invention, as shown in fig. 8, the schematic diagram includes: the method comprises the steps of a link starting point, a link node 1, a link node 2, a link node 3, a link node 4, a link ending node, and index events and judgment events corresponding to the link nodes.
Specifically, for the link node 1, the link node 1 corresponds to the index event 1 and the determination event 2, and when the user performs a corresponding action on the link node 1, the index event 1 may be triggered, so that the event engine caches the event data corresponding to the index event 1 (caches the determination event 1 and the determination event 2, respectively).
Then, the rule engine may obtain event data corresponding to the index event 1, and perform rule judgment (i.e., rule judgment 1) based on the event data of the index event 1 and a predetermined rule, if yes, perform alarm reminding and then empty the event data cache, and if not, empty the event data cache, where the event data cache is event data corresponding to the index event 1.
For the link node 2, the link node 2 corresponds to the index event 2, and when the user performs a corresponding action on the link node 2, the index event 2 may be triggered, so that the event engine caches the event data corresponding to the index event 2 (caches the judgment event 2).
For the link node 3, the link node 3 corresponds to the judgment event 2, when a user executes a corresponding action on the link node 3, the judgment event 2 may be triggered, the rule engine may obtain event data corresponding to the index event 1 and the index event 2, and perform rule judgment (i.e., rule judgment 2) based on the event data of the index event 1 and the index event 2 and a predetermined rule, if yes, perform alarm prompting, and then clear the event data cache, otherwise, clear the event data cache, where the event data cache is the event data corresponding to the index event 1 and the index event 2.
For the link node 4, the link node 4 corresponds to the index event 3, and when the user performs a corresponding action on the link node 4, the index event 3 may be triggered, so that the event engine caches the event data corresponding to the index event 3 (caches for the determination event 3).
For a node with a finished link, the node with the finished link corresponds to a judgment event 3, when the link is finished, the judgment event 3 can be triggered, a rule engine can obtain event data corresponding to an index event 3, rule judgment (namely rule judgment 3) is carried out based on the event data of the index event 3 and a preset rule, if yes, alarm reminding is carried out, then an event data cache is emptied, and if not, the event data cache is emptied, wherein the event data cache is the event data corresponding to the index event 3.
It should be noted that, in the example shown in fig. 8, the link node 1 corresponds to both the index event and the determination event, and therefore, one link node may correspond to a plurality of events. In addition, the node where the link ends corresponds to the determination event, so the node where the link ends may also correspond to the event, and certainly, the node where the link ends may also correspond to the event at the start point of the link, which is not described herein again in the embodiments of the present invention.
In the embodiment of the present invention, the service detection control system may monitor each link node in the service link, and if an index event of the link node is triggered, the service detection control system may cache event data corresponding to the index event, and if a determination event of the link node is triggered, the service detection control system can perform rule judgment according to the event data of each index event corresponding to the judgment event to realize service detection control, in the process, since the service detection control system can integrate the event data of a plurality of link nodes to judge the service logic, therefore, the service detection control system in the embodiment of the invention has the capability of comprehensive judgment, and compared with an independent judgment mode in the related technology, the embodiment of the invention can ensure that the consistency and the correctness of data flow in a service link are timely detected, controlled and early warned.
Based on the same technical concept, an embodiment of the present invention further provides a service detection control apparatus, as shown in fig. 9, the apparatus includes: event processing means 91 and rule processing means 92;
an event processing device 91, configured to, for each link node in a service link, respond to that an index event of any link node is triggered, and cache event data corresponding to the index event, where the event data is data used when rule judgment is performed on at least one corresponding judgment event; and
a rule processing device 92, configured to, in response to a determination event of any link node being triggered, obtain event data of each index event corresponding to the determination event; carrying out rule judgment on each index event corresponding to the judgment event based on a preset judgment rule and event data of each index event corresponding to the judgment event; and executing corresponding preset operation according to the result of the rule judgment.
Optionally, the rule processing device 92 is specifically configured to:
responding to the abnormal result of the rule judgment, executing reminding operation and emptying the event data cache of each index event corresponding to the judgment event; and
and in response to the result of the rule judgment being normal, clearing the event data cache of each index event corresponding to the judgment event.
Optionally, the event processing device 91 is specifically configured to:
determining each judgment event corresponding to the index event, and caching the event data corresponding to the index event into a storage area corresponding to each judgment event.
Optionally, the service link is used to represent a service flow having a predetermined execution order, the link node is used to represent a service node in the service flow having the predetermined execution order, and the index event and the determination event are triggered when the operation data occurs in the corresponding service node.
In the embodiment of the present invention, the service detection control system may monitor each link node in the service link, and if an index event of the link node is triggered, the service detection control system may cache event data corresponding to the index event, if a determination event of the link node is triggered, the service detection control system can perform rule judgment according to the event data of each index event corresponding to the judgment event to realize service detection control, in the process, since the service detection control system can integrate the event data of a plurality of link nodes to judge the service logic, therefore, the service detection control system in the embodiment of the invention has the capability of comprehensive judgment, and compared with an independent judgment mode in the related technology, the embodiment of the invention can ensure that the consistency and the correctness of data flow in a service link are timely detected, controlled and early warned.
Fig. 10 is a schematic view of an electronic device of an embodiment of the invention. As shown in fig. 10, the electronic device shown in fig. 10 is a general address query device, which includes a general computer hardware structure, which includes at least a processor 101 and a memory 102. The processor 101 and the memory 102 are connected by a bus 103. The memory 102 is adapted to store instructions or programs executable by the processor 101. Processor 101 may be a stand-alone microprocessor or a collection of one or more microprocessors. Thus, the processor 101 implements the processing of data and the control of other devices by executing instructions stored by the memory 102 to perform the method flows of embodiments of the present invention as described above. The bus 103 connects the above-described components together, and also connects the above-described components to a display controller 104 and a display device and an input/output (I/O) device 105. Input/output (I/O) devices 105 may be a mouse, keyboard, modem, network interface, touch input device, motion sensing input device, printer, and other devices known in the art. Typically, the input/output devices 105 are coupled to the system through input/output (I/O) controllers 106.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus (device) or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-readable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations of methods, apparatus (devices) and computer program products according to embodiments of the invention. It will be understood that each flow in the flow diagrams can be implemented by computer program instructions.
These computer program instructions may be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows.
These computer program instructions may also be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows.
Another embodiment of the invention is directed to a non-transitory storage medium storing a computer-readable program for causing a computer to perform some or all of the above-described method embodiments.
That is, as can be understood by those skilled in the art, all or part of the steps in the method of the above embodiments may be accomplished by specifying related hardware through a program, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps in the method of the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made to the present invention by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (20)

1. A service detection control method is applied to an event engine, and comprises the following steps:
for each link node in a service link, responding to an index event of any link node to be triggered, and caching event data corresponding to the index event, wherein the event data is used when at least one corresponding judgment event is subjected to rule judgment, the service link is used for representing a service process with a preset execution sequence, the link node is used for representing the service node in the service process with the preset execution sequence, and the index event has a corresponding judgment event; and
responding to the triggering of a judgment event of any link node, and calling a rule engine to enable the rule engine to perform rule judgment on each index event corresponding to the judgment event and execute a preset operation based on a preset judgment rule and event data of each index event corresponding to the judgment event;
for at least one link node, the event data of each index event corresponding to the judgment event includes event data of a plurality of link nodes.
2. The method of claim 1, wherein the caching event data corresponding to the indicator event comprises:
determining each judgment event corresponding to the index event, and caching the event data corresponding to the index event to a storage area corresponding to each judgment event.
3. The method of claim 1, wherein the metric event and the determination event are triggered upon occurrence of operational data at a corresponding service node.
4. A traffic detection control method is applied to a rule engine, and comprises the following steps:
for each link node in a service link, in response to receiving a call instruction sent by an event engine when a judgment event of any link node is triggered, acquiring event data of each index event corresponding to the judgment event, wherein the event data is used when at least one corresponding judgment event is subjected to rule judgment, the service link is used for representing a service process with a preset execution sequence, the link node is used for representing a service node in the service process with the preset execution sequence, and the index event has a corresponding judgment event;
carrying out rule judgment on each index event corresponding to a judgment event based on a preset judgment rule and event data of each index event corresponding to the judgment event; and
executing corresponding preset operation according to the result of the rule judgment;
for at least one link node, the event data of each index event corresponding to the judgment event includes event data of a plurality of link nodes.
5. The method according to claim 4, wherein the executing the corresponding predetermined operation according to the result of the rule judgment comprises:
responding to the result of the rule judgment as abnormal, executing a reminding operation and emptying the event data cache of each index event corresponding to the judgment event; and
and clearing the event data cache of each index event corresponding to the judgment event in response to the judgment result of the rule being normal.
6. The method of claim 4, wherein the metric event and the determination event are triggered upon occurrence of operational data at a corresponding service node.
7. A service detection control method is applied to a service detection control system, and the method comprises the following steps:
for each link node in a service link, responding to an index event of any link node to be triggered, and caching event data corresponding to the index event, wherein the event data is used when at least one corresponding judgment event is subjected to rule judgment, the service link is used for representing a service process with a preset execution sequence, the link node is used for representing the service node in the service process with the preset execution sequence, and the index event has a corresponding judgment event; and
responding to the triggering of a judgment event of any link node, and acquiring event data of each index event corresponding to the judgment event; carrying out rule judgment on each index event corresponding to a judgment event based on a preset judgment rule and event data of each index event corresponding to the judgment event; executing corresponding preset operation according to the result of the rule judgment;
for at least one link node, the event data of each index event corresponding to the judgment event includes event data of a plurality of link nodes.
8. The method according to claim 7, wherein the executing the corresponding predetermined operation according to the result of the rule judgment comprises:
responding to the result of the rule judgment that the rule is abnormal, executing reminding operation and emptying the event data cache of each index event corresponding to the judgment event; and
and clearing the event data cache of each index event corresponding to the judgment event in response to the judgment result of the rule being normal.
9. The method of claim 7, wherein the caching event data corresponding to the indicator event comprises:
determining each judgment event corresponding to the index event, and caching the event data corresponding to the index event to a storage area corresponding to each judgment event.
10. The method of claim 7, wherein the metric event and the determination event are triggered when operational data occurs at a corresponding service node.
11. A traffic detection control system, characterized in that said system comprises:
the event engine is configured to execute, aiming at each link node in a service link, responding to an index event of any link node to be triggered, and caching event data corresponding to the index event, wherein the event data is used for performing rule judgment on at least one corresponding judgment event, the service link is used for representing a service process with a preset execution sequence, the link node is used for representing a service node in the service process with the preset execution sequence, and the index event has a corresponding judgment event; responding to the trigger of the judgment event of any link node, and calling a rule engine;
the rule engine is configured to execute a calling instruction sent by the event engine when a judgment event of any link node is triggered, and acquire event data of each index event corresponding to the judgment event; carrying out rule judgment on each index event corresponding to a judgment event based on a preset judgment rule and event data of each index event corresponding to the judgment event; executing corresponding preset operation according to the result of the rule judgment;
for at least one link node, the event data of each index event corresponding to the judgment event includes event data of a plurality of link nodes.
12. The system of claim 11, wherein the rules engine is specifically configured to perform:
responding to the result of the rule judgment as abnormal, executing a reminding operation and emptying the event data cache of each index event corresponding to the judgment event; and
and clearing the event data cache of each index event corresponding to the judgment event in response to the judgment result of the rule being normal.
13. The system of claim 11, wherein the event engine is specifically configured to perform:
determining each judgment event corresponding to the index event, and caching the event data corresponding to the index event to a storage area corresponding to each judgment event.
14. The system of claim 11, wherein the metric event and the determination event are triggered when operational data occurs at a corresponding service node.
15. A service detection control apparatus, wherein the apparatus is applied to a service detection control system, and the apparatus comprises:
the event processing device is used for responding to an index event of any link node in a service link and triggering, and caching event data corresponding to the index event, wherein the event data is used for carrying out rule judgment on at least one corresponding judgment event, the service link is used for representing a service process with a preset execution sequence, the link node is used for representing the service node in the service process with the preset execution sequence, and the index event has a corresponding judgment event; and
the rule processing device is used for responding to the triggering of a judgment event of any link node and acquiring event data of each index event corresponding to the judgment event; carrying out rule judgment on each index event corresponding to a judgment event based on a preset judgment rule and event data of each index event corresponding to the judgment event; executing corresponding preset operation according to the result of the rule judgment;
for at least one link node, the event data of each index event corresponding to the judgment event includes event data of a plurality of link nodes.
16. The apparatus according to claim 15, wherein the rule processing apparatus is specifically configured to:
responding to the result of the rule judgment as abnormal, executing a reminding operation and emptying the event data cache of each index event corresponding to the judgment event; and
and clearing the event data cache of each index event corresponding to the judgment event in response to the judgment result of the rule being normal.
17. The apparatus according to claim 15, wherein the event processing apparatus is specifically configured to:
determining each judgment event corresponding to the index event, and caching the event data corresponding to the index event to a storage area corresponding to each judgment event.
18. The apparatus of claim 15, wherein the metric event and the determination event are triggered when operational data occurs at a corresponding service node.
19. An electronic device comprising a memory and a processor, wherein the memory is configured to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method of any of claims 1-10.
20. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method of any one of claims 1 to 10.
CN202011364567.9A 2020-11-27 2020-11-27 Service detection control method and device, electronic equipment and readable storage medium Active CN112532485B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011364567.9A CN112532485B (en) 2020-11-27 2020-11-27 Service detection control method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011364567.9A CN112532485B (en) 2020-11-27 2020-11-27 Service detection control method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN112532485A CN112532485A (en) 2021-03-19
CN112532485B true CN112532485B (en) 2022-07-01

Family

ID=74994672

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011364567.9A Active CN112532485B (en) 2020-11-27 2020-11-27 Service detection control method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112532485B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9128995B1 (en) * 2014-10-09 2015-09-08 Splunk, Inc. Defining a graphical visualization along a time-based graph lane using key performance indicators derived from machine data
CN105719072A (en) * 2016-01-18 2016-06-29 上海天旦网络科技发展有限公司 System and method for associating multistage assembly transactions
CN108833184A (en) * 2018-06-29 2018-11-16 腾讯科技(深圳)有限公司 Service fault localization method, device, computer equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8732108B2 (en) * 2010-10-07 2014-05-20 International Business Machines Corporation Rule authoring for events in a grid environment
CN106789186A (en) * 2016-12-02 2017-05-31 山东中创软件商用中间件股份有限公司 A kind of regulation management method and device, UMP monitoring systems and monitoring method
CN109800098A (en) * 2018-12-13 2019-05-24 平安普惠企业管理有限公司 Service exception node positioning method, device, computer equipment and storage medium
CN109873717A (en) * 2019-01-18 2019-06-11 深圳壹账通智能科技有限公司 Monitoring method, device, computer equipment and storage medium
CN111008109B (en) * 2019-12-06 2023-09-05 北京奇艺世纪科技有限公司 Monitoring data processing method and device, electronic equipment and storage medium
CN111526063B (en) * 2020-03-04 2022-11-11 平安科技(深圳)有限公司 Method, device, terminal and storage medium for monitoring breakpoint of link based on whole service

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9128995B1 (en) * 2014-10-09 2015-09-08 Splunk, Inc. Defining a graphical visualization along a time-based graph lane using key performance indicators derived from machine data
CN105719072A (en) * 2016-01-18 2016-06-29 上海天旦网络科技发展有限公司 System and method for associating multistage assembly transactions
CN108833184A (en) * 2018-06-29 2018-11-16 腾讯科技(深圳)有限公司 Service fault localization method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN112532485A (en) 2021-03-19

Similar Documents

Publication Publication Date Title
US9558091B2 (en) Information processing device, fault avoidance method, and program storage medium
CN109739527B (en) Method, device, server and storage medium for client gray scale release
JP2009535626A (en) Intelligent agent management system and method using supervisory agents used in vehicle diagnosis
CN109859002B (en) Product pushing method, device, computer equipment and storage medium
CN111988422A (en) Subscription method, device, server and storage medium of application service
JP2020035116A (en) Contribution determination method, contribution determination device and program
CN111679968A (en) Interface calling abnormity detection method and device, computer equipment and storage medium
CN107025129B (en) Data processing method and device
CN108829587A (en) Test case parameter replacing method, device, computer equipment and storage medium
CN110298666B (en) Exception handling method and device in transaction processing process
CN109118043B (en) Online data quality monitoring method and device, server and storage medium
CN112532485B (en) Service detection control method and device, electronic equipment and readable storage medium
CN112365267A (en) Operation behavior-based crawler-resisting method and device
US20200183809A1 (en) Usage amount monitoring method and monitoring unit of electronic control unit for vehicle
CN112685390B (en) Database instance management method and device and computing equipment
CN110007940A (en) Verification method, system, server and the readable storage medium storing program for executing of gray scale publication
CN108289077B (en) Method and device for carrying out fuzzy detection analysis on WEB server security
JP2002351852A (en) System operation management method
CN109358794B (en) WEB application program page refreshing method, device, computer equipment and storage medium
CN110362464B (en) Software analysis method and equipment
CN113704114A (en) Automatic testing method, device, equipment and medium for functional interface
JP2013254371A (en) Software development support device, software development support method and software development support program
CN112637046A (en) Message pushing method and routing device
US20150277858A1 (en) Performance evaluation device, method, and medium for information system
CN110768957A (en) Network security cooperative processing method, system and storage medium

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