CN111367765A - Method and device for monitoring interface response performance, server and storage medium - Google Patents

Method and device for monitoring interface response performance, server and storage medium Download PDF

Info

Publication number
CN111367765A
CN111367765A CN202010186356.4A CN202010186356A CN111367765A CN 111367765 A CN111367765 A CN 111367765A CN 202010186356 A CN202010186356 A CN 202010186356A CN 111367765 A CN111367765 A CN 111367765A
Authority
CN
China
Prior art keywords
interface
response time
early warning
time
response
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
CN202010186356.4A
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.)
Shenzhen Kaniu Technology Co ltd
Original Assignee
Shenzhen Kaniu 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 Shenzhen Kaniu Technology Co ltd filed Critical Shenzhen Kaniu Technology Co ltd
Priority to CN202010186356.4A priority Critical patent/CN111367765A/en
Publication of CN111367765A publication Critical patent/CN111367765A/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/3041Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is an input/output interface
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
    • G06F11/3419Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment by assessing time
    • G06F11/3423Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment by assessing time where the assessed time is active or idle time

Landscapes

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

Abstract

The embodiment of the invention provides a method and a device for monitoring interface response performance, a server and a storage medium. The monitoring method of the interface response performance comprises the following steps: acquiring response time of a plurality of monitored interfaces to obtain target response time corresponding to each interface; judging whether the target response time of each interface reaches a corresponding early warning threshold value, wherein the early warning threshold value of each interface is independently set corresponding to the target response time; and early warning the interface with the target response time reaching an early warning threshold value. By setting an independent early warning threshold value for each interface, the effect of improving the accuracy of early warning for the interfaces is achieved.

Description

Method and device for monitoring interface response performance, server and storage medium
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a method and a device for monitoring interface response performance, a server and a storage medium.
Background
Interface calls are the most important way to exchange data between different functional modules and different service systems within the system. The response time of the interface directly affects the user experience, so that monitoring the response time of the interface is particularly important.
Currently, most monitoring methods are implemented by setting a uniform early warning threshold. As long as there is an interface that reaches the unified early warning threshold, an early warning will be triggered.
However, different interfaces have different response times due to different amounts of exchanged data, and whether the early warning needs to be triggered or not is judged by setting a uniform early warning threshold value, which results in very low accuracy of early warning. For example, the data size of the investment recording interface is much larger than that of the product listing interface, and thus the response time of the investment recording interface is much longer than that of the product listing interface. The setting of the unified early warning threshold value is too high, so that the early warning cannot be performed when the product list interface is abnormal, and the setting of the early warning threshold value is too low, so that the frequent early warning of the investment record interface is caused, and the use experience is influenced.
Disclosure of Invention
The embodiment of the invention provides a monitoring method and device for interface response performance, a server and a storage medium, so as to achieve the effect of improving the accuracy of early warning on an interface.
In a first aspect, an embodiment of the present invention provides a method for monitoring interface response performance, including:
acquiring response time of a plurality of monitored interfaces to obtain target response time corresponding to each interface;
judging whether the target response time of each interface reaches a corresponding early warning threshold value, wherein the early warning threshold value of each interface is independently set corresponding to the target response time;
and early warning the interface with the target response time reaching an early warning threshold value.
Optionally, the method further includes:
acquiring historical response time of each interface within first preset time;
and calculating an early warning threshold corresponding to each interface based on the historical response time.
Optionally, the obtaining the historical response time within the first preset time of each interface includes:
acquiring the current moment when each interface responds;
and acquiring historical response time within first preset time adjacent to the current moment.
Optionally, the calculating an early warning threshold corresponding to each interface based on the historical response time includes:
calculating the average value of historical response time to obtain the response average time corresponding to each interface;
and determining the early warning threshold value corresponding to each interface according to the response average time.
Optionally, after the interface that warns that the target response time reaches the pre-warning threshold is pre-warned, the method includes:
collecting response data of the early-warning interface;
constructing a change curve of response time according to the collected response data;
and displaying the change curve to a user in a visual form.
Optionally, the response data includes a reference response time within a second preset time when the early warning occurs, an occurrence time corresponding to the reference response time, and an interface type, and the constructing a change curve of the response time according to the collected response data includes:
and constructing a variation curve of the response time by taking the occurrence time of the reference response time as a time axis, mapping the reference response time of the time axis and the interface type.
Optionally, the obtaining the historical response time within the first preset time of each interface includes:
and acquiring historical response time of each interface within first preset time in a preset database.
In a second aspect, an embodiment of the present invention provides an apparatus for monitoring interface response performance, including:
the response time acquisition module is used for acquiring the response time of the plurality of monitored interfaces to obtain the target response time corresponding to each interface;
the judging module is used for judging whether the target response time of each interface reaches the corresponding early warning threshold value;
and the early warning module is used for early warning the interface when the target response time reaches an early warning threshold value.
In a third aspect, an embodiment of the present invention provides a server, including:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the method for monitoring interface response performance according to any embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a method for monitoring interface response performance according to any embodiment of the present invention.
The method comprises the steps of obtaining the response time of a plurality of monitored interfaces to obtain the target response time corresponding to each interface; judging whether the target response time of each interface reaches a corresponding early warning threshold value, wherein the early warning threshold value of each interface is independently set corresponding to the target response time; the interface with the target response time reaching the early warning threshold is early warned, the problem that whether early warning needs to be triggered or not is judged by setting a uniform early warning threshold, so that the early warning accuracy is very low is solved, and the effect of improving the early warning accuracy of the interface is realized.
Drawings
Fig. 1 is a schematic flowchart of a method for monitoring interface response performance according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a method for monitoring interface response performance according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a monitoring apparatus for interface response performance according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a server according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. A process may be terminated when its operations are completed, but may have additional steps not included in the figure. A process may correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.
Furthermore, the terms "first," "second," and the like may be used herein to describe various orientations, actions, steps, elements, or the like, but the orientations, actions, steps, or elements are not limited by these terms. These terms are only used to distinguish one direction, action, step or element from another direction, action, step or element. For example, the first information may be referred to as second information, and similarly, the second information may be referred to as first information, without departing from the scope of the present application. The first information and the second information are both information, but they are not the same information. The terms "first", "second", etc. are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Example one
Fig. 1 is a schematic flowchart of a method for monitoring interface response performance according to an embodiment of the present invention, which is applicable to a scenario in which an interface for communication is subjected to early warning, and the method may be executed by a monitoring apparatus for interface response performance, and the apparatus may be implemented in a software and/or hardware manner, and may be integrated on a server.
As shown in fig. 1, a method for monitoring interface response performance according to an embodiment of the present invention includes:
s110, obtaining response time of the plurality of monitored interfaces, and obtaining target response time corresponding to each interface.
The interface is a tool for realizing data exchange between different functional modules or different service systems. The target response time refers to a response time when the interface performs data exchange. In this embodiment, the number of the monitored interfaces is plural, and the plural interfaces refers to more than two interfaces, for example, two interfaces, three interfaces, and the like, which is not limited herein. Optionally, the type of each interface is different. Specifically, each interface corresponds to a target response time. Illustratively, the plurality of interfaces include an investment record interface and a product list interface, and then the response times of the investment record interface and the product list interface are respectively obtained to obtain a target response time a1 corresponding to the investment record interface and a target response time a2 corresponding to the product list interface.
S120, judging whether the target response time of each interface reaches the corresponding early warning threshold value, wherein the early warning threshold value of each interface is independently set corresponding to the target response time.
The early warning threshold value is a condition for judging whether the corresponding interface needs to be early warned. Specifically, the early warning threshold of each interface is set independently corresponding to the target response time of the interface. In this embodiment, the pre-warning thresholds of different interfaces are different. For example, the early warning threshold of the investment recording interface is B1, and the early warning threshold of the product listing interface is B2. Optionally, the early warning threshold may be set according to a historical response time of the interface. In this embodiment, each interface may be optionally a specific interface, such as an investment record interface and a product list interface, or may be an interface of each type, such as a wind control type interface and a storage type interface, which is not limited herein. The interfaces of each type comprise a plurality of sub-interfaces, and because the types are the same, the response time difference of the sub-interfaces of the corresponding type is not large, an early warning threshold value can be set for the interface of one type, and the calculation of data can be reduced.
And S130, early warning the interface with the target response time reaching the early warning threshold value.
In this step, specifically, the interface whose target response time reaches the early warning threshold is early warned. Illustratively, when the target response time A1 of the investment record interface reaches the early warning threshold B1, the investment record interface is early warned separately; when the target response time A2 of the product list interface reaches an early warning threshold B2, the product list interface is subjected to early warning independently; when the target response time A1 of the investment recording interface reaches the early warning threshold B1 and the target response time A2 of the product list interface reaches the early warning threshold B2 at the same time, the investment recording interface and the product list interface are simultaneously early warned. By early warning the interface reaching the early warning threshold value, related personnel can also quickly locate the abnormal interface, so that maintenance is carried out, and the response time of the troubleshooting interface is shortened. The early warning mode may be sending an email to a relevant worker, and the embodiment does not limit the early warning specific mode.
According to the technical scheme of the embodiment of the invention, the target response time corresponding to each interface is obtained by obtaining the response time of a plurality of monitored interfaces; judging whether the target response time of each interface reaches a corresponding early warning threshold value, wherein the early warning threshold value of each interface is independently set corresponding to the target response time; and the interfaces with the target response time reaching the early warning threshold value are early warned, and because the early warning threshold values of different interfaces are independently set, each interface can judge whether early warning needs to be carried out according to the independent early warning threshold value, so that the technical effect of improving the accuracy of early warning on the interfaces is achieved.
Example two
Fig. 2 is a schematic flowchart of a method for monitoring interface response performance according to a second embodiment of the present invention. The embodiment is further detailed in the technical scheme, and is suitable for a scene of early warning a communication interface. The method may be performed by an interface response performance monitoring device, which may be implemented in software and/or hardware, and may be integrated on a server.
As shown in fig. 2, a method for monitoring interface response performance according to a second embodiment of the present invention includes:
s210, obtaining response time of the plurality of monitored interfaces to obtain target response time corresponding to each interface.
The interface is a tool for realizing data exchange between different functional modules or different service systems. The target response time refers to a response time when the interface performs data exchange. In this embodiment, the number of the monitored interfaces is plural, and the plural interfaces refers to more than two interfaces, for example, two interfaces, three interfaces, and the like, which is not limited herein. Optionally, the type of each interface is different. Specifically, each interface corresponds to a target response time. Illustratively, the plurality of interfaces include an investment record interface and a product list interface, and then the response times of the investment record interface and the product list interface are respectively obtained to obtain a target response time a1 corresponding to the investment record interface and a target response time a2 corresponding to the product list interface.
S220, judging whether the target response time of each interface reaches the corresponding early warning threshold value, wherein the early warning threshold value of each interface is independently set corresponding to the target response time.
The early warning threshold value is a condition for judging whether the corresponding interface needs to be early warned. Specifically, the early warning threshold of each interface is set independently corresponding to the target response time of the interface. In this embodiment, the pre-warning thresholds of different interfaces are different. For example, the early warning threshold of the investment recording interface is B1, and the early warning threshold of the product listing interface is B2. Optionally, the early warning threshold may be set according to a historical response time of the interface. In this embodiment, each interface may be optionally a specific interface, such as an investment record interface and a product list interface, or may be an interface of each type, such as a wind control type interface and a storage type interface, which is not limited herein. The interfaces of each type comprise a plurality of sub-interfaces, and because the types are the same, the response time difference of the sub-interfaces of the corresponding type is not large, an early warning threshold value can be set for the interface of one type, and the calculation of data can be reduced.
And S230, early warning the interface with the target response time reaching the early warning threshold value.
In this step, specifically, the interface whose target response time reaches the early warning threshold is early warned. Illustratively, when the target response time A1 of the investment record interface reaches the early warning threshold B1, the investment record interface is early warned separately; when the target response time A2 of the product list interface reaches an early warning threshold B2, the product list interface is subjected to early warning independently; when the target response time A1 of the investment recording interface reaches the early warning threshold B1 and the target response time A2 of the product list interface reaches the early warning threshold B2 at the same time, the investment recording interface and the product list interface are simultaneously early warned. By early warning the interface reaching the early warning threshold value, related personnel can also quickly locate the abnormal interface, so that maintenance is carried out, and the response time of the troubleshooting interface is shortened. The early warning mode may be sending an email to a relevant worker, and the embodiment does not limit the early warning specific mode.
And S240, collecting response data for the early warning interface.
The response data refers to data collected when the interface gives an early warning when the target response time is too long. Optionally, the response data includes, but is not limited to, a reference response time within a second preset time when the early warning occurs, an occurrence time corresponding to the reference response time, and an interface type. The occurrence time refers to a time corresponding to the reference response time. The interface type refers to the interface type of a certain interface with early warning. For example, at 9:00, when an early warning occurs in one of the interfaces, a plurality of response times of 8:00-9:00 of the interface are collected as reference response times, and the occurrence time of the corresponding reference time, that is, the corresponding reference response time corresponds to which time point of 8:00-9:00, is collected, and the interface type of the interface where the early warning occurs is collected.
And S250, constructing a change curve of the response time according to the collected response data.
The variation curve is a curve showing a variation trend of the response time.
In an optional embodiment, the response data includes a reference response time within a second preset time when the early warning occurs, an occurrence time corresponding to the reference response time, and an interface type, and a change curve of the response time is constructed according to the collected response data, including:
and constructing a variation curve of the response time by taking the occurrence time of the reference response time as a time axis, mapping the reference response time of the time axis and the interface type.
Here, the time axis refers to the order of occurrence times of a plurality of reference response times. Mapping refers to constructing a change curve by corresponding the reference response time and the interface type to the occurrence time. Specifically, the occurrence time of the multiple reference response times is used as an abscissa, the reference response time is used as an ordinate, the multiple reference response times are connected end to obtain a change curve, and the change curve corresponds to one interface type. In the embodiment, by constructing a change curve of the response time, the change curve corresponds to one interface type, the occurrence time of the early warning can be determined through the change curve, the change trend of the response time can be visually determined, and whether the interface which has the early warning is seriously abnormal or not can be judged according to the interface type.
And S260, displaying the change curve to a user in a visual mode.
In this embodiment, the visualized form may be that the change curve is displayed to the user in a visualized report, so that the user can confirm the occurrence time of the early warning according to the visualized report, and analyze the reason of the early warning according to the occurrence time.
In an optional implementation manner, the method for monitoring the response performance of the interface further includes:
acquiring historical response time of each interface within first preset time;
and calculating an early warning threshold corresponding to each interface based on the historical response time.
The historical response time refers to a response time within a first preset time before the target response time. The first preset time may be several hours, several days, or several months, which is not limited herein. In this embodiment, optionally, an average value of a plurality of historical response times may be calculated as the early warning threshold; the preset response time may be added to the average value of the plurality of historical response times to serve as the early warning threshold of the embodiment. Optionally, the early warning threshold corresponding to each interface may be obtained through a key analysis of the data analysis tool. Specifically, the historical response time in the present embodiment does not include the response time at the time of the warning. By eliminating the response time during early warning, the influence on the calculation of the threshold value caused by overlong response time during early warning is avoided, and the accuracy of early warning is further improved.
In an optional embodiment, obtaining the historical response time within the first preset time of each interface includes:
acquiring the current moment when each interface responds;
and acquiring historical response time within first preset time adjacent to the current moment.
The current time refers to the time when the interface responds, for example, the current time when the interface responds is 9: 00. And the historical response time is adjacent to the current time, namely the historical response time in the first preset time before the current time. Alternatively, the first predetermined time may be several hours, several days, or several months. Taking the first preset time as 10 hours as an example, when the current moment when the interface responds is 18:00, the historical response time within the first preset time of 8:00-18:00 is obtained. Taking the first preset time as 30 days as an example, when the current time of the interface response is 2020, 1 and a day, the historical response time of each day from 12, 2 and 2019 in 12, 31 and 12 in 2019 is obtained. The historical response time of each day can be obtained by averaging the response time of a plurality of moments in a day. In this embodiment, by acquiring the historical response time within the first preset time adjacent to the current time, since the current time is changed, the early warning threshold values at different times are also dynamically changed, for example, the early warning threshold value of 10:00 and the early warning threshold value of 13:00 may be different, and the early warning effect is also more accurate.
In an optional embodiment, obtaining the historical response time within the first preset time of each interface includes:
and acquiring historical response time of each interface within first preset time in a preset database.
The preset database is a database for storing historical response time. Specifically, when the interface responds each time, the response time is stored in the preset database, so that the data analysis tool button calls the historical response data stored in the preset database to analyze and obtain the early warning threshold corresponding to each interface.
In an optional embodiment, calculating the early warning threshold corresponding to each interface based on the historical response time includes:
calculating the average value of historical response time to obtain the response average time corresponding to each interface;
and determining the early warning threshold value corresponding to each interface according to the response average time.
The response average time is an average value of a plurality of historical response times. In this embodiment, the warning threshold is determined according to the historical average time. Specifically, the average response time may be used as the early warning threshold, or the preset response time is added to the average response time to be used as the early warning threshold of this embodiment. The preset response time may be a response average time multiplied by a preset ratio. For example, the response average time is 1300ms (milliseconds), the preset ratio is 10%, and the warning threshold value is 1300+1300 × 10% — 1430 ms.
According to the technical scheme of the embodiment of the invention, the target response time corresponding to each interface is obtained by obtaining the response time of a plurality of monitored interfaces; judging whether the target response time of each interface reaches a corresponding early warning threshold value, wherein the early warning threshold value of each interface is independently set corresponding to the target response time; and the interfaces with the target response time reaching the early warning threshold value are early warned, and because the early warning threshold values of different interfaces are independently set, each interface can judge whether early warning needs to be carried out according to the independent early warning threshold value, so that the technical effect of improving the accuracy of early warning on the interfaces is achieved.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a monitoring apparatus for interface response performance according to a third embodiment of the present invention, which may be applied to a scene in which an early warning is performed on a communication interface, and the apparatus may be implemented in a software and/or hardware manner and may be integrated on a server.
As shown in fig. 3, the monitoring apparatus for interface response performance provided in this embodiment may include a response time obtaining module 310, a determining module 320, and an early warning module 330, where:
a response time obtaining module 310, configured to obtain response times of multiple monitored interfaces, and obtain a target response time corresponding to each interface;
the judging module 320 is configured to judge whether the target response time of each interface reaches the corresponding early warning threshold;
and the early warning module 330 is configured to perform early warning on the interface where the target response time reaches an early warning threshold.
Optionally, the apparatus further comprises:
a historical response time obtaining module 310, configured to obtain a historical response time within a first preset time of each interface;
and the early warning threshold calculation module is used for calculating the early warning threshold corresponding to each interface based on the historical response time.
Optionally, the historical response time obtaining module 310 includes:
a current time obtaining unit, configured to obtain a current time when each interface responds;
and the historical response time acquisition unit is used for acquiring the historical response time in a first preset time adjacent to the current moment.
Optionally, the early warning threshold calculation module includes:
the response average time calculation unit is used for calculating the average value of historical response time to obtain the response average time corresponding to each interface;
and the early warning threshold value determining unit is used for determining the early warning threshold value corresponding to each interface according to the response average time.
Optionally, the apparatus further comprises:
the acquisition module is used for acquiring response data of the early warning interface;
the transformation curve construction module is used for constructing a change curve of response time according to the collected response data;
and the display module is used for displaying the change curve to a user in a visual mode.
Optionally, the response data includes a reference response time within a second preset time when the early warning occurs, an occurrence time corresponding to the reference response time, and an interface type, and the transformation curve constructing module is specifically configured to construct a transformation curve of the response time by using the occurrence time of the reference response time as a time axis and mapping the reference response time of the time axis and the interface type.
Optionally, the historical response time obtaining module 310 is specifically configured to obtain, in the preset database, the historical response time within the first preset time of each interface.
The monitoring device for the interface response performance provided by the embodiment of the invention can execute the monitoring method for the interface response performance provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. Reference may be made to the description of any method embodiment of the invention not specifically described in this embodiment.
Example four
Fig. 4 is a schematic structural diagram of a server according to a fourth embodiment of the present invention. FIG. 4 illustrates a block diagram of an exemplary server 612 suitable for use in implementing embodiments of the present invention. The server 612 shown in fig. 4 is only an example, and should not bring any limitation to the function and the scope of the use of the embodiments of the present invention.
As shown in fig. 4, the server 612 is in the form of a general-purpose server. The components of server 612 may include, but are not limited to: one or more processors 616, a memory device 628, and a bus 618 that couples the various system components including the memory device 628 and the processors 616.
Bus 618 represents one or more of any of several types of bus structures, including a memory device bus or memory device controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
The server 612 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by server 612 and includes both volatile and nonvolatile media, removable and non-removable media.
Storage 628 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) 630 and/or cache Memory 632. Terminal 612 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 634 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, and commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk such as a Compact disk Read-Only Memory (CD-ROM), Digital Video disk Read-Only Memory (DVD-ROM) or other optical media may be provided. In such cases, each drive may be connected to bus 618 by one or more data media interfaces. Storage device 628 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 640 having a set (at least one) of program modules 642 may be stored, for example, in storage 628, such program modules 642 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. The program modules 642 generally perform the functions and/or methods of the described embodiments of the present invention.
The server 612 may also communicate with one or more external devices 614 (e.g., keyboard, pointing terminal, display 624, etc.), with one or more terminals that enable a user to interact with the server 612, and/or with any terminals (e.g., network card, modem, etc.) that enable the server 612 to communicate with one or more other computing terminals. Such communication may occur via input/output (I/O) interfaces 622. Further, server 612 may communicate with one or more networks (e.g., a Local Area Network (LAN), Wide Area Network (WAN), and/or a public Network such as the internet) via Network adapter 620. As shown in FIG. 4, the network adapter 620 communicates with the other modules of the server 612 via the bus 618. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the server 612, including but not limited to: microcode, end drives, Redundant processors, external disk drive Arrays, RAID (Redundant Arrays of Independent Disks) systems, tape drives, and data backup storage systems, among others.
The processor 616 executes various functional applications and data processing by running programs stored in the storage device 628, for example, implementing a method for monitoring the response performance of an interface provided by any embodiment of the present invention, which may include:
acquiring response time of a plurality of monitored interfaces to obtain target response time corresponding to each interface;
judging whether the target response time of each interface reaches a corresponding early warning threshold value, wherein the early warning threshold value of each interface is independently set corresponding to the target response time;
and early warning the interface with the target response time reaching an early warning threshold value.
According to the technical scheme of the embodiment of the invention, the target response time corresponding to each interface is obtained by obtaining the response time of a plurality of monitored interfaces; judging whether the target response time of each interface reaches a corresponding early warning threshold value, wherein the early warning threshold value of each interface is independently set corresponding to the target response time; and the interfaces with the target response time reaching the early warning threshold value are early warned, and because the early warning threshold values of different interfaces are independently set, each interface can judge whether early warning needs to be carried out according to the independent early warning threshold value, so that the technical effect of improving the accuracy of early warning on the interfaces is achieved.
EXAMPLE five
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a method for monitoring interface response performance provided in any embodiment of the present invention, where the method may include:
acquiring response time of a plurality of monitored interfaces to obtain target response time corresponding to each interface;
judging whether the target response time of each interface reaches a corresponding early warning threshold value, wherein the early warning threshold value of each interface is independently set corresponding to the target response time;
and early warning the interface with the target response time reaching an early warning threshold value.
The computer-readable storage media of embodiments of the invention may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. 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 (a non-exhaustive list) of the computer readable storage medium would include the following: 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 context of this document, 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.
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 storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or terminal. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
According to the technical scheme of the embodiment of the invention, the target response time corresponding to each interface is obtained by obtaining the response time of a plurality of monitored interfaces; judging whether the target response time of each interface reaches a corresponding early warning threshold value, wherein the early warning threshold value of each interface is independently set corresponding to the target response time; and the interfaces with the target response time reaching the early warning threshold value are early warned, and because the early warning threshold values of different interfaces are independently set, each interface can judge whether early warning needs to be carried out according to the independent early warning threshold value, so that the technical effect of improving the accuracy of early warning on the interfaces is achieved.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for monitoring interface response performance is characterized by comprising the following steps:
acquiring response time of a plurality of monitored interfaces to obtain target response time corresponding to each interface;
judging whether the target response time of each interface reaches a corresponding early warning threshold value, wherein the early warning threshold value of each interface is independently set corresponding to the target response time;
and early warning the interface with the target response time reaching an early warning threshold value.
2. The method of monitoring interface response performance of claim 1, the method further comprising:
acquiring historical response time of each interface within first preset time;
and calculating an early warning threshold corresponding to each interface based on the historical response time.
3. The method for monitoring the response performance of the interface according to claim 2, wherein the obtaining the historical response time within the first preset time of each interface comprises:
acquiring the current moment when each interface responds;
and acquiring historical response time within first preset time adjacent to the current moment.
4. The method for monitoring the response performance of the interface of claim 2, wherein the calculating the early warning threshold corresponding to each interface based on the historical response time comprises:
calculating the average value of historical response time to obtain the response average time corresponding to each interface;
and determining the early warning threshold value corresponding to each interface according to the response average time.
5. The method for monitoring the response performance of the interface of claim 1, wherein after the interface that warns that the target response time reaches a pre-warning threshold, the method comprises:
collecting response data of the early-warning interface;
constructing a change curve of response time according to the collected response data;
and displaying the change curve to a user in a visual form.
6. The method for monitoring the response performance of the interface of claim 5, wherein the response data includes a reference response time within a second preset time when an early warning occurs, an occurrence time corresponding to the reference response time, and an interface type, and the constructing a variation curve of the response time according to the collected response data includes:
and constructing a variation curve of the response time by taking the occurrence time of the reference response time as a time axis, mapping the reference response time of the time axis and the interface type.
7. The method for monitoring the response performance of the interface according to claim 2, wherein the obtaining the historical response time within the first preset time of each interface comprises:
and acquiring historical response time of each interface within first preset time in a preset database.
8. An apparatus for monitoring interface response performance, comprising:
the response time acquisition module is used for acquiring the response time of the plurality of monitored interfaces to obtain the target response time corresponding to each interface;
the judging module is used for judging whether the target response time of each interface reaches the corresponding early warning threshold value;
and the early warning module is used for early warning the interface when the target response time reaches an early warning threshold value.
9. A server, comprising:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a method of monitoring interface response performance as recited in any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method of monitoring the response performance of an interface according to any one of claims 1 to 7.
CN202010186356.4A 2020-03-17 2020-03-17 Method and device for monitoring interface response performance, server and storage medium Pending CN111367765A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010186356.4A CN111367765A (en) 2020-03-17 2020-03-17 Method and device for monitoring interface response performance, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010186356.4A CN111367765A (en) 2020-03-17 2020-03-17 Method and device for monitoring interface response performance, server and storage medium

Publications (1)

Publication Number Publication Date
CN111367765A true CN111367765A (en) 2020-07-03

Family

ID=71206809

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010186356.4A Pending CN111367765A (en) 2020-03-17 2020-03-17 Method and device for monitoring interface response performance, server and storage medium

Country Status (1)

Country Link
CN (1) CN111367765A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113472679A (en) * 2021-09-02 2021-10-01 杭州星犀科技有限公司 Interface current limiting method and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106411659A (en) * 2016-11-29 2017-02-15 福建中金在线信息科技有限公司 Business data monitoring method and apparatus
CN108182134A (en) * 2017-12-29 2018-06-19 顺丰科技有限公司 A kind of general-purpose interface monitoring method, device and equipment, storage medium
CN108415847A (en) * 2018-05-08 2018-08-17 平安普惠企业管理有限公司 Performance test methods, device, computer equipment and storage medium
CN108845912A (en) * 2018-06-11 2018-11-20 掌阅科技股份有限公司 Service interface calls the alarm method of failure and calculates equipment
CN109560984A (en) * 2018-11-13 2019-04-02 苏宁易购集团股份有限公司 A kind of network service response time method for detecting abnormality and device
CN109614291A (en) * 2018-12-11 2019-04-12 上海连尚网络科技有限公司 Alarm method and device
CN110489309A (en) * 2019-08-26 2019-11-22 深圳乐信软件技术有限公司 A kind of monitoring and early warning method, apparatus, equipment and the storage medium of interface

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106411659A (en) * 2016-11-29 2017-02-15 福建中金在线信息科技有限公司 Business data monitoring method and apparatus
CN108182134A (en) * 2017-12-29 2018-06-19 顺丰科技有限公司 A kind of general-purpose interface monitoring method, device and equipment, storage medium
CN108415847A (en) * 2018-05-08 2018-08-17 平安普惠企业管理有限公司 Performance test methods, device, computer equipment and storage medium
CN108845912A (en) * 2018-06-11 2018-11-20 掌阅科技股份有限公司 Service interface calls the alarm method of failure and calculates equipment
CN109560984A (en) * 2018-11-13 2019-04-02 苏宁易购集团股份有限公司 A kind of network service response time method for detecting abnormality and device
CN109614291A (en) * 2018-12-11 2019-04-12 上海连尚网络科技有限公司 Alarm method and device
CN110489309A (en) * 2019-08-26 2019-11-22 深圳乐信软件技术有限公司 A kind of monitoring and early warning method, apparatus, equipment and the storage medium of interface

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113472679A (en) * 2021-09-02 2021-10-01 杭州星犀科技有限公司 Interface current limiting method and system

Similar Documents

Publication Publication Date Title
CN112436968B (en) Network traffic monitoring method, device, equipment and storage medium
CN111104283B (en) Fault detection method, device, equipment and medium of distributed storage system
CN111522703A (en) Method, apparatus and computer program product for monitoring access requests
CN111210225A (en) State monitoring method, device, equipment and storage medium of transaction system
CN111626498B (en) Equipment running state prediction method, device, equipment and storage medium
CN112665710A (en) Method and device for detecting running state of equipment, electronic equipment and storage medium
CN110781063A (en) Method, device and equipment for measuring first screen time of webpage and storage medium
CN111367765A (en) Method and device for monitoring interface response performance, server and storage medium
CN113590405A (en) Hard disk error detection method and device, storage medium and electronic device
CN112988534A (en) Abnormal data processing method, device, equipment and storage medium
CN111784176A (en) Data processing method, device, server and medium
CN116400249A (en) Detection method and device for energy storage battery
CN104598361A (en) Performance monitoring method and device
CN111614504A (en) Power grid regulation and control data center service characteristic fault positioning method and system based on time sequence and fault tree analysis
CN111176944A (en) Block chain intelligent contract calling record analysis method, device, terminal and storage medium
CN111324516A (en) Method and device for automatically recording abnormal event, storage medium and electronic equipment
CN111427878B (en) Data monitoring alarm method, device, server and storage medium
CN113837462A (en) Fault risk trend analysis method and device, server and storage medium
CN114372003A (en) Test environment monitoring method and device and electronic equipment
CN116860565A (en) Abnormality display detection method, abnormality display detection device, electronic device and storage medium
CN111741046B (en) Data reporting method, data acquisition method, device, equipment and medium
CN113946493A (en) Monitoring threshold determination and monitoring alarm method, device, equipment and medium
CN114860563A (en) Application program testing method and device, computer readable storage medium and equipment
CN111045849A (en) Method, device, server and storage medium for identifying reason of checking abnormality
CN114914008B (en) Control method and device for emergency response action of nuclear power plant, electronic equipment and medium

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