A business data monitoring and early warning method, device, medium and electronic equipment
By receiving monitoring requests, configuring rule codes and generating alarm information at the business data monitoring and early warning end, it solves the shortcomings of business data monitoring in the existing technology, realizes real-time monitoring and early warning, and provides a data source for data analysis and decision-making.
Patent Information
- Application Number
- CN202210667958.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-14
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-06-14
AI Technical Summary
The existing monitoring system is difficult to monitor business data in real time and cannot effectively generate early warning information, resulting in the inability to respond to business data changes and anomalies in a timely manner.
By implementing monitoring request reception, rule code configuration and alarm information generation on the business data monitoring and warning end, target business parameters are monitored in real time based on business rule parameters, and alarm information is generated when preset conditions are met.
It realizes real-time monitoring and early warning of business data, solves the shortcomings of business data monitoring in existing technologies, and provides a data source for subsequent data analysis and decision-making.
Smart Images

Figure CN115086147B
Abstract
Description
Technical Field
[0001] The present invention relates to a monitoring method, and in particular to a business data monitoring and early warning method, device, medium and electronic equipment. Background Art
[0002] In recent years, with the continuous development of Internet technology and the change of people's living habits, more and more companies choose to manage and operate their businesses through the Internet, which has led to a continuous increase in the amount of business data in the network. For enterprises, real-time monitoring of business data can ensure the normal stability of online data, thereby providing users with a highly reliable and stable service experience, which is of great significance. However, unlike other data, business data has the characteristics of a wide variety and complex application scenarios, which makes it difficult for existing monitoring systems to monitor business data. At present, there is no technology on the market for real-time monitoring of business data. Therefore, how to provide a solution that can monitor and warn business data has become one of the technical problems that technical personnel in related fields urgently need to solve. Summary of the invention
[0003] In view of the above-mentioned shortcomings of the prior art, an object of the present invention is to provide a business data monitoring and early warning method, device, medium and electronic equipment to solve the problem that the prior art cannot monitor business data in real time.
[0004] To achieve the above-mentioned purpose and other related purposes, the first aspect of the present invention provides a business data monitoring and early warning method, which is applied to a business data monitoring and early warning terminal, and the business data monitoring and early warning method includes: receiving a monitoring request sent by a business terminal, the monitoring request is used to request a rule code from the business data monitoring and early warning terminal, wherein the rule code has multiple types, and each rule code corresponds to a business rule parameter of a type of monitoring business; sending the rule code to the business terminal in response to the monitoring request, so that the business terminal configures the business rule parameters of the rule code according to the monitoring source data and adds the configured rule code to the monitoring source data, wherein the monitoring source data includes business data; receiving the monitoring source data sent by the business terminal, and obtaining the rule code carried by the monitoring source data, and extracting the business rule parameters of the monitoring source data from the rule code; monitoring the target business parameters of the monitoring source data according to the business rule parameters, and generating an alarm message when the target business parameters meet the alarm conditions.
[0005] The second aspect of the present invention provides a business data monitoring and early warning device, which is applied to a business data monitoring and early warning end, and the business data monitoring and early warning device includes: a monitoring request receiving module, which is used to receive a monitoring request sent by a business end, and the monitoring request is used to request a rule code from the business data monitoring and early warning end, wherein the rule code has multiple types, and each rule code corresponds to a business rule parameter of a type of monitoring business; a monitoring request response module, which is used to send the rule code to the business end in response to the monitoring request, so that the business end configures the business rule parameters of the rule code according to the monitoring source data and adds the configured rule code to the monitoring source data, wherein the monitoring source data includes business data; a monitoring source data receiving module, which is used to receive the monitoring source data sent by the business end, and obtain the rule code carried by the monitoring source data, and extract the business rule parameters of the monitoring source data from the rule code; a monitoring early warning module, which is used to monitor the target business parameters of the monitoring source data according to the business rule parameters, and generate an alarm message when the target business parameters meet the alarm conditions.
[0006] A third aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the business data monitoring and early warning method described in the first aspect of the present invention.
[0007] The fifth aspect of the present invention provides an electronic device, comprising: a memory storing a computer program; a processor communicatively connected to the memory, and executing the business data monitoring and early warning method described in the first aspect of the present invention when calling the computer program.
[0008] As described above, the service data monitoring and early warning method, device, medium, and electronic device described in one or more embodiments of the present invention have the following beneficial effects:
[0009] The business data monitoring and early warning method can monitor the monitoring source data in real time and generate alarm information when the preset conditions are met, wherein the monitoring source data can be the business data that the business end needs to focus on. Therefore, the business data monitoring and early warning method can solve the shortcomings of the existing monitoring platform in monitoring business data. In addition, the business data monitoring and early warning method can also classify and store the business data sent by the business end, so as to provide a data source for subsequent data analysis and decision-making processes. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1 Shown is a flow chart of the business data monitoring and early warning method described in an embodiment of the present invention.
[0011] Figure 2 Shown is a flow chart of monitoring target service parameters in an embodiment of the present invention.
[0012] Figure 3 Shown is a flow chart for determining whether a target service parameter meets an alarm condition in an embodiment of the present invention.
[0013] Figure 4 Shown is a detailed flow chart of determining whether target service parameters meet alarm conditions in an embodiment of the present invention.
[0014] Figure 5 Shown is a flow chart of obtaining target parameter values in an embodiment of the present invention.
[0015] Figure 6 Shown is a flow chart of monitoring target service parameters in an embodiment of the present invention.
[0016] Figure 7 Shown is a schematic diagram of the structure of a business data monitoring and early warning device in an embodiment of the present invention.
[0017] Figure 8 Shown is a schematic structural diagram of the electronic device described in an embodiment of the present invention.
[0018] Component number description
[0019] 700 Business data monitoring and early warning device
[0020] 710 Monitoring request receiving module
[0021] 720 Monitoring request response module
[0022] 730 Monitoring source data receiving module
[0023] 740 Monitoring and early warning module
[0024] 800 Electronic equipment
[0025] 810 Memory
[0026] 820 processor
[0027] 830 Display
[0028] Steps S11 to S14
[0029] Steps S21 to S22
[0030] Steps S31 to S32
[0031] Steps S41 to S43
[0032] Steps S51 to S52
[0033] Steps S61 to S64 DETAILED DESCRIPTION
[0034] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0035] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention. The illustrations only show the components related to the present invention rather than the number, shape and size of the components in actual implementation. The type, quantity and proportion of each component in actual implementation may be changed at will, and the component layout type may also be more complicated. In addition, in this article, relational terms such as "first", "second", etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations.
[0036] Currently used platforms such as Troy allow developers to perform operations such as log search and quick location of problem causes, and support real-time monitoring at the interface level, which greatly facilitates developers' daily operations. However, the monitoring information display functions provided by these platforms are usually monotonous and rough, unable to intuitively reflect problems, and are not friendly enough for non-technical personnel.
[0037] For data monitoring, no matter what monitoring means are used, its purpose is to ensure the normal stability of online data, so as to provide users with a highly reliable and stable service experience. The inventors found in actual applications that there is still a gap in the monitoring of business data latitudes in the prior art. For example, due to business prevention requirements, it is necessary to monitor the order volume data within a certain period of time in real time, and to generate report data, so as to intuitively reflect the vertical changes of the data; when the early warning conditions are met, it is necessary to send early warning information to data attention personnel through communication means in a timely manner, so that data attention personnel can respond quickly and handle various early warning information agilely. However, unlike other data, business data has the characteristics of a wide variety and complex application scenarios, which makes it difficult for existing monitoring systems to monitor business data. There is currently no technology on the market for real-time monitoring of business data. Therefore, how to provide a solution that can monitor and warn business data has become one of the technical problems that technical personnel in related fields urgently need to solve.
[0038] At least for the above problems, the present invention provides a business data monitoring and early warning method. The business data monitoring and early warning method comprises: receiving a monitoring request sent by a business end, the monitoring request is used to request a rule code from the business data monitoring and early warning end, wherein the rule code has multiple types, and each rule code corresponds to a business rule parameter of a type of monitoring business; sending the rule code to the business end in response to the monitoring request, so that the business end configures the business rule parameters of the rule code according to the monitoring source data and adds the configured rule code to the monitoring source data, wherein the monitoring source data includes business data; receiving the monitoring source data sent by the business end, and obtaining the rule code carried by the monitoring source data, and extracting the business rule parameters of the monitoring source data from the rule code; monitoring the target business parameters of the monitoring source data according to the business rule parameters, and generating an alarm message when the target business parameters meet the alarm conditions. The business data monitoring and early warning method can monitor the monitoring source data in real time, and generate an alarm message when the preset conditions are met, wherein the monitoring source data can be the business data that the business end needs to focus on. Therefore, the business data monitoring and early warning method can solve the shortcomings of the existing monitoring platform in monitoring business data.
[0039] Next, the business data monitoring and early warning method will be described in detail through specific embodiments combined with the accompanying drawings.
[0040] Figure 1 Shown is a detailed flow chart of a business data monitoring and early warning method in one embodiment of the present invention. In this embodiment, the business data monitoring and early warning method is applied to a business data monitoring and early warning terminal. The business data monitoring and early warning terminal can be a high-performance computer, including a processor, a hard disk, a memory, a database and other structures, for providing users with high-stability, high-reliability and high-security business data monitoring services. In this embodiment, the business data monitoring and early warning terminal includes but is not limited to a file server, a database server, an application server, a WEB server, a local server and a cloud server. Specifically, as Figure 1 As shown, the business data monitoring and early warning method described in this embodiment includes the following steps S11 to S14.
[0041] In step S11, a monitoring request sent by the business end is received, and the monitoring request is used to request a rule code from the business data monitoring and early warning end, wherein the rule code has multiple types, and each rule code corresponds to a business rule parameter of a type of monitoring business. The business end may be a device on the service side, such as a device used by management personnel or sales personnel. In addition, the business end may also be a device on the user side, and the present invention does not limit this. The rule code refers to a standard code pre-specified by the business data monitoring and early warning end. In this embodiment, the business data monitoring and early warning end is only used to provide monitoring and early warning services for monitoring source data carrying legal rule codes, and does not monitor monitoring source data that does not carry the rule code or monitoring source data that carries illegal rule codes. For example, such monitoring source data can be directly discarded when received.
[0042] In step S12, in response to the monitoring request, the rule code is sent to the business end, so that the business end configures the business rule parameters of the rule code according to the monitoring source data and adds the configured rule code to the monitoring source data, wherein the monitoring source data includes business data. The monitoring source data refers to the original business data that the business end requests the business data monitoring and early warning end to monitor, for example, the sales volume or search volume of the target product in a certain time period. It should be noted that in some other embodiments, the monitoring source data may also include non-business data, which is not limited by the present invention.
[0043] In step S13, the monitoring source data sent by the service end is received, and the rule code carried by the monitoring source data is acquired, and the business rule parameters of the monitoring source data are extracted from the rule code.
[0044] Optionally, the business end can send the monitoring source data to the business data monitoring and warning end at any time according to demand, or send the monitoring source data to the business data monitoring and warning end according to a specific period. Both of the above methods can realize real-time monitoring of the monitoring source data.
[0045] In step S14, the target business parameters of the monitoring source data are monitored according to the business rule parameters, and an alarm message is generated when the target business parameters meet the alarm conditions. The target business parameters refer to the business parameters that need to be monitored. For example, the target business parameters can be the sales volume of the target product in a certain time period, the response delay of the web page, etc. The type of the target business parameter can be a numeric value, a string, a Boolean value, etc., and the present invention does not limit this. Specifically, in this embodiment, step S14 can obtain the business rules corresponding to the monitoring source data according to the rule code, and then extract the target business parameters from the monitoring source data according to the business rules.
[0046] Optionally, in step S14, natural language processing technology may be used to extract the target service parameters.
[0047] Optionally, in step S14, the warning information can be sent to the staff in a variety of ways, including but not limited to text messages and emails. In addition, the staff can also configure the sending method of the warning information by one-key configuration.
[0048] Optionally, the service end may send the monitoring request each time before sending the monitoring source data to obtain the rule code from the service data monitoring and warning end. In addition, the service end may also send the monitoring request once to obtain the rule code, after which the service end stores the rule code in a local memory, and then directly reads the rule code from the local memory when sending the monitoring source data.
[0049] According to the above description, the service data monitoring and early warning method described in this embodiment can monitor the monitoring source data sent by the service end in real time, and generate an alarm signal when the target service parameter in the monitoring source data triggers an alarm condition. Therefore, the service data monitoring and early warning method can realize real-time monitoring of service data.
[0050] Since business data has the characteristics of a wide variety and complex application scenarios, these characteristics will lead to poor versatility of the business data monitoring and early warning terminal. To address this problem, in this embodiment, all monitored business data can be abstracted into corresponding business rules according to the type of its monitoring indicators, and a corresponding rule code can be configured for each business rule. Based on this, for all types of business terminals and all types of business data, as long as the business terminal configures its monitoring source data according to the business rules and the rule codes, the business data monitoring and early warning terminal can perform real-time monitoring and early warning on the monitoring source data sent by the business terminal. Therefore, the business data monitoring and early warning terminal described in this embodiment can achieve one-time encoding and then zero-coding access to new business terminals and new business data and put them into use immediately, and has good versatility.
[0051] Optionally, in this embodiment, all business data may be abstracted into one of the following three business rules according to the type of monitoring indicators of the business data: integer (int) type, string (string) type and Boolean (bool) type.
[0052] The business rule of integer type means that the monitoring indicator of business data is a digital value. If the value is within a given standard range, it is qualified, otherwise it is unqualified.
[0053] The business rule of the string type indicates that the monitoring indicator of the business data is a string. If the string is in a given string list, it is qualified, otherwise it is unqualified.
[0054] A Boolean business rule indicates that the monitoring indicator of the business data is a specified digital type, and its value is 0 or 1, where 0 indicates failure and 1 indicates success. Optionally, the default value of a Boolean business rule can be configured as 0, that is, failure by default.
[0055] After actual testing, the above three business rules can basically cover more than 90% of the scenarios in actual applications. However, in addition to the above three business rules, relevant technicians can also customize corresponding types of business rules according to actual needs, and the present invention does not limit the number and type of business rules.
[0056] Optionally, the business rule parameters include a monitoring time period, a monitoring step, a warning value for the number of non-compliance, an alarm condition, an alarm method and / or an alarm object. The monitoring time period refers to the time period during which the business end requests the business data monitoring and warning end to monitor the monitoring source data sent by it, for example, 19:00-20:00. The monitoring step refers to the interval step of the monitoring task, and its value is a positive integer. The warning value for the number of non-compliance is used to indicate the tolerance for the number of non-compliance, and its value is a positive integer. For example, when the warning value for the number of non-compliance is 1, it means that an alarm signal is immediately generated as long as the target business parameter that does not meet the standard appears. When the warning value for the number of non-compliance is 2, it means that an alarm signal is generated only when the target business parameter that does not meet the standard appears twice. The alarm condition corresponds to a specific business rule. For example, for an integer type business rule, the corresponding alarm condition may include a maximum threshold and a minimum threshold. For a string type business rule, the corresponding alarm condition is, for example, a string list. For a Boolean type business rule, the corresponding alarm condition is, for example, 0 or 1. The alarm method is, for example, email, text message, phone call, etc. The alarm object refers to the object to which the alarm information is sent.
[0057] Next, the business rule parameters will be described through three specific examples.
[0058] Example 1: In this example, the business rule corresponding to the monitoring source data is of integer type. In this case, an example of a configured business rule parameter is:
[0059] {"heartDataList": [{"maxValue": 20, "minValue": 10, "startTime": "24:00", "endTime": "24:00", "sentinelValue": 1}] "monitorMember": "19999999999", "stepSize": 1}.
[0060] Example 2: In this example, the business rule corresponding to the monitoring source data is of string type. In this case, an example of a configured business rule parameter is:
[0061] {"heartDataList": [{"startTime": "24:00", "endTime": "24:00", "targetValue": ""}], "monitorMember": "19999999999", "stepSize": 1}.
[0062] Example 3: In this example, the business rule corresponding to the monitoring source data is of Boolean type. In this case, an example of a configured business rule parameter is:
[0063] {"heartDataList": [{"startTime": "24:00", "endTime": "24:00", "sentinelValue": 1}], "monitorMember": "19999999999", "stepSize": 1}.
[0064] In the above examples, heartDataList represents the business core parameter string, maxValue represents the maximum value of the qualified range of business rules of integer type, minValue represents the minimum value of the qualified range of business rules of integer type, targetValue represents the enumeration value of the qualified business rules of string type, startTime represents the start time of monitoring effectiveness, endTime represents the end time of monitoring effectiveness, sentinelValue represents the warning value of the number of non-compliance, 1 represents immediate alarm, monitorMember represents the alarm notification personnel, and stepSize represents the interval step of each task.
[0065] In one embodiment of the present invention, the business rule parameter includes a monitoring step length of the target business parameter. Figure 2 In this embodiment, monitoring the target business parameters of the monitoring source data according to the business rule parameters includes the following steps S21 and S22.
[0066] In step S21, the target business parameters are acquired in real time and stored in the distributed memory or cache of the business data monitoring and early warning terminal.
[0067] Specifically, since the business data monitoring and early warning terminal needs to frequently read the target business parameters in order to realize real-time monitoring of business data, in order to save data reading time and ensure that the system has good real-time performance, this embodiment can store the business rule parameters in a distributed memory or cache after extracting them. Among them, the distributed memory stores data on multiple independent devices in a dispersed manner, and adopts an extensible system structure, uses multiple storage servers to share the storage load, and uses a location server to locate the storage information. The distributed memory can not only improve the reliability, availability and access efficiency of the business data monitoring and early warning terminal, but also has the advantage of easy expansion. The cache refers to a memory that can perform high-speed data exchange contained in the business data monitoring and early warning terminal. It exchanges data with the CPU before the memory, so the rate is very fast.
[0068] In step S22, the target service parameters are read from the distributed memory or cache one by one according to the monitoring step length and it is determined whether the target service parameters meet the alarm condition. For example, if the monitoring compensation is 10 minutes, the target service parameters are read from the distributed memory or cache every 5 minutes in step S22.
[0069] In this embodiment, since the target business parameters are stored in a distributed memory or cache, in step S22, it is only necessary to read data from the distributed memory or cache. No calls are involved in this process, so a millisecond-level response can be achieved, and the user basically does not feel any delay.
[0070] Optionally, see Figure 3 In this embodiment, judging whether the target service parameter meets the alarm condition includes the following steps S31 and S32.
[0071] In step S31, multiple parameter values of the target business parameter within the target time period are read from the distributed memory or cache, and the target time period refers to the time period between the last reading and the current reading. For example, if the monitoring step is 5 minutes, the target business parameter is read once from the distributed memory or cache at 16:00, and the target business parameter is read again from the distributed memory or cache at 16:05. In addition, since the target business parameter is obtained in real time in step S21 and stored in the distributed memory or cache, multiple parameter values may be written into the distributed memory or cache in the time period of 16:00 to 16:05, so the data read at 16:05 can be multiple parameter values of the target business parameter within the time period of 16:00 to 16:05.
[0072] In step S32, it is determined whether the target service parameter meets the alarm condition according to the multiple parameter values.
[0073] Optionally, see Figure 4 In this embodiment, judging whether the target service parameter meets the alarm condition according to the multiple parameter values includes the following steps S41 to S43.
[0074] In step S41, the mean and variance of the multiple parameter values are obtained. The mean refers to a quantity representing the central tendency of the multiple parameter values, and is calculated by dividing the sum of the parameter values by the number of the parameter values. The variance is used to represent the degree of deviation between the multiple parameter values and their mathematical expectations (i.e., the mean), and is calculated by the average of the square values of the differences between each parameter value and the mean of all the parameter values.
[0075] In step S42, a target parameter value is selected from the multiple parameter values according to the means and variances of the multiple parameter values.
[0076] In step S43, it is determined whether the target service parameter satisfies the alarm condition according to the target parameter value. Since the target parameter value can well reflect the overall state of the multiple parameter values, it is more accurate to determine whether the target service parameter satisfies the alarm condition according to the target parameter value, and the problem of false alarm can be well avoided.
[0077] Optionally, see Figure 5 , selecting a target parameter value from the multiple parameter values according to the mean and variance of the multiple parameter values includes the following steps S51 and S52.
[0078] In step S51, an upper limit value and a lower limit value are obtained according to the mean and variance of the multiple parameter values, wherein the upper limit value is proportional to the mean and proportional to the variance, and the lower limit value is proportional to the mean and inversely proportional to the variance. For example, in this embodiment, the upper limit value may be upper=mean+N×var, and the lower limit value may be lower=mean-N×var, wherein mean is the mean of the multiple parameter values, var is the variance of the multiple parameter values, and N is an integer.
[0079] In step S52, the parameter value between the upper limit value and the lower limit value is acquired as the target parameter value.
[0080] In one embodiment of the present invention, the business rule parameters also include the standard range of the target business parameters and the warning value of the number of times the standard is met, and judging whether the target business parameters meet the alarm condition includes: if the number of times the target business parameters exceed the standard range is greater than or equal to the warning value of the number of times the standard is met, then it is judged that the target business parameters meet the alarm condition; otherwise, it is judged that the target business parameters do not meet the alarm condition.
[0081] See also Figure 6 In one embodiment of the present invention, the business rule parameters also include a monitoring time period, the number of the target business parameters is at least two, and monitoring the target business parameters of the monitoring source data according to the business rule parameters includes the following steps S61 to S64.
[0082] In step S61, a monitoring task corresponding to each of the target business parameters is generated.
[0083] In step S62, the execution time scale of each monitoring task is obtained according to the monitoring time period and monitoring step of each monitoring task. The execution time scale of the monitoring task refers to the moment when the monitoring task reads the target business parameter during the execution process, and the execution time scale can be calculated according to the monitoring time period and monitoring compensation of the monitoring task.
[0084] In step S63, if there is a conflict in the execution time scale of the monitoring tasks, the monitoring start time of one or more of the monitoring tasks is adjusted to ensure that there is no conflict in the execution time scale of each monitoring task. Specifically, for any two monitoring tasks A and B, if A and B read the distributed memory or cache at the same time at a certain time t, it will cause a distributed memory or cache reading conflict, that is, there is a conflict between monitoring tasks A and B at this time t. To address this problem, the monitoring start time of task A can be appropriately adjusted in step S63 to avoid conflicts in the execution time scales of monitoring tasks A and B.
[0085] In step S64, the monitoring tasks are independently executed according to the execution time scale of each monitoring task to realize the monitoring of the target business parameter. In this way, the time slice allocation principle of the operating system can be fully utilized, thereby improving the execution efficiency of the system.
[0086] In one embodiment of the present invention, the business data monitoring and early warning terminal is configured with a gateway interface, a rest interface and / or a dubbo interface, which are used to meet the needs of uploading monitoring source data in different scenarios and different business terminals. Among them, the gateway interface and the rest interface can be used for front-end calls. For example, if it is necessary to monitor whether a request is successful, the gateway interface or the rest interface can be called after the request is completed to inform the business data monitoring and early warning terminal of the call result of the request. The dubbo interface can be used for the service-side call of the business party. For example, if the business data does not require the participation of the front end but only the participation of the server, interaction can be carried out through the dubbo interface at this time.
[0087] In one embodiment of the present invention, after obtaining the target business parameters, the business data monitoring and early warning method may further include: classifying and storing the target business parameters, and the classified and stored target business parameters may be used as a data source in subsequent data analysis or decision-making. For example, in subsequent data analysis or decision-making, a business report may be made based on the classified and stored target business parameters, or a data statistical chart may be generated based on the classified and stored target business parameters to intuitively display the trend of data changes, so as to provide accurate data support for business decision-making and trend analysis.
[0088] In one embodiment of the present invention, the business data warning terminal includes a business module and a data module. The business module is used to abstract the monitoring source data into business rules and obtain the business rule parameters of the monitoring source data, and the data module is used to perform alarm analysis according to the business rule parameters and target business parameters, that is, the business module is used to realize data collection, and the data module is used to realize data abnormality alarm.
[0089] Optionally, the business data monitoring and early warning terminal monitors the monitoring source data in a distributed real-time monitoring manner. Specifically, the business data monitoring and early warning terminal implements real-time data collection through the business module, and implements data anomaly alarm through the data module. Preferably, the business module and the data module are independent of each other, so as to realize the separation of data collection and data anomaly alarm functions in the business data monitoring and early warning terminal. In addition, the business module and the data module can be deployed on different devices or platforms, and the two communicate through an interface, and preferably use json format for data transmission.
[0090] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0091] Based on the above description of the business data monitoring and early warning method, the present invention also provides a business data monitoring and early warning device, which is applied to the business data monitoring and early warning terminal. Figure 7 In one embodiment of the present invention, the business data monitoring and early warning device 700 includes a monitoring request receiving module 710, a monitoring request responding module 720, a monitoring source data receiving module 730 and a monitoring early warning module 740.
[0092] The monitoring request receiving module 710 is used to receive a monitoring request sent by the business end, and the monitoring request is used to request a rule code from the business data monitoring and early warning end, wherein the rule code has multiple types, and each rule code corresponds to a business rule parameter of a type of monitoring business.
[0093] The monitoring request response module 720 is used to send the rule code to the business end in response to the monitoring request, so that the business end configures the business rule parameters of the rule code according to the monitoring source data and adds the configured rule code to the monitoring source data, wherein the monitoring source data includes business data.
[0094] The monitoring source data receiving module 730 is used to receive the monitoring source data sent by the business end, obtain the rule code carried by the monitoring source data, and extract the business rule parameters of the monitoring source data from the rule code.
[0095] The monitoring and warning module 740 is used to monitor the target business parameters of the monitoring source data according to the business rule parameters, and generate alarm information when the target business parameters meet the alarm conditions.
[0096] In one embodiment of the present invention, the business rule parameter includes a monitoring step of the target business parameter. The monitoring and early warning module 740 in this embodiment is specifically used for:
[0097] Acquire the target service parameters in real time and store them in a distributed memory or cache;
[0098] The target service parameters are read from the distributed memory or cache one by one according to the monitoring step length, and it is determined whether the target service parameters meet the alarm condition.
[0099] In one embodiment of the present invention, the monitoring and early warning module 740 is further used for:
[0100] Reading multiple parameter values of the target service parameter within a target time period from the distributed memory or cache, where the target time period refers to a time period between the last reading and the current reading;
[0101] It is determined whether the target service parameter meets the alarm condition according to the multiple parameter values.
[0102] In one embodiment of the present invention, the monitoring and early warning module 740 is further used for:
[0103] Obtaining the mean and variance of the multiple parameter values;
[0104] Selecting a target parameter value from the plurality of parameter values according to the means and variances of the plurality of parameter values;
[0105] It is determined whether the target service parameter satisfies the alarm condition according to the target parameter value.
[0106] In one embodiment of the present invention, the monitoring and early warning module 740 is further used for:
[0107] Obtain an upper limit value and a lower limit value according to the mean and variance of the multiple parameter values, wherein the upper limit value is proportional to the mean and proportional to the variance, and the lower limit value is proportional to the mean and inversely proportional to the variance;
[0108] The parameter value between the upper limit value and the lower limit value is acquired as the target parameter value.
[0109] In one embodiment of the present invention, the business rule parameters also include the standard range of the target business parameters and the warning value of the number of times the target business parameters are reached. The monitoring and early warning module 740 is also used to:
[0110] Determine whether the number of times the target business parameter exceeds the standard range is greater than or equal to the standard-reaching number warning value; if the number of times the target business parameter exceeds the standard range is greater than or equal to the standard-reaching number warning value, then determine that the target business parameter meets the alarm condition; otherwise, determine that the target business parameter does not meet the alarm condition.
[0111] In one embodiment of the present invention, the business rule parameter also includes a monitoring time period, and the number of the target business parameters is at least two. The monitoring and warning module 740 is also used for:
[0112] Generate monitoring tasks corresponding to each of the target business parameters;
[0113] Acquire the execution time scale of each monitoring task according to the monitoring time period and monitoring step of each monitoring task;
[0114] If there is a conflict in the execution time scales of the monitoring tasks, adjusting the monitoring start time of one or more of the monitoring tasks to ensure that there is no conflict in the execution time scales of the monitoring tasks;
[0115] The monitoring tasks are independently executed according to the execution time scale of each monitoring task to achieve monitoring of the target business parameters.
[0116] For the specific definition of the business data monitoring and early warning device, please refer to the definition of the business data monitoring and early warning method above, which will not be repeated here. Each module in the above-mentioned business data monitoring and early warning device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0117] Based on the above description of the business data monitoring and early warning method, the present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the business data monitoring and early warning method described in any of the above embodiments is implemented. Specifically, the computer-readable storage medium in this embodiment can be understood by ordinary technicians in this field as follows: all or part of the steps of implementing the above method embodiments can be completed by hardware related to the computer program, and the aforementioned computer program can be stored in a computer-readable storage medium. When the computer program is executed, the following steps are performed:
[0118] Receiving a monitoring request sent by a service end, wherein the monitoring request is used to request a rule code from the service data monitoring and early warning end, wherein the rule code is of multiple types, and each rule code corresponds to a service rule parameter of a type of monitoring service;
[0119] In response to the monitoring request, the rule code is sent to the service end, so that the service end configures the service rule parameters of the rule code according to the monitoring source data and adds the configured rule code to the monitoring source data, wherein the monitoring source data includes service data;
[0120] Receiving the monitoring source data sent by the service end, acquiring the rule code carried by the monitoring source data, and extracting the business rule parameters of the monitoring source data from the rule code;
[0121] The target business parameter of the monitoring source data is monitored according to the business rule parameter, and alarm information is generated when the target business parameter meets the alarm condition.
[0122] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0123] Based on the above description of the business data monitoring and early warning method, the present invention also provides an electronic device. Figure 8 The structure diagram of the electronic device 800 in one embodiment of the present invention is shown. Figure 8 As shown, the electronic device 800 in this embodiment includes a memory 810 and a processor 820. The memory 810 may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories, on which a computer program is stored. The processor 820 is connected to the memory 810 in communication, and performs the following steps when calling the computer program:
[0124] Receiving a monitoring request sent by a service end, wherein the monitoring request is used to request a rule code from the service data monitoring and early warning end, wherein the rule code is of multiple types, and each rule code corresponds to a service rule parameter of a type of monitoring service;
[0125] In response to the monitoring request, the rule code is sent to the service end, so that the service end configures the service rule parameters of the rule code according to the monitoring source data and adds the configured rule code to the monitoring source data, wherein the monitoring source data includes service data;
[0126] Receiving the monitoring source data sent by the service end, acquiring the rule code carried by the monitoring source data, and extracting the business rule parameters of the monitoring source data from the rule code;
[0127] The target business parameter of the monitoring source data is monitored according to the business rule parameter, and alarm information is generated when the target business parameter meets the alarm condition.
[0128] In this embodiment, the processor 820 can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components.
[0129] Optionally, the electronic device 800 may further include a display 830. The display 830 is communicatively connected with the memory 810 and the processor 820, and is used to display a GUI interaction interface related to the user behavior analysis method.
[0130] It should be noted that, in the above-mentioned embodiments, the references in the specification to "this embodiment", "an embodiment", "another embodiment", "in some exemplary embodiments" or "other embodiments" indicate that the specific features, structures or characteristics described in conjunction with the embodiments are included in at least some embodiments, but not necessarily all embodiments. Multiple occurrences of "this embodiment", "an embodiment", "another embodiment" do not necessarily all refer to the same embodiment. In the above-mentioned embodiments, although the present invention has been described in conjunction with specific embodiments of the present invention, many replacements, modifications and variations of these embodiments will be obvious to those of ordinary skill in the art based on the foregoing description. For example, other storage structures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed. The embodiments of the present invention are intended to cover all such replacements, modifications and variations that fall within the broad scope of the appended claims.
[0131] The protection scope of the business data monitoring and early warning method described in the present invention is not limited to the execution order of the steps listed in this embodiment. All solutions implemented by adding, reducing or replacing steps in the prior art based on the principles of the present invention are included in the protection scope of the present invention.
[0132] In summary, the business data monitoring and early warning method described in one or more embodiments of the present invention can monitor the monitoring source data in real time and generate alarm information when the preset conditions are met, wherein the monitoring source data can be the business data that the business end needs to focus on. Therefore, the business data monitoring and early warning method can solve the shortcomings of the existing monitoring platform in monitoring business data. In addition, the business data monitoring and early warning method can also classify and store the business data sent by the business end, so as to provide a data source for subsequent data analysis and decision-making processes. Therefore, the present invention effectively overcomes the various shortcomings in the prior art and has a high industrial utilization value.
[0133] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. A business data monitoring and early warning method, characterized in that: Applied to the business data monitoring and early warning end, the business data monitoring and early warning method includes: Receiving a monitoring request sent by a service end, wherein the monitoring request is used to request a rule code from the service data monitoring and early warning end, wherein the rule code is of multiple types, and each rule code corresponds to a service rule parameter of a type of monitoring service; In response to the monitoring request, the rule code is sent to the service end, so that the service end configures the service rule parameters of the rule code according to the monitoring source data and adds the configured rule code to the monitoring source data, wherein the monitoring source data includes service data; Receiving the monitoring source data sent by the service end, acquiring the rule code carried by the monitoring source data, and extracting the business rule parameters of the monitoring source data from the rule code; Monitoring target business parameters of the monitoring source data according to the business rule parameters, and generating alarm information when the target business parameters meet the alarm conditions; The business rule parameters include the monitoring step of the target business parameters, and monitoring the target business parameters of the monitoring source data according to the business rule parameters includes: Acquire the target service parameters in real time and store them in a distributed memory or cache; The target service parameters are read from the distributed memory or cache one by one according to the monitoring step length, and it is determined whether the target service parameters meet the alarm condition.
2. The business data monitoring and early warning method according to claim 1 is characterized in that: Determining whether the target service parameter meets the alarm condition includes: Reading multiple parameter values of the target service parameter within a target time period from the distributed memory or cache, where the target time period refers to a time period between the last reading time and the current reading time; It is determined whether the target service parameter meets the alarm condition according to the multiple parameter values.
3. The business data monitoring and early warning method according to claim 2 is characterized in that: Determining whether the target service parameter satisfies the alarm condition according to the multiple parameter values includes: Obtaining the mean and variance of the multiple parameter values; Selecting a target parameter value from the plurality of parameter values according to the means and variances of the plurality of parameter values; It is determined whether the target service parameter satisfies the alarm condition according to the target parameter value.
4. The business data monitoring and early warning method according to claim 3 is characterized in that: Selecting a target parameter value from the plurality of parameter values according to the means and variances of the plurality of parameter values comprises: Obtain an upper limit value and a lower limit value according to the mean and variance of the multiple parameter values, wherein the upper limit value is proportional to the mean and proportional to the variance, and the lower limit value is proportional to the mean and inversely proportional to the variance; The parameter value between the upper limit value and the lower limit value is acquired as the target parameter value.
5. The business data monitoring and early warning method according to claim 1 is characterized in that: The business rule parameters also include the standard range of the target business parameter and the standard-reaching times warning value, and judging whether the target business parameter meets the alarm condition includes: If the number of times the target service parameter exceeds the standard range is greater than or equal to the standard-reaching number warning value, it is determined that the target service parameter meets the alarm condition; otherwise, it is determined that the target service parameter does not meet the alarm condition.
6. The business data monitoring and early warning method according to claim 1 is characterized in that: The business rule parameters also include a monitoring time period, the number of the target business parameters is at least two, and the target business parameters of the monitoring source data monitored according to the business rule parameters include: Generate monitoring tasks corresponding to each of the target business parameters; Acquire the execution time scale of each monitoring task according to the monitoring time period and monitoring step of each monitoring task; If there is a conflict in the execution time scales of the monitoring tasks, adjusting the monitoring start time of one or more of the monitoring tasks to ensure that there is no conflict in the execution time scales of the monitoring tasks; The monitoring tasks are independently executed according to the execution time scale of each monitoring task to achieve monitoring of the target business parameters.
7. A business data monitoring and early warning device, characterized in that: Applied to a business data monitoring and early warning terminal, the business data monitoring and early warning device comprises: A monitoring request receiving module, used for receiving a monitoring request sent by a service end, wherein the monitoring request is used for requesting a rule code from the service data monitoring and early warning end, wherein the rule code is of multiple types, and each rule code corresponds to a service rule parameter of a type of monitoring service; A monitoring request response module, configured to send the rule code to the service end in response to the monitoring request, so that the service end configures the service rule parameters of the rule code according to the monitoring source data and adds the configured rule code to the monitoring source data, wherein the monitoring source data includes service data; A monitoring source data receiving module, used for receiving the monitoring source data sent by the service end, obtaining the rule code carried by the monitoring source data, and extracting the business rule parameters of the monitoring source data from the rule code; A monitoring and warning module, used to monitor the target business parameters of the monitoring source data according to the business rule parameters, and generate alarm information when the target business parameters meet the alarm conditions; The business rule parameters include the monitoring step of the target business parameters, and monitoring the target business parameters of the monitoring source data according to the business rule parameters includes: Acquire the target service parameters in real time and store them in a distributed memory or cache; The target service parameters are read from the distributed memory or cache one by one according to the monitoring step length, and it is determined whether the target service parameters meet the alarm condition.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the business data monitoring and early warning method described in any one of claims 1 to 6 is implemented.
9. An electronic device, characterized in that: The electronic device comprises: A memory storing a computer program; A processor is communicatively connected to the memory, and executes the business data monitoring and early warning method according to any one of claims 1 to 6 when calling the computer program.
