Data reporting method, service analysis method and device

By collecting and storing observation data in the business system and selecting reporting strategies based on operation information, monitoring difficulties caused by uncertainty in business services are solved, and flexible and accurate monitoring of business services is achieved.

CN120358160AActive Publication Date: 2025-07-22CHINA SECURITIES DEPOSITORY & CLEARING CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510804585.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-16
Publication Date
2025-07-22
Estimated Expiration
2045-06-16

AI Technical Summary

Technical Problem

The existing technology is difficult to obtain observation data of business services flexibly, which leads to difficulties in monitoring business services normally, especially due to uncertain operation time, uncertain operation time points, and unstable operation cycles.

Method used

Observation data of business services in the business system and store them in the preset storage. The information reporting strategy is determined based on the operation information of the business services. The collector in the network domain is called to read from the preset storage and report it to the observation platform, including strategies such as end time reporting, real-time reporting and periodic reporting.

Benefits of technology

It realizes flexible monitoring of business services, ensures that complete and accurate observation data are obtained under different operating conditions, reduces the impact on business services, and improves the effectiveness of monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120358160A_ABST
    Figure CN120358160A_ABST
Patent Text Reader

Abstract

The invention discloses a data reporting method and device and a service analysis method and device, and relates to the technical field of computers. A specific embodiment of the method comprises the following steps: collecting observation data of business service in a business system, and storing the collected observation data in a preset storage; determining operation information of the business service, and determining an information reporting strategy according to the operation information; and according to the reporting strategy, calling a collector in a network domain of the service system, so that the collector reads the observation data from the preset storage and reports the read observation data to the observation platform. According to the embodiment, the observation data of the business service can be flexibly acquired, and normal monitoring of the business service is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technologies, and in particular, to a data reporting method, a service analysis method, and an apparatus. Background Art

[0002] During the operation of a business system, it is often necessary to obtain observation data of business services in the business system to monitor the operation status of the business services. Some business services have characteristics such as uncertain running duration, uncertain running time point, and unstable running cycle, making it difficult for an observer to determine the specific time point for collecting the observation data. For example, the observer collects the observation data of a business service, but finds that the business service has finished running and exited. Therefore, it is difficult for the observer to flexibly obtain the observation data of the business service, which affects the normal monitoring of the business service. Summary of the Invention

[0003] In view of this, embodiments of the present invention provide a data reporting method, a service analysis method, and an apparatus, which can flexibly obtain the observation data of a business service and realize the normal monitoring of the business service.

[0004] In a first aspect, an embodiment of the present invention provides a data reporting method applied to a business system, including: Collecting the observation data of a business service in the business system and storing the collected observation data in a preset storage; Determining the running information of the business service and determining an information reporting strategy according to the running information; According to the reporting strategy, calling a collector in the network domain of the business system so that the collector reads the observation data from the preset storage and reports the read observation data to an observation platform.

[0005] Optionally, determining the information reporting strategy according to the running information includes: In response to the running information indicating that the predicted end time point of the business service is within a preset period, determining the information reporting strategy as reporting at the end time point; In response to the running information indicating that the business service runs abnormally, determining the information reporting strategy as real-time reporting; In response to the running information indicating that the predicted end time point of the business service is not within the preset period and the business service runs normally, determining the information reporting strategy as periodic reporting.

[0006] Optionally, the information reporting strategy is reporting at the end time point; According to the reporting strategy, calling a collector in the network domain of the business system so that the collector reads the observation data from the preset storage and reports the read observation data to an observation platform includes: Monitoring the running information of the business service; In response to monitoring that the operation information indicates the end of the operation of the service, call the collector in the network domain of the service system, so that the collector reads the observation data from the preset storage and reports the read observation data to the observation platform.

[0007] Optionally, according to the reporting policy, call the collector in the network domain of the service system, so that the collector reads the observation data from the preset storage and reports the read observation data to the observation platform, including: According to the reporting policy, call the collector in the network domain of the service system, so that the collector reads the observation data from the preset storage; Process the read observation data; Use the message middleware to report the processed observation data to the observation platform.

[0008] Optionally, collect the observation data of the service in the service system and store the collected observation data in the preset storage, including: Call the instrumentation program interface to collect the observation data of the service in the service system; wherein, the observation data has the data structure defined by the instrumentation program; Store the collected observation data in the local memory.

[0009] In a second aspect, an embodiment of the present invention provides a service analysis method, which is applied to an observation platform and includes: Receive the observation data of the service in the service system sent by the collector; wherein, the collector is deployed in the network domain of the service system; the service system executes the above data reporting method; Analyze and process the operation status of the service according to the obtained observation data.

[0010] In a third aspect, an embodiment of the present invention provides a data reporting device, which is applied to a service system and includes: A data collection module, configured to collect the observation data of the service in the service system and store the collected observation data in the preset storage; A policy determination module, configured to determine the operation information of the service and determine the information reporting policy according to the operation information; A data reporting module, configured to call the collector in the network domain of the service system according to the reporting policy, so that the collector reads the observation data from the preset storage and reports the read observation data to the observation platform.

[0011] In a fourth aspect, an embodiment of the present invention provides a service analysis device, which is applied to an observation platform and includes: A data receiving module, configured to receive the observation data of the service in the service system sent by the collector; wherein, the collector is deployed in the network domain of the service system; the service system executes the above data reporting method; An analysis and processing module, configured to analyze and process the operation status of the service according to the obtained observation data.

[0012] In a fifth aspect, an embodiment of the present invention provides an electronic device, including: One or more processors; A storage device, configured to store one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method of any of the above embodiments.

[0013] In a sixth aspect, an embodiment of the present invention provides a computer-readable medium, on which a computer program is stored, and when the program is executed by a processor, the method of any of the above embodiments is implemented.

[0014] One of the above embodiments of the invention has the following advantages or beneficial effects: collecting the observation data of the service in the service system, and storing the collected observation data in a preset storage. Determine the information reporting strategy according to the operation information of the service. Then, according to the reporting strategy, call the collector in the network domain of the service system to read the observation data from the preset storage and report the read observation data to the observation platform.

[0015] The reporting strategy is determined according to the operation information of the service. For example, if the operation information indicates that the predicted end time point of the service is within a preset time period, determine the information reporting strategy as reporting at the end time point. That is, when the service is about to finish execution, monitor the service, and once it is detected that the service has ended, call the collector to report the observation data to the observation platform. If the operation information indicates that the predicted end time point of the service is not within the preset time period, determine the information reporting strategy as periodic reporting. That is, when the distance between the preset end time point and the current time point is relatively far, report the observation data at a preset period. Therefore, the solution of the embodiment of the present invention can select different reporting strategies according to the operation information of the service, and can flexibly obtain the observation data of the service, realizing the normal monitoring of the service.

[0016] The further effects of the above non-conventional optional manners will be described in conjunction with the specific embodiments below. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings are used to better understand the present invention and do not constitute an improper limitation to the present invention. Among them: Figure 1 is a flowchart of a data reporting method provided by the first embodiment of the present invention; Figure 2 It is a schematic flow chart of a data reporting method provided by the second embodiment of the present invention; Figure 3 It is a schematic flow chart of a service analysis method provided by the third embodiment of the present invention; Figure 4 It is a schematic structural diagram of a data reporting system provided by the fourth embodiment of the present invention; Figure 5 It is a schematic flow chart of a data reporting method provided by the fifth embodiment of the present invention; Figure 6 It is a schematic structural diagram of a data reporting device provided by the embodiment of the present invention; Figure 7 It is a schematic structural diagram of a service analysis device provided by the embodiment of the present invention; Figure 8 It is a schematic structural diagram of a computer system of a terminal device or a server suitable for implementing the embodiment of the present invention. Detailed implementation manners

[0018] The following makes an explanation of the exemplary embodiments of the present invention with reference to the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted below.

[0019] In the technical solution of the present application, the acquisition, transmission, storage, use, processing, etc. of data all comply with the relevant regulations of national laws and regulations.

[0020] It should be noted that in the embodiments of the present application, some industry-existing solutions such as certain software, components, models, etc. may be mentioned, which should be considered exemplary. The purpose is only to illustrate the feasibility in the implementation of the technical solution of the present application, but it does not mean that the applicant has already or necessarily used this solution.

[0021] Figure 1 It is a schematic flow chart of a data reporting method provided by the first embodiment of the present invention. As Figure 1 shown, this method is applied to a business system, and this method includes: Step 101: Collect the observation data of the business service in the business system, and store the collected observation data in a preset storage.

[0022] Both the observation data and the preset storage can be set according to business requirements. The observation data may include: metric data, etc. The preset storage may include: preset memory, specified cache, preset hard disk, and specified disk array, etc.

[0023] Preferably, the preset storage is a preset memory. Storing the observation data in the preset memory can achieve fast unloading of the observation data and reduce the impact on the normal operation of the service system.

[0024] Step 102: Determine the operation information of the service and, based on the operation information, determine the information reporting strategy.

[0025] The operation information is used to characterize the operation state of the service. The operation information may include: start operation time point, preset end time point, preset operation duration, current operation duration, and operation state of the service. Among them, the operation state may include: in operation, operation abnormal, and operation ended, etc. The reporting strategy may include: real-time reporting, periodic reporting, etc. A mapping relationship between the operation information and the reporting strategy is preset in the system. According to the mapping relationship, the information reporting strategy is determined.

[0026] In an embodiment of the present invention, determining the information reporting strategy according to the operation information includes: in response to the operation information indicating that the predicted end time point of the service is within the preset time period, determining the information reporting strategy as end time point reporting; in response to the operation information indicating that the service operation is abnormal, determining the information reporting strategy as real-time reporting; in response to the operation information indicating that the predicted end time point of the service is not within the preset time period and the service operation is normal, determining the information reporting strategy as periodic reporting.

[0027] The preset time period can be set according to business requirements. The preset time period is the time period between the current time point and a future time point. For example, the preset time period can be a time period starting from the current time point with a duration of ten minutes. The preset time period can also be a time period starting from the current time point with a duration of half an hour, etc.

[0028] If the operation information indicates that the predicted end time point of the service is within the preset time period, determine the information reporting strategy as end time point reporting. That is, when the service is about to be executed, monitor the service. Once it is detected that the service operation ends, call the collector to report the observation data to the observation platform.

[0029] If the operation information indicates that the service operation is abnormal, determine the information reporting strategy as real-time reporting. When the service operation is abnormal, report the observation data in real-time or at a short cycle so that relevant personnel can obtain the observation data through the observation platform in time to troubleshoot problems with the abnormal situation.

[0030] If the predicted end time point of the business service characterized by the running information is not within the preset time period and the business service is running normally, determine the information reporting policy as periodic reporting. That is, when the distance between the preset end time point and the current time point is relatively far and the business service is running normally, report the observed data at a preset period.

[0031] Step 103: According to the reporting policy, call the collector in the network domain of the business system to enable the collector to read the observed data from the preset storage and report the read observed data to the observation platform.

[0032] The collector is deployed in the network domain of the business system, strengthening the network security control of the business system. The collector can be accessed by means of security authentication to avoid the problem that the business service is directly interfered by external programs. Based on the agreed protocol, etc., the collector reads the observed data from the preset storage for reporting.

[0033] In an embodiment of the present invention, the information reporting policy is reporting at the end time point; according to the reporting policy, calling the collector in the network domain of the business system to enable the collector to read the observed data from the preset storage and report the read observed data to the observation platform includes: monitoring the running information of the business service; in response to monitoring that the running information characterizes the end of the business service operation, calling the collector in the network domain of the business system to enable the collector to read the observed data from the preset storage and report the read observed data to the observation platform.

[0034] If the information reporting policy is reporting at the end time point. Continuously monitor the running information of the business service. Once it is monitored that the running information characterizes the end of the business service operation, call the collector to perform the last data reporting for the current service execution process. Specifically, the collector reads the observed data from the preset storage and reports the read observed data to the observation platform, so as to report the complete and accurate observed data to the observation platform in a timely manner.

[0035] It should be noted that if the last data reporting of the collector for the current execution process is not completed, no deletion process is performed on the unreported observed data in the preset storage. In response to the completion of the last data reporting of the collector, a data cleaning instruction is generated to clear the observed data in the preset storage, which can ensure that the complete and accurate observed data is reported to the observation platform.

[0036] In the solution of the embodiment of the present invention, the observation data of the service in the service system is collected, and the collected observation data is stored in a preset storage. According to the operation information of the service, an information reporting strategy is determined. According to the reporting strategy, a collector in the network domain of the service system is called, so that the collector reads the observation data from the preset storage and reports the read observation data to the observation platform. The solution of the embodiment of the present invention selects different reporting strategies according to the operation information of the service, enabling the observer to obtain complete and accurate observation data of the service and realizing the normal monitoring of the service.

[0037] In one embodiment of the present invention, collecting the observation data of the service in the service system and storing the collected observation data in a preset storage includes: calling a stub program interface to collect the observation data of the service in the service system; wherein, the observation data has a data structure defined by the stub program; storing the collected observation data in the local memory.

[0038] Often, multiple services need to cooperate to complete the complete functions of the service system. A stub program is set for the service system. Each service in the service system completes the collection of observation data by calling the program interface of the stub program, realizing the unification of the observation data format.

[0039] To avoid interference from the collection of observation data on the operation of the service, the stub program is started in a bypass asynchronous manner and converts the collected operation information into observation data. In addition, the stub program is also responsible for docking with the local collector and ensuring the normal reporting and exception handling of the observation data.

[0040] Figure 2 It is a schematic flowchart of a data reporting method provided by the second embodiment of the present invention. As Figure 2 shown, this method is applied to a service system, and this method includes: Step 201: Collect the observation data of the service in the service system and store the collected observation data in a preset storage.

[0041] Step 202: Determine the operation information of the service and determine an information reporting strategy according to the operation information.

[0042] Step 203: According to the reporting strategy, call a collector in the network domain of the service system so that the collector reads the observation data from the preset storage.

[0043] Step 204: Process the read observation data.

[0044] After the collector reads the observation data from the preset storage, the collector can further process the observation data. The processing may include: adding data attribute information, filtering the observation data, performing statistics on the observation data based on aggregation rules, setting default values for abnormal observation values, etc. Among them, the data attribute information may include: local IP, domain name, process number, etc. Finally, the processed observation data is sent to the observation platform.

[0045] Step 205: Use the message middleware to report the processed observation data to the observation platform.

[0046] The collector reports data through the message middleware. The observation platform obtains the observation data through the message middleware. The message middleware may include: Kafka, RocketMQ, Pulsar, etc. The message middleware can solve the access pressure brought by traffic peaks and play a role in shaving peaks and filling valleys. In addition, the message middleware can further decouple the coupling problem of interface agreements through serialization technology.

[0047] In the solution of the embodiment of the present invention, according to the reporting strategy, the collector in the network domain of the service system is called to read the observation data from the preset storage, process the read observation data, and then use the message middleware to report the processed observation data to the observation platform, which can reduce the operating pressure of the observation platform and improve the security of the data in the service system.

[0048] Figure 3 It is a schematic flowchart of a service analysis method provided by the third embodiment of the present invention, as Figure 3 shown, the method includes: Step 301: Receive the observation data of the service in the service system sent by the collector; wherein, the collector is deployed in the network domain of the service system.

[0049] The solution of the embodiment of the present invention is applied to the observation platform. The observation data received by the observation platform comes from the service system. The service system is used to execute the data reporting method provided in any of the above embodiments.

[0050] Step 302: Analyze and process the running status of the service according to the obtained observation data.

[0051] In the solution of the embodiment of the present invention, the observation platform receives the observation data of the service sent by the collector. The collector is deployed in the network domain of the service system, strengthening the network security control of the service system. The observation platform analyzes and processes the running status of the service according to the obtained observation data, which can fully expose the internal running status of the service system and timely discover hidden problems buried in the complex architecture.

[0052] Figure 4It is a schematic structural diagram of a data reporting system provided by the fourth embodiment of the present invention. As Figure 4 shown, the data reporting system includes: an instrumentation program, a collector, a message middleware, and an observation platform.

[0053] Instrumentation program: Each business service of the business service realizes the unification of the observation data format by calling a unified instrumentation program interface. To avoid interfering with the operation of the business service, the instrumentation program starts in a bypass asynchronous manner, converts the collected operation information into observation data, and saves it to the specified local memory. Before the end of the business service operation or within a preset period after the end of the operation, the instrumentation program actively reports the observation data. In addition, the instrumentation program is also responsible for docking with the local collector and ensuring the normal reporting and exception handling of the observation data, etc.

[0054] Collector: The collector is deployed in the network domain of the business system, strengthening network security control. The collector can be set to access through a security authentication method. According to the security requirements of the business system, set the level protection level and security authentication method of the collector to make the business system more secure. The collector is located between the business system and the observation platform, which can prevent the business service from being directly accessed by the external observation platform, further ensuring the security of the data in the business system.

[0055] In addition, for different observation platforms, different reporting parameters can also be set in the collector. The reporting parameters can include: interval period, number threshold, etc. If the collector fails to successfully report the data to the observation platform, after the interval period, the step of re-trying to report the data to the observation platform can be performed until the reporting is successful or the number of retries exceeds the number threshold.

[0056] The collector reads the observation data from the specified memory of the local service and processes the observation data. The collector reports the data through the message middleware. The observation platform obtains the observation data through the message middleware. The message middleware can solve the access pressure brought by traffic peaks and play a role in peak shaving and valley filling. In addition, the message middleware can further solve the coupling problem of interface agreements through serialization technology.

[0057] Observation platform: After obtaining the observation data, the observation platform saves the obtained observation data in the observation database for later analysis and processing of the business service.

[0058] Figure 5 It is a schematic flowchart of a data reporting method provided by the fifth embodiment of the present invention. As Figure 5As shown in the figure, for the normal operation of batch business scenarios, by calling the instrumentation program interface, observation data is collected in real time and stored in memory to achieve fast offloading of traffic data. The collector collects and reports data according to the agreed cycle. If the batch business operation ends before the collection time point of the collector, the instrumentation program will actively call the local interface of the collector before the service ends to report the observation data to the collector, triggering the collector to execute the active reporting process to achieve the complete reporting of the observation data.

[0059] The solution of the embodiment of the present invention can realize the full life cycle observation of the business system. Regardless of when the business service ends, complete and accurate observation data can be collected. By using asynchronous calls to the instrumentation program interface, observation data is collected. By storing the observation data in local memory, traffic data can be quickly offloaded, ensuring efficient collection of observation data while reducing the impact on the operation of the business service. The solution of the embodiment of the present invention also conducts information interaction through files and message middleware, and agrees on the data format and requirements of the observation data, etc., to achieve the decoupling of the operation of different business services. In addition, network security control is realized through the local collector to meet the security requirements of the core business system, enabling the data reporting system to be actually implemented.

[0060] Figure 6 is a schematic structural diagram of a data reporting device provided by an embodiment of the present invention, applied to a business system, such as Figure 6 As shown in the figure, the device includes: A data collection module 601, configured to collect observation data of a business service in the business system and store the collected observation data in a preset storage; A policy determination module 602, configured to determine the operation information of the business service and determine an information reporting policy according to the operation information; A data reporting module 603, configured to call a collector in the network domain of the business system according to the reporting policy, so that the collector reads the observation data from the preset storage and reports the read observation data to the observation platform.

[0061] Optionally, the policy determination module 602 is specifically configured to: In response to the operation information indicating that the predicted end time point of the business service is within a preset period, determine the information reporting policy as reporting at the end time point; In response to the operation information indicating that the business service runs abnormally, determine the information reporting policy as real-time reporting; In response to the operation information indicating that the predicted end time point of the business service is not within the preset period and the business service runs normally, determine the information reporting policy as periodic reporting.

[0062] Optionally, the information reporting policy is reporting at the end time point; The data reporting module 603 is specifically configured to: Monitor the operation information of the service; In response to monitoring that the operation information indicates the end of the service operation, call the collector in the network domain of the service system, so that the collector reads the observation data from the preset storage, and reports the read observation data to the observation platform.

[0063] Optionally, the data reporting module 603 is specifically configured to: According to the reporting policy, call the collector in the network domain of the service system, so that the collector reads the observation data from the preset storage; Process the read observation data; Use the message middleware to report the processed observation data to the observation platform.

[0064] Optionally, the data collection module 601 is specifically configured to: Call the instrumentation program interface to collect the observation data of the service in the service system; wherein, the observation data has the data structure defined by the instrumentation program; Store the collected observation data in the local memory.

[0065] Figure 7 It is a schematic structural diagram of a service analysis device provided by an embodiment of the present invention, which is applied to an observation platform, as Figure 7 shown, the device includes: A data receiving module 701, configured to receive the observation data of the service in the service system sent by the collector; wherein, the collector is deployed in the network domain of the service system; the service system executes the above data reporting method; An analysis and processing module 702, configured to analyze and process the operation status of the service according to the obtained observation data.

[0066] An embodiment of the present invention provides an electronic device, including: One or more processors; A storage device, configured to store one or more programs, when the one or more programs are executed by the one or more processors, enabling the one or more processors to implement the method of any of the above embodiments.

[0067] An embodiment of the present invention provides a computer program product, including a computer program, and the computer program implements the data reporting method in the embodiment of the present invention when executed by a processor.

[0068] Next, refer to Figure 8 , which shows a schematic structural diagram of a computer system 800 of a terminal device suitable for implementing the embodiment of the present invention. Figure 8The terminal device shown is only an example and should not impose any limitations on the functions and scope of use of the embodiments of the present invention.

[0069] As Figure 8 shown, the computer system 800 includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage section 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the system 800 are also stored. The CPU 801, ROM 802, and RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0070] The following components are connected to the I / O interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc. and a speaker, etc.; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I / O interface 805 as required. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as required so that a computer program read from it can be installed into the storage section 808 as required.

[0071] Specifically, according to the embodiments disclosed in the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program codes for performing the methods shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 809, and / or installed from the removable medium 811. When the computer program is executed by the central processing unit (CPU) 801, the above-mentioned functions defined in the system of the present invention are executed.

[0072] It should be noted that the computer-readable medium shown in the present invention can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of a computer-readable storage medium can include, but are not limited to: 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 the present invention, a computer-readable storage medium can be any tangible medium that contains or stores a program, which can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present invention, a computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on a computer-readable medium can be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0073] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagram can represent a module, a program segment, or a part of code that contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram or flowchart, and the combination of blocks in the block diagram or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.

[0074] The modules involved in the embodiments of the present invention can be implemented in software or in hardware. The described modules can also be provided in a processor. For example, they can be described as: a data acquisition module, a policy determination module, and a data reporting module. Among them, the names of these modules do not constitute a limitation to the module itself in some cases. For example, the data acquisition module can also be described as "a module that collects the observation data of business services in a business system and stores the collected observation data in a preset storage".

[0075] As another aspect, the present invention also provides a computer-readable medium, which can be included in the device described in the above embodiments; or can exist alone without being assembled into the device. The above computer-readable medium carries one or more programs. When the above one or more programs are executed by a device, the device includes: Collect the observation data of business services in a business system and store the collected observation data in a preset storage; Determine the running information of business services and determine an information reporting policy according to the running information; According to the reporting policy, call the collector in the network domain of the business system so that the collector reads the observation data from the preset storage and reports the read observation data to the observation platform. According to the technical solution of the embodiments of the present invention, collect the observation data of business services in a business system and store the collected observation data in a preset storage. Determine an information reporting policy according to the running information of business services. According to the reporting policy, call the collector in the network domain of the business system so that the collector reads the observation data from the preset storage and reports the read observation data to the observation platform.

[0076] The reporting policy is determined according to the running information of business services. For example, if the running information indicates that the predicted end time point of a business service is within a preset time period, determine the information reporting policy as reporting at the end time point. That is, when the business service is about to finish execution, monitor the business service. Once it is detected that the business service has ended its operation, call the collector to report the observation data to the observation platform. If the running information indicates that the predicted end time point of a business service is not within the preset time period, determine the information reporting policy as periodic reporting. That is, when the distance between the preset end time point and the current time point is relatively far, report the observation data at a preset period. Therefore, the solution of the embodiments of the present invention selects different reporting policies according to the running information of business services, enabling the observer to obtain complete and accurate observation data of business services and realizing the normal monitoring of business services.

[0077] The above specific embodiments do not constitute a limitation on the protection scope of the present invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims

1. A data reporting method, characterized in that, Applied to a business system, including: Collecting the observed data of the business services in the business system and storing the collected observed data in a preset storage; Determining the running information of the business services and determining an information reporting strategy according to the running information; According to the reporting strategy, invoking a collector in the network domain of the business system to enable the collector to read the observed data from the preset storage and report the read observed data to an observation platform.

2. The method according to claim 1, wherein The determining the information reporting strategy according to the running information includes: In response to the running information indicating that the predicted end time point of the business service is within a preset time period, determining the information reporting strategy as end time point reporting; In response to the running information indicating that the business service is running abnormally, determining the information reporting strategy as real-time reporting; In response to the running information indicating that the predicted end time point of the business service is not within a preset time period and the business service is running normally, determining the information reporting strategy as periodic reporting.

3. The method according to claim 1, wherein The information reporting strategy is end time point reporting; The invoking a collector in the network domain of the business system according to the reporting strategy to enable the collector to read the observed data from the preset storage and report the read observed data to an observation platform includes: Monitoring the running information of the business service; In response to monitoring that the running information indicates that the business service has ended, invoking a collector in the network domain of the business system to enable the collector to read the observed data from the preset storage and report the read observed data to an observation platform.

4. The method according to claim 1, wherein The invoking a collector in the network domain of the business system according to the reporting strategy to enable the collector to read the observed data from the preset storage and report the read observed data to an observation platform includes: According to the reporting strategy, invoking a collector in the network domain of the business system to enable the collector to read the observed data from the preset storage; Processing the read observed data; Using a message middleware to report the processed observed data to an observation platform.

5. The method according to claim 1, characterized in that, The collecting the observed data of the business services in the business system and storing the collected observed data in a preset storage includes: Invoking a stub program interface to collect the observed data of the business services in the business system; wherein, the observed data has a data structure defined by the stub program; Storing the collected observed data in local memory.

6. A service analysis method, characterized in that, Applied to an observation platform, including: Receiving the observed data of the business services in the business system sent by a collector; wherein, the collector is deployed in the network domain of the business system; the business system executes the method according to any one of claims 1-5; Analyzing and processing the running situation of the business services according to the obtained observed data.

7. A data reporting device, characterized in that, Applied to a business system, including: A data collection module for collecting the observed data of the business services in the business system and storing the collected observed data in a preset storage; A strategy determination module for determining the running information of the business services and determining an information reporting strategy according to the running information; A data reporting module, configured to call a collector in the network domain of the service system according to the reporting policy, so that the collector reads observation data from the preset storage and reports the read observation data to an observation platform.

8. A service analysis device, characterized in that, Applied to an observation platform, it includes: A data receiving module, configured to receive the observation data of the service in the service system sent by the collector; wherein, the collector is deployed in the network domain of the service system; the service system executes the method according to any one of claims 1-5. An analysis and processing module, configured to analyze and process the running status of the service according to the obtained observation data.

9. An electronic device, characterized in that, It includes: One or more processors; A storage device, configured to store 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 method according to any one of claims 1-6.

10. A computer-readable medium having a computer program stored thereon, characterized in that , when the program is executed by the processor, it implements the method according to any one of claims 1-6.

Citation Information

Patent Citations

  • Data reporting method and system

    CN105610915A

  • Data collection and reporting method and device of mobile device

    CN105656714A

  • Data reporting methods and device, equipment and memory medium

    CN109618331A

  • Method and device for dynamically adjusting data reporting processing and electronic equipment

    CN117499089A

  • Method for processing reported data from WSN terminals, WSN gateway and combination network thereof

    WO2012058845A1