Data monitoring method, device, electronic device and storage medium
By screening and comparing data transmission amplitude values and blocking abnormal data, the problem of inaccurate data monitoring in the existing technology is solved, and the accuracy of data monitoring and the stability of the business system are improved.
Patent Information
- Application Number
- CN202011528795.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-22
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2040-12-22
AI Technical Summary
In the process of monitoring big data batch runs, existing data monitoring methods have rough data field-level granularity and random formats, which results in normal available data being blocked and affecting the accuracy of data monitoring.
By obtaining historical data sets and real-time data sets, filtering abnormal data, calculating the transmission amplitude value of abnormal data, comparing the transmission amplitude value of abnormal real-time data and historical data based on timestamps, judging whether to block normal real-time data sets, and ensuring that only transmission that meets the requirements is conditional data.
It improves the accuracy of data monitoring, prevents normal data from being mistakenly blocked, and ensures the normal operation of the business system.
Smart Images

Figure CN112559295B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of big data, and in particular to a data monitoring method, device, electronic device and computer-readable storage medium. Background Art
[0002] In the business system, the business system data is updated by running big data batches every day to update the historical data in the business system. Data monitoring is used to monitor some data that do not meet strict standards and specifications during the big data batch running process to prevent these data that do not meet strict standards and specifications from flowing into the business system and causing the business system to be unable to operate normally.
[0003] At present, data monitoring usually uses data field-level rules to monitor and set up blocking data from flowing into business systems. Due to the coarse granularity of existing data field levels and the arbitrary format of data fields, it is possible that normally available data will be blocked, thus affecting the accuracy of data monitoring. Summary of the invention
[0004] The present invention provides a data monitoring method, device, electronic equipment and computer-readable storage medium, the main purpose of which is to improve the accuracy of data monitoring.
[0005] To achieve the above object, the present invention provides a data monitoring method, comprising:
[0006] Acquire a historical data set and a real-time data set, filter out abnormal data from the real-time data set, and obtain an abnormal real-time data set and a normal real-time data set;
[0007] Based on a preset timestamp, collecting the abnormal historical data change amount of the historical data set, and configuring the abnormal historical data transmission amplitude value of the historical data set according to the abnormal historical data change amount;
[0008] Based on the timestamp, collecting the abnormal real-time data variation of the abnormal real-time data set, and configuring the abnormal real-time data transmission amplitude value of the abnormal real-time data set according to the abnormal real-time data variation;
[0009] Determine whether the abnormal real-time data transmission amplitude value is greater than the abnormal historical data transmission amplitude value;
[0010] If the abnormal real-time data transmission amplitude value is greater than the abnormal historical data transmission amplitude value, the normal real-time data set is blocked;
[0011] If the abnormal real-time data transmission amplitude value is not greater than the abnormal historical data transmission amplitude value, the normal real-time data set is transmitted to the business system.
[0012] Optionally, filtering out abnormal data from the real-time data set to obtain an abnormal real-time data set and a normal real-time data set includes:
[0013] Filter out duplicate data in the real-time data set to obtain a first abnormal real-time data set;
[0014] Filter out abnormal value data in the real-time data set to obtain a second abnormal real-time data set;
[0015] Aggregating the first abnormal real-time data set and the second abnormal real-time data set to obtain the abnormal real-time data set;
[0016] The abnormal real-time data set is removed from the real-time data set to obtain a normal real-time data set.
[0017] Optionally, filtering out duplicate data in the real-time data set to obtain a first abnormal real-time data set includes:
[0018] The distance value between any two real-time data in the real-time data set is calculated. When the distance value between any two real-time data in the real-time data set is less than a preset threshold, any one real-time data is screened out as the first abnormal real-time data, and the first abnormal real-time data set is obtained according to the first abnormal real-time data.
[0019] Optionally, calculating the distance value between any two real-time data in the real-time data set includes:
[0020] The distance value between any two real-time data in the real-time data set is calculated using the following method:
[0021]
[0022] Among them, d represents the distance value between any two real-time data in the real-time data set. and Represents any two real-time data in the real-time data set.
[0023] Optionally, the collecting the abnormal historical data change amount of the historical data set based on a preset timestamp includes:
[0024] The month-on-month data change amount of the abnormal data in the historical data set is calculated within the timestamp, and the month-on-month data change amounts are added to obtain the abnormal historical data change amount.
[0025] Optionally, configuring the abnormal historical data transmission amplitude value of the historical data set according to the abnormal historical data change amount includes:
[0026] Calculate the average value of the data change amplitude of the abnormal historical data change;
[0027] Identify the maximum data change amount and the minimum data change amount of the abnormal historical data change amount, and calculate the difference data change amplitude value between the maximum data change amount and the minimum data change amount;
[0028] The data change amplitude mean value is added to the difference data change amplitude value to obtain the abnormal historical data transmission amplitude value.
[0029] Optionally, the calculating the data change amplitude mean of the abnormal historical data change amount includes:
[0030] The following method is used to calculate the average value of the data change amplitude of the abnormal historical data change:
[0031] J=s / t
[0032] Among them, J represents the mean value of data change amplitude, s represents the change amount of abnormal historical data, and t represents the total time of timestamp.
[0033] In order to solve the above problem, the present invention further provides a data monitoring device, the device comprising:
[0034] A screening module is used to obtain a historical data set and a real-time data set, and screen out abnormal data from the real-time data set to obtain an abnormal real-time data set and a normal real-time data set;
[0035] A configuration module, configured to collect the abnormal historical data variation of the historical data set based on a preset timestamp, and configure the abnormal historical data transmission amplitude value of the historical data set according to the abnormal historical data variation;
[0036] The configuration module is further used to collect the abnormal real-time data change amount of the abnormal real-time data set based on the timestamp, and configure the abnormal real-time data transmission amplitude value of the abnormal real-time data set according to the abnormal real-time data change amount;
[0037] A judgment module, used to judge whether the abnormal real-time data transmission amplitude value is greater than the abnormal historical data transmission amplitude value;
[0038] A blocking module, configured to block the normal real-time data set when the abnormal real-time data transmission amplitude value is greater than the abnormal historical data transmission amplitude value;
[0039] The transmission module is used to transmit the normal real-time data set to the business system when the abnormal real-time data transmission amplitude value is not greater than the abnormal historical data transmission amplitude value.
[0040] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:
[0041] at least one processor; and,
[0042] a memory communicatively connected to the at least one processor; wherein,
[0043] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor to implement the data monitoring method described above.
[0044] In order to solve the above problem, the present invention also provides a computer-readable storage medium, in which at least one computer program is stored. The at least one computer program is executed by a processor in an electronic device to implement the above-mentioned data monitoring method.
[0045] The embodiment of the present invention first obtains the historical data set and the real-time data set, filters out the abnormal data from the real-time data set, obtains the abnormal real-time data set and the normal real-time data set, and realizes the premise of data monitoring; secondly, the embodiment of the present invention collects the abnormal historical data change of the historical data set based on the preset timestamp, configures the abnormal historical data transmission amplitude value of the historical data set according to the abnormal historical data change, and collects the abnormal real-time data change of the abnormal real-time data set based on the timestamp, configures the abnormal real-time data transmission amplitude value of the abnormal real-time data set according to the abnormal real-time data change, and can effectively block the abnormal data exceeding the amplitude value, thereby improving the accuracy of data monitoring and ensuring that the business system is not affected; further, the embodiment of the present invention executes the transmission of the normal real-time data set in the business system according to the abnormal real-time data transmission amplitude value and the abnormal historical data transmission amplitude value. Therefore, a data monitoring method, device, electronic device and storage medium proposed by the present invention can improve the accuracy of data monitoring. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 A schematic diagram of a flow chart of a data monitoring method provided by an embodiment of the present invention;
[0047] Figure 2 In the first embodiment of the present invention Figure 1 A detailed flowchart of one of the steps in the provided data monitoring method;
[0048] Figure 3 A schematic diagram of a module of a data monitoring device provided by an embodiment of the present invention;
[0049] Figure 4 A schematic diagram of the internal structure of an electronic device for implementing a data monitoring method provided by an embodiment of the present invention;
[0050] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0051] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0052] The embodiment of the present application provides a data monitoring method. The execution subject of the data monitoring method includes but is not limited to at least one of the electronic devices such as a server, a terminal, etc. that can be configured to execute the method provided by the embodiment of the present application. In other words, the data monitoring method can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc.
[0053] Reference Figure 1 FIG. 1 is a flow chart of a data monitoring method provided by an embodiment of the present invention. In the embodiment of the present invention, the data monitoring method includes:
[0054] S1. Acquire a historical data set and a real-time data set, filter out abnormal data from the real-time data set, and obtain an abnormal real-time data set and a normal real-time data set.
[0055] In an embodiment of the present invention, the historical data set refers to data that already exists in the business system, including mobile phone numbers and landline numbers, etc. The real-time data set refers to data to be stored in the business system, which also includes mobile phone numbers and landline numbers, etc. The business system can be an application system of a bank, which is used to help users handle business more efficiently.
[0056] Further, in an embodiment of the present invention, the historical data set is queried from the database of the corresponding business system through a SQL query statement, and the real-time data set is collected based on actual business scenarios, such as real-time data filled in by a user when applying for a bank card at a bank. The SQL query statement includes a select statement.
[0057] Furthermore, in actual business scenarios, many collected real-time data anomalies may occur, such as incorrect length of the mobile phone number filled in by the user, duplication of the collected real-time data, etc. If the collected real-time data is directly stored in the business system, it will cause storage pressure on the business system and waste of business system storage resources. Therefore, an embodiment of the present invention filters out abnormal data from the real-time data set to reduce the data storage pressure of subsequent business systems.
[0058] In detail, the filtering out abnormal data from the real-time data set to obtain an abnormal real-time data set and a normal real-time data set includes: filtering out duplicate data in the real-time data set to obtain a first abnormal real-time data set; filtering out abnormal value data in the real-time data set to obtain a second abnormal real-time data set; aggregating the first abnormal real-time data set and the second abnormal real-time data set to obtain the abnormal real-time data set; and removing the abnormal real-time data set from the real-time data set to obtain a normal real-time data set.
[0059] Wherein, the filtering out duplicate data in the real-time data set to obtain the first abnormal real-time data set includes: calculating the distance value of any two real-time data in the real-time data set, when the distance value of any two real-time data in the real-time data set is less than a preset threshold, it indicates that the two real-time data are duplicate data, filtering out any one real-time data as the first abnormal real-time data, and obtaining the first abnormal real-time data set according to the first abnormal real-time data. Optionally, the preset threshold is 0.1.
[0060] In an optional embodiment, the distance value between any two real-time data in the real-time data set is calculated using the following method:
[0061]
[0062] Among them, d represents the distance value between any two real-time data in the real-time data set. and Represents any two real-time data in the real-time data set.
[0063] Further, the abnormal value data uses a regular expression to determine whether the real-time data in the real-time data set is legal. If the real-time data in the real-time data set is legal, it means that the corresponding real-time data is not abnormal data. If the real-time data in the real-time data set is illegal, it means that the corresponding real-time data is abnormal data. For example, if the character length of the real-time data in the real-time data set exceeds the standard character length, the corresponding real-time data is screened out as the second abnormal real-time data.
[0064] The regular expression is set based on user needs. For example, the regular expression for a mobile phone number is set as follows: ^[1][3,4,5][0-9]{11}$ / , wherein [1] indicates that the first digit of the mobile phone number is 1, [3,4,5,7,8] indicates that the second to fourth digits of the mobile phone number are 3, 4, and 5, [0-9] indicates that the fifth to eleventh digits of the mobile phone number are any digits from 0 to 9, and {11} indicates that the mobile phone number is eleven digits.
[0065] Furthermore, in order to ensure the privacy and availability of the normal real-time data set, the normal real-time data set may also be stored in a blockchain node.
[0066] S2. Based on a preset timestamp, collect the abnormal historical data change amount of the historical data set, and configure the abnormal historical data transmission amplitude value of the historical data set according to the abnormal historical data change amount.
[0067] It should be understood that the amount of data stored in the business system in different time periods is different for the historical data set. For example, the amount of data stored in the business system on the first day is 10 million, and the amount of data stored in the business system on the second day is 5 million. Therefore, the embodiment of the present invention collects the abnormal historical data changes of the historical data set according to the preset timestamp to identify the acceptable data storage amount of the business system within the corresponding timestamp, thereby ensuring the normal storage of subsequent real-time data. The preset timestamp is set based on different user needs. In the embodiment of the present invention, the preset timestamp is one week.
[0068] Furthermore, collecting the abnormal historical data change amount of the historical data set based on a preset timestamp includes: calculating the month-on-month data change amount of the abnormal data in the historical data set within the timestamp, adding the month-on-month data change amounts to obtain the abnormal historical data change amount.
[0069] In an optional embodiment, the month-on-month data change of the abnormal data in the historical data set is calculated within the timestamp using the following method:
[0070] C=df
[0071] Among them, C represents the month-on-month data change, d represents the number of historical data at the Tth time within the timestamp, and f represents the number of historical data at the T-1th time within the timestamp.
[0072] Furthermore, since the historical data set has been stored in the business system, it means that the abnormal historical data change of the historical data set is within the acceptable range of the business system. Therefore, the embodiment of the present invention configures the abnormal historical data transmission amplitude value of the historical data set according to the abnormal historical data change to determine whether normal real-time data in subsequent real-time data can be stored in the business system.
[0073] For details, see Figure 2 As shown, configuring the abnormal historical data transmission amplitude value of the historical data set according to the abnormal historical data change amount includes:
[0074] S20, calculating the average value of the data change amplitude of the abnormal historical data change;
[0075] S21, identifying the maximum data change amount and the minimum data change amount of the abnormal historical data change amount, and calculating the difference data change amplitude value between the maximum data change amount and the minimum data change amount;
[0076] S22. Add the data change amplitude mean value to the difference data change amplitude value to obtain the abnormal historical data transmission amplitude value.
[0077] In an optional embodiment, the data change amplitude mean of the abnormal historical data change amount is calculated using the following method:
[0078] J=s / t
[0079] Among them, J represents the mean value of data change amplitude, s represents the change amount of abnormal historical data, and t represents the total time of timestamp.
[0080] S3. Based on the timestamp, collect the abnormal real-time data variation of the abnormal real-time data set, and configure the abnormal real-time data transmission amplitude value of the abnormal real-time data set according to the abnormal real-time data variation.
[0081] In an embodiment of the present invention, collecting the abnormal real-time data change amount of the abnormal real-time data set based on the timestamp includes: calculating the month-on-month data change amount of the abnormal real-time data set within the timestamp, adding the month-on-month data change amounts of the abnormal real-time data set to obtain the abnormal real-time data change amount.
[0082] In an optional embodiment, the month-on-month data change of the abnormal real-time data set is calculated within the timestamp using the following method:
[0083] Y=XZ
[0084] Among them, Y represents the month-on-month data change of the historical data set, X represents the number of abnormal real-time data at the Tth time within the timestamp, and Z represents the number of abnormal real-time data at the T-1th time within the timestamp.
[0085] Furthermore, the embodiment of the present invention configures the abnormal real-time data transmission amplitude value of the abnormal real-time data set according to the abnormal real-time data change amount, so as to identify the substitution of the abnormal real-time data transmission amplitude value and the abnormal historical data transmission amplitude value, thereby determining whether the normal real-time data set in the real-time data set can be transmitted to the business system. Among them, the method of configuring the abnormal real-time data transmission amplitude value of the abnormal real-time data set according to the abnormal real-time data change amount can refer to the calculation method of the historical data transmission amplitude value mentioned above, and will not be further elaborated here.
[0086] S4. Determine whether the abnormal real-time data transmission amplitude value is greater than the abnormal historical data transmission amplitude value.
[0087] If the abnormal real-time data transmission amplitude value is greater than the abnormal historical data transmission amplitude value, S5 is executed to block the normal real-time data set.
[0088] If the abnormal real-time data transmission amplitude value is greater than the abnormal historical data transmission amplitude value, it means that the business system cannot meet the normal storage of normal real-time data corresponding to the abnormal real-time data transmission amplitude value. Therefore, the embodiment of the present invention blocks the normal real-time data set to ensure the normal operation of the business system.
[0089] If the abnormal real-time data transmission amplitude value is not greater than the abnormal historical data transmission amplitude value, then S6 is executed to transmit the normal real-time data set to the business system.
[0090] If the abnormal real-time data transmission amplitude value is not greater than the abnormal historical data transmission amplitude value, it means that the business system can meet the normal storage of normal real-time data corresponding to the abnormal real-time data transmission amplitude value. Therefore, the embodiment of the present invention transmits the normal real-time data set to the business system.
[0091] The embodiment of the present invention first obtains the historical data set and the real-time data set, filters out the abnormal data from the real-time data set, obtains the abnormal real-time data set and the normal real-time data set, and realizes the premise of data monitoring; secondly, the embodiment of the present invention collects the abnormal historical data change amount of the historical data set based on the preset timestamp, configures the abnormal historical data transmission amplitude value of the historical data set according to the abnormal historical data change amount, and collects the abnormal real-time data change amount of the abnormal real-time data set based on the timestamp, configures the abnormal real-time data transmission amplitude value of the abnormal real-time data set according to the abnormal real-time data change amount, and can effectively block the abnormal data exceeding the amplitude value, thereby improving the accuracy of data monitoring and ensuring that the business system is not affected; further, the embodiment of the present invention executes the transmission of the normal real-time data set in the business system according to the abnormal real-time data transmission amplitude value and the abnormal historical data transmission amplitude value. Therefore, the present invention can improve the accuracy of data monitoring.
[0092] like Figure 3 The figure shows a functional module diagram of the data monitoring device of the present invention.
[0093] The data monitoring device 100 of the present invention can be installed in an electronic device. According to the functions to be implemented, the data monitoring device may include a screening module 101, a configuration module 102, a judgment module 103, a blocking module 104 and a transmission module 105. The module described in the present invention may also be referred to as a unit, which refers to a series of computer program segments that can be executed by a processor of an electronic device and can complete a fixed function, and is stored in a memory of the electronic device.
[0094] In this embodiment, the functions of each module / unit are as follows:
[0095] The screening module 101 is used to obtain a historical data set and a real-time data set, and screen out abnormal data from the real-time data set to obtain an abnormal real-time data set and a normal real-time data set;
[0096] The configuration module 102 is used to collect the abnormal historical data change amount of the historical data set based on a preset timestamp, and configure the abnormal historical data transmission amplitude value of the historical data set according to the abnormal historical data change amount;
[0097] The configuration module 102 is further configured to collect the abnormal real-time data variation of the abnormal real-time data set based on the timestamp, and configure the abnormal real-time data transmission amplitude value of the abnormal real-time data set according to the abnormal real-time data variation;
[0098] The judging module 103 is used to judge whether the abnormal real-time data transmission amplitude value is greater than the abnormal historical data transmission amplitude value;
[0099] The blocking module 104 is used to block the normal real-time data set when the abnormal real-time data transmission amplitude value is greater than the abnormal historical data transmission amplitude value;
[0100] The transmission module 105 is configured to transmit the normal real-time data set to a business system when the abnormal real-time data transmission amplitude value is not greater than the abnormal historical data transmission amplitude value.
[0101] In detail, each module in the data monitoring device 100 in the embodiment of the present invention is used in the same manner as described above. Figure 1 and Figure 2 The data monitoring method described in the present invention has the same technical means and can produce the same technical effects, so I will not go into details here.
[0102] like Figure 4 FIG. 1 is a schematic diagram of the structure of an electronic device for implementing the data monitoring method of the present invention.
[0103] The electronic device 1 may include a processor 10 , a memory 11 , and a bus, and may also include a computer program stored in the memory 11 and executable on the processor 10 , such as a data monitoring program 12 .
[0104] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a mobile hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. In some embodiments, the memory 11 may be an internal storage unit of the electronic device 1, such as a mobile hard disk of the electronic device 1. In other embodiments, the memory 11 may also be an external storage device of the electronic device 1, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 1. Further, the memory 11 may also include both an internal storage unit of the electronic device 1 and an external storage device. The memory 11 may not only be used to store application software and various types of data installed in the electronic device 1, such as data monitoring codes, etc., but also be used to temporarily store data that has been output or is to be output.
[0105] The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and a combination of various control chips, etc. The processor 10 is the control core (Control Unit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and executes various functions and processes data of the electronic device 1 by running or executing programs or modules stored in the memory 11 (for example, executing data monitoring, etc.), and calling data stored in the memory 11.
[0106] The bus may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.
[0107] Figure 4Only an electronic device with components is shown, and those skilled in the art will understand that Figure 4 The structure shown does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0108] For example, although not shown, the electronic device 1 may also include a power source (such as a battery) for supplying power to various components. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device 1 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
[0109] Furthermore, the electronic device 1 may also include a network interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device 1 and other electronic devices.
[0110] Optionally, the electronic device 1 may further include a user interface, which may be a display, an input unit (such as a keyboard), or a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device 1 and to display a visual user interface.
[0111] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.
[0112] The data monitoring 12 stored in the memory 11 in the electronic device 1 is a combination of multiple computer programs, which, when running in the processor 10, can achieve:
[0113] Acquire a historical data set and a real-time data set, filter out abnormal data from the real-time data set, and obtain an abnormal real-time data set and a normal real-time data set;
[0114] Based on a preset timestamp, collecting the abnormal historical data change amount of the historical data set, and configuring the abnormal historical data transmission amplitude value of the historical data set according to the abnormal historical data change amount;
[0115] Based on the timestamp, collecting the abnormal real-time data variation of the abnormal real-time data set, and configuring the abnormal real-time data transmission amplitude value of the abnormal real-time data set according to the abnormal real-time data variation;
[0116] Determine whether the abnormal real-time data transmission amplitude value is greater than the abnormal historical data transmission amplitude value;
[0117] If the abnormal real-time data transmission amplitude value is greater than the abnormal historical data transmission amplitude value, the normal real-time data set is blocked;
[0118] If the abnormal real-time data transmission amplitude value is not greater than the abnormal historical data transmission amplitude value, the normal real-time data set is transmitted to the business system.
[0119] Specifically, the specific implementation method of the processor 10 for the above computer program can refer to Figure 1 The description of the relevant steps in the corresponding embodiments will not be repeated here.
[0120] Furthermore, if the module / unit integrated in the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).
[0121] The present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program can implement:
[0122] Acquire a historical data set and a real-time data set, filter out abnormal data from the real-time data set, and obtain an abnormal real-time data set and a normal real-time data set;
[0123] Based on a preset timestamp, collecting the abnormal historical data change amount of the historical data set, and configuring the abnormal historical data transmission amplitude value of the historical data set according to the abnormal historical data change amount;
[0124] Based on the timestamp, collecting the abnormal real-time data variation of the abnormal real-time data set, and configuring the abnormal real-time data transmission amplitude value of the abnormal real-time data set according to the abnormal real-time data variation;
[0125] Determine whether the abnormal real-time data transmission amplitude value is greater than the abnormal historical data transmission amplitude value;
[0126] If the abnormal real-time data transmission amplitude value is greater than the abnormal historical data transmission amplitude value, the normal real-time data set is blocked;
[0127] If the abnormal real-time data transmission amplitude value is not greater than the abnormal historical data transmission amplitude value, the normal real-time data set is transmitted to the business system.
[0128] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0129] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0130] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0131] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0132] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.
[0133] The blockchain referred to in this invention is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.
[0134] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system claim can also be implemented by one unit or device through software or hardware. The second and other words are used to indicate names, but not to indicate any particular order.
[0135] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A data monitoring method, characterized in that: The method comprises: Acquire a historical data set and a real-time data set, filter out abnormal data from the real-time data set, and obtain an abnormal real-time data set and a normal real-time data set; Based on a preset timestamp, collecting the abnormal historical data change amount of the historical data set, and configuring the abnormal historical data transmission amplitude value of the historical data set according to the abnormal historical data change amount; Based on the timestamp, collecting the abnormal real-time data variation of the abnormal real-time data set, and configuring the abnormal real-time data transmission amplitude value of the abnormal real-time data set according to the abnormal real-time data variation; Determine whether the abnormal real-time data transmission amplitude value is greater than the abnormal historical data transmission amplitude value; If the abnormal real-time data transmission amplitude value is greater than the abnormal historical data transmission amplitude value, the normal real-time data set is blocked; If the abnormal real-time data transmission amplitude value is not greater than the abnormal historical data transmission amplitude value, the normal real-time data set is transmitted to the business system; Wherein, collecting the abnormal historical data change amount of the historical data set based on a preset timestamp includes: calculating the month-on-month data change amount of the abnormal data in the historical data set within the timestamp, adding the month-on-month data change amounts to obtain the abnormal historical data change amount; The configuring the abnormal historical data transmission amplitude value of the historical data set according to the abnormal historical data variation includes: calculating the data variation amplitude mean of the abnormal historical data variation; identifying the maximum data variation and the minimum data variation of the abnormal historical data variation, and calculating the difference data variation amplitude value of the maximum data variation and the minimum data variation; adding the data variation amplitude mean and the difference data variation amplitude value to obtain the abnormal historical data transmission amplitude value; The calculating the mean value of the data change amplitude of the abnormal historical data change amount includes: calculating the mean value of the data change amplitude of the abnormal historical data change amount by the following method: J=s / t Among them, J represents the mean value of data change amplitude, s represents the change amount of abnormal historical data, and t represents the total time of timestamp.
2. The data monitoring method according to claim 1, characterized in that: The step of filtering out abnormal data from the real-time data set to obtain an abnormal real-time data set and a normal real-time data set includes: Screening out duplicate data in the real-time data set to obtain a first abnormal real-time data set; Filter out abnormal value data in the real-time data set to obtain a second abnormal real-time data set; Aggregating the first abnormal real-time data set and the second abnormal real-time data set to obtain the abnormal real-time data set; The abnormal real-time data set is removed from the real-time data set to obtain a normal real-time data set.
3. The data monitoring method according to claim 2, characterized in that: The step of filtering out duplicate data in the real-time data set to obtain a first abnormal real-time data set includes: The distance value between any two real-time data in the real-time data set is calculated. When the distance value between any two real-time data in the real-time data set is less than a preset threshold, any one real-time data is screened out as the first abnormal real-time data, and the first abnormal real-time data set is obtained according to the first abnormal real-time data.
4. The data monitoring method according to claim 3, characterized in that: The calculating the distance value between any two real-time data in the real-time data set comprises: The distance value between any two real-time data in the real-time data set is calculated using the following method: Among them, d represents the distance value between any two real-time data in the real-time data set. and Represents any two real-time data in the real-time data set.
5. A data monitoring device, used to implement the data monitoring method according to any one of claims 1 to 4, characterized in that: The device comprises: A screening module is used to obtain a historical data set and a real-time data set, and screen out abnormal data from the real-time data set to obtain an abnormal real-time data set and a normal real-time data set; A configuration module, configured to collect the abnormal historical data variation of the historical data set based on a preset timestamp, and configure the abnormal historical data transmission amplitude value of the historical data set according to the abnormal historical data variation; The configuration module is further used to collect the abnormal real-time data change amount of the abnormal real-time data set based on the timestamp, and configure the abnormal real-time data transmission amplitude value of the abnormal real-time data set according to the abnormal real-time data change amount; A judgment module, used to judge whether the abnormal real-time data transmission amplitude value is greater than the abnormal historical data transmission amplitude value; A blocking module, configured to block the normal real-time data set when the abnormal real-time data transmission amplitude value is greater than the abnormal historical data transmission amplitude value; The transmission module is used to transmit the normal real-time data set to the business system when the abnormal real-time data transmission amplitude value is not greater than the abnormal historical data transmission amplitude value.
6. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the data monitoring method according to any one of claims 1 to 4.
7. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the data monitoring method according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Data monitoring method, device and equipment
CN110362442A
Method and device for identifying abnormal data of monitoring index data
CN111984503A
