CN118041834A - Interface monitoring method, device, equipment and medium based on financial gateway - Google Patents

Interface monitoring method, device, equipment and medium based on financial gateway Download PDF

Info

Publication number
CN118041834A
CN118041834A CN202410363511.3A CN202410363511A CN118041834A CN 118041834 A CN118041834 A CN 118041834A CN 202410363511 A CN202410363511 A CN 202410363511A CN 118041834 A CN118041834 A CN 118041834A
Authority
CN
China
Prior art keywords
financial
target
interface
gateway
financial institution
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
CN202410363511.3A
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.)
Zhengcaiyun Co ltd
Original Assignee
Zhengcaiyun 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 Zhengcaiyun Co ltd filed Critical Zhengcaiyun Co ltd
Priority to CN202410363511.3A priority Critical patent/CN118041834A/en
Publication of CN118041834A publication Critical patent/CN118041834A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses an interface monitoring method, device, equipment and medium based on a financial gateway, relating to the field of interface monitoring, comprising the following steps: a financial gateway integrated in a financial platform distributes business interfaces in advance for each financial service in a financial institution connected with the financial gateway; the financial gateway monitors calling conditions of business interfaces respectively corresponding to financial services in a target financial institution based on a preset heartbeat period; the target financial institution is any one of a number of financial institutions connected with a financial gateway; determining whether to send a heartbeat packet to the target financial institution based on the call condition; if yes, response information corresponding to the heartbeat packet is obtained, and the health state of the interface distributed to the target financial institution is determined based on the response information. The application judges whether the business interfaces corresponding to the financial services in the financial institutions are called or not, and then determines whether to send the heartbeat packet to the financial institutions or not so as to dynamically adjust the sending of the heartbeat packet and ensure the stability of the financial gateway interfaces.

Description

Interface monitoring method, device, equipment and medium based on financial gateway
Technical Field
The present invention relates to the field of interface monitoring, and in particular, to a method, an apparatus, a device, and a medium for monitoring an interface based on a financial gateway.
Background
With the development of digitization and the internet, online handling of financial services has become an important approach. The financial gateway provides different business interfaces for connecting different financial services, financial institutions and financial platforms, and monitoring of the interfaces becomes a content which needs to be focused at present. Because the financial gateway needs to be in butt joint with different financial services, the network environment, financial traffic, encryption mode, interface request and other strategies of each interface are different, if abnormal interfaces which are not found in time exist, the service stability of the financial platform can be affected, and even direct economic loss can be caused. In the existing scheme, the scheme of monitoring the interface by sending heartbeat requests at fixed time is difficult to adapt to interface health monitoring under different financial traffic conditions; for example, in the case of a large volume of financial traffic, the heartbeat request consumes additional resources, thereby negatively impacting the transaction of the financial service.
Disclosure of Invention
Accordingly, the present invention is directed to a method, apparatus, device and medium for monitoring an interface based on a financial gateway, which can determine whether service interfaces corresponding to financial services in a financial institution are called, and then determine whether to send heartbeat packets to the financial institution, so as to dynamically adjust the sending of the heartbeat packets, and ensure the stability of the financial gateway interfaces. The specific scheme is as follows:
In a first aspect, the present application provides a financial gateway-based interface monitoring method, applied to a financial gateway, wherein the financial gateway is integrated in a financial platform and is connected with at least one financial institution, the financial institution comprises at least one financial service, and the financial gateway allocates a business interface for each financial service; wherein the method comprises the following steps:
Monitoring calling conditions of business interfaces respectively corresponding to the financial services in the target financial institutions based on a preset heartbeat period; the target financial institution is any one of the at least one financial institution;
Determining whether to send a heartbeat packet to the target financial institution based on the call condition;
and if the heartbeat packet is sent to the target financial institution, acquiring response information corresponding to the heartbeat packet, and determining the health state of the interface distributed to the target financial institution based on the response information.
Optionally, the monitoring, based on the preset heartbeat period, call conditions of service interfaces corresponding to the financial services in the target financial institution respectively includes:
Reading interface calling information in a preset historical time period adjacent to the current time from a preset cache based on the preset heartbeat period; the interface calling information is the calling information of business interfaces respectively corresponding to the financial services in the target financial institutions;
and monitoring the calling condition of business interfaces respectively corresponding to the financial services in the target financial institutions based on the interface calling information.
Optionally, the method further comprises:
When receiving a call request of the financial platform to a target financial service in the target financial institution, calling the target financial service through a target business interface corresponding to the target financial service, and recording call information of the target business interface into the preset cache.
Optionally, the determining whether to send the heartbeat packet to the target financial institution based on the call condition includes:
If the calling condition characterizes that at least one interface in business interfaces respectively corresponding to the financial services in the target financial institutions is called, sending heartbeat packets to the target financial institutions is forbidden;
And if the calling condition characterizes that the business interfaces respectively corresponding to the financial services in the target financial institution are not called, sending a heartbeat packet to the target financial institution.
Optionally, after determining whether to send the heartbeat packet to the target financial institution based on the call condition, the method further includes:
if the heartbeat packet is not sent to the target financial institution, monitoring whether service interfaces respectively corresponding to the financial services in the target financial institution are called normally or not;
If the call is abnormal, triggering a first alarm operation to send abnormal call information to the user terminal based on a preset alarm mode;
The preset alarm mode comprises any one or a combination of a plurality of mail alarm modes, short message alarm modes and instant messaging alarm modes.
Optionally, the determining, based on the response information, a health state of an interface allocated to the target financial institution includes:
And if the health state of the interface distributed to the target financial institution is determined to be an abnormal state based on the response information, triggering a second alarm operation to send interface abnormal information to the user terminal based on the preset alarm mode.
Optionally, the method further comprises:
And visually displaying the calling condition and/or the response information and/or the health state based on a dashboard component.
In a second aspect, the present application provides an interface monitoring device based on a financial gateway, applied to a financial gateway, wherein the financial gateway is integrated in a financial platform and is connected with at least one financial institution, the financial institution comprises at least one financial service, and the financial gateway distributes business interfaces for each financial service; wherein the device comprises:
The calling condition monitoring module is used for monitoring the calling condition of the business interfaces respectively corresponding to the financial services in the target financial institutions based on a preset heartbeat period; the target financial institution is any one of the at least one financial institution;
The determining module is used for determining whether to send a heartbeat packet to the target financial institution or not based on the calling condition;
And the health state determining module is used for acquiring response information corresponding to the heartbeat packet if the heartbeat packet is sent to the target financial institution, and determining the health state of the interface distributed to the target financial institution based on the response information.
In a third aspect, the present application provides an electronic device, comprising:
a memory for storing a computer program;
And the processor is used for executing the computer program to realize the interface monitoring method based on the financial gateway.
In a fourth aspect, the present application provides a computer readable storage medium storing a computer program which when executed by a processor implements the aforementioned financial gateway based interface monitoring method.
The interface monitoring method based on the financial gateway is applied to the financial gateway, wherein the financial gateway is integrated in a financial platform and is connected with at least one financial institution, each financial institution comprises at least one financial service, and the financial gateway distributes business interfaces for each financial service in advance. Specifically, the interface monitoring method based on the financial gateway comprises the following steps: the financial gateway monitors calling conditions of business interfaces respectively corresponding to the financial services in the target financial institutions based on a preset heartbeat period; the target financial institution is any one of the at least one financial institution; determining whether to send a heartbeat packet to the target financial institution based on the call condition; and if the heartbeat packet is sent to the target financial institution, acquiring response information corresponding to the heartbeat packet, and determining the health state of the interface distributed to the target financial institution based on the response information. Therefore, before the heartbeat packet is sent to the financial institution to determine the health status of the interface distributed by the financial gateway to the financial institution, the application judges whether the business interfaces corresponding to the financial services in the financial institution are called, and then determines whether to send the heartbeat packet to the financial institution based on the calling condition of the interfaces, so that the sending of the heartbeat packet is dynamically adjusted based on the calling condition of the business interfaces, and the calling condition of the interfaces indirectly reflects the condition of financial traffic, thereby not only dynamically adapting the sending of the heartbeat packet to the condition of different financial traffic, but also realizing the monitoring of the interfaces of the financial gateway, sensing the health status of the interfaces distributed by the financial institution by the financial gateway in advance, and guaranteeing the stability of the interfaces of the financial gateway.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of an interface monitoring method based on a financial gateway according to the present application;
FIG. 2 is a diagram of a system interaction architecture in accordance with the present disclosure;
FIG. 3 is a flow chart of interface monitoring based on a financial gateway according to the present disclosure;
FIG. 4 is a schematic diagram of an interface monitoring device based on a financial gateway according to the present disclosure;
Fig. 5 is a block diagram of an electronic device according to the present disclosure.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Because the financial gateway provides different business interfaces for interfacing different financial services, and the network environment, financial traffic and the like of each interface are different, if abnormal interfaces which are not found in time exist, the service stability of the financial platform can be affected, and even direct economic loss can be caused. Therefore, the application provides an interface monitoring method based on a financial gateway, which comprises the steps of judging whether business interfaces respectively corresponding to financial services in a financial institution are called or not, and determining whether heartbeat packets are sent to the financial institution or not so as to dynamically adjust the sending of the heartbeat packets and ensure the stability of the financial gateway interface.
Referring to fig. 1, an embodiment of the present invention discloses an interface monitoring method based on a financial gateway, which is applied to a financial gateway, wherein the financial gateway is integrated in a financial platform and is connected with at least one financial institution, the financial institution comprises at least one financial service, and the financial gateway distributes a business interface for each financial service; wherein the method comprises the following steps:
Step S11, monitoring calling conditions of business interfaces respectively corresponding to the financial services in the target financial institutions based on a preset heartbeat period; the target financial institution is any one of the at least one financial institution.
In this embodiment, as shown in fig. 2, the financial gateway is integrated in a financial platform, the financial platform is connected with at least one financial institution through the financial gateway, each financial institution includes at least one financial service, and the financial gateway distributes a business interface for each financial service in advance; that is, the financial platform realizes the invocation of the financial service provided by the financial institution through the business interface in the financial gateway. The financial platform refers to an online platform for providing various financial services, and can be understood as a financial aggregation platform for integrating the financial services provided by a plurality of financial institutions; guiding a user to select and use a required financial service through digital technology and internet connection; financial platforms typically cover a number of areas including, but not limited to, payments, investments, financing loans, insurance policy, settlement, and the like. The financial gateway is a key component in the financial platform, usually an intermediate layer or interface layer, and is responsible for connecting different financial services, financial institutions and financial platforms so that the financial gateway can cooperatively work, realize business interaction and data sharing; the financial gateway aims to simplify the complexity of a financial system and improve the interoperability, expandability and flexibility of the whole financial system; and the main characteristics of the financial gateway comprise interface integration, log and monitoring and the like. Financial institutions offer a variety of financial services to users.
In this embodiment, it is considered that if the interface allocated by the financial gateway to the financial institution is called, the health status of the interface allocated by the financial gateway to the financial institution can be determined based on the calling condition of the interface. The purpose of sending the heartbeat packet to the financial institution by the financial gateway is to determine the health state of the interface allocated by the financial gateway to the financial institution, so that when the interface allocated by the financial gateway to the financial institution is determined to be called, the heartbeat packet does not need to be sent to the financial institution, thereby saving the resource consumption of the financial institution. Specifically, the financial gateway acquires an initialized heartbeat rate V configured by a user in advance, and determines that a preset heartbeat period is 1/V based on the initialized heartbeat rate V. The financial gateway monitors calling conditions of business interfaces respectively corresponding to financial services in a target financial institution based on a preset heartbeat period of 1/V; wherein the target financial institution is any one of at least one financial institution connected to the financial gateway.
In this embodiment, the financial gateway periodically reads interface call information in a preset historical time period adjacent to the current time from a preset cache based on a preset heartbeat period 1/V; the interface calling information is the calling information of business interfaces respectively corresponding to the financial services in the target financial institutions; the preset history period may be set by the user according to the actual demand thereof, for example, set to two minutes. After the financial gateway obtains the interface calling information, the financial gateway can monitor the calling condition of the business interfaces respectively corresponding to the financial services in the target financial institution based on the interface calling information.
In this embodiment, for the call information of the business interface recorded in the preset buffer, specifically, when the financial gateway receives the call request of the financial platform for the target financial service in the target financial institution, the target financial service is called through the target business interface allocated in advance for the target financial service, and the call information of the target business interface is recorded in the preset buffer.
And step S12, determining whether to send a heartbeat packet to the target financial institution based on the calling condition.
In this embodiment, the financial gateway determines whether to send a heartbeat packet to the target financial institution based on the call condition; if the calling condition characterizes that at least one interface in business interfaces respectively corresponding to all financial services in the target financial institution is called, sending a heartbeat packet to the target financial institution is forbidden; and if the calling condition indicates that the business interfaces respectively corresponding to the financial services in the target financial institutions are not called, sending a heartbeat packet to the target financial institutions.
Further, if the financial gateway determines that sending of the heartbeat packet to the target financial institution is prohibited, at least one interface of the business interfaces allocated for each financial service in the target financial institution is called, so that the health state of the interface allocated for the target financial institution can be further determined by monitoring whether the business interfaces allocated for each financial service in the target financial institution are normally called. Whether the service interface is invoked normally can be judged by judging the invoking information of the service interface recorded in a preset cache. And if the business interface allocated to each financial service in the target financial institution is normally called, indicating that the health state of the interface allocated by the financial gateway to the target financial institution is normal. If the service interface allocated to each financial service in the target financial institution calls abnormality, triggering a first alarm operation to send abnormality call information to the user terminal based on a preset alarm mode, so that the user can find the abnormality interface early and process the abnormality interface. The preset alarm mode comprises any one or a combination of a plurality of mail alarm modes, short message alarm modes and instant messaging alarm modes.
And step S13, if the heartbeat packet is sent to the target financial institution, response information corresponding to the heartbeat packet is acquired, and the health state of the interface distributed to the target financial institution is determined based on the response information.
In this embodiment, if the calling condition indicates that none of the service interfaces corresponding to the financial services in the target financial institution is called, the financial gateway sends a heartbeat packet to the target financial institution, obtains response information corresponding to the heartbeat packet, and then determines the health status of the interface allocated to the target financial institution based on the response information. The response information comprises whether a target financial institution responds or not, response time, data throughput, network fluency and the like; the health status of the interface includes normal status and abnormal status, and the health status of the interface also needs to consider the running status of the interface, the performance of the interface, the error rate of the interface, the availability check, the version and dependency, the security check, etc.
In this embodiment, if the financial gateway determines that the health status of the interface allocated to the target financial institution is abnormal based on the response information, the second alarm operation is triggered to send the interface abnormality information to the user terminal based on the preset alarm mode, so that the user can timely learn about the abnormal interface and can respond quickly. The preset alarm mode comprises any one or a combination of a plurality of mail alarm modes, short message alarm modes and instant messaging alarm modes. Furthermore, the financial gateway can also perform visual display based on the calling condition of the interface and/or the response information of the heartbeat package and/or the health state of the interface and/or the alarm information of the interface by the instrument panel component, so that the user can intuitively feel the whole health condition of the financial gateway.
Therefore, before the heartbeat packet is sent to the financial institution to determine the health status of the interface distributed by the financial gateway to the financial institution, the application judges whether the business interfaces corresponding to the financial services in the financial institution are called, and then determines whether to send the heartbeat packet to the financial institution based on the calling condition of the interfaces, so that the sending of the heartbeat packet is dynamically adjusted based on the calling condition of the business interfaces, and the calling condition of the interfaces indirectly reflects the condition of financial traffic, thereby not only dynamically adapting the sending of the heartbeat packet to the condition of different financial traffic, but also realizing the monitoring of the interfaces of the financial gateway, sensing the health status of the interfaces distributed by the financial institution by the financial gateway in advance, and guaranteeing the stability of the interfaces of the financial gateway.
Referring to fig. 3, an embodiment of the present invention discloses an interface monitoring method based on a financial gateway, which is applied to a financial gateway, wherein the financial gateway is integrated in a financial platform and is connected with at least one financial institution, the financial institution comprises at least one financial service, and the financial gateway distributes a business interface for each financial service; wherein the method comprises the following steps:
The financial gateway obtains an initialized heartbeat rate V configured by a user in advance, and determines a preset heartbeat period to be 1/V based on the initialized heartbeat rate V. The financial gateway executes an interface monitoring task based on a preset heartbeat period 1/V, namely monitors calling conditions of business interfaces respectively corresponding to financial services in a target financial institution based on the preset heartbeat period 1/V; wherein the target financial institution is any one of at least one financial institution connected to the financial gateway.
The financial gateway judges whether business interfaces respectively corresponding to the financial services in the target financial institutions are called or not based on the calling condition. If the calling condition characterizes that at least one interface in business interfaces corresponding to the financial services in the target financial institutions is called, sending of heartbeat packages to the target financial institutions is forbidden, and whether the business interfaces corresponding to the financial services in the target financial institutions are called normally is further monitored. If the call is normal, the health state of the interface distributed by the financial gateway for the target financial institution is characterized as a normal state, and the interface monitoring task of the current period is ended; if the call is abnormal, the health state of the interface distributed by the financial gateway for the target financial institution is characterized as an abnormal state, and the alarm system is informed to trigger the first alarm operation, so that abnormal call information is sent to the user terminal based on a preset alarm mode.
If the financial gateway determines that the business interfaces respectively corresponding to the financial services in the target financial institutions are not called based on the calling condition, executing a heartbeat task to send a heartbeat packet to the target financial institutions through the financial gateway, acquiring response information corresponding to the heartbeat packet, and then determining whether the heartbeat is normal or not based on the response information, namely determining the health state of the interfaces distributed by the financial gateway to the target financial institutions based on the response information. If the health state of the interface distributed by the financial gateway for the target financial institution is a normal state, ending the interface monitoring task in the current period; if the health state of the interface distributed by the financial gateway for the target financial institution is abnormal, the alarm system is informed to trigger the second alarm operation, so that interface abnormal information is sent to the user terminal based on a preset alarm mode, and the user can timely know the abnormal interface and quickly respond.
Therefore, before the heartbeat packet is sent to the financial institution to determine the health status of the interface distributed by the financial gateway to the financial institution, the application judges whether the business interfaces corresponding to the financial services in the financial institution are called, and then determines whether to send the heartbeat packet to the financial institution based on the calling condition of the interfaces, so that the sending of the heartbeat packet is dynamically adjusted based on the calling condition of the business interfaces, and the calling condition of the interfaces indirectly reflects the condition of financial traffic, thereby not only dynamically adapting the sending of the heartbeat packet to the condition of different financial traffic, but also realizing the monitoring of the interfaces of the financial gateway, sensing the health status of the interfaces distributed by the financial institution by the financial gateway in advance, and guaranteeing the stability of the interfaces of the financial gateway.
Referring to fig. 4, an embodiment of the present invention discloses an interface monitoring device based on a financial gateway, which is applied to a financial gateway, wherein the financial gateway is integrated in a financial platform and is connected with at least one financial institution, the financial institution comprises at least one financial service, and the financial gateway distributes a business interface for each financial service; wherein the device comprises:
A call condition monitoring module 11, configured to monitor call conditions of service interfaces corresponding to the financial services in the target financial institution respectively based on a preset heartbeat period; the target financial institution is any one of the at least one financial institution;
a determining module 12, configured to determine whether to send a heartbeat packet to the target financial institution based on the call condition;
The health status determining module 13 is configured to obtain response information corresponding to a heartbeat packet if the heartbeat packet is sent to the target financial institution, and determine a health status of an interface allocated to the target financial institution based on the response information.
Therefore, before the heartbeat packet is sent to the financial institution to determine the health status of the interface distributed by the financial gateway to the financial institution, the application judges whether the business interfaces corresponding to the financial services in the financial institution are called, and then determines whether to send the heartbeat packet to the financial institution based on the calling condition of the interfaces, so that the sending of the heartbeat packet is dynamically adjusted based on the calling condition of the business interfaces, and the calling condition of the interfaces indirectly reflects the condition of financial traffic, thereby not only dynamically adapting the sending of the heartbeat packet to the condition of different financial traffic, but also realizing the monitoring of the interfaces of the financial gateway, sensing the health status of the interfaces distributed by the financial institution by the financial gateway in advance, and guaranteeing the stability of the interfaces of the financial gateway.
In some embodiments, the call condition monitoring module 11 includes:
The call information reading unit is used for reading interface call information in a preset historical time period adjacent to the current time from a preset cache based on the preset heartbeat period; the interface calling information is the calling information of business interfaces respectively corresponding to the financial services in the target financial institutions;
and the calling condition monitoring unit is used for monitoring the calling condition of the business interfaces respectively corresponding to the financial services in the target financial institutions based on the interface calling information.
In some embodiments, the interface monitoring device based on a financial gateway further comprises:
And the calling information recording unit is used for calling the target financial service through a target business interface corresponding to the target financial service when receiving a calling request of the financial platform for the target financial service in the target financial institution, and recording calling information of the target business interface into the preset cache.
In some embodiments, the determining module 12 includes:
A prohibition sending unit, configured to prohibit sending of a heartbeat packet to the target financial institution if the calling condition characterizes that at least one interface of service interfaces corresponding to the financial services in the target financial institution is called;
and the heartbeat packet sending unit is used for sending a heartbeat packet to the target financial institution if the calling condition characterizes that the business interfaces respectively corresponding to the financial services in the target financial institution are not called.
In some embodiments, the interface monitoring device based on a financial gateway further comprises:
The interface calling monitoring unit is used for monitoring whether business interfaces respectively corresponding to the financial services in the target financial institutions are normally called if heartbeat packets are not sent to the target financial institutions;
The first alarm unit is used for triggering a first alarm operation if the call is abnormal, so as to send abnormal call information to the user terminal based on a preset alarm mode;
The preset alarm mode comprises any one or a combination of a plurality of mail alarm modes, short message alarm modes and instant messaging alarm modes.
In some embodiments, the health status determination module 13 includes:
And the second alarm unit is used for triggering a second alarm operation if the health state of the interface distributed to the target financial institution is determined to be an abnormal state based on the response information, so as to send interface abnormal information to the user terminal based on the preset alarm mode.
In some embodiments, the interface monitoring device based on a financial gateway further comprises:
And the visual display unit is used for visually displaying the calling condition and/or the response information and/or the health state based on the instrument panel component.
Further, the embodiment of the present application further discloses an electronic device, and fig. 5 is a block diagram of an electronic device 20 according to an exemplary embodiment, where the content of the figure is not to be considered as any limitation on the scope of use of the present application.
Fig. 5 is a schematic structural diagram of an electronic device 20 according to an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. Wherein the memory 22 is configured to store a computer program that is loaded and executed by the processor 21 to implement relevant steps in the financial gateway-based interface monitoring method disclosed in any of the foregoing embodiments. In addition, the electronic device 20 in the present embodiment may be specifically an electronic computer.
In this embodiment, the power supply 23 is configured to provide an operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and the communication protocol to be followed is any communication protocol applicable to the technical solution of the present application, which is not specifically limited herein; the input/output interface 25 is used for acquiring external input data or outputting external output data, and the specific interface type thereof may be selected according to the specific application requirement, which is not limited herein.
The memory 22 may be a carrier for storing resources, such as a read-only memory, a random access memory, a magnetic disk, or an optical disk, and the resources stored thereon may include an operating system 221, a computer program 222, and the like, and the storage may be temporary storage or permanent storage.
The operating system 221 is used for managing and controlling various hardware devices on the electronic device 20 and the computer program 222, which may be Windows Server, netware, unix, linux, etc. The computer program 222 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the financial gateway-based interface monitoring method performed by the electronic device 20 as disclosed in any of the previous embodiments.
Further, the application also discloses a computer readable storage medium for storing a computer program; wherein the computer program when executed by the processor implements the aforementioned disclosed financial gateway-based interface monitoring method. For specific steps of the method, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and no further description is given here.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing has outlined rather broadly the more detailed description of the application in order that the detailed description of the application that follows may be better understood, and in order that the present principles and embodiments may be better understood; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (10)

1. An interface monitoring method based on a financial gateway is characterized by being applied to the financial gateway, wherein the financial gateway is integrated in a financial platform and is connected with at least one financial institution, the financial institution comprises at least one financial service, and the financial gateway distributes business interfaces for each financial service; wherein the method comprises the following steps:
Monitoring calling conditions of business interfaces respectively corresponding to the financial services in the target financial institutions based on a preset heartbeat period; the target financial institution is any one of the at least one financial institution;
Determining whether to send a heartbeat packet to the target financial institution based on the call condition;
and if the heartbeat packet is sent to the target financial institution, acquiring response information corresponding to the heartbeat packet, and determining the health state of the interface distributed to the target financial institution based on the response information.
2. The interface monitoring method based on a financial gateway according to claim 1, wherein the monitoring the call condition of the business interface corresponding to each financial service in the target financial institution based on the preset heartbeat period includes:
Reading interface calling information in a preset historical time period adjacent to the current time from a preset cache based on the preset heartbeat period; the interface calling information is the calling information of business interfaces respectively corresponding to the financial services in the target financial institutions;
and monitoring the calling condition of business interfaces respectively corresponding to the financial services in the target financial institutions based on the interface calling information.
3. The financial gateway-based interface monitoring method of claim 2, further comprising:
When receiving a call request of the financial platform to a target financial service in the target financial institution, calling the target financial service through a target business interface corresponding to the target financial service, and recording call information of the target business interface into the preset cache.
4. The method of claim 1, wherein the determining whether to send a heartbeat packet to the target financial institution based on the call condition comprises:
If the calling condition characterizes that at least one interface in business interfaces respectively corresponding to the financial services in the target financial institutions is called, sending heartbeat packets to the target financial institutions is forbidden;
And if the calling condition characterizes that the business interfaces respectively corresponding to the financial services in the target financial institution are not called, sending a heartbeat packet to the target financial institution.
5. The method of claim 1, wherein after determining whether to send a heartbeat packet to the target financial institution based on the call condition, further comprising:
if the heartbeat packet is not sent to the target financial institution, monitoring whether service interfaces respectively corresponding to the financial services in the target financial institution are called normally or not;
If the call is abnormal, triggering a first alarm operation to send abnormal call information to the user terminal based on a preset alarm mode;
The preset alarm mode comprises any one or a combination of a plurality of mail alarm modes, short message alarm modes and instant messaging alarm modes.
6. The method of claim 5, wherein determining a health status of an interface allocated to the target financial institution based on the response information, comprises:
And if the health state of the interface distributed to the target financial institution is determined to be an abnormal state based on the response information, triggering a second alarm operation to send interface abnormal information to the user terminal based on the preset alarm mode.
7. The financial gateway-based interface monitoring method of any one of claims 1 to 6, further comprising:
And visually displaying the calling condition and/or the response information and/or the health state based on a dashboard component.
8. An interface monitoring device based on a financial gateway, which is characterized by being applied to the financial gateway, wherein the financial gateway is integrated in a financial platform and is connected with at least one financial institution, the financial institution comprises at least one financial service, and the financial gateway distributes business interfaces for each financial service; wherein the device comprises:
The calling condition monitoring module is used for monitoring the calling condition of the business interfaces respectively corresponding to the financial services in the target financial institutions based on a preset heartbeat period; the target financial institution is any one of the at least one financial institution;
The determining module is used for determining whether to send a heartbeat packet to the target financial institution or not based on the calling condition;
And the health state determining module is used for acquiring response information corresponding to the heartbeat packet if the heartbeat packet is sent to the target financial institution, and determining the health state of the interface distributed to the target financial institution based on the response information.
9. An electronic device, comprising:
a memory for storing a computer program;
A processor for executing the computer program to implement the financial gateway-based interface monitoring method of any one of claims 1 to 7.
10. A computer readable storage medium storing a computer program which when executed by a processor implements the financial gateway based interface monitoring method of any one of claims 1 to 7.
CN202410363511.3A 2024-03-28 2024-03-28 Interface monitoring method, device, equipment and medium based on financial gateway Pending CN118041834A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410363511.3A CN118041834A (en) 2024-03-28 2024-03-28 Interface monitoring method, device, equipment and medium based on financial gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410363511.3A CN118041834A (en) 2024-03-28 2024-03-28 Interface monitoring method, device, equipment and medium based on financial gateway

Publications (1)

Publication Number Publication Date
CN118041834A true CN118041834A (en) 2024-05-14

Family

ID=90984215

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410363511.3A Pending CN118041834A (en) 2024-03-28 2024-03-28 Interface monitoring method, device, equipment and medium based on financial gateway

Country Status (1)

Country Link
CN (1) CN118041834A (en)

Similar Documents

Publication Publication Date Title
US10216375B2 (en) Closing a child application window of a parent window
CN108173938B (en) Server load distribution method and device
US8255532B2 (en) Metric-based monitoring and control of a limited resource
US8484703B2 (en) Systems and methods for delegation and notification of administration of internet access
US6996500B2 (en) Method for communicating diagnostic data
US8396975B2 (en) Managing requests for connection to a server
US7185237B2 (en) Systems and methods for providing for degradation of a computer application
JP4876170B2 (en) System and method for tracking security enforcement in a grid system
US20020161903A1 (en) System for secure access to information provided by a web application
US20050177635A1 (en) System and method for allocating server resources
EP1934897A1 (en) Improvements in and relating to service oriented architecture
US20060156072A1 (en) System and method for monitoring a computer apparatus
CN103891202A (en) System and method for cloud-based implementation of control of focused overload of service element (cofo-se) via explicit (or virtualized) machine-to-machine (m2m) gateway element
CN105930249B (en) Using monitoring method and device
CN109617750A (en) A kind of service method for early warning and gateway
JP2018129027A (en) System and method for executing anti-virus scan of web page
EP1455500A1 (en) Methods and devices relating to distributed computing environments
GB2443459A (en) Data packet incuding computing platform indication
CN118041834A (en) Interface monitoring method, device, equipment and medium based on financial gateway
Peng et al. A study of design and implementation on soa governance: A service oriented monitoring and alarming perspective
KR100432236B1 (en) Objected oriented information security system providing integrated control and management functions
CN104283727B (en) The method and system that network service quality is monitored
CN116471104A (en) Login data processing method, device, equipment and medium
CN112492036A (en) Information processing method and device, electronic equipment and storage medium
WO2023278951A9 (en) Event-level granular control in an event bus using event-level policies

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