CN115525513A - Method and device for monitoring business rules - Google Patents

Method and device for monitoring business rules Download PDF

Info

Publication number
CN115525513A
CN115525513A CN202211220738.XA CN202211220738A CN115525513A CN 115525513 A CN115525513 A CN 115525513A CN 202211220738 A CN202211220738 A CN 202211220738A CN 115525513 A CN115525513 A CN 115525513A
Authority
CN
China
Prior art keywords
information
rule
business
service 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.)
Pending
Application number
CN202211220738.XA
Other languages
Chinese (zh)
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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202211220738.XA priority Critical patent/CN115525513A/en
Publication of CN115525513A publication Critical patent/CN115525513A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/547Messaging middleware
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/548Queue

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a method and a device for monitoring a business rule, which relate to the technical field of data analysis, and the method comprises the following steps: the method comprises the steps of obtaining operation information of a business rule, wherein the operation information is one of intercepted information of the business rule, error reporting information of the business rule or testing duration information of the business rule, obtaining supplementary information of the business rule, wherein the supplementary information comprises at least one of a creator of the business rule, a scene of the business rule and a home region of the business rule, and monitoring the business rule according to the operation information and the supplementary information. According to the method, the operation process of the business rules is monitored, and when the operation of the business rules is abnormal, the information corresponding to the abnormal operation can be collected and sent to the user terminal of the monitoring personnel, so that the monitoring personnel can rapidly process the abnormal operation, and the efficiency of business monitoring, the stability of a business system and the success rate of business acceptance are improved.

Description

Method and device for monitoring business rules
Technical Field
The present application relates to the field of data analysis technologies, and in particular, to a method and an apparatus for monitoring business rules.
Background
When a user transacts business, various business rules of the operation system can be triggered, and in order to ensure the use experience of the user, the running stability of the business rules is an important index for evaluating the whole operation system.
However, various situations may occur when the business rules are running, such as frequent false interception of the business rules, frequent error reporting of the business rules, and so on.
In the prior art, when a problem occurs in the operation of a business rule, a worker submits a work order to a corresponding interface person through a front-line worker, and the work order is fed back upwards in a first-level and first-level manner, so that the whole processing flow is complex, the duration is long, and the use experience of a user is influenced.
Disclosure of Invention
The application provides a method and a device for monitoring business rules, which can improve the efficiency of business monitoring, the stability of a business system and the success rate of business acceptance, and improve the use experience of users.
In a first aspect, the present application provides a method for monitoring a business rule, including:
acquiring operation information of a service rule, wherein the operation information is one of intercepted information of the service rule, error reporting information of the service rule or inspection duration information of the service rule;
acquiring supplementary information of the service rule, wherein the supplementary information comprises at least one of a creator of the service rule, a scene of the service rule and a home region of the service rule;
and monitoring the service rule according to the operation information and the supplementary information.
Optionally, if the operation information is intercepted information of the service rule, the monitoring the service rule according to the operation information and the supplementary information includes:
counting the intercepted information of the business rules by taking preset time as a period to obtain statistical information;
and if the difference value between the quantity of the statistical information and the quantity of the historical statistical information is greater than a preset value, sending a statistical result and the supplementary information to a user terminal so that a user can process the intercepted information of the business rule according to the statistical result.
Optionally, if the operation information is the service rule error reporting information, the supplementary information includes a scene of the service rule; the monitoring the service rule according to the operation information and the supplementary information includes:
and offline the business rule from the scene of the business rule, and sending the error reporting information and the supplementary information of the business rule to the user terminal.
Optionally, if the running information is the service rule check duration information; the monitoring the service rule according to the operation information and the supplementary information includes:
and if the service rule checking duration is longer than the preset duration, sending the checking duration information and the supplementary information of the service rule to the user terminal.
Optionally, the method further includes:
if the service rule checking duration is longer than a first preset duration, sending the checking duration information and the supplementary information of the service rule to a user terminal;
and if the service rule checking duration is longer than a second preset duration, the service rule is offline, and the checking duration information and the supplementary information of the service rule are sent to the user terminal, wherein the first preset duration is shorter than the second preset duration.
Optionally, the operation information of the business rule is information obtained by performing a site burying process by the business rule engine;
the obtaining of the operation information of the service rule includes:
and acquiring the operation information of the business rule forwarded by the transit unit from the KAFKA cluster.
Optionally, after the obtaining the operation information of the service rule forwarded by the forwarding unit from the KAFKA cluster, the method further includes:
and acquiring the supplementary information of the service rule forwarded by the forwarding unit from the KAFKA cluster, wherein the forwarding unit acquires the supplementary information of the service rule from a service database after acquiring the operation information of the service rule synchronized by the service rule engine.
In a second aspect, the present application provides a monitoring apparatus for business rules, including:
the system comprises a first acquisition module, a second acquisition module and a control module, wherein the first acquisition module is used for acquiring operation information of a service rule, and the operation information is one of intercepted information of the service rule, error reporting information of the service rule or inspection duration information of the service rule;
a second obtaining module, configured to obtain supplementary information of the business rule, where the supplementary information includes at least one of a creator of the business rule, a scenario of the business rule, and a home region of the business rule;
and the monitoring module is used for monitoring the service rule according to the operation information and the supplementary information.
In a third aspect, the present application provides an electronic device, comprising: a memory and a processor;
the memory is used for storing computer instructions; the processor is configured to execute the memory-stored computer instructions to implement the method of any of the first aspects.
In a fourth aspect, the present application provides a computer readable storage medium having stored thereon a computer program for execution by a processor to perform the method of any of the first aspects.
In a fifth aspect, the present application provides a computer program product comprising a computer program that, when executed by a processor, implements the method of any one of the first aspects.
The application provides a method and a device for monitoring a business rule, wherein the method comprises the steps of acquiring running information of the business rule, wherein the running information is one of intercepted information of the business rule, error reporting information of the business rule or service rule checking duration information, acquiring supplementary information of the business rule, wherein the supplementary information comprises at least one of a creator of the business rule, a scene of the business rule and an attribution area of the business rule, and monitoring the business rule according to the running information and the supplementary information. According to the method, the operation process of the business rules is monitored, and when the operation of the business rules is abnormal, the information corresponding to the abnormal operation can be collected and sent to the user terminal of the monitoring personnel, so that the monitoring personnel can quickly process the abnormal operation, and the efficiency of business monitoring, the stability of a business system and the success rate of business acceptance are improved.
Drawings
Fig. 1 is a schematic view of a scenario provided in an embodiment of the present application;
fig. 2 is a first flowchart illustrating a method for monitoring a business rule according to an embodiment of the present application;
fig. 3 is a second flowchart illustrating a method for monitoring a business rule according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an analysis apparatus provided in an embodiment of the present application;
FIG. 5 is a schematic diagram of an interaction of an apparatus provided by an embodiment of the present application;
fig. 6 is a schematic structural diagram of a monitoring apparatus for business rules according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a monitoring electronic device for business rules according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
In the embodiments of the present application, the terms "first", "second", and the like are used to distinguish the same or similar items with basically the same functions and actions, and the order of the items is not limited. Those skilled in the art will appreciate that the terms "first," "second," and the like do not denote any order or importance, but rather the terms "first," "second," and the like do not denote any order or importance.
It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described herein as "exemplary" or "such as" is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
The following describes in detail a method and an apparatus for monitoring business rules provided by an embodiment of the present application with reference to the accompanying drawings. In the present embodiment, "at 8230 \ 8230at 8230:" may be a moment occurring in a certain situation, or may be a period of time after a certain situation occurs, and the present embodiment is not particularly limited thereto.
When a user transacts a service, various service rules of the operation system are triggered, for example, the verification of user identity information, and in order to ensure the user experience, the stability of the operation of the service rules is an important index for evaluating the whole operation system.
However, various situations may occur when the business rules are running, such as frequent false interception of the business rules, frequent error reporting of the business rules, and too long time for checking the rules.
In the prior art, when a problem occurs in the operation of a service rule, a front-line worker submits a work order to a corresponding interface person and feeds back the work order upwards step by step until the corresponding processing person, so that the whole processing flow is complex and long, the success rate of service acceptance is affected, and the use experience of a user is poor.
In view of this, embodiments of the present application provide a method and an apparatus for monitoring a service rule, where a service rule engine is subjected to point burying, operation information of the service rule is obtained, and an operation condition of the service rule is monitored according to the obtained operation information of the service rule and a preset rule, and when a problem occurs in operation of the service rule, the operation information can be directly fed back to a corresponding processing person, so that efficiency of processing the problem occurring in the service rule is improved.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following embodiments may be implemented independently or in combination, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 1 is a schematic view of an application scenario of an embodiment of the present application, and as shown in fig. 1, includes a service system 101, an analysis device 102, and a terminal device 103.
Wherein the analysis device 102 can communicate with the service system 101 and the terminal device 103.
The analysis device 102 may obtain operation information of various service rules in the service system 101 through communication with the service system 101, determine whether the service rule has a problem in operation according to the operation information of the service rule, perform corresponding processing on the service rule when the problem occurs, and warn a corresponding processing person through the terminal device 103.
In this embodiment of the present application, the analysis device 102 may communicate with the service system 101 and the terminal device 103 through a wired network, a wireless network, and the like, which is not limited in this embodiment of the present application.
Optionally, the analysis device 102 may also be a part disposed in the business system 101, or may also be an external device of the business system 101.
Terminal device 103 the terminal device may be, but is not limited to, various electronic devices such as a personal computer, a notebook computer, a smart phone, a tablet computer, and a portable wearable device, which is not limited in this embodiment of the present application.
In the foregoing, an application scenario of the embodiment of the present application is described, and an analysis device shown in fig. 1 is taken as an example to describe a monitoring method for a service rule provided in the embodiment of the present application.
Fig. 2 is a schematic flowchart of a method for monitoring a business rule according to an embodiment of the present application, and as shown in fig. 2, the method includes the following steps:
s201, obtaining operation information of the business rule, wherein the operation information is one of intercepted information of the business rule, error reporting information of the business rule or testing duration information of the business rule.
In the embodiment of the present application, the business rule refers to externalization of business logic or business automation, and is a method for implementing and enforcing a business policy, that is, a representation form of decision logic related to a business function, for example, when a user logs in a certain website, a user name and a password of the user are verified.
The intercepted information of the business rules refers to the information such as the intercepted times of a certain business rule in the operation process and the corresponding business rule name in a preset time period; the service rule error reporting information refers to specific information of an error reporting occurring in the operation process of a certain service rule, for example, information such as the name of the service rule, the operation scene and the like, and the service rule checking duration information refers to information such as the duration required in the checking process of a certain service and the name of a corresponding service rule.
In this embodiment of the application, the analysis device may obtain the operation information of each business rule in the business system through interaction with the business system, for example, by performing embedded point processing on each business rule engine module in the business system, and then obtaining the operation information of each business rule through a Message Queue (MQ) component.
S202, obtaining supplementary information of the business rule, wherein the supplementary information comprises at least one of a creator of the business rule, a scene of the business rule and a home region of the business rule.
In the embodiment of the present application, the supplementary information of the service rule refers to some unnecessary information of the service rule in the operation process, but if a problem occurs in the operation of the service rule, the service rule can be located according to the supplementary information.
The service rule supplementary information in the embodiment of the present application includes, but is not limited to, information such as a creator of the service rule, a scenario of the service rule, and a home area of the service rule. This supplemental information is typically set at the time of business rule creation and stored in a database of the business system.
In the embodiment of the application, the analysis equipment acquires the supplementary information of the business rule in the business system database through interaction with the business system. For example, through the obtained identification information of the business rule, the corresponding supplementary information is obtained in the business database according to the identification information.
And S203, monitoring the service rule according to the operation information and the supplementary information.
In the embodiment of the present application, monitoring the service rule refers to monitoring the operation condition of the service rule.
After acquiring the operation information of the service rule and the supplementary information of the service rule, the analysis device can monitor the operation condition of the service rule according to the two pieces of information, and process the service rule when the service rule operation problem occurs.
Illustratively, for the intercepted service rules, the intercepted number is counted according to the operation information of the service rules, and the counted result and the corresponding supplementary information are sent to the user terminal of the monitoring personnel, and the monitoring personnel can process the intercepted service rules according to the information received by the user terminal.
And aiming at the error reporting business rule, the error reporting content and the corresponding supplementary information are sent to a user terminal of a monitoring person, and the monitoring person can process the error reporting business rule according to the information received by the user terminal.
Aiming at the service rule of the service rule checking time length, the overtime checking time length service rule and the corresponding supplementary information are sent to the user terminal of the monitoring personnel, and the monitoring personnel can process the service rule of the checking time length according to the information received by the user terminal.
According to the monitoring method for the service rule, the service rule is monitored according to the operation information and the supplementary information, wherein the operation information is one of intercepted information of the service rule, error reporting information of the service rule or service rule checking duration information, supplementary information of the service rule is obtained, the supplementary information comprises at least one of a creator of the service rule, a scene of the service rule and an attribution area of the service rule. According to the method, the operation process of the business rules is monitored, and when the operation of the business rules is abnormal, the information corresponding to the abnormal operation can be collected and sent to the user terminal of the monitoring personnel, so that the monitoring personnel can quickly process the abnormal operation, the efficiency of business monitoring is improved, and the stability of a business system and the success rate of business acceptance are improved.
Fig. 3 is a second schematic flowchart of a monitoring method for a business rule provided in the embodiment of the present application, and further describes the monitoring method for a business rule provided in the embodiment of the present application on the basis of the embodiment shown in fig. 2, and as shown in fig. 3, the method includes the following steps:
s301, acquiring the operation information of the business rule, and acquiring the supplementary information of the business rule according to the operation information of the business rule.
In the embodiment of the present application, the analysis device may obtain the operation information of the business rule and the supplementary information of the business rule from the business system.
As shown in fig. 4, the analysis device may include a relay unit (primary consumer), a kafka cluster, and an analysis unit (secondary consumer). The transit unit, the kafka cluster, and the analysis unit may communicate with each other. The kafka cluster is an open-source distributed message middleware, and is often used as a middleware for message transmission because of its powerful and stable message passing storage function.
For example, the transit unit may send the obtained information to the kafka cluster, and the analysis unit may obtain the information sent by the transit unit by means of the kafka cluster.
The execution main body in the embodiment of the application may be an analysis unit, and the corresponding operation information for acquiring the service rule is the operation information of the service rule forwarded by the forwarding unit acquired from the KAFKA cluster by the analysis unit.
The running information of the service rule is obtained by performing point burying processing on the service rule engine, that is, the running information of the corresponding service rule can be obtained by performing point burying processing on the service rule engine in the service system.
Exemplarily, fig. 5 is a device interaction schematic diagram provided in the embodiment of the present application, as shown in fig. 5, after a service rule engine is embedded, operation information of a service rule may be collected, a service system interacts with an analysis device, the operation information of the service rule is sent to a forwarding unit through an MQ component, and the forwarding unit further processes the operation information of the service rule.
Optionally, the service system sends the operation information of the service rule to the relay unit in an asynchronous message manner.
In the embodiment of the application, after receiving the operation information of the service rule, the transit unit supplements the operation information of the service rule, that is, obtains the supplementary information of the service rule.
Referring to fig. 5, after receiving the operation information of the service rule, the transit unit obtains the supplementary information of the service rule from the service system database according to the name and the corresponding identifier of the service rule in the operation information of the service rule.
In the embodiment of the application, the transfer unit sends the running information of the service rule and the supplementary information of the service rule to the KAFKA cluster after acquiring the running information of the service rule and the supplementary information of the service rule.
Correspondingly, when the execution main body of the embodiment of the present application is the analysis unit, the corresponding operation information for acquiring the service rule is the supplementary information of the service rule forwarded by the forwarding unit acquired from the KAFKA cluster, where the forwarding unit acquires the supplementary information of the service rule from the service database after acquiring the operation information of the service rule synchronized by the service rule engine.
Optionally, after obtaining the operation information of the service rule and the supplementary information of the service rule, the relay unit may combine the operation information of the service rule and the supplementary information of the service rule into one piece of information to forward the information.
In this embodiment of the application, the analysis unit may obtain the operation information of the service rule and the supplementary information of the service rule from the KAFKA cluster at regular time, for example, obtain information at a cycle of 10 minutes.
In the embodiment of the application, the operation information of the business rule comprises business rule intercepted information, business rule error reporting information and business rule checking duration information. Then, according to the operation information of the service rule and the supplementary information of the service rule, the operation condition of the service rule is monitored, and there are several possible implementation manners as follows:
the possible implementation mode is as follows:
s302, monitoring the operation condition of the business rule according to the intercepted information of the business rule and the corresponding business supplement information.
If the operation information is the intercepted information of the business rule, counting the intercepted information of the business rule by taking preset time as a period to obtain statistical information; and if the difference value between the quantity of the statistical information and the quantity of the historical statistical information is greater than a preset value, sending the statistical result and the supplementary information to the user terminal so that the user can process the intercepted information of the business rule according to the statistical result.
In the embodiment of the application, when the business rule is intercepted, the number of the intercepted business rules needs to be counted, whether the interception of the business rule is a normal process or not is judged according to the number of the intercepted business rules, and the judgment is carried out by taking the preset time as a period and comparing the number of the intercepted business rules with the number of historical statistical information.
Illustratively, statistics of intercepted information of a business rule are performed once in a period of 10 minutes, and the statistics are compared with statistics in the same time period, for example, the statistics in today 15 to 15 are compared with the statistics in yesterday 15 to 15, and if a difference value is greater than a preset value, for example, 20, indicating that the interception of the business rule is an abnormal flow, the statistics and the supplemental information are sent to the user terminal, so that the user processes the intercepted information of the business rule according to the statistics and the supplemental information, and the statistics and the supplemental information can also become monitoring results.
A second possible implementation:
s303, monitoring the operation condition of the service rule according to the error information of the service rule and the corresponding service supplementary information.
And if the operation information is the service rule error reporting information, downloading the service rule from the scene of the service rule, and sending the error reporting information and the supplementary information of the service rule to the user terminal.
In the embodiment of the application, when the error report of the service rule occurs, the scene corresponding to the service rule needs to be immediately offline, when the operation information is the error report information of the service rule, the scene corresponding to the service rule is obtained from the supplementary information of the service rule, the service rule in the scene is immediately offline, so that the influence of the service rule on the stability of a service system is reduced, and the error report information and the supplementary information are sent to the user terminal, so that a user can process the error report information of the service rule according to the statistical result.
A third possible implementation manner:
s304, monitoring the operation condition of the service rule according to the service rule checking time length information and the corresponding service supplementary information.
And if the operation information is service rule checking duration information, if the service rule checking duration is greater than the preset duration, sending the checking duration information and the supplementary information of the service rule to the user terminal.
In the embodiment of the application, when the service rule checking duration is longer than the preset duration, it indicates that the processing flow of the service rule does not meet the service operation requirement, that is, the acceptance duration of the service is overtime, and the user experience at this time is poor, so that the checking duration information and the supplementary information of the service rule need to be sent to the user terminal, so that a user (a monitoring person) processes the service rule error reporting information according to the statistical result. The use experience of a user (system user) is improved.
Optionally, if the service rule checking duration is longer than a first preset duration, sending the checking duration information and the supplementary information of the service rule to the user terminal; and if the service rule checking duration is longer than a second preset duration, the service rule is offline, and the checking duration and the supplementary information of the service rule are sent to the user terminal, wherein the first preset duration is shorter than the second preset duration.
In the embodiment of the application, the service rule checking duration is longer than a first preset duration, which indicates that the checking of the service rule is only slow at the moment and can also run, and the use experience of a user is not particularly poor at the moment, therefore, the checking duration information and the supplementary information of the service rule only need to be sent to the user terminal to process the service rule, and if the service rule checking duration is longer than a second preset duration, which indicates that the checking of the service rule is basically in a non-running state, the service rule needs to be offline to reduce the influence on the use experience of the user, and the checking duration and the supplementary information of the service rule are sent to the user terminal.
Optionally, in this embodiment of the application, after the monitoring result is sent to the user terminal, the user terminal may be controlled to remind the user, for example, a wechat robot is used to notify a monitoring person to check the message.
The method for monitoring the service rule provided by the embodiment of the application monitors the operation condition of the service rule by acquiring the operation information of the service rule, acquiring the supplementary information of the service rule according to the operation information of the service rule and the supplementary information of the service rule. By executing different processing flows for the abnormity occurring in the operation of different business rules and reminding monitoring personnel to perform abnormity processing, the stability of a business system and the success rate of business acceptance are improved, and the efficiency of business monitoring is also improved.
On the basis of the embodiment of the monitoring method of the business rule, the embodiment of the application also provides a monitoring device of the business rule.
Fig. 6 is a schematic structural diagram of a monitoring apparatus for business rules provided in an embodiment of the present application, as shown in fig. 6, including:
the first obtaining module 601 is configured to obtain operation information of the service rule, where the operation information is one of intercepted information of the service rule, service rule error reporting information, or service rule checking duration information.
A second obtaining module 602, configured to obtain supplementary information of the business rule, where the supplementary information includes at least one of a creator of the business rule, a scenario of the business rule, and a home region of the business rule.
And a monitoring module 603, configured to monitor the service rule according to the operation information and the supplemental information.
Optionally, the first obtaining module 601 is further configured to perform embedding processing on the business rule engine to obtain operation information of the business rule.
The second obtaining module 602 is further configured to obtain, from the KAFKA cluster, operation information of the service rule forwarded by the forwarding unit. And acquiring the supplementary information of the business rule forwarded by the forwarding unit from the KAFKA cluster, wherein the forwarding unit acquires the supplementary information of the business rule from the business database after acquiring the operation information of the business rule synchronized by the business rule engine.
The monitoring module 603 is further configured to send the check duration information and the supplemental information of the service rule to the user terminal if the check duration of the service rule is greater than a first preset duration; and if the service rule checking time length is greater than a second preset time length, the service rule is offline, and the checking time length information and the supplementary information of the service rule are sent to the user terminal, wherein the first preset time length is less than the second preset time length.
The monitoring apparatus for service rules provided in the embodiment of the present application may implement the technical solutions of the monitoring methods for service rules shown in the embodiments of fig. 2 and fig. 3, and the implementation principles and technical effects are similar, which are not described herein again.
Fig. 7 is a schematic structural diagram of a monitoring electronic device for business rules according to an embodiment of the present application. As shown in fig. 7, the monitoring electronic device 70 for business rules provided in this embodiment may include:
a processor 701.
A memory 702 for storing executable instructions of the terminal device.
The processor is configured to execute the technical solution of the embodiment of the monitoring method for business rules by executing the executable instructions, and the implementation principle and the technical effect are similar, which are not described herein again.
The embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the technical solution of the embodiment of the service rule monitoring method is implemented, and the implementation principle and the technical effect of the embodiment are similar, and are not described herein again.
In one possible implementation, the computer-readable medium may include Random Access Memory (RAM), read-Only Memory (ROM), a compact disk-Read-Only Memory (CD-ROM) or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to carry or store desired program code in the form of instructions or data structures and which can be accessed by the computer. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and Disc, as used herein, includes optical Disc, laser Disc, optical Disc, digital Versatile Disc (DVD), floppy disk and blu-ray Disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
The embodiment of the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the technical solution of the embodiment of the service rule monitoring method is implemented, and the implementation principle and the technical effect of the embodiment are similar, and are not described herein again.
In the Specific implementation of the terminal device or the server, it should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in a processor.
Those skilled in the art will appreciate that all or a portion of the steps of any of the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium, and when executed, performs all or part of the steps of the above-described method embodiments.
The technical scheme of the application can be stored in a computer readable storage medium if the technical scheme is realized in a software form and is sold or used as a product. Based on this understanding, all or part of the technical solutions of the present application may be embodied in the form of a software product stored in a storage medium, including a computer program or several instructions. The computer software product enables a computer device (which may be a personal computer, a server, a network device, or a similar electronic device) to perform all or part of the steps of the methods described in the embodiments of the present application.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. A method for monitoring a business rule is characterized by comprising the following steps:
acquiring operation information of a service rule, wherein the operation information is one of intercepted information of the service rule, error reporting information of the service rule or inspection duration information of the service rule;
acquiring supplementary information of the service rule, wherein the supplementary information comprises at least one of a creator of the service rule, a scene of the service rule and a home region of the service rule;
and monitoring the service rule according to the operation information and the supplementary information.
2. The method of claim 1, wherein if the operation information is intercepted information of the business rule, the monitoring the business rule according to the operation information and the supplemental information comprises:
counting the intercepted information of the business rules by taking preset time as a period to obtain statistical information;
and if the difference value between the quantity of the statistical information and the quantity of the historical statistical information is larger than a preset value, sending a statistical result and the supplementary information to a user terminal so that a user can process the intercepted information of the business rule according to the statistical result.
3. The method of claim 1, wherein if the operation information is error reporting information of the business rule, the supplementary information comprises a scenario of the business rule; the monitoring the service rule according to the operation information and the supplementary information includes:
and downloading the business rule from the scene of the business rule, and sending the error reporting information and the supplementary information of the business rule to a user terminal.
4. The method of claim 1, wherein if the running information is the business rule check duration information; the monitoring the service rule according to the operation information and the supplementary information includes:
and if the service rule checking duration is longer than the preset duration, sending the checking duration information and the supplementary information of the service rule to a user terminal.
5. The method of claim 4, further comprising:
if the service rule checking duration is longer than a first preset duration, sending the checking duration information and the supplementary information of the service rule to a user terminal;
and if the service rule checking time length is greater than a second preset time length, the service rule is offline, and the checking time length information and the supplementary information of the service rule are sent to the user terminal, wherein the first preset time length is less than the second preset time length.
6. The method according to any one of claims 1 to 5, wherein the operation information of the business rules is information obtained by the business rules engine through a site-based processing;
the acquiring the operation information of the service rule includes:
and acquiring the operation information of the business rule forwarded by the transit unit from the KAFKA cluster.
7. The method of claim 6, wherein after obtaining the operation information of the service rule forwarded by the transit unit from the KAFKA cluster, the method further comprises:
and acquiring the supplementary information of the business rule forwarded by the forwarding unit from the KAFKA cluster, wherein the forwarding unit acquires the supplementary information of the business rule from a business database after acquiring the operation information of the business rule synchronized by the business rule engine.
8. An apparatus for monitoring business rules, comprising:
the system comprises a first acquisition module, a second acquisition module and a control module, wherein the first acquisition module is used for acquiring operation information of a service rule, and the operation information is one of intercepted information of the service rule, error reporting information of the service rule or inspection duration information of the service rule;
a second obtaining module, configured to obtain supplementary information of the business rule, where the supplementary information includes at least one of a creator of the business rule, a scenario of the business rule, and a home region of the business rule;
and the monitoring module is used for monitoring the service rule according to the operation information and the supplementary information.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the method of any one of claims 1-7.
10. A computer-readable storage medium, having stored thereon a computer program for execution by a processor to perform the method of any one of claims 1-7.
CN202211220738.XA 2022-10-08 2022-10-08 Method and device for monitoring business rules Pending CN115525513A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211220738.XA CN115525513A (en) 2022-10-08 2022-10-08 Method and device for monitoring business rules

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211220738.XA CN115525513A (en) 2022-10-08 2022-10-08 Method and device for monitoring business rules

Publications (1)

Publication Number Publication Date
CN115525513A true CN115525513A (en) 2022-12-27

Family

ID=84701712

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211220738.XA Pending CN115525513A (en) 2022-10-08 2022-10-08 Method and device for monitoring business rules

Country Status (1)

Country Link
CN (1) CN115525513A (en)

Similar Documents

Publication Publication Date Title
CN110224858B (en) Log-based alarm method and related device
CN106548402B (en) Resource transfer monitoring method and device
CN107426022A (en) Security incident monitoring method and device, electronic equipment, storage medium
CN112636957B (en) Early warning method and device based on log, server and storage medium
CN110232010A (en) A kind of alarm method, alarm server and monitoring server
CN110232006B (en) Equipment alarm method and related device
CN108572907A (en) A kind of alarm method, device, electronic equipment and computer readable storage medium
CN107896170B (en) Insure the monitoring method and device of application system
CN110958161B (en) Block chain link point monitoring method and device and storage medium
CN111245900A (en) Distributed message sending processing system and processing method thereof
CN111949421B (en) SDK calling method, device, electronic equipment and computer readable storage medium
CN113849362B (en) Business service platform management method, device and computer readable storage medium
US9722956B2 (en) Managing electronic mail for an end-user that is unavailable
CN115883647B (en) Service log recording method, system, device, terminal, server and medium
CN115525513A (en) Method and device for monitoring business rules
CN114844772A (en) Management method and system based on Zabbix monitoring platform
CN110955884B (en) Method and device for determining upper limit times of password trial and error
CN111507594B (en) Data processing method and device
CN112995018A (en) Message processing method, device, equipment and storage medium
CN114238069A (en) Web application firewall testing method and device, electronic equipment, medium and product
CN109508356B (en) Data abnormality early warning method, device, computer equipment and storage medium
CN116938595B (en) Method, system, terminal and storage medium for verifying identity security of terminal equipment
CN113961379B (en) Message processing method and device based on man-machine conversation
CN117294578B (en) Communication method, system, computer equipment and storage medium
CN110351116B (en) Abnormal object monitoring method, device, medium and electronic equipment

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