CN113535500A - Method and device for monitoring service - Google Patents

Method and device for monitoring service Download PDF

Info

Publication number
CN113535500A
CN113535500A CN202010281124.7A CN202010281124A CN113535500A CN 113535500 A CN113535500 A CN 113535500A CN 202010281124 A CN202010281124 A CN 202010281124A CN 113535500 A CN113535500 A CN 113535500A
Authority
CN
China
Prior art keywords
service
business
information
detail
forming
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010281124.7A
Other languages
Chinese (zh)
Inventor
孔淑婷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN202010281124.7A priority Critical patent/CN113535500A/en
Publication of CN113535500A publication Critical patent/CN113535500A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/327Alarm or error message display

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method and a device for monitoring business, and relates to the technical field of computers. One embodiment of the method comprises: the service detail of the service operation data is formed by the client based on the time sequence, the service detail is sent to the server, the service information in the service detail is analyzed by the server, the abnormal data of the service operation is calculated, and the alarm information is formed, so that the problem that the server is overloaded due to the fact that the client sends the buried point data for multiple times is solved, the analysis efficiency and the service monitoring efficiency are improved, meanwhile, the problem that the analysis accuracy of the service operation data is reduced due to the fact that a single buried point data is recorded and the relevance of the buried point data in the service flow is not recorded is partially solved, and the analysis accuracy and the service monitoring accuracy are improved.

Description

Method and device for monitoring service
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for service monitoring.
Background
In the development and debugging of internet application, the application of a point-burying technology plays an important role and is also an effective means for analyzing the behavior of a user using the internet application; a point burying technology is a method for acquiring information or data of Internet terminal application or middle and background application by adding extra codes in application codes; through the point burying technology, behavior data of the user using the internet application can be collected, the application is monitored through data analysis, user experience of the application is optimized, and data support can be provided for operation and maintenance of the application.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art:
the existing embedded point technical scheme generally obtains the behavior data of a user from the report of single embedded point data and the subsequent data batch analysis; in a fixed business process, each embedded point independently generates data and uploads the data, and a server monitors the business in application by analyzing each embedded point data in batch, so that the problem of large data transmission and processing amount is brought, and when different steps in the business process have the same operation or the same result, the accuracy of only analyzing single embedded point data without relevance is reduced.
Disclosure of Invention
In view of the above, embodiments of the present invention provide a method and an apparatus for service monitoring, where a client forms a service detail of service operation data based on a time sequence, and sends the service detail to a server, the server analyzes the service information in the service detail, calculates abnormal data of the service operation to form alarm information, solves the problem that the server is overloaded when the client sends the buried point data for multiple times, thereby improving the analysis and service monitoring efficiency, solving the problem that the server is overloaded when the client sends the buried point data for a plurality of times, therefore, the analysis efficiency is improved, the problem that the analysis accuracy of the service operation data is reduced due to the relevance of the recorded single buried point data and the unrecorded buried point data in the service process is partially solved, and the analysis and service monitoring accuracy is improved.
To achieve the above object, according to an aspect of an embodiment of the present invention, there is provided a method for service monitoring, including: recording service information of service operation in a service flow based on a time sequence, wherein the service information comprises an execution result of the service operation; forming service details based on time series according to one or more service information; and sending the service detail.
Optionally, the method of traffic monitoring is characterized in that,
recording service information of service operation in a service flow based on the time sequence, wherein the service information comprises:
and recording one or more time points of executing the business operation in the business process based on the time sequence.
Optionally, the method of traffic monitoring is characterized in that,
the service information includes an execution result of the service operation, and includes:
the service information includes an execution result of the service operation and a reason for forming the execution result.
To achieve the above object, according to an aspect of an embodiment of the present invention, there is provided a method for service monitoring, including: receiving a service detail of a service process, wherein the service detail comprises service information recorded based on a time sequence, and the service information comprises an execution result of a service operation; and calculating an abnormal numerical value of the business operation according to the business information contained in the business detail, and forming alarm information of the business process when the numerical value is not less than a predefined threshold value.
Optionally, the method of traffic monitoring is characterized in that,
the service detail includes one or more time points in the service flow for executing the service operation.
Optionally, the method of traffic monitoring is characterized in that,
the service information includes an execution result of the service operation, and includes:
the service information includes an execution result of the service operation and a reason for forming the execution result.
Optionally, the method of traffic monitoring is characterized in that,
calculating an abnormal numerical value of the business operation according to the business information contained in the business detail, and forming alarm information of the business process when the numerical value is not less than a predefined threshold value, wherein the alarm information comprises:
and calculating the execution duration of the service operation according to the time point of executing the service operation contained in the service information in the service detail, and forming alarm information of the service process when the execution duration is not less than a predefined threshold.
Optionally, the method of traffic monitoring is characterized in that,
calculating an abnormal numerical value of the business operation according to the business information contained in the business detail, and forming alarm information of the business process when the numerical value is not less than a predefined threshold value, wherein the alarm information comprises:
the method comprises the steps of obtaining the service information in one or more service details, screening the execution result of the service operation contained in the service information, calculating the numerical value of the abnormal result when the execution result indicates abnormal, and forming the alarm information of the service process when the numerical value is not less than a predefined threshold, wherein the alarm information contains the reason for forming the abnormal result.
In order to achieve the above object, according to a second aspect of the embodiments of the present invention, there is provided a device for monitoring a service, including: the system comprises a business recording module, a detail forming module and a detail sending module; the business recording module is used for recording business information of business operation in a business process based on a time sequence; the forming detail module is used for forming service details based on a time sequence according to one or more service information; and the sending detail module is used for sending the service details.
Optionally, the traffic monitoring apparatus is characterized in that,
recording service information of service operation in a service flow based on the time sequence, wherein the service information comprises:
and recording one or more time points of executing the business operation in the business process based on the time sequence.
Optionally, the traffic monitoring apparatus is characterized in that,
the service information includes an execution result of the service operation, and includes:
the service information includes an execution result of the service operation and a reason for forming the execution result.
In order to achieve the above object, according to a second aspect of the embodiments of the present invention, there is provided a device for monitoring a service, including: the receiving detail module is used for receiving the service details of the service process, the service details comprise service information recorded based on the time sequence, and the service information comprises an execution result of the service operation; and the alarm forming module is used for calculating an abnormal numerical value of the business operation according to the business information contained in the business detail, and forming the alarm information of the business process when the numerical value is not less than a predefined threshold value.
Optionally, the traffic monitoring apparatus is characterized in that,
the service detail includes one or more time points in the service flow for executing the service operation.
Optionally, the traffic monitoring apparatus is characterized in that,
the service information includes an execution result of the service operation, and includes:
the service information includes an execution result of the service operation and a reason for forming the execution result.
Optionally, the traffic monitoring apparatus is characterized in that,
calculating an abnormal numerical value of the business operation according to the business information contained in the business detail, and forming alarm information of the business process when the numerical value is not less than a predefined threshold value, wherein the alarm information comprises:
and calculating the execution duration of the service operation according to the time point of executing the service operation contained in the service information in the service detail, and forming alarm information of the service process when the execution duration is not less than a predefined threshold.
Optionally, the traffic monitoring apparatus is characterized in that,
calculating an abnormal numerical value of the business operation according to the business information contained in the business detail, and forming alarm information of the business process when the numerical value is not less than a predefined threshold value, wherein the alarm information comprises:
the method comprises the steps of obtaining the service information in one or more service details, screening the execution result of the service operation contained in the service information, calculating the numerical value of the abnormal result when the execution result indicates abnormal, and forming the alarm information of the service process when the numerical value is not less than a predefined threshold, wherein the alarm information contains the reason for forming the abnormal result.
To achieve the above object, according to a third aspect of the embodiments of the present invention, there is provided an electronic device for service monitoring, including: one or more processors; storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to carry out a method as in any one of the above-mentioned methods of traffic monitoring.
To achieve the above object, according to a fourth aspect of the embodiments of the present invention, there is provided a computer readable medium having a computer program stored thereon, wherein the program is configured to implement, when executed by a processor, any one of the above-mentioned methods of traffic monitoring.
One embodiment of the above invention has the following advantages or benefits: the service detail of the service operation data is formed by the client based on the time sequence, the service detail is sent to the server, the service information in the service detail is analyzed by the server, the abnormal data of the service operation is calculated, and the alarm information is formed, so that the problem that the server is overloaded due to the fact that the client sends the buried point data for multiple times is solved, the analysis efficiency and the service monitoring efficiency are improved, meanwhile, the problem that the analysis accuracy of the service operation data is reduced due to the fact that a single buried point data is recorded and the relevance of the buried point data in the service flow is not recorded is partially solved, and the analysis accuracy and the service monitoring accuracy are improved.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
fig. 1 is a flowchart illustrating a method for service monitoring applied to a client according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a service monitoring applied to a server according to an embodiment of the present invention;
FIG. 3 is a flow diagram of a business monitor provided by an embodiment of the invention;
FIG. 4 is a flowchart illustrating an example of a method for traffic monitoring according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an apparatus for monitoring traffic applied to a client according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an apparatus for service monitoring applied to a server according to an embodiment of the present invention;
FIG. 7 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 8 is a schematic structural diagram of a computer system suitable for implementing a terminal device or a server according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
As shown in fig. 1, an embodiment of the present invention provides a method applied to a client, where the method may include the following steps:
step S101: and recording service information and service operation in a service flow based on the time sequence, wherein the service information comprises an execution result of the service operation.
Specifically, the business process may be a function, a module, or the like in an internet application, and the business process generally includes fixed steps, records specific business information and business operations in the business process in sequence and steps, and records execution results of the business operations included in the business information. For example, the business process is a process for upgrading a new version by an application, and includes steps of downloading a software package, upgrading, installing, and the like, where the business operation may be a predefined operation in the business process, for example, an operation of downloading a software package, upgrading, and the like; the service information is information related to the service operation in the service flow, and the service information comprises information required by the service operation, including the execution time point, the execution result, the execution preparation information and the like of the service operation; for example, if the result of downloading the software package is failure, recording the time point of failure of downloading the software package, the result of downloading the software package as failure, the reason of failure, and the like as the service information; that is, recording service information of service operation in a service flow based on a time sequence, wherein the service information comprises an execution result of the service operation; further, the service information includes an execution result of the service operation and a reason for forming the execution result.
That is, one or more time points in the business process at which the business operation is performed are recorded based on the time series.
Specifically, the service information includes time points including time points at which service operations are performed, and when the service information records information of a service flow and is not directly associated with a certain service operation, the time points at which the service information is formed are recorded, it can be understood that, for a step of a service flow, the time of each service operation and service information, and the result and reason of each service operation are recorded in sequence, and in order to analyze data of the service flow, the service information further includes other information that is not directly associated with the service operation in the service flow, for example, data information before the service operation starts; that is, recording service information of service operation in a service flow based on a time sequence, wherein the service information comprises an execution result of the service operation; and recording one or more time points of executing the business operation in the business process based on the time sequence.
It can be understood that the present invention can be applied to any terminal and business process in the middle and background applications, for example, the upgrade process of the terminal application, the shopping process of the e-commerce application, the automatic test process of the background server, etc., and the steps of the business process, the content of the business operation, and the content of the business information are not specifically limited by the present invention.
Step S102: and forming service details based on the time sequence according to one or more service information.
Specifically, according to the steps of the business process, a business operation is executed, for example, the business information of the business operation in the business process is recorded as described in step S101; further, forming service details based on time series according to one or more service information; it can be understood that, by recording the service information of the service operation in the service flow, the relevance of each step of the service flow according to the time sequence is established, and an information chain of the service flow is formed; the information chain is the service detail; forming a service detail by a service process of an application; the service detail can be stored in a file, a database and a linked list, and the invention does not limit the specific content, format and storage medium of the service detail. Therefore, according to the embodiment, only one service detail is generated and uploaded for one service process, and the problem of large data volume caused by uploading of each data of buried points, namely the data of each service operation is solved.
The following illustrates the fragments in the service detail, taking the service detail fragment of application upgrade as an example, as follows:
2020-01-0116:16:36.123 start download of upgrade package, current version 1.1, version to be upgraded 2.2, upgrade package link http:// www.abc.def/upgrade/file/aaa.bbb
2020-01-0116:16: 46.123 upgrade package download fails, the reason for the failure is as follows: network timeout, error code ERR _ CONNECTION _ time _ OUT.
Step S103: and sending the service detail.
Specifically, the sending of the service details formed according to the descriptions in step S101 to step S102 includes uploading the service details by using a file transfer protocol, transmitting the service details by using a hypertext transfer protocol, and transmitting the service details by using a peer-to-peer network, and it can be understood that the service details are sent to the server, so that the server further analyzes the service information included in the service flow.
According to the embodiment, only one service detail is generated and uploaded for one service process, and the problems of large data volume and heavy server load caused by uploading data of each service operation are solved.
As shown in fig. 2, an embodiment of the present invention provides a method applied to a server, where the method may include the following steps:
step S201: and receiving a service detail of the service process, wherein the service detail comprises service information recorded based on the time sequence, and the service information comprises an execution result of the service operation.
Specifically, the description of the service details, the service information, and the service operation of the service flow is consistent with step S101, and is not described herein again;
further, as stated in step S101, the service detail includes one or more time points of executing the service operation in the service flow;
the service information includes an execution result of the service operation and a reason for forming the execution result.
Step S202: and calculating an abnormal numerical value of the business operation according to the business information contained in the business detail, and forming alarm information of the business process when the numerical value is not less than a predefined threshold value.
Specifically, the above steps are described below in two ways;
the first method is that the execution duration of the business operation is calculated according to the time point of executing the business operation contained in the business information in the business detail, and when the execution duration is not less than a predefined threshold, the alarm information of the business process is formed.
Specifically, the above flow is illustrated as an example fragment of the following service detail:
2020-01-0116:16:36.123 start download of upgrade package, current version 1.1, version to be upgraded 2.2, upgrade package link http:// www.abc.def/upgrade/file/aaa.bbb
2020-01-0116: 26:36.123 upgrade package download completion
According to the time in the example, the time point for starting the downloading of the upgrade package is 2020-01-0116:16:36.123, the time point for finishing the downloading of the upgrade package is 2020-01-0116: 26:36.123, the time length used for downloading the upgrade package is calculated to be known, the time length used is 10 minutes, and if the predefined threshold value of the longest time length for downloading the upgrade package is 1 minute, the business operation is considered to be abnormal, so that the alarm information of the business process is formed; it can be understood that the alarm information includes the service operation in the service flow, the service information related to the service operation and the execution duration of the service operation;
that is, according to the service information included in the service details, an abnormal value of the service operation is calculated, and when the value is not less than a predefined threshold, alarm information of the service flow is formed, including:
and calculating the execution duration of the service operation according to the time point of executing the service operation contained in the service information in the service detail, and forming alarm information of the service process when the execution duration is not less than a predefined threshold.
The second method is to obtain the service information in one or more service details, screen the execution result of the service operation contained in the service information, when the execution result indicates abnormal, calculate the value of the abnormal result, and when the value is not less than the predefined threshold, form the alarm information of the service flow, where the alarm information contains the reason for forming the abnormal result.
Specifically, the above flow is illustrated as an example fragment of the following service detail:
2020-01-0116:16:36.123 start download of upgrade package, current version 1.1, version to be upgraded 2.2, upgrade package link http:// www.abc.def/upgrade/file/aaa.bbb
2020-01-0116:16: 46.123 upgrade package download fails due to network timeout and error code ERR _ CONNECTION _ TIMED _ OUT.
As can be known from the service information in the above example, if the upgrade package fails to be downloaded, the service information about the result of the upgrade package downloading is obtained for the same service process of multiple identical applications, and statistics and calculation are performed, for example, the percentage of the value of the upgrade package downloading failure in the total number of the upgrade package downloading is calculated, for example, the calculation result is 6%, and if the predefined threshold value of the upgrade package downloading failure is 5%, and 6% is greater than 5%, it is considered that the service operation is abnormal, and alarm information of the service process is formed; it can be understood that the alarm information includes the service operation indicated as failure and the reason of the failure, it can be understood that the execution result indicated as exception includes an identifier predefined as exception, such as a keyword of failure, exception, ERROR, or the like, or an ERROR code identified as exception, and the specific content of the exception data is not limited by the present invention.
Namely, according to the service information contained in the service detail, calculating an abnormal numerical value of the service operation, and when the numerical value is not less than a predefined threshold, forming alarm information of the service flow:
the method comprises the steps of obtaining the service information in one or more service details, screening the execution result of the service operation contained in the service information, calculating the numerical value of the abnormal result when the execution result indicates abnormal, and forming the alarm information of the service process when the numerical value is not less than a predefined threshold, wherein the alarm information contains the reason for forming the abnormal result.
As shown in fig. 3, an embodiment of the present invention provides a flow diagram of service monitoring, including the following steps:
step S301: and the client records the service information and the service operation.
Specifically, a client records service information and service operation in a service flow based on a time sequence, wherein the service information comprises an execution result of the service operation;
recording service information and service operation in a service flow based on the time sequence, wherein the recording comprises the following steps: recording the time point of executing the business operation in the business process based on the time sequence;
the service information includes an execution result of the service operation, and includes: the service information includes an execution result of the service operation and a reason for forming the execution result.
Further, forming service details based on time series according to one or more service information;
the following describes a process of recording service operation and service information by a client with reference to the example of the service flow in fig. 4, as an example of the service flow for automatically updating a new version shown in fig. 4, the following describes the service operation and the recorded service information for automatically updating a new version of the service flow, where the service information includes a name of the recorded service operation, and the example of the service information is shown as follows:
starting an application upgrading process, recording service operation and time points, and recording the version number of the current application, the version number to be upgraded and the link of an upgrading packet;
checking the upgrade software package, recording service operation and time points, and recording contents for checking and a checking result; if the verification fails, the upgrading is stopped, and the recording is stopped;
upgrading the download popup, recording service operation and time point, recording whether the upgrade download popup is displayed or not, whether the user selects to cancel the download or not, recording the behavior of the user if the user selects to cancel, stopping upgrading, and stopping recording
Starting downloading, recording service operation and time points, recording whether the downloading is successful, if so, recording success, and if not, recording failure reasons;
installing a popup window in an upgrading software package, recording service operation and time points, and recording whether the installation popup window is displayed or not and whether a user selects to cancel installation or not; if the user selects to cancel, recording the behavior of the user, stopping upgrading and stopping recording;
entering an installation interface, recording service operation and time points, recording whether the installation is normal or not, and recording a failure reason if the installation fails;
and finishing the upgrading process: recording service operation and time points;
further, based on time and sequence, forming a service detail according to all service information from starting an application upgrade flow to finishing the upgrade flow, that is, forming the service detail based on a time sequence according to one or more service information;
the description of the client-side formation service detail is identical to steps S101-S102 and will not be described here.
Step S302: sending the service detail;
specifically, the description that the client sends the service details to the server is consistent with the description in step S103, and is not described herein again;
step S303: calculating abnormal data of the business operation according to the business information;
step S304: forming service alarm information;
specifically, the steps of the server side described in steps S303 to S304 calculating abnormal data of the service operation according to the service information, and forming the service alarm information are consistent with step S202, and are not described herein again.
As shown in fig. 5, an embodiment of the present invention provides an apparatus 500 for service monitoring, including: a business recording module 501, a detail forming module 502 and a detail sending module 503; the recording service module 501 is configured to record service information of a service operation in a service flow based on a time sequence; the form details module 502 is configured to form a service details based on a time sequence according to one or more service information; the sending details module 503 is configured to send the service details.
Optionally, the record service module 501 is configured to record service information of a service operation in a service flow based on a time sequence, and includes:
and recording one or more time points of executing the business operation in the business process based on the time sequence.
Optionally, the recording service module 501, including that the service information includes an execution result of the service operation, includes:
the service information includes an execution result of the service operation and a reason for forming the execution result.
As shown in fig. 6, an embodiment of the present invention provides a device 600 for service monitoring, including: a receiving detail module 601 and a forming alarm module 602; the receiving detail module 601 is configured to receive a service detail of a service process, where the service detail includes service information recorded based on a time sequence, and the service information includes an execution result of a service operation; the form alarm module 602 is configured to calculate an abnormal value of the service operation according to the service information included in the service details, and form alarm information of the service process when the value is not less than a predefined threshold.
Optionally, the receiving specification module 601 includes that the service specification includes one or more time points of executing the service operation in the service flow.
Optionally, the receiving specification module 601, including that the service information includes an execution result of the service operation, includes:
the service information includes an execution result of the service operation and a reason for forming the execution result.
Optionally, the forming an alarm module 602 is configured to calculate an abnormal value of the service operation according to the service information included in the service details, and when the value is not less than a predefined threshold, forming alarm information of the service flow, where the forming an alarm module includes:
and calculating the execution duration of the service operation according to the time point of executing the service operation contained in the service information in the service detail, and forming alarm information of the service process when the execution duration is not less than a predefined threshold.
Optionally, the form alert module 602, wherein,
calculating an abnormal numerical value of the business operation according to the business information contained in the business detail, and forming alarm information of the business process when the numerical value is not less than a predefined threshold value, wherein the alarm information comprises:
the method comprises the steps of obtaining the service information in one or more service details, screening the execution result of the service operation contained in the service information, calculating the numerical value of the abnormal result when the execution result indicates abnormal, and forming the alarm information of the service process when the numerical value is not less than a predefined threshold, wherein the alarm information contains the reason for forming the abnormal result.
An embodiment of the present invention further provides an electronic device for service monitoring, including: one or more processors; the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors are enabled to realize the method provided by any one of the above embodiments.
Embodiments of the present invention further provide a computer-readable medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method provided in any of the above embodiments.
Fig. 7 shows an exemplary system architecture 700 to which the method of traffic monitoring or the apparatus of traffic monitoring of an embodiment of the present invention may be applied.
As shown in fig. 7, the system architecture 700 may include terminal devices 701, 702, 703, a network 704, and a server 705. The network 704 serves to provide a medium for communication links between the terminal devices 701, 702, 703 and the server 705. Network 704 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
A user may use the terminal devices 701, 702, 703 to interact with a server 705 over a network 704, to receive or send messages or the like. Various client applications, such as a web browser application, a search-type application, an instant messaging tool, a mailbox client, and the like, may be installed on the terminal devices 701, 702, and 703.
The terminal devices 701, 702, 703 may be various electronic devices having a display screen and supporting the running of client applications, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 705 may be a server providing various services, such as a background management server providing support for traffic details sent by the user using the terminal devices 701, 702, 703. The background management server can analyze and process the received data such as the service details and the like, and form service alarm information.
It should be noted that, the method for service monitoring provided by the embodiment of the present invention is generally executed by the server 705, and accordingly, the device for service monitoring applied to the server is generally disposed in the server 705; the method for service monitoring provided by the embodiment of the present invention is generally executed by the terminal devices 701, 702, and 703, and accordingly, the device for service monitoring applied to the client is generally disposed in the terminal devices 701, 702, and 703.
It should be understood that the number of terminal devices, networks, and servers in fig. 7 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 8, shown is a block diagram of a computer system 800 suitable for use with a terminal device implementing an embodiment of the present invention. The terminal device shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 8, the computer system 800 includes a Central Processing Unit (CPU)801 that can perform various appropriate actions and processes in accordance with 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 necessary 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 bus 804.
The following components are connected to the I/O interface 805: an input portion 806 including a keyboard, a mouse, and the like; an output section 807 including a signal such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 808 including a hard disk and the like; and a communication section 809 including a network interface card such as a LAN card, a modem, or the like. 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 necessary. A removable medium 811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 810 as necessary, so that a computer program read out therefrom is mounted on the storage section 808 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 809 and/or installed from the removable medium 811. The computer program executes the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 801.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations 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 diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules and/or units described in the embodiments of the present invention may be implemented by software, and may also be implemented by hardware. The described modules and/or units may also be provided in a processor, and may be described as: a processor, comprising: the system comprises a business recording module, a detail forming module and a detail sending module. The names of the modules do not limit the modules themselves under certain conditions, for example, the module for forming details can also be described as a module for forming details of services based on time series according to service information of a service flow; it can also be described as: a processor, comprising: a receiving detail module and a forming alarm module. The names of these modules do not form a limitation to the module itself in some cases, for example, the receiving detail module may also be described as a module that receives service information of a service flow recorded based on a time series and forms a service detail according to the service information.
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: the method comprises the steps that service information of service operation in a service flow can be recorded based on a time sequence, wherein the service information comprises an execution result of the service operation; forming service details based on time series according to one or more service information; and sending the service detail.
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: the method comprises the steps that service details of a service process can be received, wherein the service details comprise service information recorded based on a time sequence, and the service information comprises an execution result of service operation; and calculating an abnormal numerical value of the business operation according to the business information contained in the business detail, and forming alarm information of the business process when the numerical value is not less than a predefined threshold value.
According to the technical scheme of the embodiment of the invention, the service detail of the service operation data is formed by the client based on the time sequence and is sent to the server, the service information in the service detail is analyzed by the server, the abnormal data of the service operation is calculated, and the alarm information is formed, so that the problem that the server is overloaded due to the fact that the client sends the buried point data for multiple times is solved, the service monitoring and analyzing efficiency is improved, meanwhile, the problem that the analyzing accuracy of the service operation data is reduced due to the fact that a single buried point data is recorded and the relevance of the buried point data in the service flow is not recorded is partially solved, and the accuracy of the service monitoring and analyzing is improved.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (14)

1. A method of traffic monitoring, comprising:
recording service information of service operation in a service flow based on a time sequence, wherein the service information comprises an execution result of the service operation;
forming service details based on time series according to one or more service information;
and sending the service detail.
2. The method of claim 1,
recording service information of service operation in a service flow based on the time sequence, wherein the service information comprises:
and recording one or more time points of executing the business operation in the business process based on the time sequence.
3. The method of claim 1,
the service information includes an execution result of the service operation, and includes:
the service information includes an execution result of the service operation and a reason for forming the execution result.
4. A method of traffic monitoring, comprising:
receiving a service detail of a service process, wherein the service detail comprises service information recorded based on a time sequence, and the service information comprises an execution result of a service operation;
and calculating an abnormal numerical value of the business operation according to the business information contained in the business detail, and forming alarm information of the business process when the numerical value is not less than a predefined threshold value.
5. The method of claim 4,
the service detail includes one or more time points in the service flow for executing the service operation.
6. The method of claim 5,
the service information includes an execution result of the service operation, and includes:
the service information includes an execution result of the service operation and a reason for forming the execution result.
7. The method of claim 6,
calculating an abnormal numerical value of the business operation according to the business information contained in the business detail, and forming alarm information of the business process when the numerical value is not less than a predefined threshold value, wherein the alarm information comprises:
and calculating the execution duration of the service operation according to the time point of executing the service operation contained in the service information in the service detail, and forming alarm information of the service process when the execution duration is not less than a predefined threshold.
8. The method of claim 6,
calculating an abnormal numerical value of the business operation according to the business information contained in the business detail, and forming alarm information of the business process when the numerical value is not less than a predefined threshold value, wherein the alarm information comprises:
the method comprises the steps of obtaining the service information in one or more service details, screening the execution result of the service operation contained in the service information, calculating the numerical value of the abnormal result when the execution result indicates abnormal, and forming the alarm information of the service process when the numerical value is not less than a predefined threshold, wherein the alarm information contains the reason for forming the abnormal result.
9. An apparatus for traffic monitoring, comprising: the system comprises a business recording module, a detail forming module and a detail sending module; wherein,
the business recording module is used for recording business information of business operation in a business process based on the time sequence;
the forming detail module is used for forming service details based on a time sequence according to one or more service information;
and the sending detail module is used for sending the service details.
10. An apparatus for traffic monitoring, comprising: receiving a detail module and forming an alarm module; wherein,
the receiving detail module is used for receiving the service details of the service process, the service details comprise service information recorded based on the time sequence, and the service information comprises an execution result of the service operation;
and the alarm forming module is used for calculating an abnormal numerical value of the business operation according to the business information contained in the business detail, and forming the alarm information of the business process when the numerical value is not less than a predefined threshold value.
11. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-3.
12. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 4-8.
13. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-3.
14. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 4-8.
CN202010281124.7A 2020-04-10 2020-04-10 Method and device for monitoring service Pending CN113535500A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010281124.7A CN113535500A (en) 2020-04-10 2020-04-10 Method and device for monitoring service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010281124.7A CN113535500A (en) 2020-04-10 2020-04-10 Method and device for monitoring service

Publications (1)

Publication Number Publication Date
CN113535500A true CN113535500A (en) 2021-10-22

Family

ID=78087768

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010281124.7A Pending CN113535500A (en) 2020-04-10 2020-04-10 Method and device for monitoring service

Country Status (1)

Country Link
CN (1) CN113535500A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105488610A (en) * 2015-11-23 2016-04-13 国网山东省电力公司信息通信公司 Fault real-time analysis and diagnosis system and method for power application system
CN106980565A (en) * 2017-03-17 2017-07-25 北京潘达互娱科技有限公司 Escalation process monitoring method and device
CN110224858A (en) * 2019-05-16 2019-09-10 平安科技(深圳)有限公司 Alarm method and relevant apparatus based on log
CN110932910A (en) * 2019-12-05 2020-03-27 锐捷网络股份有限公司 Method and device for recording logs of software faults

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105488610A (en) * 2015-11-23 2016-04-13 国网山东省电力公司信息通信公司 Fault real-time analysis and diagnosis system and method for power application system
CN106980565A (en) * 2017-03-17 2017-07-25 北京潘达互娱科技有限公司 Escalation process monitoring method and device
CN110224858A (en) * 2019-05-16 2019-09-10 平安科技(深圳)有限公司 Alarm method and relevant apparatus based on log
CN110932910A (en) * 2019-12-05 2020-03-27 锐捷网络股份有限公司 Method and device for recording logs of software faults

Similar Documents

Publication Publication Date Title
CN111488254A (en) Deployment and monitoring device and method of machine learning model
CN111190888A (en) Method and device for managing graph database cluster
CN113495820B (en) Anomaly information collecting and processing method and device and anomaly monitoring system
CN107644075B (en) Method and device for collecting page information
CN111427701A (en) Workflow engine system and business processing method
CN110928934A (en) Data processing method and device for business analysis
CN112596920A (en) Message processing method and device, electronic equipment and storage medium
CN112905930A (en) Interface request retransmission method and device
CN110727563A (en) Cloud service alarm method and device for preset customer
CN107315672B (en) Method and device for monitoring server
CN109218338B (en) Information processing system, method and device
CN116566739B (en) Security detection system, electronic equipment and storage medium
CN113296828A (en) Method, server and system for issuing application
CN113535500A (en) Method and device for monitoring service
CN112241357A (en) Method, device, equipment and computer readable medium for gray scale test
CN113485902B (en) Method, device, equipment and computer readable medium for testing service platform
CN113141403B (en) Log transmission method and device
CN111290873B (en) Fault processing method and device
CN107682432A (en) Data handling system and method based on Spark
CN110888770B (en) Method and device for transmitting information
CN113141236A (en) Message processing method and device
CN110852537B (en) Quality of service detection method and device
CN112000540A (en) Monitoring processing method, system, equipment and storage medium for distributed deployment products
CN112732728A (en) Data synchronization method and system
CN111949472A (en) Method and device for recording application logs

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination