CN113986295A - Data processing method and device, electronic equipment and storage medium - Google Patents

Data processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113986295A
CN113986295A CN202111291942.6A CN202111291942A CN113986295A CN 113986295 A CN113986295 A CN 113986295A CN 202111291942 A CN202111291942 A CN 202111291942A CN 113986295 A CN113986295 A CN 113986295A
Authority
CN
China
Prior art keywords
log information
target
target service
early warning
information
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
CN202111291942.6A
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.)
Guahao Net Hangzhou Technology Co Ltd
Original Assignee
Guahao Net Hangzhou 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 Guahao Net Hangzhou Technology Co Ltd filed Critical Guahao Net Hangzhou Technology Co Ltd
Priority to CN202111291942.6A priority Critical patent/CN113986295A/en
Publication of CN113986295A publication Critical patent/CN113986295A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a data processing method, a data processing device, electronic equipment and a storage medium, wherein the method comprises the following steps: monitoring service log information corresponding to at least one target service when the starting of the at least one target service is detected; if the service log information is matched with preset early warning log information, determining a target service terminal corresponding to the target service log information and a target early warning mode corresponding to the target service terminal; and sending early warning information to a corresponding target service terminal based on the target early warning mode, and updating a target program code corresponding to the target service log information when monitoring that the target service log information changes so as to run a corresponding target service based on the updated target program code. The problem that error information in target service cannot be corrected in time is solved, monitoring of service log information is achieved, and when errors occur in the service log information, the project is updated.

Description

Data processing method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of data processing, in particular to a data processing method and device, electronic equipment and a storage medium.
Background
The development of project codes of application programs is generally divided into front-end development and back-end development, and project services may not normally run due to problems such as compatibility or service update in the use process of the projects.
At present, in order to ensure the normal operation of a project service, a front-end service is usually detected, for example, a project is monitored based on a service port or the health degree of the operation of the project service is judged based on a custom health detection interface, but such a method cannot timely and accurately detect error information in the project service, and causes difficulty for a developer in repairing the project service.
Therefore, a method for processing a project service is needed to help a developer to complete the repair of the project service as soon as possible and ensure the normal operation of the project service.
Disclosure of Invention
The invention provides a data processing method, a data processing device, electronic equipment and a storage medium, which are used for monitoring project log information and updating a project when an error occurs in the log information.
In a first aspect, an embodiment of the present invention provides a data processing method, including:
monitoring service log information corresponding to at least one target service when the starting of the at least one target service is detected;
if the service log information is matched with preset early warning log information, determining a target service terminal corresponding to the target service log information and a target early warning mode corresponding to the target service terminal;
and sending early warning information to a corresponding target service terminal based on the target early warning mode, and updating a target program code corresponding to the target service log information when monitoring that the target service log information changes so as to run a corresponding target service based on the updated target program code.
In a second aspect, an embodiment of the present invention further provides a data processing apparatus, including:
the monitoring module is used for monitoring service log information corresponding to at least one target service when the starting of the at least one target service is detected;
the early warning mode determining module is used for determining a target service terminal corresponding to target service log information and a target early warning mode corresponding to the target service terminal if the service log information is matched with preset early warning log information;
and the updating module is used for sending early warning information to a corresponding target service terminal based on the target early warning mode, updating the target program code corresponding to the target service log information when monitoring that the target service log information changes, and running corresponding target service based on the updated target program code.
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 implement the data processing method according to any one of the embodiments of the present invention.
In a fourth aspect, the embodiments of the present invention further provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are used for executing the data processing method according to any one of the embodiments of the present invention.
According to the technical scheme of the embodiment, when the starting of at least one target service is detected, service log information corresponding to the at least one target service is monitored, whether the service log information is matched with preset early warning log information or not is detected through monitoring the service log information, if the service log information is matched with the preset early warning log information, a target service terminal corresponding to the target service log information and a target early warning mode corresponding to the target service terminal are determined, and warning can be timely sent to related personnel according to the target service log information through different target early warning modes and different sending channels of the target terminal; and sending early warning information to a corresponding target service terminal based on the target early warning mode, updating a target program code corresponding to the target service log information when monitoring that the target service log information changes, operating a corresponding target service based on the updated target program code, and modifying or updating the target service log information by updating the target program code corresponding to the target service so as to ensure the normal operation of the target service. The problem that the developer cannot timely modify or update the target service log information due to the fact that the developer cannot timely provide the error information of the target service log information and the accurate positioning information of the error information in the target service running process is solved, and the effects of automatically monitoring the change of the target service log information and timely updating the target service log information are achieved.
Drawings
In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, a brief description is given below of the drawings used in describing the embodiments. It should be clear that the described figures are only views of some of the embodiments of the invention to be described, not all, and that for a person skilled in the art, other figures can be derived from these figures without inventive effort.
Fig. 1 is a flowchart of a data processing method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a data processing method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a data processing apparatus according to a third embodiment of the present invention.
Fig. 4 is a schematic structural diagram of an electronic device 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.
Example one
Fig. 1 is a schematic flow chart of a data processing method according to an embodiment of the present invention, where the embodiment is applicable to a situation where relevant personnel are prompted to modify error information in a project by monitoring log information, and the method may be executed by a data processing apparatus, where the apparatus may be implemented in a form of software and/or hardware, and the hardware may be an electronic device, such as a mobile terminal or a PC.
As shown in fig. 1, the method of the present embodiment includes:
s110, when the starting of at least one target service is detected, monitoring service log information corresponding to the at least one target service.
For example, a user may click a service in a front-end page to trigger service information corresponding to the operation of the service in the background server, and then the service triggered by the user may be used as a target service. The service log information may be understood as a log file automatically created and maintained by the server, and may include various operation information of the user, history data information generated by the system during service operation, error information generated during service operation, state information, debugging information, time information, and the like, and may help the developer to quickly locate the error information during service operation.
Specifically, when the server detects that at least one target service is started, the server may monitor service log information corresponding to the at least one target service through a monitoring module, a monitoring plug-in, or related application software in the server, for example, a logback framework in the server, and record operation information, system operation information, debugging information, and various service log information generated during the operation of the target service, of a user after the target service is started.
Illustratively, when a user triggers a service in a page in a front-end page, for example, saves a file, the user may click a save button in the page, call service content corresponding to the operation in a background server, and use the service content as a target service, and when the server detects that the target service is started, the server may monitor service log information corresponding to the target service in real time and continuously through a logback framework in the server.
And S120, if the service log information is matched with preset early warning log information, determining a target service terminal corresponding to the target service log information and a target early warning mode corresponding to the target service terminal.
The preset early warning log information may be specific service log information preset by a developer, for example, the preset early warning log information may be one or more specific types of service log information, error information possibly generated in a service operation process, string error information, and the like, and may also be understood as a judgment condition, and whether the service log information includes log information matched with the preset early warning log information is determined according to the judgment condition. The target service log information can be understood as a new service log matched with the preset early warning log information, and can also be understood as error information generated in the running process of the target service; the target service terminal can be understood as a terminal for receiving the early warning information, and the target service terminal can comprise one or more terminals; the target early warning mode can be understood as a mode of sending early warning information to developers.
Specifically, in the running process of the target service, service log information related to the target service is continuously generated, which may include operation information of a user, running time of the target service, log information generated by a system, stack information during project debugging, and various information related to the target service, and meanwhile, when an error occurs in the running process of the target service, the server may also record information of the generation time, the generation position, and the service running result of the error information. According to development experience, developers can easily know the log type, log information, the position of error information and the like which may have errors in the running process of the target service, therefore, the developers can mark the information as preset early warning log information as a judgment condition for detecting the service log information, and when the service log information generated in the running process of the target service is detected to contain the service log information matched with the preset early warning log information, the service log information matched with the preset early warning log information can be used as the target service log information. The developer can also set various target service terminals for receiving the determined target service log information, the modes of receiving the target service log information by different target service terminals are not completely the same, and further, the target early warning mode can be determined according to the modes of receiving the information by different target service terminals.
Optionally, the preset early warning log information includes: setting corresponding early warning log information based on log information generated by system operation; loading pre-set early warning log information based on the project; pre-warning log information preset based on a communication port protocol; and early warning log information preset based on abnormal log information monitored by the monitoring tool.
Optionally, the determining a target service terminal corresponding to the target service log information and a target early warning manner corresponding to the target service terminal includes: and determining a target log type corresponding to the target service log information, and determining a target service terminal and a target early warning mode corresponding to the target log type according to a preset mapping relation corresponding to the service log type to be selected, the service terminal to be selected and the early warning mode to be selected.
The log types may include a plurality of log types, such as a system log, an error stack log, a character string log, a custom log type, and the like, and the target log type may be understood as a log type corresponding to the target service log information in the plurality of log types, for example, when the log information included in the target service log information is the system log information, the corresponding target log type is the system log type. The service log type to be selected can be understood as at least one service log type in a plurality of service log types; when the early warning information is sent to the developer, the early warning information can be sent through a plurality of service terminals, and the service terminal to be selected can be understood as at least one service terminal in the plurality of service terminals; the pre-warning mode to be selected can be understood as at least one pre-warning mode in multiple pre-warning modes.
Specifically, the developer may divide the service log information into different log types in advance, each log type may include a plurality of service log information, and establish a correspondence between the service log information and the log types. In the running process of the target service, service log information of a plurality of log types is generated, and then the target log type corresponding to the target service log information can be determined according to the corresponding relation between the service log information and the log types. In addition, a mapping relation corresponding to the service log type to be selected, the service terminal to be selected and the early warning mode to be selected can be preset, illustratively, habits of the developers for receiving information can be counted by investigating the developers, for example, the information can be received through mails, received through answering the calls, received through short messages or social software and the like. Or the developer can set different processing levels according to the error information in the target service log information, and set a corresponding early warning mode according to the processing levels. For example, the processing level is set according to the severity of the influence of the service log information on the operation of the target service, the service log information which does not influence the normal operation of the target service is set as a primary processing level, the service log information which slightly influences the operation of the target service is set as a secondary processing level, and the service log information which causes the abnormal operation of the target service is set as a tertiary processing level, which can also be understood as the most urgent processing level. When the processing level is one level, sending notification information to developers through short messages or various social software to wait for selection of an early warning mode; when the processing level is the second level, sending a notification message to a developer in a mail mode; when the processing level is three levels, the developer is directly contacted by dialing the phone number.
Optionally, the target early warning manner includes at least one of a mail notification early warning manner, a voice call early warning manner, and a short message notification early warning manner, and the early warning information includes at least one of a target log type corresponding to the target service log information, an early warning analysis report, a generation time and a duration of the target service log information, and a current duration of the target service log information.
The early warning analysis report can be understood as early warning information generated according to the target service log information, and can include log type, generation time, generation position, query path, generation duration, generation times and other information corresponding to the target service log information, so that developers can determine early warning information details according to the early warning analysis report. The generation time of the target service log information can be understood as the time when the target service log information is generated in the running process of the target service log; the sustainable duration can be understood as the storable duration of the target service log information, and the normal operation of the target service cannot be influenced by the existence of the target service log information in the period; the current duration of the target service log information can be understood as the existing duration of the target service log information from the generation moment to the sending of the early warning information or the checking of a developer.
Specifically, a plurality of target service log early warning prompting modes can be preset and used as the target early warning modes, for example, the target service log early warning modes can include at least one of a mail notification early warning mode, a voice call early warning mode and a short message notification early warning mode. And when the pre-warning log information is matched, determining the service log information as target service log information, and sending the pre-warning information to developers through a target terminal according to a preset target pre-warning mode. By setting various target early warning modes, developers can be informed to check or modify the target service log information through multiple channels when the target service log information is generated, and the developers can be reminded to pay attention to the target service log information in time. Meanwhile, the information in the early warning information can be used for displaying the generation time, the sustainable time and the current sustainable time of the target service log information to developers, and the developers can determine the emergency degree of processing the target service log information according to the detailed content of the early warning information.
S130, sending early warning information to a corresponding target service terminal based on the target early warning mode, and updating a target program code corresponding to the target service log information when monitoring that the target service log information changes so as to run a corresponding target service based on the updated target program code.
The service log information may be generated by program codes, each service log information corresponds to at least one program code, and the target program code may be understood as a program code corresponding to the target service log. The target service can be understood as the corresponding business or function supported by the target program code after updating.
Specifically, after the target early warning mode corresponding to the target service terminal is determined, early warning information can be sent to the target service terminal based on the target early warning mode. It can be understood that, taking the example that the logback framework in the server monitors the service log, the logback framework can monitor not only the change of the service log information caused by the user operation when the user operates the front-end page, but also the change of the service log information continuously and in real time during the running process of the target service. The method has the advantages that the change of the target service log information can be found in time when the target service log information changes, developers do not need to be informed when the specific or preset target service log information is detected to change, and the target program code corresponding to the target service log information can be directly updated based on the logback framework so as to run the corresponding target service based on the updated target program code.
Optionally, when the change of the target service log information is monitored, updating the target program code corresponding to the target service log information includes: monitoring the target service log information, and updating a target program code in the target service according to the changed target service log information when the trigger operation of the target service log information is monitored.
The trigger operation may be understood as an operation of modifying or updating the target service log information.
Specifically, some triggering conditions may be set for the target service log information, and in the process of monitoring the target service log information, if the target service log information meets the preset triggering conditions, it indicates that the target service log information includes some error information, and the target program code corresponding to the target service log information needs to be modified or updated. When the trigger operation of the target service log information is detected, early warning information is sent to a developer, the developer is prompted to modify the target program code corresponding to the target service log information based on a background server, or the developer directly modifies or updates the corresponding target program code for the specific target service log information based on a logback framework.
According to the technical scheme of the embodiment, when the starting of at least one target service is detected, service log information corresponding to the at least one target service is monitored, whether the service log information is matched with preset early warning log information or not is detected through monitoring the service log information, if the service log information is matched with the preset early warning log information, a target service terminal corresponding to the target service log information and a target early warning mode corresponding to the target service terminal are determined, and warning can be timely sent to related personnel according to the target service log information through different target early warning modes and different sending channels of the target terminal; and sending early warning information to a corresponding target service terminal based on the target early warning mode, updating a target program code corresponding to the target service log information when monitoring that the target service log information changes, operating a corresponding target service based on the updated target program code, and modifying or updating the target service log information by updating the target program code corresponding to the target service so as to ensure the normal operation of the target service. The problem that the developer cannot timely modify or update the target service log information due to the fact that the developer cannot timely provide the error information of the target service log information and the accurate positioning information of the error information in the target service running process is solved, and the effects of automatically monitoring the change of the target service log information and timely updating the target service log information are achieved.
Example two
In a specific example, as shown in fig. 2, a developer may set a log information filtering rule in advance (i.e., preset early warning log information), some preset filtering conditions may be included in the log information filtering rule, such as error stack information, a row of error log information, one or more types of log information, custom log information, error log information in a public package, log information that needs to be focused on according to the needs of the developer, and the like, and the content of the log information that the developer wants to obtain through the service log information may be determined based on the preset log information filtering rule. When the target service is detected to be started, for example, a user operates through a front-end page to trigger corresponding services in a background, corresponding service log information can be generated in the target running process, and the service log information can be monitored through a logback framework in a server. And when the service log information matched with the log information filtering rule is detected, taking the matched service log information as target service log information, sending the target service log information to developers, and informing the developers to modify target program codes corresponding to the target service. The method for sending the target service log information to the developer may be multiple, for example, the method may be at least one of a mail notification early warning method, a voice call early warning method, and a short message notification early warning method, the sent early warning information may include at least one of a target log type corresponding to the target service log information, an early warning analysis report, a generation time and a duration of the target service log information, and a current duration of the target service log information, and the developer may determine an emergency degree that the current target service needs to be modified through a prompt of the early warning information.
It should be noted that the logback framework in the server not only can monitor the target service and send the monitoring result to the developer to modify the target code corresponding to the target service, but also can directly modify the target program code corresponding to the target service log information in a preset modification mode when specific target service log information is detected, without notifying the developer, and can modify or update the error information generated in the target service operation process in time.
According to the technical scheme of the embodiment, when the starting of at least one target service is detected, service log information corresponding to the at least one target service is monitored, whether the service log information is matched with preset early warning log information or not is detected through monitoring the service log information, if the service log information is matched with the preset early warning log information, a target service terminal corresponding to the target service log information and a target early warning mode corresponding to the target service terminal are determined, and warning can be timely sent to related personnel according to the target service log information through different target early warning modes and different sending channels of the target terminal; and sending early warning information to a corresponding target service terminal based on the target early warning mode, updating a target program code corresponding to the target service log information when monitoring that the target service log information changes, operating a corresponding target service based on the updated target program code, and modifying or updating the target service log information by updating the target program code corresponding to the target service so as to ensure the normal operation of the target service. The problem that the developer cannot timely modify or update the target service log information due to the fact that the developer cannot timely provide the error information of the target service log information and the accurate positioning information of the error information in the target service running process is solved, and the effects of automatically monitoring the change of the target service log information and timely updating the target service log information are achieved.
EXAMPLE III
Fig. 3 is a data processing apparatus according to a third embodiment of the present invention, including: a listening module 310, an early warning mode determination module 320, and an update module 330.
A monitoring module 310, configured to monitor service log information corresponding to at least one target service when it is detected that the at least one target service is started;
an early warning mode determining module 320, configured to determine, if the service log information matches preset early warning log information, a target service terminal corresponding to target service log information and a target early warning mode corresponding to the target service terminal;
an updating module 330, configured to send early warning information to a corresponding target service terminal based on the target early warning manner, and update a target program code corresponding to the target service log information when it is monitored that the target service log information changes, so as to run a corresponding target service based on the updated target program code.
According to the technical scheme of the embodiment, when the starting of at least one target service is detected, service log information corresponding to the at least one target service is monitored, whether the service log information is matched with preset early warning log information or not is detected through monitoring the service log information, if the service log information is matched with the preset early warning log information, a target service terminal corresponding to the target service log information and a target early warning mode corresponding to the target service terminal are determined, and warning can be timely sent to related personnel according to the target service log information through different target early warning modes and different sending channels of the target terminal; and sending early warning information to a corresponding target service terminal based on the target early warning mode, updating a target program code corresponding to the target service log information when monitoring that the target service log information changes, operating a corresponding target service based on the updated target program code, and modifying or updating the target service log information by updating the target program code corresponding to the target service so as to ensure the normal operation of the target service. The problem that the developer cannot timely modify or update the target service log information due to the fact that the developer cannot timely provide the error information of the target service log information and the accurate positioning information of the error information in the target service running process is solved, and the effects of automatically monitoring the change of the target service log information and timely updating the target service log information are achieved.
On the basis of any optional technical scheme in the embodiment of the present invention, optionally, the preset early warning log information includes: setting corresponding early warning log information based on log information generated by system operation; loading pre-set early warning log information based on the project; pre-warning log information preset based on a communication port protocol; and early warning log information preset based on abnormal log information monitored by the monitoring tool.
On the basis of any optional technical scheme in the embodiment of the present invention, optionally, the early warning mode determining module includes:
and the early warning mode determining submodule is used for determining a target log type corresponding to the target service log information and determining a target service terminal and a target early warning mode corresponding to the target log type according to a preset mapping relation corresponding to the service log type to be selected, the service terminal to be selected and the early warning mode to be selected.
On the basis of any optional technical scheme in the embodiment of the present invention, optionally, the target early warning manner in the early warning manner determining module includes at least one of an email notification early warning manner, a voice call early warning manner, and a short message notification early warning manner, and the early warning information includes at least one of a target log type corresponding to the target service log information, an early warning analysis report, a generation time and a sustainable duration of the target service log information, and a current sustained duration of the target service log information.
On the basis of any optional technical solution in the embodiment of the present invention, optionally, the update module includes:
and the target program code updating submodule is used for monitoring the target service log information and updating the target program code in the target service according to the changed target service log information when the triggering operation of the target service log information is monitored.
The data processing device provided by the embodiment of the invention can execute the data processing method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
It should be noted that, the units and modules included in the apparatus are merely 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 embodiment of the invention.
Example four
Fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention. FIG. 4 illustrates a block diagram of an exemplary electronic device 40 suitable for use in implementing embodiments of the present invention. The electronic device 40 shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 4, electronic device 40 is embodied in the form of a general purpose computing device. The components of electronic device 40 may include, but are not limited to: one or more processors or processing units 401, a system memory 402, and a bus 403 that couples the various system components (including the system memory 402 and the processing unit 401).
Bus 403 represents one or more of any of several types of bus structures, including a memory bus or memory 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.
Electronic device 40 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 40 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 402 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)404 and/or cache memory 405. The electronic device 40 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 406 may be used to read from and 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 (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 403 by one or more data media interfaces. Memory 402 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 408 having a set (at least one) of program modules 407 may be stored, for example, in memory 402, such program modules 407 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. Program modules 407 generally perform the functions and/or methods of the described embodiments of the invention.
The electronic device 40 may also communicate with one or more external devices 409 (e.g., keyboard, pointing device, display 410, etc.), with one or more devices that enable a user to interact with the electronic device 40, and/or with any devices (e.g., network card, modem, etc.) that enable the electronic device 40 to communicate with one or more other computing devices. Such communication may be through input/output (I/O) interface 411. Also, the electronic device 40 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 412. As shown, the network adapter 412 communicates with the other modules of the electronic device 40 over the bus 403. It should be appreciated that although not shown in FIG. 4, other hardware and/or software modules may be used in conjunction with electronic device 40, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 401 executes various functional applications and data processing, for example, implementing a data processing method provided by an embodiment of the present invention, by executing a program stored in the system memory 402.
EXAMPLE five
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are executed by a computer processor to perform a data processing method, and the method includes:
monitoring service log information corresponding to at least one target service when the starting of the at least one target service is detected;
if the service log information is matched with preset early warning log information, determining a target service terminal corresponding to the target service log information and a target early warning mode corresponding to the target service terminal;
and sending early warning information to a corresponding target service terminal based on the target early warning mode, and updating a target program code corresponding to the target service log information when monitoring that the target service log information changes so as to run a corresponding target service based on the updated target program code.
Computer storage media for embodiments of the invention may employ 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 computer readable 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 embodiments 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 server. 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).
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 data processing method, comprising:
monitoring service log information corresponding to at least one target service when the starting of the at least one target service is detected;
if the service log information is matched with preset early warning log information, determining a target service terminal corresponding to the target service log information and a target early warning mode corresponding to the target service terminal;
and sending early warning information to a corresponding target service terminal based on the target early warning mode, and updating a target program code corresponding to the target service log information when monitoring that the target service log information changes so as to run a corresponding target service based on the updated target program code.
2. The method of claim 1, wherein the pre-set pre-warning log information comprises:
setting corresponding early warning log information based on log information generated by system operation; loading pre-set early warning log information based on the project; pre-warning log information preset based on a communication port protocol; and early warning log information preset based on abnormal log information monitored by the monitoring tool.
Operation early warning log information, input and output early warning log information, user-defined early warning log information, stack early warning log information, debugging early warning log information and error early warning log information in a public packet.
3. The method of claim 1, wherein the determining a target service terminal corresponding to target service log information and a target early warning manner corresponding to the target service terminal comprises:
and determining a target log type corresponding to the target service log information, and determining a target service terminal and a target early warning mode corresponding to the target log type according to a preset mapping relation corresponding to the service log type to be selected, the service terminal to be selected and the early warning mode to be selected.
4. The method of claim 1, wherein the target pre-warning manner comprises at least one of a mail notification pre-warning manner, a voice call pre-warning manner, and a text message notification pre-warning manner, and wherein the pre-warning information comprises at least one of a target log type corresponding to the target service log information, a pre-warning analysis report, a generation time and a duration of the target service log information, and a current duration of the target service log information.
5. The method of claim 1, wherein updating the target program code corresponding to the target service log information when the change of the target service log information is monitored comprises:
monitoring the target service log information, and updating a target program code in the target service according to the changed target service log information when the trigger operation of the target service log information is monitored.
6. A data processing apparatus, comprising:
the monitoring module is used for monitoring service log information corresponding to at least one target service when the starting of the at least one target service is detected;
the early warning mode determining module is used for determining a target service terminal corresponding to target service log information and a target early warning mode corresponding to the target service terminal if the service log information is matched with preset early warning log information;
and the updating module is used for sending early warning information to a corresponding target service terminal based on the target early warning mode, updating the target program code corresponding to the target service log information when monitoring that the target service log information changes, and running corresponding target service based on the updated target program code.
7. The apparatus of claim 6, wherein the pre-warning manner determination module comprises:
and the early warning mode determining submodule is used for determining a target log type corresponding to the target service log information and determining a target service terminal and a target early warning mode corresponding to the target log type according to a preset mapping relation corresponding to the service log type to be selected, the service terminal to be selected and the early warning mode to be selected.
8. The apparatus of claim 6, wherein the update module comprises:
and the target program code updating submodule is used for monitoring the target service log information and updating the target program code in the target service according to the changed target service log information when the triggering operation of the target service log information is monitored.
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 a data processing method as claimed in any one of claims 1-5.
10. A storage medium containing computer-executable instructions for performing the data processing method of any one of claims 1 to 5 when executed by a computer processor.
CN202111291942.6A 2021-11-02 2021-11-02 Data processing method and device, electronic equipment and storage medium Pending CN113986295A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111291942.6A CN113986295A (en) 2021-11-02 2021-11-02 Data processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111291942.6A CN113986295A (en) 2021-11-02 2021-11-02 Data processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113986295A true CN113986295A (en) 2022-01-28

Family

ID=79746013

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111291942.6A Pending CN113986295A (en) 2021-11-02 2021-11-02 Data processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113986295A (en)

Similar Documents

Publication Publication Date Title
US9807217B1 (en) Selective audio notifications based on connection to an accessory
WO2020237877A1 (en) Log monitoring method and apparatus, terminal, and storage medium
CN107193714B (en) Alarm display method and device
CN111385148A (en) Service alarm method, device, computer equipment and storage medium
US20170351560A1 (en) Software failure impact and selection system
US20090044055A1 (en) Method for servicing hardware of computer system and method and system for guiding to solve errors
US10599505B1 (en) Event handling system with escalation suppression
CN112306833A (en) Application program crash statistical method and device, computer equipment and storage medium
CN115129573A (en) Program operation monitoring method and device, electronic equipment and storage medium
CN110888791A (en) Log processing method, device, equipment and storage medium
CN113282458A (en) Anti-flash-back method and device for application program, electronic equipment and storage medium
CN110162982B (en) Method and device for detecting illegal rights, storage medium and electronic equipment
CN112966056A (en) Information processing method, device, equipment, system and readable storage medium
CN113986295A (en) Data processing method and device, electronic equipment and storage medium
CN115688706A (en) Information verification method, device, equipment and storage medium
CN114637685A (en) Performance test method, device, equipment and medium of application program in bank system
CN111741046B (en) Data reporting method, data acquisition method, device, equipment and medium
CN110362464B (en) Software analysis method and equipment
CN108648298B (en) Message processing method and device, storage medium and electronic equipment
CN112818204A (en) Service processing method, device, equipment and storage medium
CN112783730A (en) Interface monitoring method, device, medium and electronic equipment
CN112306989A (en) Database instance processing method and device, storage medium and electronic device
CN112631929A (en) Test case generation method and device, storage medium and electronic equipment
WO2020107208A1 (en) Failure notification method and device, and apparatus
CN113495822A (en) Medical equipment fault information management method, server and readable 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