CN112069027A - Interface data processing method and device, electronic equipment and storage medium - Google Patents
Interface data processing method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN112069027A CN112069027A CN202010905091.9A CN202010905091A CN112069027A CN 112069027 A CN112069027 A CN 112069027A CN 202010905091 A CN202010905091 A CN 202010905091A CN 112069027 A CN112069027 A CN 112069027A
- Authority
- CN
- China
- Prior art keywords
- interface
- processing
- interface data
- abnormal
- state
- 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.)
- Withdrawn
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3041—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is an input/output interface
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3055—Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4063—Device-to-bus coupling
- G06F13/4068—Electrical coupling
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Computing Systems (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Mathematical Physics (AREA)
- Computer Hardware Design (AREA)
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the invention discloses an interface data processing method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring interface data and interface states of at least one interface; if the interface state is abnormal, processing the interface and recording interface data during the abnormal period; the interface data during the abnormal period is the interface data transmitted when the interface state is abnormal; and processing the interface data during the abnormal period according to an interface processing result. By operating the technical scheme provided by the embodiment of the invention, the problem of higher development difficulty due to the fact that the heartbeat mechanism is established between the local system and the third-party organization system to supervise data interaction can be solved, the development difficulty of interface data processing is reduced, and the effect of improving the interface data processing efficiency is achieved.
Description
Technical Field
The present invention relates to computer technologies, and in particular, to an interface data processing method and apparatus, an electronic device, and a storage medium.
Background
According to the needs of business development, a local system may need to perform data interaction with a third-party organization such as a government department and a bank, and once the system of the third-party organization is abnormal, an avalanche effect is likely to be caused, so that the operation condition of a third-party interface needs to be monitored to handle the abnormal problem.
In the prior art, a heartbeat mechanism is often established between a local system and a third-party mechanism system, that is, a client sends fixed information to a server at fixed time intervals, and if the server does not receive the fixed information within the fixed time, the server judges that the client is down. However, the establishment of the heartbeat mechanism requires the coordinated development of all the established parties, and the development difficulty is high.
Disclosure of Invention
The embodiment of the invention provides an interface data processing method and device, electronic equipment and a storage medium, and aims to achieve the effects of reducing the development difficulty of interface data processing and improving the interface data processing efficiency.
In a first aspect, an embodiment of the present invention provides an interface data processing method, including:
acquiring interface data and interface states of at least one interface;
if the interface state is abnormal, processing the interface and recording interface data during the abnormal period; the interface data during the abnormal period is the interface data transmitted when the interface state is abnormal;
and processing the interface data during the abnormal period according to an interface processing result.
In a second aspect, an embodiment of the present invention further provides an interface data processing apparatus, where the apparatus includes:
the data and state acquisition module is used for acquiring interface data and interface states of at least one interface;
the interface processing module is used for processing the interface and recording interface data during the abnormal period if the interface state is abnormal; the interface data during the abnormal period is the interface data transmitted when the interface state is abnormal;
and the interface data processing module is used for processing the interface data during the abnormal period according to an interface processing result.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
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 are caused to implement the interface data processing method as described above.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the interface data processing method as described above.
The embodiment of the invention obtains the interface data and the interface state of at least one interface; if the interface state is abnormal, processing the interface and recording interface data during the abnormal period; the interface data during the abnormal period is the interface data transmitted when the interface state is abnormal; according to the interface processing result, the interface data during the abnormal period is processed, the problem that the development difficulty is high due to the fact that a heartbeat mechanism is established between a local system and a third-party mechanism system to supervise data interaction is solved, the development difficulty of interface data processing is reduced, and the interface data processing efficiency is improved.
Drawings
Fig. 1 is a flowchart of an interface data processing method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an interface data processing apparatus according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to a third 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.
Example one
Fig. 1 is a flowchart of an interface data processing method according to an embodiment of the present invention, where the method is applicable to a situation of processing data interaction between a local system and a third party organization, and the method may be executed by an interface data processing apparatus according to an embodiment of the present invention, where the apparatus may be implemented by software and/or hardware. Referring to fig. 1, the interface data processing method provided in this embodiment includes:
The interface data is data transmitted between the local system and the third-party mechanism through an interface, and the data processing conditions such as the running state, the processing times, the time and the like of the interface data are obtained by monitoring the interface data; the third-party organization is a third-party supervision organization such as a bank and a government department.
The interface state is an embodiment of whether the interface normally works at present, and may be embodied as normal, abnormal, stable, and the like, which is not limited in this embodiment. The interface state may include specific descriptions of a data processing failure reason, a failed data address, the number of times data is processed on the same day, the number of times data processing failure, and the like. The current state of each interface can be displayed in the display interface of the interface operation condition. The interface state can be monitored and automatically tested through a timing task framework Quartz and an http valid toolkit, which is not limited in this embodiment.
It should be noted that the same local system can perform data interaction with multiple third-party organizations at the same time, so that interface data and interface states of one or more interfaces can be obtained at the same time.
The interface state is abnormal, that is, the interface data cannot be normally transmitted, the reason for the abnormality may be a system downtime of a third-party organization, and the interface itself may also be abnormal, which is not limited in this embodiment. When the interface state is abnormal, the interface is processed, and the processing mode may be system automatic repair or manual repair, which is not limited in this embodiment. The data is still transmitted through the interface when the interface is in an abnormal state, but the data cannot be successfully transmitted according to the plan because the interface is in an abnormal state, and the data is the interface data in the abnormal state. Illustratively, the data a is transmitted from the local system to the third party organization through the interface 1, and the data a cannot be normally transmitted due to the abnormality of the interface 1, and is interface data during the abnormality. The interface data during the exception may be recorded to a designated location for subsequent processing of the portion of data.
In this embodiment, optionally, the process of determining that the interface state is abnormal includes:
acquiring the transmission state duration of the interface data;
and if the transmission state duration is greater than a preset time threshold, judging that the interface state is abnormal.
The duration of the transmission state is a duration of maintaining the same transmission state, for example, data transmission goes through four states ABCD, each state lasts for a corresponding time, and then the duration of the B state is the duration of the transmission state of the B state of the interface data.
And if the transmission state duration is greater than the preset time threshold, namely when the transmission state duration exceeds the preset time, determining that the current interface is in an abnormal state. For example, the state B needs to be changed to the state C within 3 days, and when the duration of the state B exceeds 3 days, the current interface is considered to be in an abnormal state. The abnormal state of the interface is automatically judged so as to facilitate the subsequent timely processing of the interface, thereby improving the efficiency of interface data transmission.
In this embodiment, optionally, if the interface state is abnormal, processing the interface includes:
and if the interface state is abnormal, generating notification information to notify personnel to process the interface.
And when the interface state is abnormal, the system generates notification information and pushes the notification information to a manager in the modes of short messages, mails, enterprise WeChats and the like. The notification information may only include the interface status exception prompt, or may include specific details of the exception status, which is not limited in this embodiment. Through in time informing personnel to make personnel carry out analysis and trace back to the problem, so that in time handle interface problem, improve interface data processing efficiency and interface data transmission efficiency.
And step 130, processing the interface data during the abnormal period according to the interface processing result.
And the interface processing result is the result of processing the interface in the abnormal state. And processing the recorded interface data in the abnormal period according to the interface processing result.
In this embodiment, optionally, processing the interface data during the exception period according to the interface processing result includes:
and if the interface processing result indicates that the interface state is changed from abnormal to normal, transmitting and processing the interface data during the abnormal period.
And when the interface processing result is that the interface state is changed from abnormal to normal, namely the problem of interface abnormality is solved, transmitting and processing the interface data during the abnormal period. The transmission processing is to perform processing again according to the state of the interface data before the interface exception during the exception, for example, before the interface exception, the data is transmitted from the local system to the third party organization, and when the interface processing result is that the interface state is changed from the exception to the normal, the interface data during the exception is transmitted again. The dynamic interaction between the interface and the interface data during the abnormal period is realized by monitoring the interface state in real time, and the automatic processing degree of the interface data is improved.
This embodiment does not limit this, and optionally, the processing of transmitting the interface data during the exception period includes:
and according to a preset interface data processing rule during the abnormal period, carrying out transmission processing on the interface data during the abnormal period.
The preset interface data processing rule during the abnormal period is a preset rule used for enabling the system to automatically process the interface data during the abnormal period. For example, if the interface data during the abnormal period is transmitted from the local system to the third-party organization before the interface is abnormal, when the interface state changes from abnormal to normal, the system retransmits the interface data during the abnormal period according to the preset interface data processing rule during the abnormal period.
In this embodiment, optionally, after the interface data during the exception period is transmitted and processed according to a preset interface data processing rule during the exception period, the method further includes:
and if the processing fails, generating notification information to notify personnel to process the interface data in the abnormal period.
And when the system transmits and processes the interface data in the abnormal period according to a preset interface data processing rule in the abnormal period, and the processing fails, generating notification information to notify personnel to process the interface data in the abnormal period. The data processing condition can be displayed in a display interface of the interface data operation condition, and the display mode can be that the interface data during the abnormal period, the interface data during the abnormal period in the processing, the interface data during the abnormal period needing to be processed manually, and the interface data during the abnormal period which is successfully processed by the system automatically. The processing condition of the interface data is displayed intuitively, so that personnel can conveniently obtain the processing condition of the interface data in an abnormal period in time, and the processing efficiency and the transmission efficiency of the interface data are improved.
Optionally, the notification information may be pushed to the manager by means of short message, email, enterprise WeChat, and the like. The notification information may only include the interface data prompt during the abnormal period, or may include specific details of the interface data during the abnormal period, which is not limited in this embodiment. Through notifying personnel in time, the personnel analyze and trace problems so as to process interface data in an abnormal period in time and improve the interface data processing efficiency and the interface data transmission efficiency.
According to the technical scheme provided by the embodiment, interface data and interface states of at least one interface are acquired; if the interface state is abnormal, processing the interface and recording interface data during the abnormal period; the interface data during the abnormal period is the interface data transmitted when the interface state is abnormal; according to the interface processing result, the interface data during the abnormal period is processed, the problem that the development difficulty is high due to the fact that a heartbeat mechanism is established between a local system and a third-party mechanism system to supervise data interaction is solved, the development difficulty of interface data processing is reduced, and the interface data processing efficiency is improved.
Example two
Fig. 2 is a schematic structural diagram of an interface data processing apparatus according to a second embodiment of the present invention. The device can be realized by hardware and/or software, can execute the interface data processing method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. As shown in fig. 2, the apparatus includes:
a data and status acquiring module 210, configured to acquire interface data and an interface status of at least one interface;
the interface processing module 220 is configured to process an interface and record interface data during an exception period if the interface state is an exception; the interface data during the abnormal period is the interface data transmitted when the interface state is abnormal;
and the interface data processing module 230 is configured to process the interface data during the exception period according to an interface processing result.
According to the technical scheme provided by the embodiment, interface data and interface states of at least one interface are acquired; if the interface state is abnormal, processing the interface and recording interface data during the abnormal period; the interface data during the abnormal period is the interface data transmitted when the interface state is abnormal; according to the interface processing result, the interface data during the abnormal period is processed, the problem that the development difficulty is high due to the fact that a heartbeat mechanism is established between a local system and a third-party mechanism system to supervise data interaction is solved, the development difficulty of interface data processing is reduced, and the interface data processing efficiency is improved.
On the basis of the above technical solutions, optionally, the interface data processing module includes:
and the interface data processing unit is used for transmitting and processing the interface data during the abnormal period if the interface processing result indicates that the interface state is changed from abnormal to normal.
On the basis of the above technical solutions, optionally, the interface data processing unit includes:
and the first data processing subunit is used for carrying out transmission processing on the interface data in the abnormal period according to a preset interface data processing rule in the abnormal period.
On the basis of the above technical solutions, optionally, the apparatus further includes:
and the second data processing subunit is used for generating notification information to notify personnel to process the interface data in the abnormal period if the processing fails after the first data processing subunit.
On the basis of the above technical solutions, optionally, the interface processing module includes:
and the interface processing unit is used for generating notification information to notify personnel to process the interface if the interface state is abnormal.
On the basis of the above technical solutions, optionally, the interface state determining module includes:
a status duration acquiring unit, configured to acquire a transmission status duration of the interface data;
and the interface state judging unit is used for judging that the interface state is abnormal if the transmission state duration is greater than a preset time threshold.
EXAMPLE III
Fig. 3 is a schematic structural diagram of an electronic device according to a third embodiment of the present invention, as shown in fig. 3, the electronic device includes a processor 30, a memory 31, an input device 32, and an output device 33; the number of the processors 30 in the electronic device may be one or more, and one processor 30 is taken as an example in fig. 3; the processor 30, the memory 31, the input device 32 and the output device 33 in the electronic apparatus may be connected by a bus or other means, and the bus connection is exemplified in fig. 3.
The memory 31 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the interface data processing method in the embodiment of the present invention. The processor 30 executes various functional applications and data processing of the electronic device by executing software programs, instructions and modules stored in the memory 31, that is, implements the interface data processing method described above.
The memory 31 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 31 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 31 may further include memory located remotely from the processor 30, which may be connected to the electronic device through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Example four
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform an interface data processing method, including:
acquiring interface data and interface states of at least one interface;
if the interface state is abnormal, processing the interface and recording interface data during the abnormal period; the interface data during the abnormal period is the interface data transmitted when the interface state is abnormal;
and processing the interface data during the abnormal period according to an interface processing result.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the operations of the method described above, and may also perform related operations in the interface data processing method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the interface data processing apparatus, each unit and each module included in the embodiment are only divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
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. An interface data processing method, comprising:
acquiring interface data and interface states of at least one interface;
if the interface state is abnormal, processing the interface and recording interface data during the abnormal period; the interface data during the abnormal period is the interface data transmitted when the interface state is abnormal;
and processing the interface data during the abnormal period according to an interface processing result.
2. The method of claim 1, wherein processing the interface data during the exception according to the interface processing result comprises:
and if the interface processing result indicates that the interface state is changed from abnormal to normal, transmitting and processing the interface data during the abnormal period.
3. The method according to claim 2, wherein the performing transmission processing on the interface data during the exception includes:
and according to a preset interface data processing rule during the abnormal period, carrying out transmission processing on the interface data during the abnormal period.
4. The method according to claim 3, further comprising, after performing transmission processing on the interface data during the exception according to a preset interface data during the exception processing rule, the method further comprising:
and if the processing fails, generating notification information to notify personnel to process the interface data in the abnormal period.
5. The method of claim 1, wherein processing the interface if the interface status is abnormal comprises:
and if the interface state is abnormal, generating notification information to notify personnel to process the interface.
6. The method of claim 1, wherein determining that the interface status is abnormal comprises:
acquiring the transmission state duration of the interface data;
and if the transmission state duration is greater than a preset time threshold, judging that the interface state is abnormal.
7. An interface data processing apparatus, comprising:
the data and state acquisition module is used for acquiring interface data and interface states of at least one interface;
the interface processing module is used for processing the interface and recording interface data during the abnormal period if the interface state is abnormal; the interface data during the abnormal period is the interface data transmitted when the interface state is abnormal;
and the interface data processing module is used for processing the interface data during the abnormal period according to an interface processing result.
8. The apparatus of claim 7, wherein the interface data processing module comprises:
and the interface data processing unit is used for transmitting and processing the interface data during the abnormal period if the interface processing result indicates that the interface state is changed from abnormal to normal.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the interface data processing method of any one of claims 1-6.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the interface data processing method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010905091.9A CN112069027A (en) | 2020-09-01 | 2020-09-01 | Interface data processing method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010905091.9A CN112069027A (en) | 2020-09-01 | 2020-09-01 | Interface data processing method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112069027A true CN112069027A (en) | 2020-12-11 |
Family
ID=73665750
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010905091.9A Withdrawn CN112069027A (en) | 2020-09-01 | 2020-09-01 | Interface data processing method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112069027A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112783733A (en) * | 2021-01-29 | 2021-05-11 | 好活(昆山)网络科技有限公司 | Interface fusing control method, device, medium and electronic equipment |
-
2020
- 2020-09-01 CN CN202010905091.9A patent/CN112069027A/en not_active Withdrawn
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112783733A (en) * | 2021-01-29 | 2021-05-11 | 好活(昆山)网络科技有限公司 | Interface fusing control method, device, medium and electronic equipment |
CN112783733B (en) * | 2021-01-29 | 2022-07-22 | 好活(昆山)网络科技有限公司 | Interface fusing control method, device, medium and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109522287B (en) | Monitoring method, system, equipment and medium for distributed file storage cluster | |
CN110224858B (en) | Log-based alarm method and related device | |
US9219639B2 (en) | Automated alert management | |
CN108089915B (en) | Method and system for business control processing based on message queue | |
WO2019095580A1 (en) | Test method and apparatus, computer device, and readable storage medium | |
CN110727560A (en) | Cloud service alarm method and device | |
CN107729213B (en) | Background task monitoring method and device | |
US10891193B2 (en) | Application health monitoring and automatic remediation | |
CN111554219A (en) | Display equipment testing method and device, electronic product and storage medium | |
CN113608964A (en) | Cluster automation monitoring method and device, electronic equipment and storage medium | |
WO2021174684A1 (en) | Cutover information processing method, system and apparatus | |
CN114996085A (en) | Prometheus-based real-time service monitoring method and system | |
CN112069027A (en) | Interface data processing method and device, electronic equipment and storage medium | |
CN111756778A (en) | Server disk cleaning script pushing method and device and storage medium | |
US8341650B1 (en) | High thread count analyzer for web application server environment | |
CN115729727A (en) | Fault repairing method, device, equipment and medium | |
EP1622310A2 (en) | Administration system for network management systems | |
CN111190761B (en) | Log output method and device, storage medium and electronic equipment | |
CN110633165B (en) | Fault processing method, device, system server and computer readable storage medium | |
CN111147542A (en) | Secret-free access setting method, device, equipment and medium | |
CN116230067A (en) | Automatic testing method, system, equipment and medium for solid state disk | |
CN108390770B (en) | Information generation method and device and server | |
CN104104555B (en) | Monitoring method, system, control terminal and actuating station | |
CN113886122B (en) | System operation exception handling method, device, equipment and storage medium | |
CN112181787B (en) | Alarm processing method and device for abnormal data, electronic equipment and storage 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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20201211 |
|
WW01 | Invention patent application withdrawn after publication |