Transaction system status monitoring method, device, equipment and storage medium
By analyzing the business volume parameters of the current and reference monitoring periods of the trading system and dynamically adjusting the alarm standards, the problem of false alarms caused by fixed thresholds in the existing technology is solved, and the accuracy and accuracy of status monitoring of the trading system are improved.
Patent Information
- Application Number
- CN202010037113.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-01-14
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2040-01-14
AI Technical Summary
Existing trading system monitoring methods use fixed thresholds for comparison, which results in the inability to distinguish changes in trading volume in different periods, resulting in a high probability of false alarms and affecting the normal operation of the system.
By analyzing the business volume parameters of the current monitoring period and the reference monitoring period, dynamic alarm standards are determined, and the reference monitoring period is dynamically adjusted to improve monitoring accuracy.
It improves the accuracy and accuracy of status monitoring of the trading system, reduces false alarms, and ensures stable operation of the system in different periods of time.
Smart Images

Figure CN111210225B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of Internet technology, and in particular to a method, device, equipment and storage medium for monitoring the status of a transaction system. Background Art
[0002] With the rapid development of my country's economy, various banking businesses have been widely developed. At the same time, various banking transaction systems have also made great progress. The bank's transaction system is the window for the bank to provide financial services to the outside world. The availability and security of the transaction system are closely related to the customer experience and are directly related to the public image of the bank among the vast number of customers. Therefore, it is necessary to monitor and ensure the continuous and stable operation of various transaction systems, and to detect and eliminate the faults that have occurred as soon as possible.
[0003] The current method for monitoring the trading system is to compare the relative value or absolute value of the successful transaction volume or failed transaction volume or the total transaction volume within a period of time to see if it exceeds a preset fixed threshold, and issue an alarm if it exceeds.
[0004] However, using a fixed threshold for comparison will result in a one-size-fits-all problem, which will result in the same standard being used to judge transactions in different time periods. For example, it will be difficult to distinguish between the difference in transaction volume during the day and at night, and the difference in transaction volume during the off-season and peak season. This will increase the probability of false alarms and affect the normal operation of the banking system. Summary of the invention
[0005] The embodiments of the present invention provide a method, apparatus, device and storage medium for monitoring the status of a trading system. By judging the morphological characteristics of a current monitoring period and a reference monitoring period, dynamic alarm standards are determined according to different time periods, thereby improving the accuracy of the status monitoring of the trading system.
[0006] In a first aspect, an embodiment of the present invention provides a method for monitoring the status of a trading system, comprising:
[0007] If a monitoring trigger event of a target monitoring cycle is detected, determining a current monitoring period with the target monitoring cycle as the last monitoring period; wherein the current monitoring period includes at least one monitoring cycle;
[0008] Determine a reference monitoring period according to the current monitoring period in which the target monitoring cycle is located;
[0009] Acquire the traffic parameters of all monitoring periods in the current monitoring period and the reference monitoring period;
[0010] According to the traffic volume parameters, the traffic volume shape characteristics of the current monitoring period and the reference monitoring period are determined, and the status monitoring results of the transaction system are determined according to the traffic volume shape characteristics.
[0011] In a second aspect, an embodiment of the present invention further provides a state monitoring device for a trading system, comprising:
[0012] A current monitoring period determination module, configured to determine a current monitoring period with the target monitoring period as the last monitoring period if a monitoring triggering event of a target monitoring period is detected; wherein the current monitoring period includes at least one monitoring period;
[0013] A reference monitoring period determination module, used to determine a reference monitoring period according to a current monitoring period in which the target monitoring cycle is located;
[0014] A traffic parameter acquisition module, used to acquire traffic parameters of all monitoring periods in the current monitoring period and the reference monitoring period;
[0015] The status monitoring result determination module is used to determine the business volume shape characteristics of the current monitoring period and the reference monitoring period according to the business volume parameters, and determine the status monitoring result of the transaction system according to the business volume shape characteristics.
[0016] In a third aspect, an embodiment of the present invention further provides a device, including:
[0017] one or more processors;
[0018] a storage device for storing one or more programs,
[0019] When the one or more programs are executed by the one or more processors, the one or more processors implement the method for monitoring the status of a trading system as described in any embodiment of the present invention.
[0020] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for monitoring the status of a trading system as described in any embodiment of the present invention.
[0021] The embodiment of the present invention determines the current monitoring period and the reference monitoring period based on the detection of the monitoring trigger event, and further determines the status monitoring result of the trading system by analyzing the business volume morphology characteristics of the current monitoring period and the reference monitoring period. The reference monitoring period is dynamically adjusted according to the change of the current monitoring period, thereby improving the accuracy of monitoring the transaction volume in the current monitoring period, and further improving the accuracy of monitoring the status of the trading system. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 is a flow chart of a method for monitoring the status of a trading system in Embodiment 1 of the present invention;
[0023] Figure 2is a flow chart of a method for monitoring the status of a trading system in Embodiment 2 of the present invention;
[0024] Figure 3 is a schematic diagram of the structure of a state monitoring device for a trading system in Embodiment 3 of the present invention;
[0025] Figure 4 It is a schematic diagram of the structure of the device in the fourth embodiment of the present invention. DETAILED DESCRIPTION
[0026] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0027] Embodiment 1
[0028] Figure 1 This is a flow chart of the state monitoring method of the trading system in the first embodiment of the present invention. This embodiment can be applied to dynamically adapt to the change of the trading volume of the trading system to realize the dynamic monitoring of the state of the trading system. The method can be executed by the state monitoring device of the trading system, which can be implemented in software and / or hardware and can be configured in a device, for example, the device can be a background server or other device with communication and computing capabilities. Figure 1 As shown, the method specifically includes:
[0029] Step 101: If a monitoring trigger event of a target monitoring cycle is detected, determine a current monitoring period with the target monitoring cycle as the last monitoring period; wherein the current monitoring period includes at least one monitoring cycle.
[0030] Among them, the monitoring cycle refers to the pre-set time interval for performing a system transaction status detection. For example, the monitoring cycle can be set to 1 hour or 5 minutes, etc. The target monitoring cycle refers to a monitoring cycle that has just ended, that is, all transactions within the target monitoring cycle are completed, and subsequent transactions are all the next monitoring cycle. The target monitoring cycle is used to determine the time of the current monitoring period. The monitoring trigger event is used to locate the target monitoring cycle to ensure that the determined target monitoring cycle is the monitoring cycle that has just ended. The current monitoring period is used to indicate the current change cycle of the trading system. For common banking systems, the transaction volume change cycle is 24 hours, that is, when the trading system is healthy, the changes in the system transaction volume within each 24 hours are similar.
[0031] In this implementation, optionally, the monitoring triggering event of the target monitoring period includes:
[0032] Acquire the latest transaction generated by the transaction system. If the latest transaction is the first transaction in the current monitoring cycle, determine it as the monitoring trigger event of the target monitoring cycle, and take the previous monitoring cycle of the current monitoring cycle as the target monitoring cycle;
[0033] or,
[0034] If it is detected that the system time exceeds the starting time of the current monitoring cycle, it is determined as a monitoring trigger event of the target monitoring cycle, and the previous monitoring cycle of the current monitoring cycle is used as the target monitoring cycle.
[0035] Specifically, the monitoring trigger event of the target monitoring cycle includes: determining the current monitoring cycle in which the current time is located, and judging whether the latest transaction generated by the acquired trading system is the first transaction of the current monitoring cycle, that is, judging whether there is a transaction record in the current monitoring cycle. If the latest transaction is the first transaction of the latest monitoring cycle, it means that the previous monitoring cycle of the latest monitoring cycle has just ended. Taking it as the target monitoring cycle can ensure the timeliness of the status monitoring of the trading system and improve the monitoring efficiency. Exemplarily, the monitoring cycle to which the latest transaction generated by the trading system belongs is judged in real time. If it is detected that a certain transaction belongs to the first transaction of a monitoring cycle, it is a monitoring trigger event of the target monitoring cycle, and the previous monitoring cycle of the monitoring cycle corresponding to the transaction is the target monitoring cycle.
[0036] Alternatively, the monitoring trigger event of the target monitoring cycle includes: determining the time span of each monitoring cycle, such as the time starting point or time end point, etc. By comparing the current system time with the time starting point of each monitoring cycle, the current monitoring cycle is determined. For example, the time starting point of the current monitoring cycle is determined. If the system time exceeds the time starting point value, it means that the monitoring trigger event of the target monitoring cycle has occurred. It can also be set that the system time is equal to the time starting point of the current monitoring cycle, which is the monitoring trigger event of the target monitoring cycle. By judging the system time and the time starting point of the monitoring cycle, the monitoring cycle that has just ended can be accurately located, thereby improving the accuracy and real-time performance of determining the target monitoring cycle. For example, for a monitoring cycle time interval of 1 hour, each hour of the system time is the time starting point of a monitoring cycle. When an hour is reached, it means that the monitoring cycle of the previous hour has just ended, and the target monitoring cycle can be determined.
[0037] Optionally, when a monitoring trigger event of a target monitoring cycle is not detected, the transaction data acquired by the system is saved to update the transaction data of the latest monitoring cycle to provide a basis for determining the next monitoring trigger event.
[0038] Specifically, if the monitoring trigger event of the target monitoring cycle is detected according to the latest transaction of the trading system or according to the system time, the monitoring cycle that has just ended is determined to be the target monitoring cycle. And the current monitoring period with the target monitoring cycle as the last monitoring period is determined. The length of the current monitoring period can be set according to actual needs. Generally, it is set according to the change cycle of the system transaction volume, that is, the length of the current monitoring period is the length of a change cycle, which can reflect the latest transaction volume characteristics of the trading system.
[0039] Step 102: Determine a reference monitoring period according to the current monitoring period in which the target monitoring cycle is located.
[0040] The reference monitoring period is used to provide a reference for the transaction characteristics of the current monitoring period.
[0041] Specifically, after determining the length of the current monitoring period, a period with the same length as the current monitoring period is determined before the current monitoring period as the reference monitoring period. Optionally, the reference monitoring period and the current monitoring period are adjacent periods. For example, the length of the current monitoring period is set to 24 hours according to the cycle of changes in the system transaction volume, and the determined target monitoring period is from 9:00 on January 6 to 10:00 on January 6 (including 9:00 but excluding 10:00, the following description is the same), then the current monitoring period is from 10:00 on January 5 to 10:00 on January 6, and the reference monitoring period is from 10:00 on January 4 to 10:00 on January 5.
[0042] Step 103: Obtain the traffic parameters of all monitoring periods in the current monitoring period and the reference monitoring period.
[0043] Among them, the business volume parameter of the monitoring period is used to measure the transaction level within the monitoring period. In this embodiment, optionally, the business volume parameter includes the total transaction amount within the monitoring period, or the average transaction volume per unit time. Exemplarily, based on the above example, when the target monitoring period is from 9:00 on January 6 to 10:00 on January 6, the corresponding business volume parameter is the total transaction amount generated by the trading system within this hour, or the average transaction volume per second within this hour. The total transaction amount or the average transaction volume can be used to represent the overall level of transaction volume within the monitoring period.
[0044] Specifically, after determining the length of the current monitoring period and the reference monitoring period, determine the monitoring cycles included in each monitoring period, and determine the business volume parameters of each monitoring period. Exemplarily, based on the above example, for the current monitoring period from 10:00 on January 5 to 10:00 on January 6, which includes 24 monitoring cycles, the total transaction amount of all monitoring cycles is determined; for the reference monitoring period from 10:00 on January 4 to 10:00 on January 5, which also includes 24 monitoring cycles, the total transaction amount of all monitoring cycles is also determined as its business volume parameter.
[0045] Step 104: Determine the business volume shape characteristics of the current monitoring period and the reference monitoring period according to the business volume parameters, and determine the status monitoring result of the transaction system according to the business volume shape characteristics.
[0046] Among them, the business volume shape characteristics refer to the overall transaction level of each monitoring period determined based on all business volume parameters in the period.
[0047] Specifically, the business volume morphological characteristics of the current monitoring period are determined based on all the business volume parameters in the current monitoring period, and the business volume morphological characteristics of the reference monitoring period are determined similarly. For example, the business volume morphological characteristics can be represented in the form of a chart, the horizontal axis is the distribution of the monitoring cycle in the monitoring period, and the vertical axis is the business volume parameter corresponding to each monitoring cycle. The curve formed in the chart reflects the change trend of the transaction volume in the monitoring period. Compare whether the change trends of the business volume morphological characteristics are the same, and determine the status monitoring result of the trading system based on the comparison result. For example, based on the similarity of the waveform graphs in the chart, if the overlap of the waveform graphs is greater than the preset threshold, it means that the transaction volume in the current monitoring period is similar to the transaction volume change in the reference monitoring period, and the corresponding status monitoring result of the trading system is healthy; on the contrary, if the overlap is less than the preset threshold, it means that the transaction volume in the current monitoring period has changed compared with the reference monitoring period, indicating that the status of the trading system has failed.
[0048] The embodiment of the present invention determines the current monitoring period and the reference monitoring period based on the detection of the monitoring trigger event, and further determines the status monitoring result of the trading system by analyzing the business volume morphology characteristics of the current monitoring period and the reference monitoring period. The corresponding reference monitoring period is dynamically determined according to the change of the current monitoring period, thereby improving the accuracy of the monitoring of the transaction volume in the current monitoring period, and further improving the accuracy of the monitoring of the trading system status.
[0049] Embodiment 2
[0050] Figure 2 is a flow chart of a method for monitoring the status of a trading system in Embodiment 2 of the present invention. Embodiment 2 is further optimized on the basis of Embodiment 1. Figure 2As shown, the method includes:
[0051] Step 201: If a monitoring trigger event of a target monitoring cycle is detected, the target monitoring cycle is taken as the last monitoring cycle, and N monitoring cycles are determined forward, then the target monitoring cycle and the N monitoring cycles are determined as the current monitoring period.
[0052] Among them, N is determined according to the ratio of the preset change cycle to the monitoring cycle, and N is a positive integer greater than 1. The change cycle refers to the duration of the periodic change of the trading volume generated by the trading system, that is, in each change cycle of the trading system, the trading volume generated by the system should be similar. Therefore, setting the length of the monitoring period according to the length of the change cycle can ensure that the trend of trading volume changes within a monitoring period is regular, which is convenient for determining the change of trading volume and improving the monitoring accuracy of the trading system status. For example, in a common bank trading system, the trading volume change cycle is 24 hours, that is, when the trading system is healthy, the change of the system trading volume is similar within every 24 hours.
[0053] Specifically, the length of the change cycle and the length of the monitoring cycle are determined, and the number of monitoring cycles included in one change cycle is determined. Exemplarily, based on the above example, one change cycle includes 24 monitoring cycles, and the value of N is 23. After detecting the monitoring trigger event of the target monitoring cycle, the target monitoring cycle that has just ended is determined to be the last monitoring cycle in the current monitoring period, and 23 monitoring cycles before the target monitoring cycle are determined to constitute 24 monitoring cycles as the current monitoring period.
[0054] Step 202: Taking the previous monitoring period of the current monitoring period as the last monitoring period of the reference monitoring period, determine N monitoring periods forward, and then determine the previous monitoring period of the current monitoring period and the N monitoring periods as the reference monitoring period.
[0055] Specifically, after determining the current monitoring period, in order to ensure that the transaction change trend of the reference monitoring period is similar to that of the current monitoring period and has reference value, the most recent N+1 monitoring cycles before the current monitoring period are used as the reference monitoring period. Exemplarily, based on the above example, the current monitoring period is determined to be from 10:00 on January 5 to 10:00 on January 6. In order to ensure that the current monitoring period and the reference monitoring period are adjacent, 9:00 on January 5 to 10:00 on January 5 is used as the last monitoring period in the reference monitoring period. Before this monitoring period, 23 monitoring periods are determined to constitute 24 monitoring periods as the reference monitoring period.
[0056] Ensuring that the length of the current monitoring period and the reference monitoring period are the same ensures that the transaction change trends of the two monitoring periods have mutual reference value, thereby improving the accuracy of status monitoring.
[0057] Step 203: Obtain the traffic parameters of all monitoring periods in the current monitoring period and the reference monitoring period.
[0058] Step 204: determine a first feature vector according to the traffic volume parameters of the current monitoring period as the traffic volume morphology feature of the current monitoring period; determine a second feature vector according to the traffic volume parameters of the reference monitoring period as the traffic volume morphology feature of the reference monitoring period.
[0059] Specifically, the traffic parameters of each monitoring period in the current monitoring period are determined, and are expressed in vector form in chronological order to form a first feature vector. Exemplarily, the traffic parameters in the current monitoring period are determined to be a1, a2...a24, then the first feature vector is A[a1, a2...a24], and the vector is used to represent the traffic morphological characteristics of the current monitoring period.
[0060] Referring to the determination method of the first characteristic vector, the traffic volume parameters of each monitoring period in the reference monitoring period are determined, and are represented in vector form in chronological order. Exemplarily, the traffic volume parameters in the current monitoring period are determined to be b1, b2...b24, then the first characteristic vector is B[b1, b2...b24], and the vector is used to represent the traffic volume morphological characteristics of the current monitoring period.
[0061] The first eigenvector and the second eigenvector are essentially sampling and summarizing the historical trading volume of the system, representing the morphological characteristics of the trading volume changing over time.
[0062] Step 205: Determine the similarity between the first eigenvector and the second eigenvector.
[0063] Specifically, since the first feature vector and the second feature vector respectively reflect the business volume morphology characteristics in the current monitoring period and the reference monitoring period, in order to determine the current trading system status, it is necessary to determine the similarity of the two feature vectors. The similarity reflects the similarity of the transaction volume change trends in the two monitoring periods. The calculation result of represents the similarity between the first feature vector A and the second feature vector B.
[0064] Step 206: If the similarity is less than a preset threshold, it is determined that the status monitoring result of the transaction system is a fault.
[0065] Specifically, the preset threshold is determined according to the change trend of the trading system. Exemplarily, the preset threshold can be determined according to an empirical value or according to real-time data when the trading system fails.
[0066] If the similarity between the determined current monitoring period and the reference monitoring period is less than a preset threshold, indicating that the transaction data of the last monitoring cycle of the current monitoring period is abnormal, the status monitoring result of the transaction system is determined to be a fault.
[0067] Since the current monitoring period will change dynamically with the change of the target monitoring period, the corresponding reference monitoring period corresponding to the current monitoring period will also change dynamically, thereby realizing the setting of dynamic transaction volume alarm standards according to changes in time. That is, the determination of similarity is adaptively changed with the continuous changes in the monitoring cycle, thereby improving the accuracy of status monitoring.
[0068] Optionally, the embodiment of the present invention can set monitoring cycles of different lengths according to the needs of the most system status monitoring. For example, if it is necessary to achieve the effect of real-time detection of the status of the trading system, the length of the monitoring cycle can be shortened, for example, set to 5 seconds or even 1 second, and then a current monitoring period and a reference monitoring period are dynamically determined every second, thereby realizing real-time detection of the system status.
[0069] The embodiment of the present invention determines the current monitoring period and the corresponding reference monitoring period based on the detection of the monitoring trigger event, thereby ensuring the dynamic adaptability between the current monitoring period and the reference monitoring period. Then, by determining the first eigenvector and the second eigenvector, the trend of the transaction volume in the current monitoring period and the reference monitoring period over time is accurately reflected, thereby improving the monitoring visibility of the system transaction data. Finally, the system status is monitored based on the similarity between the first eigenvector and the second eigenvector, the data acquisition is convenient, the determination steps are simple, and the monitoring efficiency of the system is improved. The reference monitoring period is dynamically adjusted according to the changes in the current monitoring period, thereby improving the accuracy of monitoring the transaction volume in the current monitoring period, and then improving the accuracy of monitoring the trading system status.
[0070] Embodiment 3
[0071] Figure 3 is a schematic diagram of the structure of the state monitoring device of the trading system in the third embodiment of the present invention. This embodiment can be applied to dynamically adapt to the change of the trading volume of the trading system to realize the dynamic monitoring of the state of the trading system. Figure 3 As shown, the device comprises:
[0072] The current monitoring period determination module 310 is used to determine the current monitoring period with the target monitoring period as the last monitoring period if a monitoring trigger event of the target monitoring period is detected; wherein the current monitoring period includes at least one monitoring period;
[0073] A reference monitoring period determination module 320, configured to determine a reference monitoring period according to a current monitoring period in which the target monitoring cycle is located;
[0074] A traffic parameter acquisition module 330, configured to acquire traffic parameters of all monitoring periods in the current monitoring period and the reference monitoring period;
[0075] The status monitoring result determination module 340 is used to determine the business volume shape characteristics of the current monitoring period and the reference monitoring period according to the business volume parameters, and determine the status monitoring result of the transaction system according to the business volume shape characteristics.
[0076] The embodiment of the present invention determines the current monitoring period and the reference monitoring period based on the detection of the monitoring trigger event, and further determines the status monitoring result of the trading system by analyzing the business volume morphology characteristics of the current monitoring period and the reference monitoring period. The reference monitoring period is dynamically adjusted according to the change of the current monitoring period, thereby improving the accuracy of monitoring the transaction volume in the current monitoring period, and further improving the accuracy of monitoring the status of the trading system.
[0077] Optionally, the current monitoring period determination module 310 includes a monitoring trigger event detection unit, which is specifically used to:
[0078] Acquire the latest transaction generated by the transaction system. If the latest transaction is the first transaction in the current monitoring cycle, determine it as the monitoring trigger event of the target monitoring cycle, and take the previous monitoring cycle of the current monitoring cycle as the target monitoring cycle;
[0079] or,
[0080] If it is detected that the system time exceeds the starting time of the current monitoring cycle, it is determined as a monitoring trigger event of the target monitoring cycle, and the previous monitoring cycle of the current monitoring cycle is used as the target monitoring cycle.
[0081] Optionally, the current monitoring period determination module 310 includes a monitoring period determination unit, which is specifically configured to:
[0082] Taking the target monitoring period as the last monitoring period, determining N monitoring periods forward, and determining the target monitoring period and the N monitoring periods as the current monitoring period;
[0083] Wherein, N is determined according to a ratio of a preset state change period to a monitoring period, and N is a positive integer greater than 1.
[0084] Optionally, the reference monitoring period determination module 320 is specifically configured to:
[0085] Taking the previous monitoring period of the current monitoring period as the last monitoring period of the reference monitoring period, determining N monitoring periods forward, then determining the previous monitoring period of the current monitoring period and the N monitoring periods as the reference monitoring period;
[0086] Wherein, N is determined according to a ratio of a preset state change period to a monitoring period, and N is a positive integer greater than 1.
[0087] Optionally, the business volume parameter includes the total transaction amount within the monitoring period, or the average transaction volume per unit time.
[0088] Optionally, the status monitoring result determination module 340 includes:
[0089] A first feature vector determining unit, configured to determine a first feature vector according to the traffic volume parameter of the current monitoring period as a traffic volume morphology feature of the current monitoring period;
[0090] The second feature vector determining unit is used to determine a second feature vector according to the traffic volume parameter of the reference monitoring period as the traffic volume morphology feature of the reference monitoring period.
[0091] Optionally, the status monitoring result determination module 340 is specifically configured to:
[0092] determining a similarity between the first eigenvector and the second eigenvector;
[0093] If the similarity is less than a preset threshold, it is determined that the status monitoring result of the transaction system is a fault.
[0094] The state monitoring device of a trading system provided in an embodiment of the present invention can execute the state monitoring method of a trading system provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the state monitoring method of a trading system.
[0095] Embodiment 4
[0096] Figure 4 It is a structural schematic diagram of a device provided in Embodiment 4 of the present invention. Figure 4 A block diagram of an exemplary device 12 suitable for use in implementing embodiments of the present invention is shown. Figure 4 The device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0097] like Figure 4 As shown, device 12 is in the form of a general purpose computing device. Components of device 12 may include, but are not limited to, one or more processors or processing units 16, system memory 28, and a bus 18 that connects various system components (including system memory 28 and processing units 16).
[0098] Bus 18 represents one or more of several types of bus structures, including a storage device bus or storage device controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0099] Device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by device 12, including volatile and non-volatile media, removable and non-removable media.
[0100] System storage 28 may include computer system readable media in the form of volatile storage devices, such as random access memory (RAM) 30 and / or cache memory 32. Device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 4 not shown, usually called a "hard drive"). Although Figure 4 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The storage device 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.
[0101] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in the storage device 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described herein.
[0102] The device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), may communicate with one or more devices that enable a user to interact with the device 12, and / or may communicate with any device that enables the device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the device 12 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the device 12 via a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the device 12, including, but not limited to, microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0103] The processing unit 16 executes various functional applications and data processing by running the programs stored in the system storage device 28, for example, implementing the state monitoring method of the trading system provided in the embodiment of the present invention, including:
[0104] If a monitoring trigger event of a target monitoring cycle is detected, determining a current monitoring period with the target monitoring cycle as the last monitoring period; wherein the current monitoring period includes at least one monitoring cycle;
[0105] Determine a reference monitoring period according to the current monitoring period in which the target monitoring cycle is located;
[0106] Acquire the traffic parameters of all monitoring periods in the current monitoring period and the reference monitoring period;
[0107] According to the traffic volume parameters, the traffic volume shape characteristics of the current monitoring period and the reference monitoring period are determined, and the status monitoring results of the transaction system are determined according to the traffic volume shape characteristics.
[0108] Embodiment 5
[0109] Embodiment 5 of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the method for monitoring the status of a trading system provided in the embodiment of the present invention is implemented, including:
[0110] If a monitoring trigger event of a target monitoring cycle is detected, determining a current monitoring period with the target monitoring cycle as the last monitoring period; wherein the current monitoring period includes at least one monitoring cycle;
[0111] Determine a reference monitoring period according to the current monitoring period in which the target monitoring cycle is located;
[0112] Acquire the traffic parameters of all monitoring periods in the current monitoring period and the reference monitoring period;
[0113] According to the traffic volume parameters, the traffic volume shape characteristics of the current monitoring period and the reference monitoring period are determined, and the status monitoring results of the transaction system are determined according to the traffic volume shape characteristics.
[0114] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0115] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0116] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0117] Computer program code for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0118] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for monitoring the status of a trading system, It is characterized in that include: If a monitoring trigger event of a target monitoring cycle is detected, determining a current monitoring period with the target monitoring cycle as the last monitoring period; wherein the current monitoring period includes at least one monitoring cycle; Determine a reference monitoring period according to the current monitoring period in which the target monitoring cycle is located; Acquire the business volume parameters of all monitoring periods in the current monitoring period and the reference monitoring period; the business volume parameters include the total transaction amount in the monitoring period, or the average transaction volume per unit time; Determine the business volume shape characteristics of the current monitoring period and the reference monitoring period according to the business volume parameters, and determine the status monitoring result of the transaction system according to the business volume shape characteristics; If the monitoring trigger event of the target monitoring cycle is not detected, the transaction data acquired by the system is saved to update the transaction data of the latest monitoring cycle; The step of determining a reference monitoring period according to the current monitoring period in which the target monitoring cycle is located includes: Taking the previous monitoring period of the current monitoring period as the last monitoring period of the reference monitoring period, determining N monitoring periods forward, then determining the previous monitoring period of the current monitoring period and the N monitoring periods as the reference monitoring period; Wherein, N is determined according to the ratio of the preset change period to the monitoring period, and N is a positive integer greater than 1; wherein, the change period refers to the duration of the periodic change of the transaction volume generated by the trading system; The monitoring triggering events of the target monitoring period include: Determine the current monitoring cycle at the current time, and judge whether the latest transaction generated by the acquired trading system is the first transaction in the current monitoring cycle; If the latest transaction is the first transaction in the current monitoring cycle, it is determined as the monitoring trigger event of the target monitoring cycle, and the previous monitoring cycle of the current monitoring cycle is used as the target monitoring cycle; or, Determine the starting point of each monitoring cycle; Compare the current system time with the starting point of each monitoring cycle to determine the current monitoring cycle; If it is detected that the system time exceeds the starting time of the current monitoring cycle, it is determined as a monitoring trigger event of the target monitoring cycle, and the previous monitoring cycle of the current monitoring cycle is used as the target monitoring cycle; Wherein, the business volume morphology characteristics are represented in the form of a chart; accordingly, determining the business volume morphology characteristics of the current monitoring period and the reference monitoring period according to the business volume parameters, and determining the state monitoring result of the transaction system according to the business volume morphology characteristics, includes: The abscissa of the chart is used as the distribution of monitoring cycles within the monitoring time period, and the ordinate is used as the traffic volume parameter corresponding to each monitoring cycle to obtain a first waveform chart and a second waveform chart; the first waveform chart is used to characterize the traffic volume morphology characteristics of the current monitoring period; the second waveform chart is used to characterize the traffic volume morphology characteristics of the reference monitoring period; comparing the first waveform graph with the second waveform graph; If the overlap between the first waveform and the second waveform is greater than a preset threshold, the status monitoring result of the trading system is healthy; If the overlap between the first waveform and the second waveform is less than a preset threshold, the status monitoring result of the trading system is that a failure has occurred; Wherein, determining a current monitoring period with the target monitoring period as the last monitoring period includes: Taking the target monitoring period as the last monitoring period, determining N monitoring periods forward, and determining the target monitoring period and the N monitoring periods as the current monitoring period; Wherein, N is determined according to a ratio of a preset change period to a monitoring period, and N is a positive integer greater than 1.
2. A state monitoring device for a trading system, It is characterized in that include: A current monitoring period determination module, configured to determine a current monitoring period with the target monitoring period as the last monitoring period if a monitoring triggering event of a target monitoring period is detected; wherein the current monitoring period includes at least one monitoring period; A reference monitoring period determination module, used to determine a reference monitoring period according to a current monitoring period in which the target monitoring cycle is located; A business volume parameter acquisition module, used to acquire business volume parameters of all monitoring periods in the current monitoring period and the reference monitoring period; the business volume parameters include the total transaction amount in the monitoring period, or the average transaction volume per unit time; A status monitoring result determination module, used to determine the business volume shape characteristics of the current monitoring period and the reference monitoring period according to the business volume parameters, and determine the status monitoring result of the transaction system according to the business volume shape characteristics; The data update module is used to save the transaction data acquired by the system if the monitoring trigger event of the target monitoring cycle is not detected, so as to update the transaction data of the latest monitoring cycle; Wherein, the reference monitoring period determination module is further used for: Taking the previous monitoring period of the current monitoring period as the last monitoring period of the reference monitoring period, determining N monitoring periods forward, then determining the previous monitoring period of the current monitoring period and the N monitoring periods as the reference monitoring period; Wherein, N is determined according to the ratio of the preset change period to the monitoring period, and N is a positive integer greater than 1; wherein, the change period refers to the duration of the periodic change of the transaction volume generated by the trading system; Wherein, the current monitoring period determination module includes: The monitoring trigger time detection unit is used to determine the current monitoring cycle in which the current time is located, and to determine whether the latest transaction generated by the acquired transaction system is the first transaction in the current monitoring cycle; if the latest transaction is the first transaction in the current monitoring cycle, it is determined as the monitoring trigger event of the target monitoring cycle, and the previous monitoring cycle of the current monitoring cycle is used as the target monitoring cycle; Alternatively, determine the starting point of each monitoring cycle; compare the current system time with the starting point of each monitoring cycle to determine the current monitoring cycle; if it is detected that the system time exceeds the starting point of the current monitoring cycle, it is determined as a monitoring trigger event of the target monitoring cycle, and the previous monitoring cycle of the current monitoring cycle is used as the target monitoring cycle; Wherein, the traffic morphological characteristics are represented in the form of a chart; accordingly, the status monitoring result determination module is specifically used to: The abscissa of the chart is used as the distribution of monitoring cycles within the monitoring time period, and the ordinate is used as the traffic volume parameter corresponding to each monitoring cycle to obtain a first waveform chart and a second waveform chart; the first waveform chart is used to characterize the traffic volume morphology characteristics of the current monitoring period; the second waveform chart is used to characterize the traffic volume morphology characteristics of the reference monitoring period; comparing the first waveform graph with the second waveform graph; If the overlap between the first waveform and the second waveform is greater than a preset threshold, the status monitoring result of the trading system is healthy; If the overlap between the first waveform and the second waveform is less than a preset threshold, the status monitoring result of the trading system is that a failure has occurred; Wherein, the current monitoring period determination module is specifically used to: Taking the target monitoring period as the last monitoring period, determining N monitoring periods forward, and determining the target monitoring period and the N monitoring periods as the current monitoring period; Wherein, N is determined according to a ratio of a preset change period to a monitoring period, and N is a positive integer greater than 1.
3. A device, It is characterized in that include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the state monitoring method of the trading system as claimed in claim 1.
4. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the state monitoring method of the trading system as claimed in claim 1 is implemented.
