WO2019136812A1 - Electronic device, data calling log generation and query method, and storage medium - Google Patents

Electronic device, data calling log generation and query method, and storage medium Download PDF

Info

Publication number
WO2019136812A1
WO2019136812A1 PCT/CN2018/077629 CN2018077629W WO2019136812A1 WO 2019136812 A1 WO2019136812 A1 WO 2019136812A1 CN 2018077629 W CN2018077629 W CN 2018077629W WO 2019136812 A1 WO2019136812 A1 WO 2019136812A1
Authority
WO
WIPO (PCT)
Prior art keywords
log
identification code
time
call
identifier
Prior art date
Application number
PCT/CN2018/077629
Other languages
French (fr)
Chinese (zh)
Inventor
王丽
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019136812A1 publication Critical patent/WO2019136812A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/1805Append-only file systems, e.g. using logs or journals to store data
    • G06F16/1815Journaling file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/1734Details of monitoring file system events, e.g. by the use of hooks, filter drivers, logs

Definitions

  • the present application relates to the field of mutual data management, and in particular, to an electronic device, a data call log generation and query method, and a storage medium.
  • the enterprise service management monitoring platform monitors the business call data of all business departments within the company in real time. Once abnormal data is found, it is necessary to query the call log of the abnormal data in time and perform exception processing according to the called call log.
  • the enterprise service governance monitoring platform locates and indexes the database by using the keyword and the storage time of the data to be queried (in minutes) to locate the call log of the abnormal data. This method of calling the log requires a minute of time. When the amount of data to be called is large, the response time of the query page is likely to occur, and even the failure of the query call log may occur, resulting in inefficient processing of the exception processing and wasting a lot of time.
  • the present application provides an electronic device, a data generation log generation and query method, and a storage medium, which can improve the efficiency of data query.
  • a first aspect of the present application provides an electronic device, where the electronic device includes a memory and a processor connected to the memory, and the processor is configured to execute a data call log stored on the memory. Generating and querying a program that implements the following steps when the data call log generation and query program is executed by the processor:
  • A1 After receiving the request for invoking data sent by the service system, generating, according to the predetermined call log identifier generation rule, a log identifier corresponding to the call log generated when the request call data is generated;
  • the second aspect of the present application further provides a data call log generation and query method, where the method includes the following steps:
  • the third aspect of the present application further provides a computer readable storage medium, where the computer readable storage medium stores a data call log generation and query program, and the data call log generation and query program may be Executed by at least one processor to cause the at least one processor to perform the steps of the data call log generation and query method as described above.
  • the electronic device, the data call log generation and query method and the storage medium proposed by the present application generate rules according to a predetermined call log identification code after receiving a request for calling data sent by the service system. Generating a log identifier corresponding to the call log generated when the data is invoked in response to the request; generating a mapping relationship between the call log and the log identifier, and storing the mapping relationship in a predetermined database. It ensures that the query response time is increased from the minute to the second by matching the log identification code when the query data is called, which improves the efficiency of data query and reduces the time of exception processing.
  • FIG. 2 is a schematic diagram of a program module of a data call log generation and query procedure in an embodiment of an electronic device of the present application
  • FIG. 3 is a flowchart of an implementation of an embodiment of a data call log generation and query method of the present application
  • FIG. 4 is a flow chart showing an implementation of another embodiment of the data call log generation and query method of the present application.
  • the electronic device 10 may include, but is not limited to, the memory 11, the processor 12, and the network interface 13 being communicably connected to each other through the communication bus 14. It should be noted that FIG. 1 only shows the electronic device 10 having the components 11-14, but it should be understood that not all illustrated components may be implemented, and more or fewer components may be implemented instead.
  • the memory 11 includes at least one type of computer readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (for example, SD or DX memory, etc.), a random access memory (RAM), and a static memory.
  • the memory 11 may be an internal storage unit of the electronic device 10, such as a hard disk or memory of the electronic device 10.
  • the memory 11 may also be an outsourced storage device of the electronic device 10, such as a plug-in hard disk equipped on the electronic device 10, a smart memory card (SMC), and a secure digital (Secure Digital, SD) ) cards, flash cards, etc.
  • the memory 11 can also include both an internal storage unit of the electronic device 10 and an outsourced storage device thereof.
  • the memory 11 is generally used to store an operating system installed on the electronic device 10 and various types of application software, such as a data call log generation and query program. Further, the memory 11 can also be used to temporarily store various types of data that have been output or are to be output.
  • Processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments.
  • the processor 12 is typically used to control the overall operation of the electronic device 10.
  • the processor 12 is configured to run program code or processing data stored in the memory 11, such as a running data call log generation and query program.
  • Network interface 13 may include a wireless network interface or a wired network interface, which is typically used to establish a communication connection between electronic device 10 and other electronic devices.
  • FIG 1 shows only the electronic device 10 with components 11-14 and data call log generation and query procedures, but it should be understood that not all illustrated components may be implemented, alternative implementations may be more or less Component.
  • the electronic device 10 may further include a user interface (not shown in FIG. 1), and the user interface may include a display, an input unit such as a keyboard, wherein the user interface may further include a standard wired interface, a wireless interface, and the like.
  • the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED touch device, or the like. Further, the display may also be referred to as a display screen or display unit for displaying information processed in the electronic device 10 and a user interface for displaying visualizations.
  • the request for invoking data sent by the service system may be triggered by the related staff by clicking an operation interface provided by the service system, and after receiving the request for calling the data, generating according to the predetermined log identification code.
  • the rule generates a call log identifier corresponding to the request.
  • the first current time is in units of seconds.
  • the log identification code includes a system identification code, a second time, and a second request quantity
  • the step C includes: after receiving the call log query instruction with the log identifier parameter sent by the user terminal, searching for the inclusion and the information from the predetermined database. a log identifier matching the log identifier parameter, where the log identifier parameter includes a system identification code and time information;
  • the step C includes: after receiving the call log query command with the log identifier parameter sent by the user terminal, searching from the predetermined database includes the parameter of the log identifier a matching log identifier, the log identifier parameter including a system identification code and time information;
  • the search is performed from the predetermined data.
  • the outbound and time range information is 15:37 on October 12, 2017 - 15:38 on October 12, 2017, and the system identification code is ESG1 matching log ID ESG12017101215:370120 (indicating October 12, 2017) 15:37, the first request received 20 requests), ESG12017101215:372352 (representing the number of 52 requests received at 15:37 on October 12, 2017, 23rd), ESG12017101215:374434 (indicating October 2017) At 15:37 on the 12th, the 44th request received 34 requests), ESG12017101215:380324 (representing the number of 24 requests received at 15:38 on October 12, 2017), ESG12017101215:383355 (indicating 2017) At 15:38 on October 12, the 33rd request received 55 requests), ESG12017101215:385638 (indicating that on October
  • the electronic device proposed by the present application generates a call log corresponding to the call data generated in response to the request according to a predetermined call log identification code generation rule after receiving the request for calling data sent by the service system.
  • a log identifier generating a mapping relationship between the call log and the log identifier, storing the mapping relationship in a predetermined database; receiving a call log with a log identifier parameter sent by the user end
  • the log identifier corresponding to the log identifier parameter and the call log are determined according to the mapping relationship between the pre-stored call log and the log identifier, and the determined call log is returned to the client. It ensures that the query response time is increased from the minute to the second by matching the log identification code when the query data is called, which improves the efficiency of data query and reduces the time of exception processing.
  • FIG. 2 is a schematic diagram of a program module for data call log generation and query procedure in an embodiment of the electronic device of the present application.
  • the data call log generation and query program may be divided into a generation module 201, a storage module 202, and a determination module 203 according to different functions implemented by the respective parts.
  • the program module referred to in the present application refers to a series of computer program instruction segments capable of performing a specific function, which is more suitable than the program to describe the execution process of the data call log generation and query program in the electronic device 10.
  • the functions or operation steps implemented by the generating module 201, the storage module 202, and the determining module 203 are all similar to the above, and are not described in detail herein, for example, where:
  • the generating module 201 is configured to: after receiving the request for calling data sent by the service system, generate a log identifier corresponding to the call log generated when the request is invoked according to the predetermined call log identifier generation rule;
  • the determining module 203 is configured to: after receiving the call log query instruction with the log identifier parameter sent by the user end, determine the parameter of the log identifier according to the mapping relationship between the pre-stored call log and the log identifier Corresponding log identifier and call log, and return the determined call log to the client.
  • the present application also provides a data call log generation and query method.
  • FIG. 3 it is an implementation flowchart of an embodiment of the data call log generation and query method of the present application. As shown in FIG. 3, the data is called.
  • the log generation and query method includes the following steps:
  • Step S301 after receiving the request for invoking data sent by the service system, generating a log identifier corresponding to the call log generated when the request is invoked according to the predetermined call log identifier generation rule;
  • Step S302 generating a mapping relationship between the call log and the log identification code, and storing the mapping relationship in a predetermined database
  • the request for invoking data sent by the service system may be triggered by the related staff by clicking an operation interface provided by the service system, and after receiving the request for calling the data, generating according to the predetermined log identification code.
  • the rule generates a call log identifier corresponding to the request.
  • the predetermined call log identifier generation rule may be, for example, a first time to obtain a request for receiving the call data, a predetermined system identification code corresponding to the service system; and statistics at the first time The first number of requests received within the call data; generating a log identification code including the first time, the system identification code, and the first number of requests.
  • the first current time is in units of seconds.
  • the predetermined call log identifier generation rule may be, for example, a second time to obtain a request for receiving the call data, a predetermined system identification code corresponding to the service system, and the second time in minutes Calculating, in units, a second request quantity of the call data received in the second time of the second time; generating a call including the second time, the preset type coded information, and the second request quantity Log ID.
  • step S303 includes the following steps:
  • Step S402 calculating, according to the first request quantity included in the log identification code and the number of data displayed on each page of the predetermined user interface, the number of pages that the user interface needs to display and the logs respectively included in each page of the page. Identifier;
  • Step S403 Acquire a call log corresponding to the log identifier included in each page according to the mapping relationship between the log identifier and the call log, and return the obtained call log to the client.
  • ESG12017101215:372352 (representing the number of 52 requests received at 15:37 on October 12, 2017 at 23:37), ESG12017101215:374434 (representing the number of 34 requests received at 44:37 on October 12, 2017, 44 seconds) ), ESG12017101215:380324 (representing the number of 24 requests received at 15:38 on October 12, 2017, 3rd), ESG12017101215:383355 (indicating that on October 12, 2017, 15:38, 33rd, received 55) The number of requests), ESG12017101215:385638 (representing 38 requests for the number of requests received at 15:38 on October 12, 2017), in this embodiment, the predetermined number of data displayed per page of the user interface is 30.
  • the number of pages that need to be displayed on the user interface is 8, and the log identifiers contained in the first page are ESG12017101215:370120 and ESG12017101215:372310 (indicating that the first page contains the identification code at 15 o'clock on October 12, 2017)
  • the number of 20 requests received in the first second of 37 minutes and the number of 10 requests received in the 23rd second of 15:37 on October 12, 2017), and so on, can calculate each page to be displayed on the user interface.
  • the log identifiers contained in the pages It can be seen from the embodiment that the stored log identifier is in seconds, so the response time of the query page can be increased from the minute level to the second level, and the implementation process is simple.
  • the present application further provides a computer readable storage medium, on which the data call log generation and query program is stored, and the data call log generation and query program is executed by the processor to:
  • the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better.
  • Implementation Based on such understanding, the technical solution of the present application, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present application.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Disclosed are an electronic device, a data calling log generation and query method, and a storage medium. The method involves: after a data calling request sent by a service system is received, generating, according to a predetermined calling log identification code generation rule, a log identification code corresponding to a calling log generated when the data calling request is responded to, generating a mapping relationship between the calling log and the log identification code, and storing the mapping relationship in a predetermined database; and after a calling log query instruction carrying a log identification code parameter and sent by a user side is received, determining, according to the pre-stored mapping relationship between the calling log and the log identification code, a log identification code and a calling log corresponding to the log identification code parameter, and returning the determined calling log to the user side. The present invention improves data query efficiency, and reduces an exception handling time.

Description

电子装置、数据调用日志生成及查询方法及存储介质Electronic device, data call log generation and query method and storage medium
本申请要求于2018年1月10日提交中国专利局、申请号为201810024107.8,发明名称为“电子装置、数据调用日志生成及查询方法及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on January 10, 2018, the Chinese Patent Office, the application number is 201810024107.8, and the invention name is "electronic device, data call log generation and query method and storage medium". The citations are incorporated herein by reference.
技术领域Technical field
本申请涉互数据管理领域,尤其涉及一种电子装置、数据调用日志生成及查询方法及存储介质。The present application relates to the field of mutual data management, and in particular, to an electronic device, a data call log generation and query method, and a storage medium.
背景技术Background technique
企业服务治理监控平台实时监控公司内部所有业务部门的业务调用数据,一旦发现有异常数据,则需要及时查询该异常数据的调用日志并根据查询到的调用日志进行异常处理。目前,企业服务治理监控平台通过关键词及待查询数据的存储时间(以分钟为单位)对数据库进行分区加索引来定位异常数据的调用日志,这种定位调用日志的方式需要耗费分钟级的时间,且在调用数据量较大时容易出现查询页面响应超时,甚至会出现查询调用日志失败的现象,导致处理异常处理效率低下,浪费大量的时间。The enterprise service management monitoring platform monitors the business call data of all business departments within the company in real time. Once abnormal data is found, it is necessary to query the call log of the abnormal data in time and perform exception processing according to the called call log. At present, the enterprise service governance monitoring platform locates and indexes the database by using the keyword and the storage time of the data to be queried (in minutes) to locate the call log of the abnormal data. This method of calling the log requires a minute of time. When the amount of data to be called is large, the response time of the query page is likely to occur, and even the failure of the query call log may occur, resulting in inefficient processing of the exception processing and wasting a lot of time.
发明内容Summary of the invention
有鉴于此,本申请提出一种电子装置、数据生成日志生成及查询方法及存储介质,能够提高数据查询的效率。In view of this, the present application provides an electronic device, a data generation log generation and query method, and a storage medium, which can improve the efficiency of data query.
首先,为实现上述目的,本申请第一方面提出一种电子装置,所述电子装置包括存储器、及与所述存储器连接的处理器,所述处理器用于执行所述存储器上存储的数据调用日志生成及查询程序,所述数据调用日志生成及查询程序被所述处理器执行时实现如下步骤:First, in order to achieve the above object, a first aspect of the present application provides an electronic device, where the electronic device includes a memory and a processor connected to the memory, and the processor is configured to execute a data call log stored on the memory. Generating and querying a program that implements the following steps when the data call log generation and query program is executed by the processor:
A1、在收到业务系统发出的调用数据的请求后,根据预先确定的调用日志识别码生成规则生成响应所述请求调用数据时产生的调用日志对应的日志识别码;A1. After receiving the request for invoking data sent by the service system, generating, according to the predetermined call log identifier generation rule, a log identifier corresponding to the call log generated when the request call data is generated;
A2、生成所述调用日志与日志识别码之间的映射关系,将所述映射关系存入预先确定的数据库中;A2. Generate a mapping relationship between the call log and the log identifier, and store the mapping relationship in a predetermined database.
A3、在收到用户端发送来的带有日志识别码参数的调用日志查询指令后,根据预先存储的调用日志与日志识别码之间的映射关系,确定出与该日志识别码参数对应的日志识别码及调用日志,并将确定出的调用日志返回给该用户端。。A3. After receiving the call log query command with the log identifier parameter sent by the user end, determining a log corresponding to the log identifier parameter according to the mapping relationship between the pre-stored call log and the log identifier The identification code and the call log are returned, and the determined call log is returned to the client. .
此外,为实现上述目的,本申请第二方面还提出一种数据调用日志生成及查询方法,所述方法包括如下步骤:In addition, to achieve the above object, the second aspect of the present application further provides a data call log generation and query method, where the method includes the following steps:
S1、在收到业务系统发出的调用数据的请求后,根据预先确定的调用日志识别码生成规则生成响应所述请求调用数据时产生的调用日志对应的日志识别码;S1. After receiving the request for invoking data sent by the service system, generating a log identifier corresponding to the call log generated when the request is invoked according to the predetermined call log identifier generation rule;
S2、生成所述调用日志与日志识别码之间的映射关系,将所述映射关系存入预先确定的数据库中;S2. Generate a mapping relationship between the call log and the log identifier, and store the mapping relationship in a predetermined database.
S3、在收到用户端发送来的带有日志识别码参数的调用日志查询指令后,根据预先存储的调用日志与日志识别码之间的映射关系,确定出与该日志识别码参数对应的日志识别码及调用日志,并将确定出的调用日志返回给该用户端。S3. After receiving the call log query command with the log identifier parameter sent by the user end, determining a log corresponding to the log identifier parameter according to the mapping relationship between the pre-stored call log and the log identifier The identification code and the call log are returned, and the determined call log is returned to the client.
进一步地,为实现上述目的,本申请第三方面还提供一种计算机可读存储介质,所述计算机可读存储介质存储有数据调用日志生成及查询程序,所述数据调用日志生成及查询程序可被至少一个处理器执行,以使所述至少一个处理器执行如上述的数据调用日志生成及查询方法的步骤。Further, in order to achieve the above object, the third aspect of the present application further provides a computer readable storage medium, where the computer readable storage medium stores a data call log generation and query program, and the data call log generation and query program may be Executed by at least one processor to cause the at least one processor to perform the steps of the data call log generation and query method as described above.
相较于现有技术,本申请所提出的电子装置、数据调用日志生成及查询方法及存储介质,通过在收到业务系统发出的调用数据的请求后,根据预先 确定的调用日志识别码生成规则生成响应所述请求调用数据时产生的调用日志对应的日志识别码;生成所述调用日志与日志识别码之间的映射关系,将所述映射关系存入预先确定的数据库中。保证了查询数据调用日志时通过与日志识别码进行匹配的方式将查询响应时间从分钟级提高到秒级,提高了数据查询的效率,降低了异常处理的时间。Compared with the prior art, the electronic device, the data call log generation and query method and the storage medium proposed by the present application generate rules according to a predetermined call log identification code after receiving a request for calling data sent by the service system. Generating a log identifier corresponding to the call log generated when the data is invoked in response to the request; generating a mapping relationship between the call log and the log identifier, and storing the mapping relationship in a predetermined database. It ensures that the query response time is increased from the minute to the second by matching the log identification code when the query data is called, which improves the efficiency of data query and reduces the time of exception processing.
附图说明DRAWINGS
图1是本申请提出的电子装置一可选的硬件架构的示意图;1 is a schematic diagram of an optional hardware architecture of an electronic device proposed by the present application;
图2是本申请电子装置一实施例中数据调用日志生成及查询程序的程序模块示意图;2 is a schematic diagram of a program module of a data call log generation and query procedure in an embodiment of an electronic device of the present application;
图3是本申请数据调用日志生成及查询方法一实施例的实施流程图;3 is a flowchart of an implementation of an embodiment of a data call log generation and query method of the present application;
图4是本申请数据调用日志生成及查询方法另一实施例的实施流程图。4 is a flow chart showing an implementation of another embodiment of the data call log generation and query method of the present application.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features and advantages of the present application will be further described with reference to the accompanying drawings.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the objects, technical solutions, and advantages of the present application more comprehensible, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
需要说明的是,在本申请中涉及“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实 现时应当认为这种技术方案的结合不存在,也不在本申请要求的保护范围之内。It should be noted that the descriptions of "first", "second" and the like in the present application are for the purpose of description only, and are not to be construed as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. . Thus, features defining "first" or "second" may include at least one of the features, either explicitly or implicitly. In addition, the technical solutions between the various embodiments may be combined with each other, but must be based on the realization of those skilled in the art, and when the combination of the technical solutions is contradictory or impossible to implement, it should be considered that the combination of the technical solutions does not exist. Nor is it within the scope of protection required by this application.
参阅图1所示,是本申请提出的电子装置一可选的硬件架构示意图。本实施例中,电子装置10可包括,但不仅限于,可通过通信总线14相互通信连接存储器11、处理器12、网络接口13。需要指出的是,图1仅示出了具有组件11-14的电子装置10,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。Referring to FIG. 1 , it is an optional hardware architecture diagram of the electronic device proposed by the present application. In this embodiment, the electronic device 10 may include, but is not limited to, the memory 11, the processor 12, and the network interface 13 being communicably connected to each other through the communication bus 14. It should be noted that FIG. 1 only shows the electronic device 10 having the components 11-14, but it should be understood that not all illustrated components may be implemented, and more or fewer components may be implemented instead.
其中,存储器11至少包括一种类型的计算机可读存储介质,计算机可读存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等。在一些实施例中,存储器11可以是电子装置10的内部存储单元,例如电子装置10的硬盘或内存。在另一些实施例中,存储器11也可以是电子装置10的外包存储设备,例如电子装置10上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。当然,存储器11还可以既包括电子装置10的内部存储单元也包括其外包存储设备。本实施例中,存储器11通常用于存储安装于电子装置10的操作系统和各类应用软件,例如数据调用日志生成及查询程序等。此外,存储器11还可以用于暂时地存储已经输出或者将要输出的各类数据。The memory 11 includes at least one type of computer readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (for example, SD or DX memory, etc.), a random access memory (RAM), and a static memory. 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, and the like. In some embodiments, the memory 11 may be an internal storage unit of the electronic device 10, such as a hard disk or memory of the electronic device 10. In other embodiments, the memory 11 may also be an outsourced storage device of the electronic device 10, such as a plug-in hard disk equipped on the electronic device 10, a smart memory card (SMC), and a secure digital (Secure Digital, SD) ) cards, flash cards, etc. Of course, the memory 11 can also include both an internal storage unit of the electronic device 10 and an outsourced storage device thereof. In this embodiment, the memory 11 is generally used to store an operating system installed on the electronic device 10 and various types of application software, such as a data call log generation and query program. Further, the memory 11 can also be used to temporarily store various types of data that have been output or are to be output.
处理器12在一些实施例中可以是中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器、或其他数据处理芯片。处理器12通常用于控制电子装置10的总体操作。本实施例中,处理器12用于运行存储器11中存储的程序代码或者处理数据,例如运行的数据调用日志生成及查询程序等。 Processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments. The processor 12 is typically used to control the overall operation of the electronic device 10. In this embodiment, the processor 12 is configured to run program code or processing data stored in the memory 11, such as a running data call log generation and query program.
网络接口13可包括无线网络接口或有线网络接口,网络接口13通常用 于在电子装置10与其他电子设备之间建立通信连接。 Network interface 13 may include a wireless network interface or a wired network interface, which is typically used to establish a communication connection between electronic device 10 and other electronic devices.
通信总线14用于实现组件11-13之间的通信连接。 Communication bus 14 is used to implement a communication connection between components 11-13.
图1仅示出了具有组件11-14以及数据调用日志生成及查询程序的电子装置10,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。Figure 1 shows only the electronic device 10 with components 11-14 and data call log generation and query procedures, but it should be understood that not all illustrated components may be implemented, alternative implementations may be more or less Component.
可选地,电子装置10还可以包括用户接口(图1中未示出),用户接口可以包括显示器、输入单元比如键盘,其中,用户接口还可以包括标准的有线接口、无线接口等。Optionally, the electronic device 10 may further include a user interface (not shown in FIG. 1), and the user interface may include a display, an input unit such as a keyboard, wherein the user interface may further include a standard wired interface, a wireless interface, and the like.
可选地,在一些实施例中,显示器可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED触摸器等。进一步地,显示器也可称为显示屏或显示单元,用于显示在电子装置10中处理信息以及用于显示可视化的用户界面。Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED touch device, or the like. Further, the display may also be referred to as a display screen or display unit for displaying information processed in the electronic device 10 and a user interface for displaying visualizations.
在一实施例中,存储器11中存储的数据调用日志生成及查询程序被处理器12执行时,实现如下操作:In an embodiment, when the data call log generation and query program stored in the memory 11 is executed by the processor 12, the following operations are implemented:
A、在收到业务系统发出的调用数据的请求后,根据预先确定的调用日志识别码生成规则生成响应所述请求调用数据时产生的调用日志对应的日志识别码;A. After receiving the request for invoking data sent by the service system, generating a log identifier corresponding to the call log generated when the request is invoked according to the predetermined call log identifier generation rule;
B、生成所述调用日志与日志识别码之间的映射关系,将所述映射关系存入预先确定的数据库中;B. Generate a mapping relationship between the call log and the log identifier, and store the mapping relationship in a predetermined database.
C、在收到用户端发送来的带有日志识别码参数的调用日志查询指令后,根据预先存储的调用日志与日志识别码之间的映射关系,确定出与该日志识别码参数对应的日志识别码及调用日志,并将确定出的调用日志返回给该用户端。。C. After receiving the call log query instruction with the log identifier parameter sent by the user end, determining a log corresponding to the log identifier parameter according to the mapping relationship between the pre-stored call log and the log identifier The identification code and the call log are returned, and the determined call log is returned to the client. .
本实施例中,所述业务系统发出的调用数据的请求可以是相关的工作人员通过点击业务系统提供的操作界面触发的,在接收到该调用数据的请求后,根据预先确定的日志识别码生成规则生成所述请求对应的调用日志识别码。In this embodiment, the request for invoking data sent by the service system may be triggered by the related staff by clicking an operation interface provided by the service system, and after receiving the request for calling the data, generating according to the predetermined log identification code. The rule generates a call log identifier corresponding to the request.
本实施例中,所述日志识别码包括系统识别编码、第一时间、及第一请求数量;In this embodiment, the log identification code includes a system identification code, a first time, and a first request quantity;
所述预先确定的调用日志识别码生成规则可以是,例如,获取接收到所述调用数据的请求的第一时间、预先确定的所述业务系统对应的系统识别编码;统计在所述第一时间内接收到的调用数据的第一请求数量;生成包含所述第一时间、所述系统识别编码、以及所述第一请求数量的日志识别码。The predetermined call log identifier generation rule may be, for example, a first time to obtain a request for receiving the call data, a predetermined system identification code corresponding to the service system; and statistics at the first time The first number of requests received within the call data; generating a log identification code including the first time, the system identification code, and the first number of requests.
本实施例中,所述第一当前时间以秒为单位。In this embodiment, the first current time is in units of seconds.
本申请的其他实施例中,,或者所述日志识别编码包括系统识别编码、第二时间、及第二请求数量;In other embodiments of the present application, or the log identification code includes a system identification code, a second time, and a second request quantity;
所述预先确定的调用日志识别码生成规则可以是,例如,获取接收到所述调用数据的请求的第二时间、预先确定的所述业务系统对应的系统识别编码,所述第二时间以分钟为单位,分别统计在所述第二时间的每秒内接收到的调用数据的第二请求数量;生成包含所述第二时间、所述预设类型编码信息、所述第二请求数量的调用日志识别码。The predetermined call log identifier generation rule may be, for example, a second time to obtain a request for receiving the call data, a predetermined system identification code corresponding to the service system, and the second time in minutes Calculating, in units, a second request quantity of the call data received in the second time of the second time; generating a call including the second time, the preset type coded information, and the second request quantity Log ID.
本申请的其他实施例中,所述步骤C包括:在收到用户端发送来的带有日志识别码参数的调用日志查询指令后,从所述预先确定的数据库中,搜素出包括与所述日志识别码参数相匹配的日志识别码,所述日志识别码参数包括系统识别编码及时间信息;In other embodiments of the present application, the step C includes: after receiving the call log query instruction with the log identifier parameter sent by the user terminal, searching for the inclusion and the information from the predetermined database. a log identifier matching the log identifier parameter, where the log identifier parameter includes a system identification code and time information;
根据所述日志识别码包含的所述第一请求数量与预先确定的用户界面每页显示的数据条数,计算出所述用户界面需要显示的页面数以及每页页面分别包含的日志识别码;Calculating, according to the first request quantity included in the log identifier and the number of data displayed on each page of the predetermined user interface, the number of pages that the user interface needs to display and the log identification code respectively included in each page of the page;
根据所述日志识别码与所述调用日志的映射关系,分别获取每页页面包含的日志识别码对应的调用日志,将获取的调用日志返回给该客户端。And obtaining, according to the mapping relationship between the log identifier and the call log, a call log corresponding to the log identifier included in each page, and returning the obtained call log to the client.
或者,所述步骤C包括:在收到用户端发送来的带有日志识别码参数的调用日志查询指令后,从所述预先确定的数据库中,搜素出包括与所述日志 识别码参数相匹配的日志识别码,所述日志识别码参数包括系统识别编码及时间信息;Alternatively, the step C includes: after receiving the call log query command with the log identifier parameter sent by the user terminal, searching from the predetermined database includes the parameter of the log identifier a matching log identifier, the log identifier parameter including a system identification code and time information;
根据所述日志识别码包含的所述第二请求数量与预先确定的用户界面每页显示的数据条数,计算出所述用户界面需要显示的页面数以及每页页面分别包含的日志识别码;Calculating the number of pages that the user interface needs to display and the log identification code respectively included in each page according to the second request quantity included in the log identifier and the number of data displayed on each page of the predetermined user interface;
根据所述日志识别码与所述调用日志的映射关系,分别获取每页页面包含的日志识别码对应的调用日志,将获取的调用日志返回给该客户端。And obtaining, according to the mapping relationship between the log identifier and the call log, a call log corresponding to the log identifier included in each page, and returning the obtained call log to the client.
例如,在一实施方式中,收到查询2017年10月12日15:37分-2017年10月12日15:38分,ESG1的调用日志的指令后,从预先确定的数据中,搜素出与时间范围信息为2017年10月12日15:37分-2017年10月12日15:38分以及系统识别编码为ESG1相匹配的日志识别码ESG12017101215:370120(表示2017年10月12日15点37分第1秒收到20条请求数量)、ESG12017101215:372352(表示2017年10月12日15点37分第23秒收到52条请求数量)、ESG12017101215:374434(表示2017年10月12日15点37分第44秒收到34条请求数量)、ESG12017101215:380324(表示2017年10月12日15点38分第3秒收到24条请求数量)、ESG12017101215:383355(表示2017年10月12日15点38分第33秒收到55条请求数量)、ESG12017101215:385638(表示2017年10月12日15点38分第56秒收到38条请求数量),在本实施例中,预先确定的用户界面每页显示的数据条数为30条,则计算出用户界面需要显示的页面数为8,且第一页包含的日志识别码为ESG12017101215:370120及ESG12017101215:372310(表示第一页包含的识别码为2017年10月12日15点37分第1秒收到的20条请求数量及2017年10月12日15点37分第23秒收到的10条请求数量),依次类推,可计算出所述用户界面需显示的每页页面分别包含的日志识别码。由本实施例可知,由于存储的日志识别码是以秒为单位的,所以本申请可以将查询页面的响应时间由分钟级别提高到秒级,实现过程简单。For example, in one embodiment, after receiving a query from 15:37 on October 12, 2017 to 15:38 on October 12, 2017, after the instruction of the log of ESG1 is called, the search is performed from the predetermined data. The outbound and time range information is 15:37 on October 12, 2017 - 15:38 on October 12, 2017, and the system identification code is ESG1 matching log ID ESG12017101215:370120 (indicating October 12, 2017) 15:37, the first request received 20 requests), ESG12017101215:372352 (representing the number of 52 requests received at 15:37 on October 12, 2017, 23rd), ESG12017101215:374434 (indicating October 2017) At 15:37 on the 12th, the 44th request received 34 requests), ESG12017101215:380324 (representing the number of 24 requests received at 15:38 on October 12, 2017), ESG12017101215:383355 (indicating 2017) At 15:38 on October 12, the 33rd request received 55 requests), ESG12017101215:385638 (indicating that on October 12, 2017, 15:38, 56th, received 38 requests), in this embodiment The predetermined number of data displayed on each page of the user interface is 30, and the number of pages to be displayed on the user interface is calculated to be 8, and the first page package The log IDs are ESG12017101215:370120 and ESG12017101215:372310 (indicating that the first page contains an identifier of 20 requests received on October 12, 2017 at 15:37, 1st second and 15 October 2017 15 Point 37 points and the number of 10 requests received in the 23rd second, and so on, can calculate the log identification code respectively included in each page of the user interface to be displayed. It can be seen from the embodiment that the stored log identifier is in seconds, so the response time of the query page can be increased from the minute level to the second level, and the implementation process is simple.
由上述事实施例可知,本申请提出的电子装置通过在收到业务系统发出的调用数据的请求后,根据预先确定的调用日志识别码生成规则生成响应所述请求调用数据时产生的调用日志对应的日志识别码;生成所述调用日志与日志识别码之间的映射关系,将所述映射关系存入预先确定的数据库中;在收到用户端发送来的带有日志识别码参数的调用日志查询指令后,根据预先存储的调用日志与日志识别码之间的映射关系,确定出与该日志识别码参数对应的日志识别码及调用日志,并将确定出的调用日志返回给该用户端。保证了查询数据调用日志时通过与日志识别码进行匹配的方式将查询响应时间从分钟级提高到秒级,提高了数据查询的效率,降低了异常处理的时间。It can be seen from the above embodiments that the electronic device proposed by the present application generates a call log corresponding to the call data generated in response to the request according to a predetermined call log identification code generation rule after receiving the request for calling data sent by the service system. a log identifier; generating a mapping relationship between the call log and the log identifier, storing the mapping relationship in a predetermined database; receiving a call log with a log identifier parameter sent by the user end After the query is executed, the log identifier corresponding to the log identifier parameter and the call log are determined according to the mapping relationship between the pre-stored call log and the log identifier, and the determined call log is returned to the client. It ensures that the query response time is increased from the minute to the second by matching the log identification code when the query data is called, which improves the efficiency of data query and reduces the time of exception processing.
进一步需要说明的是,本申请的数据调用日志生成及查询程序依据其各部分所实现的功能不同,可用具有相同功能的程序模块进行描述。请参阅图2所示,是本申请电子装置一实施例中数据调用日志生成及查询程序的程序模块示意图。本实施例中,数据调用日志生成及查询程序依据其各部分所实现的功能的不同,可以被分割成生成模块201、存储模块202、以及确定模块203。由上面的描述可知,本申请所称的程序模块是指能够完成特定功能的一系列计算机程序指令段,比程序更适合于描述数据调用日志生成及查询程序在电子装置10中的执行过程。所述生成模块201、存储模块202、及确定模块203所实现的功能或操作步骤均与上文类似,此处不再详述,示例性地,例如其中:It should be further noted that the data call log generation and query program of the present application may be described by using a program module having the same function according to different functions implemented by each part thereof. Please refer to FIG. 2 , which is a schematic diagram of a program module for data call log generation and query procedure in an embodiment of the electronic device of the present application. In this embodiment, the data call log generation and query program may be divided into a generation module 201, a storage module 202, and a determination module 203 according to different functions implemented by the respective parts. As can be seen from the above description, the program module referred to in the present application refers to a series of computer program instruction segments capable of performing a specific function, which is more suitable than the program to describe the execution process of the data call log generation and query program in the electronic device 10. The functions or operation steps implemented by the generating module 201, the storage module 202, and the determining module 203 are all similar to the above, and are not described in detail herein, for example, where:
生成模块201用于在收到业务系统发出的调用数据的请求后,根据预先确定的调用日志识别码生成规则生成响应所述请求调用数据时产生的调用日志对应的日志识别码;The generating module 201 is configured to: after receiving the request for calling data sent by the service system, generate a log identifier corresponding to the call log generated when the request is invoked according to the predetermined call log identifier generation rule;
存储模块202用于生成所述调用日志与日志识别码之间的映射关系,将所述映射关系存入预先确定的数据库中;The storage module 202 is configured to generate a mapping relationship between the call log and the log identifier, and store the mapping relationship in a predetermined database.
确定模块203用于在收到用户端发送来的带有日志识别码参数的调用日志查询指令后,根据预先存储的调用日志与日志识别码之间的映射关系,确 定出与该日志识别码参数对应的日志识别码及调用日志,并将确定出的调用日志返回给该用户端。The determining module 203 is configured to: after receiving the call log query instruction with the log identifier parameter sent by the user end, determine the parameter of the log identifier according to the mapping relationship between the pre-stored call log and the log identifier Corresponding log identifier and call log, and return the determined call log to the client.
此外,本申请还提出一种数据调用日志生成及查询方法,请参阅图3所示,是本申请数据调用日志生成及查询方法一实施例的实施流程图,由图3可知,所述数据调用日志生成及查询方法包括如下步骤:In addition, the present application also provides a data call log generation and query method. Referring to FIG. 3, it is an implementation flowchart of an embodiment of the data call log generation and query method of the present application. As shown in FIG. 3, the data is called. The log generation and query method includes the following steps:
步骤S301,在收到业务系统发出的调用数据的请求后,根据预先确定的调用日志识别码生成规则生成响应所述请求调用数据时产生的调用日志对应的日志识别码;Step S301, after receiving the request for invoking data sent by the service system, generating a log identifier corresponding to the call log generated when the request is invoked according to the predetermined call log identifier generation rule;
步骤S302,生成所述调用日志与日志识别码之间的映射关系,将所述映射关系存入预先确定的数据库中;Step S302, generating a mapping relationship between the call log and the log identification code, and storing the mapping relationship in a predetermined database;
步骤S303,在收到用户端发送来的带有日志识别码参数的调用日志查询指令后,根据预先存储的调用日志与日志识别码之间的映射关系,确定出与该日志识别码参数对应的日志识别码及调用日志,并将确定出的调用日志返回给该用户端。Step S303, after receiving the call log query instruction with the log identifier parameter sent by the user end, determining, according to the mapping relationship between the pre-stored call log and the log identifier, the log identifier parameter corresponding to the log identifier The log identifier and the call log are returned, and the determined call log is returned to the client.
本实施例中,所述业务系统发出的调用数据的请求可以是相关的工作人员通过点击业务系统提供的操作界面触发的,在接收到该调用数据的请求后,根据预先确定的日志识别码生成规则生成所述请求对应的调用日志识别码。In this embodiment, the request for invoking data sent by the service system may be triggered by the related staff by clicking an operation interface provided by the service system, and after receiving the request for calling the data, generating according to the predetermined log identification code. The rule generates a call log identifier corresponding to the request.
本实施例中,所述日志识别码包括系统识别编码、第一时间、及第一请求数量;In this embodiment, the log identification code includes a system identification code, a first time, and a first request quantity;
所述预先确定的调用日志识别码生成规则可以是,例如,获取接收到所述调用数据的请求的第一时间、预先确定的所述业务系统对应的系统识别编码;统计在所述第一时间内接收到的调用数据的第一请求数量;生成包含所述第一时间、所述系统识别编码、以及所述第一请求数量的日志识别码。The predetermined call log identifier generation rule may be, for example, a first time to obtain a request for receiving the call data, a predetermined system identification code corresponding to the service system; and statistics at the first time The first number of requests received within the call data; generating a log identification code including the first time, the system identification code, and the first number of requests.
本实施例中,所述第一当前时间以秒为单位。In this embodiment, the first current time is in units of seconds.
本申请的其他实施例中,或者所述日志识别编码包括系统识别编码、第二时间、及第二请求数量;In other embodiments of the present application, or the log identification code includes a system identification code, a second time, and a second request quantity;
所述预先确定的调用日志识别码生成规则可以是,例如,获取接收到所述调用数据的请求的第二时间、预先确定的所述业务系统对应的系统识别编码,所述第二时间以分钟为单位,分别统计在所述第二时间的每秒内接收到的调用数据的第二请求数量;生成包含所述第二时间、所述预设类型编码信息、所述第二请求数量的调用日志识别码。The predetermined call log identifier generation rule may be, for example, a second time to obtain a request for receiving the call data, a predetermined system identification code corresponding to the service system, and the second time in minutes Calculating, in units, a second request quantity of the call data received in the second time of the second time; generating a call including the second time, the preset type coded information, and the second request quantity Log ID.
进一步地,如图4所示,为本申请数据调用日志生成及查询方法另一实施例的实施流程图。由图4可知,在本实施中,所述步骤S303包括如下步骤:Further, as shown in FIG. 4, it is an implementation flowchart of another embodiment of the data call log generation and query method of the present application. As shown in FIG. 4, in the implementation, the step S303 includes the following steps:
步骤S401,在收到用户端发送来的带有日志识别码参数的调用日志查询指令后,从所述预先确定的数据库中,搜素出包括与所述日志识别码参数相匹配的日志识别码,所述日志识别码参数包括系统识别编码及时间信息;Step S401, after receiving the call log query instruction with the log identifier parameter sent by the user terminal, searching for the log identifier including the log identifier matching the log identifier from the predetermined database. The log identifier parameter includes a system identification code and time information;
步骤S402,根据所述日志识别码包含的所述第一请求数量与预先确定的用户界面每页显示的数据条数,计算出所述用户界面需要显示的页面数以及每页页面分别包含的日志识别码;Step S402, calculating, according to the first request quantity included in the log identification code and the number of data displayed on each page of the predetermined user interface, the number of pages that the user interface needs to display and the logs respectively included in each page of the page. Identifier;
步骤S403,根据所述日志识别码与所述调用日志的映射关系,分别获取每页页面包含的日志识别码对应的调用日志,将获取的调用日志返回给给客户端。Step S403: Acquire a call log corresponding to the log identifier included in each page according to the mapping relationship between the log identifier and the call log, and return the obtained call log to the client.
或者,在另一实施例中,所述步骤S402还可以替换为根据所述日志识别码包含的所述第二请求数量与预先确定的用户界面每页显示的数据条数,计算出所述用户界面需要显示的页面数以及每页页面分别包含的日志识别码(图4中未示出)。Alternatively, in another embodiment, the step S402 may be further replaced by calculating the user according to the second request quantity included in the log identifier and the number of data displayed on each page of the predetermined user interface. The number of pages that the interface needs to display and the log identification code (not shown in Figure 4) contained in each page.
例如,在一实施方式中,收到查询2017年10月12日15:37分-2017年10月12日15:38分,ESG1的调用日志的指令后,从预先确定的数据中,搜素出与时间范围信息为2017年10月12日15:37分-2017年10月12日15:38分以及系统识别编码为ESG1相匹配的日志识别码ESG12017101215:370120(表示2017年10月12日15点37分第1秒收到20条请求数量)、For example, in one embodiment, after receiving a query from 15:37 on October 12, 2017 to 15:38 on October 12, 2017, after the instruction of the log of ESG1 is called, the search is performed from the predetermined data. The outbound and time range information is 15:37 on October 12, 2017 - 15:38 on October 12, 2017, and the system identification code is ESG1 matching log ID ESG12017101215:370120 (indicating October 12, 2017) 15:37, the first request received 20 requests),
ESG12017101215:372352(表示2017年10月12日15点37分第23秒收到 52条请求数量)、ESG12017101215:374434(表示2017年10月12日15点37分第44秒收到34条请求数量)、ESG12017101215:380324(表示2017年10月12日15点38分第3秒收到24条请求数量)、ESG12017101215:383355(表示2017年10月12日15点38分第33秒收到55条请求数量)、ESG12017101215:385638(表示2017年10月12日15点38分第56秒收到38条请求数量),在本实施例中,预先确定的用户界面每页显示的数据条数为30条,则计算出用户界面需要显示的页面数为8,且第一页包含的日志识别码为ESG12017101215:370120及ESG12017101215:372310(表示第一页包含的识别码为2017年10月12日15点37分第1秒收到的20条请求数量及2017年10月12日15点37分第23秒收到的10条请求数量),依次类推,可计算出所述用户界面需显示的每页页面分别包含的日志识别码。由本实施例可知,由于存储的日志识别码是以秒为单位的,所以本申请可以将查询页面的响应时间由分钟级别提高到秒级,实现过程简单。ESG12017101215:372352 (representing the number of 52 requests received at 15:37 on October 12, 2017 at 23:37), ESG12017101215:374434 (representing the number of 34 requests received at 44:37 on October 12, 2017, 44 seconds) ), ESG12017101215:380324 (representing the number of 24 requests received at 15:38 on October 12, 2017, 3rd), ESG12017101215:383355 (indicating that on October 12, 2017, 15:38, 33rd, received 55) The number of requests), ESG12017101215:385638 (representing 38 requests for the number of requests received at 15:38 on October 12, 2017), in this embodiment, the predetermined number of data displayed per page of the user interface is 30. The number of pages that need to be displayed on the user interface is 8, and the log identifiers contained in the first page are ESG12017101215:370120 and ESG12017101215:372310 (indicating that the first page contains the identification code at 15 o'clock on October 12, 2017) The number of 20 requests received in the first second of 37 minutes and the number of 10 requests received in the 23rd second of 15:37 on October 12, 2017), and so on, can calculate each page to be displayed on the user interface. The log identifiers contained in the pages. It can be seen from the embodiment that the stored log identifier is in seconds, so the response time of the query page can be increased from the minute level to the second level, and the implementation process is simple.
由上述事实施例可知,本申请提出的数据调用日志生成及查询方法通过在收到业务系统发出的调用数据的请求后,根据预先确定的调用日志识别码生成规则生成响应所述请求调用数据时产生的调用日志对应的日志识别码;生成所述调用日志与日志识别码之间的映射关系,将所述映射关系存入预先确定的数据库中;在收到用户端发送来的带有日志识别码参数的调用日志查询指令后,根据预先存储的调用日志与日志识别码之间的映射关系,确定出与该日志识别码参数对应的日志识别码及调用日志,并将确定出的调用日志返回给该用户端。保证了查询数据调用日志时通过与日志识别码进行匹配的方式将查询响应时间从分钟级提高到秒级,提高了数据查询的效率,降低了异常处理的时间。It can be seen from the above embodiments that the data call log generation and query method proposed by the present application generates a response to the request according to a predetermined call log identification code generation rule after receiving a request for calling data sent by the service system. a log identifier corresponding to the generated call log; generating a mapping relationship between the call log and the log identifier, storing the mapping relationship in a predetermined database; and receiving the log identifier sent by the user end After the call parameter query instruction of the code parameter is used, the log identification code corresponding to the log identification code parameter and the call log are determined according to the mapping relationship between the pre-stored call log and the log identification code, and the determined call log is returned. Give the client. It ensures that the query response time is increased from the minute to the second by matching the log identification code when the query data is called, which improves the efficiency of data query and reduces the time of exception processing.
此外,本申请还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有数据调用日志生成及查询程序,所述数据调用日志生成及查询程序被处理器执行时实现如下操作:In addition, the present application further provides a computer readable storage medium, on which the data call log generation and query program is stored, and the data call log generation and query program is executed by the processor to:
在收到业务系统发出的调用数据的请求后,根据预先确定的调用日志识别码生成规则生成响应所述请求调用数据时产生的调用日志对应的日志识别码;After receiving the request for invoking data sent by the service system, generating, according to the predetermined call log identifier generation rule, a log identifier corresponding to the call log generated when the request call data is generated;
生成所述调用日志与日志识别码之间的映射关系,将所述映射关系存入预先确定的数据库中;Generating a mapping relationship between the call log and the log identifier, and storing the mapping relationship in a predetermined database;
在收到用户端发送来的带有日志识别码参数的调用日志查询指令后,根据预先存储的调用日志与日志识别码之间的映射关系,确定出与该日志识别码参数对应的日志识别码及调用日志,并将确定出的调用日志返回给该用户端。After receiving the call log query command with the log identifier parameter sent by the user end, determining the log identifier corresponding to the log identifier parameter according to the mapping relationship between the pre-stored call log and the log identifier And calling the log, and returning the determined call log to the client.
本申请计算机可读存储介质具体实施方式与上述电子装置以及数据调用日志生成及查询方法各实施例基本相同,在此不作累述。The specific embodiment of the computer readable storage medium of the present application is substantially the same as the foregoing embodiments of the electronic device and the data call log generation and query method, and is not described herein.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments of the present application are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better. Implementation. Based on such understanding, the technical solution of the present application, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present application.
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above is only a preferred embodiment of the present application, and is not intended to limit the scope of the patent application, and the equivalent structure or equivalent process transformations made by the specification and the drawings of the present application, or directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of this application.

Claims (20)

  1. 一种电子装置,其特征在于,所述电子装置包括存储器、及与所述存储器连接的处理器,所述处理器用于执行所述存储器上存储的数据调用日志生成及查询程序,所述数据调用日志生成及查询程序被所述处理器执行时实现如下步骤:An electronic device, comprising: a memory, and a processor coupled to the memory, the processor configured to execute a data call log generation and query program stored on the memory, the data call The log generation and query program is implemented by the processor to implement the following steps:
    A1、在收到业务系统发出的调用数据的请求后,根据预先确定的调用日志识别码生成规则生成响应所述请求调用数据时产生的调用日志对应的日志识别码;A1. After receiving the request for invoking data sent by the service system, generating, according to the predetermined call log identifier generation rule, a log identifier corresponding to the call log generated when the request call data is generated;
    A2、生成所述调用日志与日志识别码之间的映射关系,将所述映射关系存入预先确定的数据库中;A2. Generate a mapping relationship between the call log and the log identifier, and store the mapping relationship in a predetermined database.
    A3、在收到用户端发送来的带有日志识别码参数的调用日志查询指令后,根据预先存储的调用日志与日志识别码之间的映射关系,确定出与该日志识别码参数对应的日志识别码及调用日志,并将确定出的调用日志返回给该用户端。A3. After receiving the call log query command with the log identifier parameter sent by the user end, determining a log corresponding to the log identifier parameter according to the mapping relationship between the pre-stored call log and the log identifier The identification code and the call log are returned, and the determined call log is returned to the client.
  2. 如权利要求1所述的电子装置,其特征在于,所述日志识别码包括系统识别编码、第一时间、及第一请求数量,所述步骤A3包括:The electronic device according to claim 1, wherein the log identification code comprises a system identification code, a first time, and a first number of requests, and the step A3 comprises:
    在收到用户端发送来的带有日志识别码参数的调用日志查询指令后,从所述预先确定的数据库中,搜素出包括与所述日志识别码参数相匹配的日志识别码,所述日志识别码参数包括系统识别编码及时间信息;After receiving the call log query command with the log identifier parameter sent by the client, searching for the log identifier including the log identifier parameter from the predetermined database, The log identification code parameter includes a system identification code and time information;
    根据所述日志识别码包含的所述第一请求数量与预先确定的用户界面每页显示的数据条数,计算出所述用户界面需要显示的页面数以及每页页面分别包含的日志识别码;Calculating, according to the first request quantity included in the log identifier and the number of data displayed on each page of the predetermined user interface, the number of pages that the user interface needs to display and the log identification code respectively included in each page of the page;
    根据所述日志识别码与所述调用日志的映射关系,分别获取每页页面包含的日志识别码对应的调用日志,将获取的调用日志返回给该用户端。And obtaining, according to the mapping relationship between the log identifier and the call log, a call log corresponding to the log identifier included in each page, and returning the obtained call log to the client.
  3. 如权利要求1所述的电子装置,其特征在于,所述日志识别码包括系统识别编码、第二时间、及第二请求数量,所述步骤A3包括:The electronic device according to claim 1, wherein the log identification code comprises a system identification code, a second time, and a second number of requests, and the step A3 comprises:
    在收到用户端发送来的带有日志识别码参数的调用日志查询指令后,从所述预先确定的数据库中,搜素出包括与所述日志识别码参数相匹配的日志识别码,所述日志识别码参数包括系统识别编码及时间信息;After receiving the call log query command with the log identifier parameter sent by the client, searching for the log identifier including the log identifier parameter from the predetermined database, The log identification code parameter includes a system identification code and time information;
    根据所述日志识别码包含的所述第二请求数量与预先确定的用户界面每页显示的数据条数,计算出所述用户界面需要显示的页面数以及每页页面分别包含的日志识别码;Calculating the number of pages that the user interface needs to display and the log identification code respectively included in each page according to the second request quantity included in the log identifier and the number of data displayed on each page of the predetermined user interface;
    根据所述日志识别码与所述调用日志的映射关系,分别获取每页页面包含的日志识别码对应的调用日志,将获取的调用日志返回给该用户端。And obtaining, according to the mapping relationship between the log identifier and the call log, a call log corresponding to the log identifier included in each page, and returning the obtained call log to the client.
  4. 如权利要求1所述的电子装置,其特征在于,所述预先确定的调用日志识别码生成规则包括:The electronic device according to claim 1, wherein the predetermined call log identification code generation rule comprises:
    获取接收到所述调用数据的请求的第一时间以及预先确定的所述业务系统对应的系统识别编码,其中,所述第一时间以秒为单位;Acquiring a first time of receiving the request for the call data and a predetermined system identification code corresponding to the service system, wherein the first time is in seconds;
    统计在所述第一时间内接收到的调用数据的第一请求数量,生成包含所述第一时间、所述系统识别编码、以及所述第一请求数量的日志识别码。And counting a first request quantity of the call data received in the first time, and generating a log identification code including the first time, the system identification code, and the first request quantity.
  5. 如权利要求2所述的电子装置,其特征在于,所述预先确定的调用日志识别码生成规则包括:The electronic device according to claim 2, wherein the predetermined call log identification code generation rule comprises:
    获取接收到所述调用数据的请求的第一时间以及预先确定的所述业务系统对应的系统识别编码,其中,所述第一时间以秒为单位;Acquiring a first time of receiving the request for the call data and a predetermined system identification code corresponding to the service system, wherein the first time is in seconds;
    统计在所述第一时间内接收到的调用数据的第一请求数量,生成包含所述第一时间、所述系统识别编码、以及所述第一请求数量的日志识别码。And counting a first request quantity of the call data received in the first time, and generating a log identification code including the first time, the system identification code, and the first request quantity.
  6. 如权利要求3所述的电子装置,其特征在于,所述预先确定的调用日志识别码生成规则包括:The electronic device according to claim 3, wherein the predetermined call log identification code generation rule comprises:
    获取接收到所述调用数据的请求的第一时间以及预先确定的所述业务系统对应的系统识别编码,其中,所述第一时间以秒为单位;Acquiring a first time of receiving the request for the call data and a predetermined system identification code corresponding to the service system, wherein the first time is in seconds;
    统计在所述第一时间内接收到的调用数据的第一请求数量,生成包含所述第一时间、所述系统识别编码、以及所述第一请求数量的日志识别码。And counting a first request quantity of the call data received in the first time, and generating a log identification code including the first time, the system identification code, and the first request quantity.
  7. 如权利要求1所述的电子装置,其特征在于,所述预先确定的调用日志识别码生成规则包括:The electronic device according to claim 1, wherein the predetermined call log identification code generation rule comprises:
    获取接收到所述调用数据的请求的第二时间以及预先确定的所述业务系统对应的系统识别编码,其中,所述第二时间以分钟为单位;Acquiring a second time of receiving the request for invoking data and a predetermined system identification code corresponding to the service system, wherein the second time is in minutes;
    分别统计在所述第二时间的每秒内接收到的调用数据的第二请求数量,生成包含所述第二时间、所述系统识别编码、所述第二请求数量的日志识别码。And respectively counting the second request quantity of the call data received in the second time in the second time, and generating a log identification code including the second time, the system identification code, and the second request quantity.
  8. 如权利要求2所述的电子装置,其特征在于,所述预先确定的调用日志识别码生成规则包括:The electronic device according to claim 2, wherein the predetermined call log identification code generation rule comprises:
    获取接收到所述调用数据的请求的第二时间以及预先确定的所述业务系统对应的系统识别编码,其中,所述第二时间以分钟为单位;Acquiring a second time of receiving the request for invoking data and a predetermined system identification code corresponding to the service system, wherein the second time is in minutes;
    分别统计在所述第二时间的每秒内接收到的调用数据的第二请求数量,生成包含所述第二时间、所述系统识别编码、所述第二请求数量的日志识别码。And respectively counting the second request quantity of the call data received in the second time in the second time, and generating a log identification code including the second time, the system identification code, and the second request quantity.
  9. 如权利要求3所述的电子装置,其特征在于,所述预先确定的调用日志识别码生成规则包括:The electronic device according to claim 3, wherein the predetermined call log identification code generation rule comprises:
    获取接收到所述调用数据的请求的第二时间以及预先确定的所述业务系统对应的系统识别编码,其中,所述第二时间以分钟为单位;Acquiring a second time of receiving the request for invoking data and a predetermined system identification code corresponding to the service system, wherein the second time is in minutes;
    分别统计在所述第二时间的每秒内接收到的调用数据的第二请求数量,生成包含所述第二时间、所述系统识别编码、所述第二请求数量的日志识别码。And respectively counting the second request quantity of the call data received in the second time in the second time, and generating a log identification code including the second time, the system identification code, and the second request quantity.
  10. 一种数据调用日志生成及查询方法,其特征在于,所述方法包括如下步骤:A data call log generation and query method, characterized in that the method comprises the following steps:
    S1、在收到业务系统发出的调用数据的请求后,根据预先确定的调用日志识别码生成规则生成响应所述请求调用数据时产生的调用日志对应的日志识别码;S1. After receiving the request for invoking data sent by the service system, generating a log identifier corresponding to the call log generated when the request is invoked according to the predetermined call log identifier generation rule;
    S2、生成所述调用日志与日志识别码之间的映射关系,将所述映射关系存入预先确定的数据库中;S2. Generate a mapping relationship between the call log and the log identifier, and store the mapping relationship in a predetermined database.
    S3、在收到用户端发送来的带有日志识别码参数的调用日志查询指令后,根据预先存储的调用日志与日志识别码之间的映射关系,确定出与该日志识别码参数对应的日志识别码及调用日志,并将确定出的调用日志返回给该用户端。S3. After receiving the call log query command with the log identifier parameter sent by the user end, determining a log corresponding to the log identifier parameter according to the mapping relationship between the pre-stored call log and the log identifier The identification code and the call log are returned, and the determined call log is returned to the client.
  11. 如权利要求10所述的数据调用日志生成及查询方法,其特征在于,所述日志识别码包括系统识别编码、第一时间、及第一请求数量,所述步骤S3包括:The data call log generation and query method according to claim 10, wherein the log identification code comprises a system identification code, a first time, and a first number of requests, and the step S3 comprises:
    在收到用户端发送来的带有日志识别码参数的调用日志查询指令后,从所述预先确定的数据库中,搜素出包括与所述日志识别码参数相匹配的日志识别码,所述日志识别码参数包括系统识别编码及时间信息;After receiving the call log query command with the log identifier parameter sent by the client, searching for the log identifier including the log identifier parameter from the predetermined database, The log identification code parameter includes a system identification code and time information;
    根据所述日志识别码包含的所述第一请求数量与预先确定的用户界面每页显示的数据条数,计算出所述用户界面需要显示的页面数以及每页页面分别包含的日志识别码;Calculating, according to the first request quantity included in the log identifier and the number of data displayed on each page of the predetermined user interface, the number of pages that the user interface needs to display and the log identification code respectively included in each page of the page;
    根据所述日志识别码与所述调用日志的映射关系,分别获取每页页面包含的日志识别码对应的调用日志,将获取的调用日志返回给该用户端。And obtaining, according to the mapping relationship between the log identifier and the call log, a call log corresponding to the log identifier included in each page, and returning the obtained call log to the client.
  12. 如权利要求10所述的数据调用日志生成及查询方法,其特征在于,所述日志识别码包括系统识别编码、第二时间、及第二请求数量,所述步骤S3包括:The data call log generation and query method according to claim 10, wherein the log identification code comprises a system identification code, a second time, and a second number of requests, and the step S3 comprises:
    在收到用户端发送来的带有日志识别码参数的调用日志查询指令后,从所述预先确定的数据库中,搜素出包括与所述日志识别码参数相匹配的日志识别码,所述日志识别码参数包括系统识别编码及时间信息;After receiving the call log query command with the log identifier parameter sent by the client, searching for the log identifier including the log identifier parameter from the predetermined database, The log identification code parameter includes a system identification code and time information;
    根据所述日志识别码包含的所述第二请求数量与预先确定的用户界面每页显示的数据条数,计算出所述用户界面需要显示的页面数以及每页页面分别包含的日志识别码;Calculating the number of pages that the user interface needs to display and the log identification code respectively included in each page according to the second request quantity included in the log identifier and the number of data displayed on each page of the predetermined user interface;
    根据所述日志识别码与所述调用日志的映射关系,分别获取每页页面包含的日志识别码对应的调用日志,将获取的调用日志返回给该用户端。And obtaining, according to the mapping relationship between the log identifier and the call log, a call log corresponding to the log identifier included in each page, and returning the obtained call log to the client.
  13. 如权利要求10所述的数据调用日志生成及查询方法,其特征在于,所述预先确定的调用日志识别码生成规则包括:The data call log generation and query method according to claim 10, wherein the predetermined call log identification code generation rule comprises:
    获取接收到所述调用数据的请求的第一时间以及预先确定的所述业务系统对应的系统识别编码,其中,所述第一时间以秒为单位;Acquiring a first time of receiving the request for the call data and a predetermined system identification code corresponding to the service system, wherein the first time is in seconds;
    统计在所述第一时间内接收到的调用数据的第一请求数量,生成包含所述第一时间、所述系统识别编码、以及所述第一请求数量的日志识别码。And counting a first request quantity of the call data received in the first time, and generating a log identification code including the first time, the system identification code, and the first request quantity.
    或者,所述预先确定的调用日志识别码生成规则包括:Alternatively, the predetermined call log identifier generation rule includes:
    获取接收到所述调用数据的请求的第二时间以及预先确定的所述业务系统对应的系统识别编码,其中,所述第二时间以分钟为单位;Acquiring a second time of receiving the request for invoking data and a predetermined system identification code corresponding to the service system, wherein the second time is in minutes;
    分别统计在所述第二时间的每秒内接收到的调用数据的第二请求数量,生成包含所述第二时间、所述系统识别编码、所述第二请求数量的日志识别码。And respectively counting the second request quantity of the call data received in the second time in the second time, and generating a log identification code including the second time, the system identification code, and the second request quantity.
  14. 如权利要求11所述的数据调用日志生成及查询方法,其特征在于,所述预先确定的调用日志识别码生成规则包括:The data call log generation and query method according to claim 11, wherein the predetermined call log identification code generation rule comprises:
    获取接收到所述调用数据的请求的第一时间以及预先确定的所述业务系统对应的系统识别编码,其中,所述第一时间以秒为单位;Acquiring a first time of receiving the request for the call data and a predetermined system identification code corresponding to the service system, wherein the first time is in seconds;
    统计在所述第一时间内接收到的调用数据的第一请求数量,生成包含所述第一时间、所述系统识别编码、以及所述第一请求数量的日志识别码。And counting a first request quantity of the call data received in the first time, and generating a log identification code including the first time, the system identification code, and the first request quantity.
    或者,所述预先确定的调用日志识别码生成规则包括:Alternatively, the predetermined call log identifier generation rule includes:
    获取接收到所述调用数据的请求的第二时间以及预先确定的所述业务系统对应的系统识别编码,其中,所述第二时间以分钟为单位;Acquiring a second time of receiving the request for invoking data and a predetermined system identification code corresponding to the service system, wherein the second time is in minutes;
    分别统计在所述第二时间的每秒内接收到的调用数据的第二请求数量,生成包含所述第二时间、所述系统识别编码、所述第二请求数量的日志识别码。And respectively counting the second request quantity of the call data received in the second time in the second time, and generating a log identification code including the second time, the system identification code, and the second request quantity.
  15. 如权利要求12所述的数据调用日志生成及查询方法,其特征在于,所述预先确定的调用日志识别码生成规则包括:The data call log generation and query method according to claim 12, wherein the predetermined call log identification code generation rule comprises:
    获取接收到所述调用数据的请求的第一时间以及预先确定的所述业务系统对应的系统识别编码,其中,所述第一时间以秒为单位;Acquiring a first time of receiving the request for the call data and a predetermined system identification code corresponding to the service system, wherein the first time is in seconds;
    统计在所述第一时间内接收到的调用数据的第一请求数量,生成包含所述第一时间、所述系统识别编码、以及所述第一请求数量的日志识别码。And counting a first request quantity of the call data received in the first time, and generating a log identification code including the first time, the system identification code, and the first request quantity.
    或者,所述预先确定的调用日志识别码生成规则包括:Alternatively, the predetermined call log identifier generation rule includes:
    获取接收到所述调用数据的请求的第二时间以及预先确定的所述业务系统对应的系统识别编码,其中,所述第二时间以分钟为单位;Acquiring a second time of receiving the request for invoking data and a predetermined system identification code corresponding to the service system, wherein the second time is in minutes;
    分别统计在所述第二时间的每秒内接收到的调用数据的第二请求数量,生成包含所述第二时间、所述系统识别编码、所述第二请求数量的日志识别码。And respectively counting the second request quantity of the call data received in the second time in the second time, and generating a log identification code including the second time, the system identification code, and the second request quantity.
  16. 一种计算机可读存储介质,所述计算机可读存储介质存储有数据调用日志生成及查询程序,所述数据调用日志生成及查询程序可被至少一个处理器执行,以使所述至少一个处理器执行如下步骤:A computer readable storage medium storing a data call log generation and query program, the data call log generation and query program being executable by at least one processor to cause the at least one processor Perform the following steps:
    在收到业务系统发出的调用数据的请求后,根据预先确定的调用日志识别码生成规则生成响应所述请求调用数据时产生的调用日志对应的日志识别码;After receiving the request for invoking data sent by the service system, generating, according to the predetermined call log identifier generation rule, a log identifier corresponding to the call log generated when the request call data is generated;
    生成所述调用日志与日志识别码之间的映射关系,将所述映射关系存入预先确定的数据库中;Generating a mapping relationship between the call log and the log identifier, and storing the mapping relationship in a predetermined database;
    在收到用户端发送来的带有日志识别码参数的调用日志查询指令后,根据预先存储的调用日志与日志识别码之间的映射关系,确定出与该日志识别码参数对应的日志识别码及调用日志,并将确定出的调用日志返回给该用户端。After receiving the call log query command with the log identifier parameter sent by the user end, determining the log identifier corresponding to the log identifier parameter according to the mapping relationship between the pre-stored call log and the log identifier And calling the log, and returning the determined call log to the client.
  17. 如权利要求16所述的存储介质,其特征在于,所述日志识别码包括系统识别编码、第一时间、及第一请求数量,所述在收到用户端发送来的带 有日志识别码参数的调用日志查询指令后,根据预先存储的调用日志与日志识别码之间的映射关系,确定出与该日志识别码参数对应的日志识别码及调用日志,并将确定出的调用日志返回给该用户端的步骤,包括:The storage medium according to claim 16, wherein the log identification code comprises a system identification code, a first time, and a first request quantity, and the received log identification code parameter sent by the user end After the log query command is invoked, the log identifier and the log corresponding to the log identifier parameter are determined according to the mapping relationship between the pre-stored call log and the log identifier, and the determined call log is returned to the log log. User-side steps, including:
    在收到用户端发送来的带有日志识别码参数的调用日志查询指令后,从所述预先确定的数据库中,搜素出包括与所述日志识别码参数相匹配的日志识别码,所述日志识别码参数包括系统识别编码及时间信息;After receiving the call log query command with the log identifier parameter sent by the client, searching for the log identifier including the log identifier parameter from the predetermined database, The log identification code parameter includes a system identification code and time information;
    根据所述日志识别码包含的所述第一请求数量与预先确定的用户界面每页显示的数据条数,计算出所述用户界面需要显示的页面数以及每页页面分别包含的日志识别码;Calculating, according to the first request quantity included in the log identifier and the number of data displayed on each page of the predetermined user interface, the number of pages that the user interface needs to display and the log identification code respectively included in each page of the page;
    根据所述日志识别码与所述调用日志的映射关系,分别获取每页页面包含的日志识别码对应的调用日志,将获取的调用日志返回给该用户端。And obtaining, according to the mapping relationship between the log identifier and the call log, a call log corresponding to the log identifier included in each page, and returning the obtained call log to the client.
  18. 如权利要求16所述的存储介质,其特征在于,所述日志识别码包括系统识别编码、第二时间、及第二请求数量,所述在收到用户端发送来的带有日志识别码参数的调用日志查询指令后,根据预先存储的调用日志与日志识别码之间的映射关系,确定出与该日志识别码参数对应的日志识别码及调用日志,并将确定出的调用日志返回给该用户端的步骤,包括:The storage medium according to claim 16, wherein the log identification code comprises a system identification code, a second time, and a second number of requests, wherein the receipt of the log identification code parameter sent by the user end After the log query command is invoked, the log identifier and the log corresponding to the log identifier parameter are determined according to the mapping relationship between the pre-stored call log and the log identifier, and the determined call log is returned to the log log. User-side steps, including:
    在收到用户端发送来的带有日志识别码参数的调用日志查询指令后,从所述预先确定的数据库中,搜素出包括与所述日志识别码参数相匹配的日志识别码,所述日志识别码参数包括系统识别编码及时间信息;After receiving the call log query command with the log identifier parameter sent by the client, searching for the log identifier including the log identifier parameter from the predetermined database, The log identification code parameter includes a system identification code and time information;
    根据所述日志识别码包含的所述第二请求数量与预先确定的用户界面每页显示的数据条数,计算出所述用户界面需要显示的页面数以及每页页面分别包含的日志识别码;Calculating the number of pages that the user interface needs to display and the log identification code respectively included in each page according to the second request quantity included in the log identifier and the number of data displayed on each page of the predetermined user interface;
    根据所述日志识别码与所述调用日志的映射关系,分别获取每页页面包含的日志识别码对应的调用日志,将获取的调用日志返回给该用户端。And obtaining, according to the mapping relationship between the log identifier and the call log, a call log corresponding to the log identifier included in each page, and returning the obtained call log to the client.
  19. 如权利要求16所述的存储介质,其特征在于,所述预先确定的调用日志识别码生成规则包括:The storage medium of claim 16, wherein the predetermined call log identification code generation rule comprises:
    获取接收到所述调用数据的请求的第一时间以及预先确定的所述业务系统对应的系统识别编码,其中,所述第一时间以秒为单位;Acquiring a first time of receiving the request for the call data and a predetermined system identification code corresponding to the service system, wherein the first time is in seconds;
    统计在所述第一时间内接收到的调用数据的第一请求数量,生成包含所述第一时间、所述系统识别编码、以及所述第一请求数量的日志识别码。And counting a first request quantity of the call data received in the first time, and generating a log identification code including the first time, the system identification code, and the first request quantity.
    或者,所述预先确定的调用日志识别码生成规则包括:Alternatively, the predetermined call log identifier generation rule includes:
    获取接收到所述调用数据的请求的第二时间以及预先确定的所述业务系统对应的系统识别编码,其中,所述第二时间以分钟为单位;Acquiring a second time of receiving the request for invoking data and a predetermined system identification code corresponding to the service system, wherein the second time is in minutes;
    分别统计在所述第二时间的每秒内接收到的调用数据的第二请求数量,生成包含所述第二时间、所述系统识别编码、所述第二请求数量的日志识别码。And respectively counting the second request quantity of the call data received in the second time in the second time, and generating a log identification code including the second time, the system identification code, and the second request quantity.
  20. 如权利要求17所述的存储介质,其特征在于,所述预先确定的调用日志识别码生成规则包括:The storage medium of claim 17, wherein the predetermined call log identification code generation rule comprises:
    获取接收到所述调用数据的请求的第一时间以及预先确定的所述业务系统对应的系统识别编码,其中,所述第一时间以秒为单位;Acquiring a first time of receiving the request for the call data and a predetermined system identification code corresponding to the service system, wherein the first time is in seconds;
    统计在所述第一时间内接收到的调用数据的第一请求数量,生成包含所述第一时间、所述系统识别编码、以及所述第一请求数量的日志识别码。And counting a first request quantity of the call data received in the first time, and generating a log identification code including the first time, the system identification code, and the first request quantity.
    或者,所述预先确定的调用日志识别码生成规则包括:Alternatively, the predetermined call log identifier generation rule includes:
    获取接收到所述调用数据的请求的第二时间以及预先确定的所述业务系统对应的系统识别编码,其中,所述第二时间以分钟为单位;Acquiring a second time of receiving the request for invoking data and a predetermined system identification code corresponding to the service system, wherein the second time is in minutes;
    分别统计在所述第二时间的每秒内接收到的调用数据的第二请求数量,生成包含所述第二时间、所述系统识别编码、所述第二请求数量的日志识别码。And respectively counting the second request quantity of the call data received in the second time in the second time, and generating a log identification code including the second time, the system identification code, and the second request quantity.
PCT/CN2018/077629 2018-01-10 2018-02-28 Electronic device, data calling log generation and query method, and storage medium WO2019136812A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810024107.8 2018-01-10
CN201810024107.8A CN108415925B (en) 2018-01-10 2018-01-10 Electronic device, data call log generation and query method and storage medium

Publications (1)

Publication Number Publication Date
WO2019136812A1 true WO2019136812A1 (en) 2019-07-18

Family

ID=63125449

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/077629 WO2019136812A1 (en) 2018-01-10 2018-02-28 Electronic device, data calling log generation and query method, and storage medium

Country Status (2)

Country Link
CN (1) CN108415925B (en)
WO (1) WO2019136812A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112564959A (en) * 2020-12-01 2021-03-26 上海恒生聚源数据服务有限公司 Log acquisition method, device and equipment and readable storage medium

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109656778B (en) * 2018-11-28 2022-07-12 金蝶软件(中国)有限公司 Data acquisition method and device, computer equipment and storage medium
CN111459756A (en) * 2020-03-30 2020-07-28 深圳市金蝶天燕云计算股份有限公司 Log processing method and related equipment
CN111489122B (en) * 2020-04-09 2021-10-01 山东山大华天软件有限公司 Method, equipment and readable storage medium for editing and displaying multiple pieces of BOM data based on browser
CN112541009B (en) * 2020-12-23 2023-10-13 湖北华中电力科技开发有限责任公司 Data query method, device, electronic equipment and storage medium
CN113283884A (en) * 2020-12-31 2021-08-20 深圳怡化电脑股份有限公司 Log processing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902764A (en) * 2012-09-25 2013-01-30 北京奇虎科技有限公司 Method and device for log recording
CN105138592A (en) * 2015-07-31 2015-12-09 武汉虹信技术服务有限责任公司 Distributed framework-based log data storing and retrieving method
CN106850782A (en) * 2017-01-17 2017-06-13 泰康保险集团股份有限公司 For the method and system of log processing
CN107181675A (en) * 2017-06-20 2017-09-19 北京奇艺世纪科技有限公司 Service calling method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4078454B2 (en) * 2002-03-22 2008-04-23 株式会社日立製作所 Digital signature management method, digital signature processing apparatus, program, and recording medium
US20070100911A1 (en) * 2005-11-03 2007-05-03 International Business Machines Corporation Apparatus and method for materialized query table journaling in a computer database system
CN104252536B (en) * 2014-09-16 2017-12-08 福建新大陆软件工程有限公司 A kind of internet log data query method and device based on hbase

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902764A (en) * 2012-09-25 2013-01-30 北京奇虎科技有限公司 Method and device for log recording
CN105138592A (en) * 2015-07-31 2015-12-09 武汉虹信技术服务有限责任公司 Distributed framework-based log data storing and retrieving method
CN106850782A (en) * 2017-01-17 2017-06-13 泰康保险集团股份有限公司 For the method and system of log processing
CN107181675A (en) * 2017-06-20 2017-09-19 北京奇艺世纪科技有限公司 Service calling method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112564959A (en) * 2020-12-01 2021-03-26 上海恒生聚源数据服务有限公司 Log acquisition method, device and equipment and readable storage medium

Also Published As

Publication number Publication date
CN108415925B (en) 2020-11-24
CN108415925A (en) 2018-08-17

Similar Documents

Publication Publication Date Title
WO2019136812A1 (en) Electronic device, data calling log generation and query method, and storage medium
WO2019140828A1 (en) Electronic apparatus, method for querying logs in distributed system, and storage medium
WO2019148722A1 (en) Electronic device, data migrating and calling method and storage medium
WO2019148720A1 (en) Electronic device, data storage method and storage medium
WO2020010714A1 (en) Client identification apparatus and method, and computer-readable storage medium
WO2019153592A1 (en) User authority data management device and method, and computer readable storage medium
WO2019148727A1 (en) Electronic device, redis-based exception warning method and storage medium
WO2019179027A1 (en) Electronic device, firewall provisioning verification method, system and storage medium
CN111400308B (en) Processing method of cache data, electronic device and readable storage medium
WO2019019636A1 (en) User identification method, electronic device, and computer readable storage medium
CN112162965B (en) Log data processing method, device, computer equipment and storage medium
WO2019062191A1 (en) Electronic device, method and system for extracting data in data table, and storage medium
EP2930629A1 (en) Accessing non-relational data stores using structured query language queries
CN108491304B (en) electronic device, business system risk control method and storage medium
WO2019148728A1 (en) Electronic device, execution task assignment method for distributed system, and storage medium
CN112860737B (en) Data query method and device, electronic equipment and readable storage medium
WO2019071898A1 (en) Electronic device, database query script generation method and storage medium
CN110851298A (en) Abnormality analysis and processing method, electronic device, and storage medium
WO2023165256A1 (en) Information generation method and apparatus, and electronic device
WO2019140829A1 (en) Electronic device, method for releasing application update version, and storage medium
WO2019169771A1 (en) Electronic device, access instruction information acquisition method and storage medium
CN113238815B (en) Interface access control method, device, equipment and storage medium
WO2019071899A1 (en) Electronic device, vehicle data import method and storage medium
WO2020248384A1 (en) Repeated request access prevention method and apparatus, computer device, and storage medium
CN110874365A (en) Information query method and related equipment thereof

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 15/10/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18900473

Country of ref document: EP

Kind code of ref document: A1