Business operation log generation method and device and business operation log query method and device
By generating and reporting the version number of the business configuration file during the business operations of the business middle platform, the problem of lack of association between the business operation log and the business configuration file is solved, and the strong association between the log and the configuration file is achieved, and the efficiency of operation and management is improved.
Patent Information
- Application Number
- CN202510504581.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-21
- Publication Date
- 2025-06-06
AI Technical Summary
In the prior art, there is a lack of association between the business operation log and the business configuration file, which makes it impossible for operators to query the corresponding business configuration file through the log data.
During the business operations of the business middle platform, the target business configuration file is generated and stored, and the target version number is configured for it, and the business operation information and target version number are reported to the log system, so that the log system can be sorted into business operation log data with preset data styles.
It realizes a strong correlation between business operation log data and business configuration files, which facilitates operators to query corresponding business configuration files through log data, and improves the efficiency of operation management.
Smart Images

Figure CN120104455A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a method and apparatus for generating and querying a business operation log, a computer device, a computer-readable storage medium, and a computer program product. Background Art
[0002] With the rapid development of information technology, various business systems are becoming increasingly complex. In order to facilitate the operation of business systems, the business middle platform has become an important architecture. Through the business middle platform, operators can convert the business rules or gameplay of different categories of operating products into business configuration files.
[0003] In the prior art, in order to help administrators understand the operation status of the business middle station and the operation history of operators, when operators perform business operations on business configuration files through the business middle station, the business operation details will be recorded through operation log data. However, the inventors found that the existing operation log data generally only records the operator, operation time, operation behavior and other data, which has no association with the business configuration file, resulting in the operator being unable to query the corresponding business configuration file based on the operation log data.
[0004] It should be noted that the above content is not necessarily prior art, nor is it intended to limit the scope of patent protection of this application. Summary of the invention
[0005] Embodiments of the present application provide a method, apparatus, computer device, computer-readable storage medium, and computer program product for generating a periodic report page to solve or alleviate one or more of the technical problems raised above.
[0006] One aspect of an embodiment of the present application provides a method for generating a business operation log, which is used in a business configuration server. The method includes: Receive a business operation request for a business configuration file sent by the business middle station, wherein the business operation request carries business operation information; Performing a corresponding business operation on the business configuration file based on the business operation request, generating a target business configuration file, and storing the target business configuration file; Configure a corresponding target version number based on the target service configuration file; The business operation information and the target version number are reported to a log system, so that the log system organizes the business operation information and the target version number into business operation log data in a preset data format, and stores the business operation log data.
[0007] Optionally, the method further comprises: In the event that the corresponding business operation fails to be executed, the reason for the failure of the business operation is obtained; The reason for the failure of the business operation and the business operation information are reported to the log system, so that the log system organizes the business operation information and the reason for the failure of the business operation into business operation log data in a preset data format, and stores the business operation log data.
[0008] Optionally, reporting the business operation information and the target version number to a log system includes: The business operation information and the target version number are reported to the log system in an asynchronous manner.
[0009] Optionally, the method further comprises: The execution result of the corresponding business operation is returned to the business middle station so that the business middle station displays the execution result.
[0010] Another aspect of an embodiment of the present application provides a business operation log query method for use in a business center, the method comprising: In response to the business operation log query operation, sending a business operation log query request to the log system, wherein the business operation log query request includes an operation object; Acquire business operation log data associated with the operation object queried by the log system based on the operation object; Display the queried business operation log data.
[0011] Optionally, the method further comprises: In response to the rollback operation of the displayed target business operation log data, sending a business configuration file acquisition request to the business configuration server, wherein the business configuration file acquisition request carries a target version number; Obtaining a target service configuration file associated with the target version number that is queried by the service configuration server based on the target version number; Page rendering is performed based on the target business configuration file to obtain a target business configuration page.
[0012] Optionally, the display of the queried business operation log data includes: The queried business operation log data is displayed in a list format.
[0013] Another aspect of an embodiment of the present application provides a service operation log generating device, which is used in a service configuration server, and the device includes: A receiving module, used to receive a business operation request of a business configuration file sent by the business middle station, wherein the business operation request carries business operation information; A processing module, configured to perform a corresponding business operation on the business configuration file based on the business operation request, generate a target business configuration file, and store the target business configuration file; A configuration module, used to configure a corresponding target version number based on the target service configuration file; The reporting module is used to report the business operation information and the target version number to the log system, so that the log system can organize the business operation information and the target version number into business operation log data in a preset data format and store the business operation log data.
[0014] Another aspect of an embodiment of the present application provides a business operation log query device for use in a business center, the device comprising: A response module, configured to send a business operation log query request to a log system in response to a business operation log query operation, wherein the business operation log query request includes an operation object; An acquisition module, used to acquire business operation log data associated with the operation object queried by the log system based on the operation object; The display module is used to display the queried business operation log data.
[0015] Another aspect of an embodiment of the present application provides a computer device, including: at least one processor; and a memory communicatively coupled to the at least one processor; Wherein: the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method as described above.
[0016] Another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the method described above is implemented.
[0017] Another aspect of an embodiment of the present application provides a computer program product, including a computer program, which implements the method described above when executed by a processor.
[0018] The embodiment of the present application adopts the above technical solution, which may include the following advantages: when the operator performs business operations (save, modify, etc.) on the business configuration file through the business middle station, the business operation request carrying the business operation information will be sent to the business configuration server, so that the business configuration server can obtain the business operation information, and can perform business operations based on the business operation request, thereby realizing the save or update operation of the business configuration file and obtaining the target business configuration file. After obtaining the target business configuration file, the corresponding target version will be configured for the target business configuration file, so that the business configuration server can report the business operation information and the target version number to the log system, so that the log system can organize the business operation information and the target version number into business operation log data in a preset data style, realize the strong association between the business operation log data and the business configuration file, and facilitate the subsequent query of the corresponding business configuration file through the business operation log data. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings exemplarily illustrate the embodiments and constitute a part of the specification, and together with the text description of the specification, are used to explain the exemplary implementation of the embodiments. The embodiments shown are for illustrative purposes only and do not limit the scope of the claims. In all drawings, the same reference numerals refer to similar but not necessarily identical elements.
[0019] Figure 1 A diagram schematically shows an operating environment of a method for generating or querying a business operation log according to Embodiment 1 of the present application; Figure 2 The flowchart of the method for generating a business operation log according to the first embodiment of the present application is schematically shown; Figure 3 The newly added flow chart of the business operation log generation method according to the first embodiment of the present application is schematically shown; Figure 4 The flowchart of the business operation log query method according to the first embodiment of the present application is schematically shown; Figure 5 The following schematically shows a newly added flow chart of the business operation log query method according to the second embodiment of the present application; Figure 6 A block diagram of a device for generating a business operation log according to a third embodiment of the present application is schematically shown; Figure 7 A block diagram schematically shows a business operation log query device according to Embodiment 4 of the present application; and Figure 8 The hardware architecture diagram of the computer device according to the fifth embodiment of the present application is schematically shown. DETAILED DESCRIPTION
[0020] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0021] It should be noted that the descriptions involving "first", "second", etc. in the embodiments of the present application are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0022] In the description of the present application, it should be understood that the numerical labels before the steps do not indicate the order in which the steps are executed, but are only used to facilitate the description of the present application and to distinguish each step, and therefore should not be understood as a limitation on the present application.
[0023] First, the following terms are explained: Business middle platform: It is an internal infrastructure of an enterprise, which aims to integrate the back-end resources into the "middleware" required by the front-end business, so as to facilitate on-demand call. Its core idea is to provide reusable capabilities for different front-end businesses through capability reuse and platform products, forming a platform product that can be built once and used multiple times.
[0024] Secondly, in order to facilitate those skilled in the art to understand the technical solutions provided in the embodiments of the present application, the relevant technologies are described below: In the prior art, in order to help administrators understand the operation status of the business middle station and the operation history of operators, when operators perform business operations on business configuration files through the business middle station, the business operation details will be recorded through operation log data. However, the inventors found that the existing operation log data generally only records the operator, operation time, operation behavior and other data, which has no association with the business configuration file, resulting in the operator being unable to query the corresponding business configuration file based on the operation log data.
[0025] To this end, an embodiment of the present application provides a business operation log generation solution. In this technical solution, when the operator performs business operations (save, modify, etc.) on the business configuration file through the business middle station, the business operation request carrying the business operation information will be sent to the business configuration server, so that the business configuration server can obtain the business operation information, and can perform business operations based on the business operation request, thereby realizing the save or update operation of the business configuration file and obtaining the target business configuration file. After obtaining the target business configuration file, the corresponding target version will be configured for the target business configuration file, so that the business configuration server can report the business operation information and the target version number to the log system, so that the log system can organize the business operation information and the target version number into business operation log data in a preset data style, so as to achieve a strong association between the business operation log data and the business configuration file, and facilitate the subsequent query of the corresponding business configuration file through the business operation log data. See below for details.
[0026] Finally, for ease of understanding, an exemplary operating environment is provided below.
[0027] like Figure 1 As shown, the environment diagram includes a business middle station 2, a business configuration server 4, and a log system 6, wherein: The business middle station 2 can be a workstation, a personal computer, a virtual instance in a cloud platform, etc., providing users with a business configuration environment and a business configuration interface. The business middle station 2 can run Windows system, IOS system or Unix system, etc.
[0028] The business configuration server 4 may be composed of multiple computing devices. The multiple computing devices may include virtualized computing instances. The virtualized computing instances may include virtual machines, such as simulations of computer systems, operating systems, servers, etc. The computing device may load the virtual machine based on a virtual image and / or other data defining specific software (e.g., operating system, dedicated application, server) for simulation. As the demand for different types of processing services changes, different virtual machines may be loaded and / or terminated on one or more computing devices. A hypervisor may be implemented to manage the use of different virtual machines on the same computing device.
[0029] Server 4 can provide business operation log generation service.
[0030] The server 4 can be configured to communicate with the business middle station 2, the log system 6, etc. through the network.
[0031] The log system 6 is used to store business operation log data.
[0032] The following uses the service configuration server 4 or the service middle station 2 as the execution subject to introduce the technical solution of the present application through multiple embodiments. It should be noted that these embodiments can be implemented in a variety of different forms and should not be interpreted as being limited to the embodiments described here.
[0033] Embodiment 1 Figure 2 The flowchart of the method for generating a business operation log according to the first embodiment of the present application is schematically shown, which is used in a business configuration server. The business configuration server is a server for implementing a configuration function for a business.
[0034] like Figure 2 As shown, the business operation log generation method may include steps S200 to S206, wherein: Step S200: receiving a service operation request of a service configuration file sent by a service middle station, wherein the service operation request carries service operation information.
[0035] Step S202: performing a corresponding service operation on the service configuration file based on the service operation request, generating a target service configuration file, and storing the target service configuration file.
[0036] Step S204: configuring a corresponding target version number based on the target service configuration file.
[0037] Step S206: reporting the business operation information and the target version number to a log system, so that the log system organizes the business operation information and the target version number into business operation log data in a preset data format, and stores the business operation log data.
[0038] The business operation log generation method provided in this embodiment, when the operation personnel perform business operations (save, modify, etc. on the business configuration file) on the business configuration file through the business middle station, will send the business operation request carrying the business operation information to the business configuration server, so that the business configuration server can obtain the business operation information, and can perform business operations based on the business operation request, thereby realizing the save or update operation of the business configuration file and obtaining the target business configuration file. After obtaining the target business configuration file, the corresponding target version will be configured for the target business configuration file, so that the business configuration server can report the business operation information and the target version number to the log system, so that the log system can organize the business operation information and the target version number into business operation log data in a preset data style, realize the strong association between the business operation log data and the business configuration file, and facilitate the subsequent query of the corresponding business configuration file through the business operation log data.
[0039] The following combination Figure 2 , each step in steps S200~S206 and other optional steps are described in detail.
[0040] Step S200 , receiving a business operation request of a business configuration file sent by the business middle station, wherein the business operation request carries business operation information.
[0041] The business configuration file is a configuration file generated by the operator after configuring the platform business based on the business middle platform. Specifically, when the operator configures the platform business, the operator can configure the platform business by dragging and dropping page element controls (buttons, links, pictures, etc.) on the business middle platform. After completing the configuration of the platform business, the business middle platform will generate a business configuration file based on the operator's configuration of the platform business.
[0042] The platform services may include order services, payment services, activity services, etc.
[0043] The service operation request may be a request to save a service configuration file or a request to edit a service configuration file. The editing request includes a configuration modification request, a configuration addition request, and a configuration deletion request.
[0044] The business operation information may include the operator, operation time, operation object, operation behavior, operation parameters, etc.
[0045] The operator may be characterized by the name, nickname, work number, etc. of the operating user. As an example, the operator is Zhang San.
[0046] The operation time includes the operation date and the operation time point. As an example, the operation time is 2025 / 2 / 27, 14:20:01.
[0047] The operation object is used to determine a specific operation page. As an example, the operation object is a page ID.
[0048] The operation behavior is used to determine the specific operation. The operation behavior can be determined by the network interface name in the business operation request. As an example, the operation behavior can be adding a configuration, deleting a configuration, modifying a configuration, freezing a configuration, etc.
[0049] The operation parameters are network request parameters in the business operation request, which are data used to transmit information and may include path parameters, request body parameters, etc.
[0050] Step S202 , performing a corresponding business operation on the business configuration file based on the business operation request, generating a target business configuration file, and storing the target business configuration file.
[0051] In actual applications, when the business operation request is a request for saving data of the business configuration file, the business configuration file is used as the target business configuration file, and the data saving operation is performed on the target business configuration file, thereby realizing persistent storage of the target business configuration file.
[0052] In actual applications, when the business operation request is a request to edit the business configuration file, the business configuration file will be edited according to the editing request to generate a target business configuration file, and then the target business configuration file will be saved to achieve persistent storage of the target business configuration file.
[0053] Step S204 , configure the corresponding target version number based on the target business configuration file.
[0054] The target version number is used to distinguish different target service configuration files.
[0055] In this embodiment, when the service configuration file is changed, a new version number will be configured for the changed service configuration file.
[0056] Step S206 , report the business operation information and the target version number to the log system, so that the log system organizes the business operation information and the target version number into business operation log data in a preset data format, and stores the business operation log data.
[0057] The log system is a system for managing business operation log data.
[0058] The preset data style is a pre-set data style for storing business operation log data. The preset data style may include basic operation log information and extended information. Among them, basic operation log information is required. For all business scenarios, there is information such as the operator, operation time, and operation object. Extended information is optional. Only in certain scenarios, such as saving or modifying a business configuration file, will the corresponding configuration version information be associated.
[0059] In practical applications, the preset data format is shown in Table 1 below: Table 1
[0060] In this embodiment, when the operator performs a business operation (save, modify, etc.) on the business configuration file through the business middle station, the business operation request carrying the business operation information will be sent to the business configuration server, so that the business configuration server can obtain the business operation information and can perform the business operation based on the business operation request, thereby realizing the save or update operation of the business configuration file and obtaining the target business configuration file. After obtaining the target business configuration file, the corresponding target version will be configured for the target business configuration file, so that the business configuration server can report the business operation information and the target version number to the log system, so that the log system can organize the business operation information and the target version number into business operation log data in a preset data style, realize the strong association between the business operation log data and the business configuration file, and facilitate the subsequent query of the corresponding business configuration file through the business operation log data.
[0061] In an alternative embodiment, see Figure 3 , the method further comprises: S300: When the corresponding business operation fails to be executed, the reason for the failure of the business operation is obtained.
[0062] S302, reporting the cause of the business operation execution failure and the business operation information to the log system, so that the log system organizes the business operation information and the cause of the business operation execution failure into business operation log data in a preset data format, and stores the business operation log data.
[0063] In actual applications, when the business configuration server performs a business operation, the business operation may fail due to various reasons. In order to troubleshoot the business problem later, in this embodiment, when the corresponding business operation fails to be executed, the business configuration server will obtain the reason for the failure of the business operation, which may be a network failure, a system error, etc. After obtaining the reason for the failure of the business operation, the reason can be reported to the log system as the operation result of the business operation together with the business operation information. In this way, after receiving these data, the log system can organize them into a business operation log data and store the business operation log data.
[0064] In this embodiment, after a business operation fails, the reason for the failure of the business operation will be reported to the log system together with the business operation information, so that the log system can record the reason for the failure of the business operation, which is convenient for subsequent troubleshooting of the business based on the business operation log data stored in the log system.
[0065] In one embodiment, after successfully executing a business operation, the execution result of the business operation can also be reported to the log system as the operation result of the business operation together with the business operation information and the target version, so that the execution result of the business operation can be subsequently viewed based on the business operation log data stored in the log system.
[0066] In an optional embodiment, reporting the business operation information and the target version number to a log system includes: The business operation information and the target version number are reported to the log system in an asynchronous manner.
[0067] In this embodiment, the business operation information and the target version number are reported to the log system in an asynchronous manner, which can improve the concurrent processing capability of data compared to a synchronous data reporting method.
[0068] In an optional embodiment, the method further comprises: The execution result of the corresponding business operation is returned to the business middle station so that the business middle station displays the execution result.
[0069] The execution result may include execution success, execution failure, execution exception, etc.
[0070] In this embodiment, the execution result of the corresponding business operation is returned to the business middle station so that the business middle station can display the execution result, which is convenient for operators to view the execution result of the business operation.
[0071] Embodiment 2 Figure 4 A flowchart of a business operation log query method according to Embodiment 1 of the present application is schematically shown, which is used in a business center.
[0072] like Figure 4 As shown, the business operation log query method may include steps S400 to S406, wherein: Step S400: In response to the business operation log query operation, a business operation log query request is sent to the log system, where the business operation log query request includes an operation object.
[0073] Step S402: Acquire business operation log data associated with the operation object that is queried by the log system based on the operation object.
[0074] Step S404: display the queried business operation log data.
[0075] The business operation log query method provided in this embodiment sends a business operation log query request carrying an operation object to the log system when the operation personnel query the business operation log through the business middle station, so that the log system can obtain the business operation log data associated with the operation object based on the operation object, and return the queried business operation log data to the business middle station, so that the business middle station can intuitively display the business operation log data to the operation personnel, making it convenient for the operation personnel to intuitively understand the business operations they have performed.
[0076] The following combination Figure 4 , each step in steps S400~S404 and other optional steps are described in detail.
[0077] Step S400 In response to the business operation log query operation, a business operation log query request is sent to the log system, where the business operation log query request includes an operation object.
[0078] In one implementation, the operator may trigger a business operation log query operation by clicking a business operation log query control displayed on the business platform.
[0079] In another embodiment, the operator may also trigger the business operation log query operation in other ways, such as by dragging the business operation log query control displayed on the business platform to trigger the business operation log query operation.
[0080] It should be noted that when triggering a business operation log query operation, the operator can also select a query time range. For example, select to query the business operation logs from April 1, 2025 to April 3, 2025.
[0081] Step S402 , obtaining the business operation log data associated with the operation object queried by the log system based on the operation object.
[0082] In one embodiment, upon receiving a business operation log query request, the log system will obtain the business operation log data associated with the operation object from a database for storing business operation log data based on the operation object in the business operation log query request. After obtaining the business operation log data, the log system will return the data to the business middle station.
[0083] It can be understood that when a business operation log query request includes a query time range, the log system can first obtain the business operation log data associated with the operation object from the database used to store business operation log data based on the operation object in the business operation log query request after receiving the business operation log query request. After that, the obtained business operation log data will be filtered and processed based on the query time range to retain the business operation log data within the query time range.
[0084] As an example, if the operation object is a page with id A, the log system will obtain business operation log data containing the operation object with id A from the database.
[0085] It should be noted that the method for generating the business operation log data has been described in detail in the first embodiment, and will not be repeated in this embodiment.
[0086] Step S404 , displays the queried business operation log data.
[0087] In one implementation, the queried business operation log data may be displayed in the form of Table 1 above.
[0088] In another implementation, the queried business operation log data may also be displayed in other ways, for example, the queried business operation log data may be displayed in the form of a card.
[0089] In an optional embodiment, the display of the queried business operation log data includes: The queried business operation log data is displayed in a list format.
[0090] In this embodiment, when the queried business operation log data contains multiple pieces, the multiple pieces of business operation log data can be displayed in a list format.
[0091] In another embodiment, when the queried business operation log data contains multiple pieces, the multiple pieces of business operation log data may also be displayed in the form of icons.
[0092] In this embodiment, the business operation log data is displayed in a list format, which can be convenient for operators to view.
[0093] In an alternative embodiment, see Figure 5 , the method further comprises: Step S500: In response to the rollback operation of the displayed target business operation log data, a business configuration file acquisition request is sent to a business configuration server, wherein the business configuration file acquisition request carries a target version number.
[0094] Step S502: Obtain a target service configuration file associated with the target version number that is queried by the service configuration server based on the target version number.
[0095] Step S504: performing page rendering based on the target service configuration file to obtain a target service configuration page.
[0096] In one embodiment, when the operator finds that the current page effect does not meet expectations, it may be that a modification to the business configuration file has caused the business configuration file to contain some erroneous content. At this time, in order to restore to the correct business configuration page as soon as possible, the business configuration page can be rolled back based on the displayed target business operation log data.
[0097] The rollback operation refers to an operation of restoring the target business configuration page to a previous point in time.
[0098] In this embodiment, the business operation log data currently displayed by the business middle station may contain multiple items. At this time, the operator can select one item from the multiple business operation log data displayed as the target business operation log data. After the operator completes the selection of the business operation log data, a rollback operation will be triggered. At the same time, the business middle station will generate a business configuration file acquisition request based on the rollback operation, and will send the business configuration file acquisition request to the business configuration server, so that the business configuration server can query the target business configuration file associated with the target version number based on the target version number carried in the business configuration file acquisition request. For example, if the target version number is v0.0.0.1, the business configuration server will obtain the target business configuration file with version number: v0.0.0.1.
[0099] After obtaining the target business configuration file, the business middle station will continue to render the page based on the target business configuration file so that the target business configuration page can be displayed to the operation personnel for the operation personnel to judge whether the target business configuration page corresponding to the version to be rolled back is correct.
[0100] In this embodiment, the business configuration page of the correct version can be quickly restored through the rollback operation.
[0101] In one embodiment, after obtaining the target configuration page, a version confirmation interface can be further provided to the operator to determine whether the target business configuration page currently rolled back is correct. When the operator confirms that it is correct, a new target version number can be configured for the target business configuration page. At the same time, the new configuration version and the corresponding business operation information can be re-reported to the log system through the business configuration server. If the operator finds that the business configuration page does not meet expectations, the operator can choose to abandon the rollback based on the version confirmation interface, and the rollback process is terminated.
[0102] Embodiment 3 Figure 6 The block diagram of the business operation log generating device 600 according to the third embodiment of the present application is schematically shown. The device can be divided into one or more program modules, one or more program modules are stored in a storage medium, and are executed by one or more processors to complete the embodiment of the present application. The program module referred to in the embodiment of the present application refers to a series of computer program instruction segments that can complete specific functions. The following description will specifically introduce the functions of each program module in this embodiment. Figure 6 As shown, the device 600 may include: a receiving module 610, a processing module 620, a configuration module 630, and a reporting module 640, wherein: The receiving module 610 is used to receive a service operation request of a service configuration file sent by the service middle station, wherein the service operation request carries service operation information; A processing module 620, configured to perform a corresponding business operation on the business configuration file based on the business operation request, generate a target business configuration file, and store the target business configuration file; Configuration module 630, configured to configure a corresponding target version number based on the target service configuration file; The reporting module 640 is used to report the business operation information and the target version number to the log system, so that the log system organizes the business operation information and the target version number into business operation log data in a preset data format and stores the business operation log data.
[0103] As an optional embodiment, the device 600 is further configured to: In the event that the corresponding business operation fails to be executed, the reason for the failure of the business operation is obtained; The reason for the failure of the business operation and the business operation information are reported to the log system, so that the log system organizes the business operation information and the reason for the failure of the business operation into business operation log data in a preset data format, and stores the business operation log data.
[0104] As an optional embodiment, reporting the business operation information and the target version number to a log system includes: The business operation information and the target version number are reported to the log system in an asynchronous manner.
[0105] As an optional embodiment, the device 600 is further configured to: The execution result of the corresponding business operation is returned to the business middle station so that the business middle station displays the execution result.
[0106] Embodiment 4 Figure 7 The block diagram of the business operation log query device 700 according to the fourth embodiment of the present application is schematically shown. The device can be divided into one or more program modules, one or more program modules are stored in a storage medium, and are executed by one or more processors to complete the embodiment of the present application. The program module referred to in the embodiment of the present application refers to a series of computer program instruction segments that can complete specific functions. The following description will specifically introduce the functions of each program module in this embodiment. Figure 7 As shown, the device 700 may include: a response module 710, an acquisition module 720, and a display module 730, wherein: A response module 710, configured to send a business operation log query request to a log system in response to a business operation log query operation, wherein the business operation log query request includes an operation object; An acquisition module 720 is used to acquire business operation log data associated with the operation object queried by the log system based on the operation object; The display module 730 is used to display the queried business operation log data.
[0107] As an optional embodiment, the apparatus 700 is further configured to: In response to the rollback operation of the displayed target business operation log data, sending a business configuration file acquisition request to the business configuration server, wherein the business configuration file acquisition request carries a target version number; Obtaining a target service configuration file associated with the target version number that is queried by the service configuration server based on the target version number; Page rendering is performed based on the target business configuration file to obtain a target business configuration page.
[0108] As an optional embodiment, the displaying of the queried business operation log data includes: The queried business operation log data is displayed in a list format.
[0109] Embodiment 5 Figure 8The hardware architecture diagram of a computer device 10000 suitable for implementing a method for generating or querying a business operation log according to the fifth embodiment of the present application is schematically shown. In some embodiments, the computer device 10000 may be a terminal device such as a smart phone, a wearable device, a tablet computer, a personal computer, a vehicle-mounted terminal, a game console, a virtual device, a workbench, a digital assistant, a set-top box, a robot, etc. In other embodiments, the computer device 10000 may be a rack server, a blade server, a tower server, or a cabinet server (including an independent server, or a server cluster composed of multiple servers), etc. Figure 8 As shown, the computer device 10000 includes but is not limited to: a memory 10010, a processor 10020, and a network interface 10030 that can communicate with each other through a system bus. Among them: The memory 10010 includes at least one type of computer-readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (such as SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 10010 can be an internal storage module of the computer device 10000, such as a hard disk or memory of the computer device 10000. In other embodiments, the memory 10010 can also be an external storage device of the computer device 10000, such as a plug-in hard disk equipped on the computer device 10000, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory 10010 can also include both the internal storage module of the computer device 10000 and its external storage device. In this embodiment, the memory 10010 is generally used to store the operating system and various application software installed in the computer device 10000, such as program codes of the business operation log generation or query method, etc. In addition, the memory 10010 can also be used to temporarily store various data that have been output or will be output.
[0110] In some embodiments, the processor 10020 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other chips. The processor 10020 is generally used to control the overall operation of the computer device 10000, such as performing control and processing related to data interaction or communication with the computer device 10000. In this embodiment, the processor 10020 is used to run the program code stored in the memory 10010 or process data.
[0111] The network interface 10030 may include a wireless network interface or a wired network interface, and the network interface 10030 is generally used to establish a communication link between the computer device 10000 and other computer devices. For example, the network interface 10030 is used to connect the computer device 10000 to an external terminal through a network, and to establish a data transmission channel and a communication link between the computer device 10000 and the external terminal. The network may be a wireless or wired network such as an intranet, the Internet, the Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), 4G network, 5G network, Bluetooth, Wi-Fi, etc.
[0112] It should be pointed out that Figure 8 Only a computer device having components 10010 - 10030 is shown, but it should be understood that implementation of all of the components shown is not a requirement, and more or fewer components may alternatively be implemented.
[0113] In this embodiment, the business operation log generation or query method stored in the memory 10010 can also be divided into one or more program modules and executed by one or more processors (such as processor 10020) to complete the embodiment of the present application.
[0114] Embodiment 6 An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, wherein when the computer program is executed by a processor, the steps of the business operation log generation or query method in the embodiment are implemented.
[0115] In this embodiment, the computer-readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the computer-readable storage medium may be an internal storage unit of a computer device, such as a hard disk or memory of the computer device. In other embodiments, the computer-readable storage medium may also be an external storage device of a computer device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the computer device. Of course, the computer-readable storage medium may also include both the internal storage unit of the computer device and its external storage device. In this embodiment, the computer-readable storage medium is generally used to store an operating system and various application software installed on the computer device, such as the program code of the business operation log generation or query method in the embodiment. In addition, the computer-readable storage medium may also be used to temporarily store various types of data that have been output or are to be output.
[0116] Embodiment 7 An embodiment of the present application also provides a computer program product, including a computer program, which implements the method in the above embodiment when executed by a processor.
[0117] Obviously, those skilled in the art should understand that the modules or steps of the above-mentioned embodiments of the present application can be implemented by general-purpose computer devices, they can be concentrated on a single computer device, or distributed on a network composed of multiple computer devices, optionally, they can be implemented by executable program codes of computer devices, so that they can be stored in a storage device and executed by the computer device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.
[0118] It should be noted that the above are only preferred embodiments of the present application, and the patent protection scope of the present application is not limited thereto. Any equivalent structure or equivalent process transformation made using the contents of the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for generating a business operation log, characterized in that: Used in a service configuration server, the method includes: Receive a business operation request for a business configuration file sent by the business middle station, wherein the business operation request carries business operation information; Performing a corresponding business operation on the business configuration file based on the business operation request, generating a target business configuration file, and storing the target business configuration file; Configure a corresponding target version number based on the target service configuration file; The business operation information and the target version number are reported to a log system, so that the log system organizes the business operation information and the target version number into business operation log data in a preset data format, and stores the business operation log data.
2. The method according to claim 1, characterized in that The method further comprises: In the event that the corresponding business operation fails to be executed, the reason for the failure of the business operation is obtained; The reason for the failure of the business operation and the business operation information are reported to the log system, so that the log system organizes the business operation information and the reason for the failure of the business operation into business operation log data in a preset data format, and stores the business operation log data.
3. The method according to claim 1, characterized in that The reporting the business operation information and the target version number to the log system includes: The business operation information and the target version number are reported to the log system in an asynchronous manner.
4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: The execution result of the corresponding business operation is returned to the business middle station so that the business middle station displays the execution result.
5. A business operation log query method, characterized in that: For use in business operations, the method includes: In response to the business operation log query operation, sending a business operation log query request to the log system, wherein the business operation log query request includes an operation object; Acquire business operation log data associated with the operation object queried by the log system based on the operation object; Display the queried business operation log data.
6. The method according to claim 5, characterized in that The method further comprises: In response to the rollback operation of the displayed target business operation log data, a business configuration file acquisition request is sent to the business configuration server, wherein the business configuration file acquisition request carries a target version number; Obtaining a target service configuration file associated with the target version number that is queried by the service configuration server based on the target version number; Page rendering is performed based on the target business configuration file to obtain a target business configuration page.
7. The method according to claim 5, characterized in that The business operation log data obtained by displaying and querying includes: The queried business operation log data is displayed in a list format.
8. A business operation log generating device, characterized in that: Used in a service configuration server, the device comprises: A receiving module, used to receive a business operation request of a business configuration file sent by the business middle station, wherein the business operation request carries business operation information; A processing module, configured to perform a corresponding business operation on the business configuration file based on the business operation request, generate a target business configuration file, and store the target business configuration file; A configuration module, used to configure a corresponding target version number based on the target service configuration file; The reporting module is used to report the business operation information and the target version number to the log system, so that the log system can organize the business operation information and the target version number into business operation log data in a preset data format and store the business operation log data.
9. A business operation log query device, characterized in that: For use in a business platform, the device includes: A response module, configured to send a business operation log query request to a log system in response to a business operation log query operation, wherein the business operation log query request includes an operation object; An acquisition module, used to acquire business operation log data associated with the operation object queried by the log system based on the operation object; The display module is used to display the queried business operation log data.
10. A computer device, characterized in that: include: at least one processor; and a memory communicatively connected to the at least one processor; wherein: The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.
12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.