WO2020015114A1 - Method for querying operating state of application, and terminal device - Google Patents

Method for querying operating state of application, and terminal device Download PDF

Info

Publication number
WO2020015114A1
WO2020015114A1 PCT/CN2018/105550 CN2018105550W WO2020015114A1 WO 2020015114 A1 WO2020015114 A1 WO 2020015114A1 CN 2018105550 W CN2018105550 W CN 2018105550W WO 2020015114 A1 WO2020015114 A1 WO 2020015114A1
Authority
WO
WIPO (PCT)
Prior art keywords
time
state
query
database
topology map
Prior art date
Application number
PCT/CN2018/105550
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 WO2020015114A1 publication Critical patent/WO2020015114A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/321Display for diagnostics, e.g. diagnostic result display, self-test user interface

Definitions

  • the present application relates to the field of computer technology, and in particular, to a method and a terminal device for querying an application running state.
  • the running status of various aspects of the application is usually recorded and summarized into a database.
  • the monitoring personnel can obtain the health status of the application by querying the data in the database and the health indicators of various aspects of the application.
  • the monitoring staff can input the health indicators and time points that they want to query, and query the database for the application running status data related to the health indicators at that time point, but this query method can only query the operation of a certain aspect of the application. Status, query results cannot represent the overall health of the application.
  • the embodiments of the present application provide an application running status query method and a terminal device, so as to solve the problem that the current application running status query method can only query the running status of an application, and the query result cannot represent the overall health status of the application.
  • a first aspect of the embodiments of the present application provides an application running status query method, including:
  • a second aspect of the embodiments of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores computer-readable instructions that, when executed by a processor, implement an application running state in the first aspect Query method.
  • a third aspect of the embodiments of the present application provides a terminal device, including a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, where the processor executes the computer-readable Implement the following steps when instructing:
  • the embodiment of the present application has the beneficial effect that the state information of each component of the application corresponding to the query time is searched in the state database, and the state information of each component is mapped to the component topology diagram of the application to generate the state.
  • the topology map shows the status information of each component of the application to the user in the form of a status topology map. Using the intuitiveness and integrity of the topology map, the operating status of each component can be clearly displayed to the user, so that the user can know the health of the application as a whole. situation.
  • FIG. 1 is an implementation flowchart of an application running status query method according to an embodiment of the present application
  • FIG. 2 is an implementation flowchart of adding a state topology diagram to a first database in an application running status query method according to an embodiment of the present application
  • FIG. 3 is an implementation flowchart of updating a first database in an application running status query method according to an embodiment of the present application
  • FIG. 4 is an implementation flowchart of predicting a user's query time in the method for querying an application running state provided by an embodiment of the present application
  • FIG. 5 is a schematic diagram of an application running status query device according to an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a terminal device according to an embodiment of the present application.
  • the embodiment of the present application obtains related data through buried point data to analyze the related data to obtain user behavior and software running status during a certain period of time during an operation, which solves the problem of obtaining data from a single buried point.
  • the obtained operation information alone analyzes user data at a certain point, and cannot comprehensively monitor the entire use process, which causes the limitation of data analysis.
  • FIG. 1 is an implementation flowchart of an application running status query method according to an embodiment of the present application, which is detailed as follows:
  • a status query instruction including a query time input by a user is acquired.
  • the user can input a time before the current time to query the running status of the application at that time, and the time is the query time.
  • the query time entered by the user is 8:00 on March 8, which means that the user needs to query the running status of the application at 8:00 on March 8.
  • each time corresponds to a health status value applied at that time.
  • the health value is used to characterize the overall health of the application.
  • the display of the time axis and the health status value can facilitate the user to determine the time of interest for querying based on the health status value applied at each time.
  • state information of each component of the application corresponding to the query time is searched in a state database.
  • the state database is used to store the collected state information of each component of the application.
  • the status information may include the status value and alarm status of the component.
  • the status value is the data representing the operating status of the component, which is obtained by comparing the operating parameters of the component with preset operating indicators.
  • the alarm status can be normal, primary alarm, secondary alarm, etc., and is used to indicate the alarm level of the component's operating status.
  • the component topology diagram is a topology diagram constructed according to a relationship between application components.
  • the types of application components can be divided into data layer components, business logic layer components, and presentation layer components. All the components of the application can be established in advance according to the relationship between the components of different architecture layers and the mutual relationship between the components of the same architecture layer, and the component topology map can be saved. When the component topology diagram needs to be called, the pre-built component topology diagram is directly obtained.
  • the state information of the found components is mapped to the component topology map, a status topology map is generated, and the status topology map is displayed.
  • the query time, the found state information of each component, and the state topology map are one-to-one correspondences.
  • the status information of each component of the application corresponding to the query time is mapped to the component topology map, and a status topology map corresponding to the query time is generated.
  • the state topology diagram can represent the relationship between the components of the application and the running status of each component when querying time.
  • the status information of each component of the application corresponding to the query time is searched in the status database, and the status information of each component is mapped on the component topology map of the application to generate a status topology map, and the status information of each component of the application is represented by the status.
  • the topology diagram is displayed to the user. Using the intuitiveness and integrity of the topology diagram, the operating status of each component can be clearly displayed to the user, so that the user can know the health status of the application as a whole.
  • the state topology map and the query time are added to a first database.
  • the first database is used to store the generated state topology map.
  • the state topology map corresponding to the query time that the user has queried may be saved to the first database.
  • the users can be users of the same account or users of different accounts.
  • the first database stores a state topology diagram that has been generated by the user and has been queried. If the user performs a state query again on the time previously queried, the state topology map corresponding to the time can be obtained from the first database.
  • the status query instruction including the query time input by the user it is found whether there is a state topology map corresponding to the query time in the first database, and if it exists, the query time correspondence is retrieved from the first database. And displays the status topology map of the application; if it does not exist, look up the status information of the application components corresponding to the query time in the status database, obtain the component topology map of the application, and map the status information of the found components to the components On the topology map, a status topology map corresponding to the query time is generated and displayed.
  • the saved state topology map is retrieved from the first database, which can prevent users from querying the same time point multiple times, and the process of generating the state topology map every time, thereby reducing the amount of data and processing steps in the query process.
  • the first database can be used by multiple users who do not have an account. For example, for the time point that the first user has queried, when the second user queries the time point, the corresponding saved time point can be retrieved directly from the first database. State topology map, so that the state topology map in the first database can be used by users of different accounts, increasing the utilization rate of the state topology map in the first database, and further improving the query speed.
  • the foregoing method may further include:
  • the adding time is the time when the state topology map is added to the first database.
  • the number of retrievals is the number of times the state topology graph has been retrieved after being added to the first database. After each state topology diagram is retrieved, the number of retrievals corresponding to the state topology diagram is updated. The number of calls is an integer greater than or equal to zero. When the number of retrievals is zero, it indicates that the corresponding state topology graph has not been retrieved after being added to the first database.
  • the deletion time of each state topology graph is calculated according to the addition time and the number of times of retrieval of each state topology graph; the deletion time is the time point when the state topology graph is deleted from the first database.
  • a deletion time corresponding to the state topology map may be calculated.
  • the deletion time of the state topology graph is the time point when the state topology graph is deleted from the first database.
  • the state topology map stored in the first database can be organized, the state topology map that has not been retrieved for a long time in the first database can be deleted, and the storage space is released to save the newly generated state topology map.
  • the deletion time of the state topology diagram is recalculated according to the addition time of the state topology diagram and the updated retrieval times, and the deletion time is updated.
  • each state topology map in the first database is provided with corresponding update parameters, where the update parameters may include, but are not limited to, the time of adding, recalling, and deleting the state topology map.
  • the update parameters may include, but are not limited to, the time of adding, recalling, and deleting the state topology map.
  • the calculating the deletion time of each state topological graph according to the adding time and the number of times of retrieval of each state topological graph includes:
  • t s is the deletion time
  • t t is the addition time
  • n is the number of calls
  • a is the initial retention time
  • b is the preset time parameter.
  • the initial retention time is the retention time of the state topology graph with zero recall times in the first database.
  • the initial retention time is used to represent the minimum retention time of a state topology graph in the first database.
  • the preset time parameter is used to represent the influence degree of the state topology graph once retrieved on the deletion time.
  • the initial retention time and preset time parameters can be set in advance according to actual needs, and are not limited here.
  • a is set to 60 days and b is set to 20 days.
  • the state topology map A is saved to the first database at 8:00 on March 8, the record addition time is 8:00 on March 8, and the number of reads is 0.
  • the deletion time is 8:00 on May 7. If the state topology diagram A is retrieved at 11:00 on April 23, the number of retrieval calls is 1, and the deletion time is updated to 8:00 on May 27 according to the calculation result of formula (1). If the state topology graph A is not retrieved between 11:00 on April 23 and 8:00 on May 27, the state topology graph A is deleted from the first database at 8:00 on May 27.
  • the deletion time of each state topology map in the first database may be compared with the current time, the first state topology map may be deleted from the first database, and the deletion time of the first state topology may exceed the current time.
  • preset time interval such as 5 minutes
  • the first database can be guaranteed.
  • the state topology map that is not repeatedly queried is deleted in a timely manner, thereby deleting invalid data in the first database, and freeing up storage space of the first database to store the state topology map generated later.
  • the preset statistical time period is a time period selected in advance from the time before the current time.
  • the historical query data is related data queried by the user within a preset statistical time period.
  • the historical query data may include, but is not limited to, the query time and the number of queries corresponding to the query time.
  • the query count is the number of times the user has performed a status query on the query time within a preset statistical period.
  • a user's query time is predicted according to a preset prediction rule and the historical query data to obtain a prediction time.
  • the predicted time is the time when the predicted user may query the status later. According to preset prediction rules and historical query data, the query time can be predicted to obtain the prediction time.
  • the preset prediction rule may include:
  • a plurality of time points are uniformly selected as the prediction time.
  • the query times corresponding to each query time point in a preset statistical time period may be compared to select the query time point with the highest number of queries.
  • the preset time period is determined with the query time point as the center, and multiple time points are uniformly selected as the prediction time within the preset time period. For example, if the duration of the preset time period is set to 2 days and the time point with the most queries is 11:00 on April 23, then the preset time period determined is from 11:00 on April 22 to April 24 At 11:00, a preset number of time points can be uniformly selected within a preset time period, and the time points of the preset number are all used as prediction times.
  • a user queries the application running status at the same point multiple times it indicates that the application running status at that point in time may be abnormal or the point in time is a time point that the user is interested in. Then, the user at the time point near the point in time may also later Make a query.
  • a plurality of time points are uniformly selected as the prediction time in a preset time period centered on the time point with the most query times, and the time point near the time point with the most query times is used as the prediction time point, which can improve The validity of the forecast.
  • the preset prediction rule may include:
  • time points are uniformly selected as a prediction time in a time period in which the total query times are the most.
  • the total number of queries in a time period is the sum of the number of queries at each query time point in the time period.
  • the time period with the most total query times is the time period that the user is interested in. The user may query the time point in the time period later. Therefore, multiple time points can be evenly selected in the time period with the most total query times as a prediction. time.
  • the effectiveness of the prediction can be improved.
  • a state topology map corresponding to the predicted time is generated, and the state topology map corresponding to the predicted time is saved to a second database.
  • the state topology map corresponding to the prediction time may be generated according to the state topology map generating methods in S102 to S103, and the state topology map corresponding to the prediction time may be saved to the second database. In this way, when the user query time is the predicted time, the state topology map corresponding to the predicted time can be directly retrieved from the second database.
  • the prediction time is predicted according to historical query data and preset prediction rules, and a state topology map of the predicted time is generated and saved in a second database in advance.
  • the state topology map can be generated in advance in a predictive manner to a certain extent. This avoids the generation process of the state topology map in the user query process, thereby reducing the amount of data and processing steps in the query process and improving the query speed.
  • the accuracy of the prediction time point can be improved and the prediction success rate can be improved.
  • the state topology map of the predicted time that has been retrieved in the second database is deleted; and / or the state topology map of the second database that has not been retrieved for more than a preset period of time is deleted.
  • the storage space of the second database can be released so as to store the state topology map corresponding to the predicted time that is predicted later.
  • the status information of each component of the application corresponding to the query time is searched in the status database, and the status information of each component is mapped on the component topology map of the application to generate a status topology map, and the status information of each component of the application is expressed as The topology diagram is displayed to the user.
  • the topology diagram is displayed to the user. Using the intuitiveness and integrity of the topology diagram, the operating status of each component can be clearly displayed to the user, so that the user can know the health status of the application as a whole.
  • FIG. 5 shows a schematic diagram of an application running status query device provided by an embodiment of the present application. For convenience of explanation, only the parts related to this embodiment are shown.
  • the device includes a first acquisition module 51, a search module 52, a second acquisition module 53, and a generation module 54.
  • the first obtaining module 51 is configured to obtain a status query instruction including a query time input by a user.
  • the searching module 52 is configured to search the state database for the state information of each component of the application corresponding to the query time.
  • the second obtaining module 53 is configured to obtain a component topology diagram of the application.
  • a generating module 54 is configured to map the found status information of each component to the component topology map, generate a status topology map, and display the status topology map.
  • the apparatus further includes a processing module, the processing module is configured to:
  • a status query instruction including the query time is obtained again, a status topology map corresponding to the query time is retrieved from the first database.
  • processing module is further configured to:
  • the deletion time is the time point when the state topology map is deleted from the first database
  • processing module is further configured to:
  • t s t t + a + n * b, where t s is the deletion time, t t is the addition time, n is the number of calls, a is the initial retention time, and b is the preset time parameter; the initial retention The time is the retention time of the state topology graph with zero recall times in the first database.
  • processing module is further configured to:
  • a state topology map corresponding to the predicted time is retrieved from the second database.
  • the preset prediction rule includes:
  • a plurality of time points are uniformly selected as the prediction time.
  • the preset prediction rule includes:
  • time points are uniformly selected as a prediction time in a time period in which the total query times are the most.
  • the status information of each component of the application corresponding to the query time is searched in the status database, and the status information of each component is mapped on the component topology map of the application to generate a status topology map, and the status information of each component of the application is expressed as The topology diagram is displayed to the user.
  • the topology diagram is displayed to the user. Using the intuitiveness and integrity of the topology diagram, the operating status of each component can be clearly displayed to the user, so that the user can know the health status of the application as a whole.
  • FIG. 6 is a schematic diagram of a terminal device according to an embodiment of the present application.
  • the terminal device 6 of this embodiment includes a processor 60, a memory 61, and computer-readable instructions 62, such as a program, stored in the memory 61 and executable on the processor 60.
  • the processor 60 executes the computer-readable instructions 62
  • the steps in the foregoing method embodiments are implemented, for example, steps 101 to 104 shown in FIG. 1.
  • the processor 60 executes the computer-readable instructions 62
  • the functions of each module / unit in the foregoing device embodiments are implemented, for example, the functions of modules 51 to 53 shown in FIG. 5.
  • the computer-readable instructions 62 may be divided into one or more modules / units, the one or more modules / units are stored in the memory 61 and executed by the processor 60, To complete this application.
  • the one or more modules / units may be a series of computer-readable instruction instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer-readable instructions 62 in the terminal device 6.
  • the terminal device 6 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
  • the terminal device may include, but is not limited to, a processor 60 and a memory 61.
  • FIG. 6 is only an example of the terminal device 6 and does not constitute a limitation on the terminal device 6. It may include more or fewer components than shown in the figure, or combine some components or different components.
  • the terminal device may further include an input / output device, a network access device, a bus, a display, and the like.
  • the processor 60 may be a central processing unit (Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), and application-specific integrated circuits (Applications) Specific Integrated Circuit (ASIC), off-the-shelf Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • CPU Central Processing Unit
  • DSP digital signal processor
  • ASIC application-specific integrated circuits
  • FPGA off-the-shelf Programmable Gate Array
  • a general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the memory 61 may be an internal storage unit of the terminal device 6, such as a hard disk or a memory of the terminal device 6.
  • the memory 61 may also be an external storage device of the terminal device 6, such as a plug-in hard disk, a smart media card (SMC), and a secure digital (SD) provided on the terminal device 6. Card, flash card, etc. Further, the memory 61 may further include both an internal storage unit of the terminal device 6 and an external storage device.
  • the memory 61 is configured to store the computer-readable instructions and other programs and data required by the terminal device.
  • the memory 61 may also be used to temporarily store data that has been output or is to be output.
  • the disclosed apparatus / terminal device and method may be implemented in other ways.
  • the device / terminal device embodiments described above are only schematic.
  • the division of the modules or units is only a logical function division.
  • components can be combined or integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, which may be electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objective of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each of the units may exist separately physically, or two or more units may be integrated into one unit.
  • the above integrated unit may be implemented in the form of hardware or in the form of software functional unit.
  • the integrated module / unit When the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, this application implements all or part of the processes in the methods of the above embodiments, and can also be completed by computer-readable instructions instructing related hardware.
  • the computer-readable instructions can be stored in a computer-readable storage medium In the computer-readable instructions, when executed by a processor, the steps of the foregoing method embodiments can be implemented.
  • the computer-readable instructions include computer-readable instruction codes, and the computer-readable instruction codes may be in a source code form, an object code form, an executable file, or some intermediate form.
  • the computer-readable medium may include: any entity or device capable of carrying the computer-readable instruction code, a recording medium, a U disk, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (Read-Only Memory, ROM), Random Access Memory Memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media.
  • a recording medium a U disk, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (Read-Only Memory, ROM), Random Access Memory Memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media.
  • ROM Read-Only Memory
  • RAM Random Access Memory Memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Information Transfer Between Computers (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present application relates to the technical field of computers, and provides a computer readable storage medium and a terminal device. A method comprises: obtaining a state query instruction comprising a query time and input by a user; searching a state database for state information of each component of an application corresponding to the query time; obtaining a component topology diagram of the application; and mapping the found state information of each component to the component topology diagram, generating a state topology diagram, and displaying the state topology diagram. According to the present application, the state information of each component of an application is displayed to a user in the form of a state topology diagram, and the operating state of each component can be clearly displayed to the user due to the intuitiveness and integrity of the topology diagram, thereby making it convenient for the user to know the health condition of the application as a whole.

Description

应用运行状态查询方法及终端设备Application running state query method and terminal equipment
本申请申明享有2018年4月9日递交的申请号为201810788629.5、名称为“应用运行状态查询方法及终端设备”中国专利申请的优先权,该中国专利申请的整体内容以参考的方式结合在本申请中。This application claims the priority of a Chinese patent application filed on April 9, 2018 with the application number 201810788629.5 and the name "Application Operation Status Query Method and Terminal Equipment". The entire content of the Chinese patent application is incorporated herein by reference. Applying.
技术领域Technical field
本申请涉及计算机技术领域,尤其涉及一种应用运行状态查询方法及终端设备。The present application relates to the field of computer technology, and in particular, to a method and a terminal device for querying an application running state.
背景技术Background technique
在智能设备运行应用程序的过程中,通常会对应用程序各方面的运行状态进行记录并汇总到数据库。监控人员可以通过查询数据库中的数据及应用各方面的健康指标获知应用的健康状况。目前监控人员可以输入想要查询的健康指标和时间点,从数据库中查询在该时间点与该健康指标相关的应用运行状态数据,但通过这种查询方式只能查询到应用某一方面的运行状态,查询结果无法表征应用整体的健康状况。In the process of running an application by a smart device, the running status of various aspects of the application is usually recorded and summarized into a database. The monitoring personnel can obtain the health status of the application by querying the data in the database and the health indicators of various aspects of the application. At present, the monitoring staff can input the health indicators and time points that they want to query, and query the database for the application running status data related to the health indicators at that time point, but this query method can only query the operation of a certain aspect of the application. Status, query results cannot represent the overall health of the application.
技术问题technical problem
有鉴于此,本申请实施例提供了应用运行状态查询方法及终端设备,以解决目前应用运行状态查询方法只能查询到应用某一方面的运行状态,查询结果无法表征应用整体健康状况的问题。In view of this, the embodiments of the present application provide an application running status query method and a terminal device, so as to solve the problem that the current application running status query method can only query the running status of an application, and the query result cannot represent the overall health status of the application.
技术解决方案Technical solutions
本申请实施例的第一方面提供了应用运行状态查询方法,包括:A first aspect of the embodiments of the present application provides an application running status query method, including:
获取用户输入的包含查询时间的状态查询指令;Obtaining a status query instruction including a query time input by a user;
在状态数据库中查找所述查询时间对应的应用各组件的状态信息;Searching the state database for the state information of each component of the application corresponding to the query time;
获取应用的组件拓扑图;Get the component topology diagram of the application;
将查找到的各组件的状态信息映射到所述组件拓扑图上,生成状态拓扑图,并显示所述状态拓扑图。Map the found status information of each component to the component topology map, generate a status topology map, and display the status topology map.
本申请实施例的第二方面提供了计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,所述计算机可读指令被处理器执行时实现第一方面中的应用运行状态查询方法。A second aspect of the embodiments of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores computer-readable instructions that, when executed by a processor, implement an application running state in the first aspect Query method.
本申请实施例的第三方面提供了终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现如下步骤:A third aspect of the embodiments of the present application provides a terminal device, including a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, where the processor executes the computer-readable Implement the following steps when instructing:
获取用户输入的包含查询时间的状态查询指令;Obtaining a status query instruction including a query time input by a user;
在状态数据库中查找所述查询时间对应的应用各组件的状态信息;Searching the state database for the state information of each component of the application corresponding to the query time;
获取应用的组件拓扑图;Get the component topology diagram of the application;
将查找到的各组件的状态信息映射到所述组件拓扑图上,生成状态拓扑图,并显示所述状态拓扑图。Map the found status information of each component to the component topology map, generate a status topology map, and display the status topology map.
有益效果Beneficial effect
本申请实施例与现有技术相比存在的有益效果是:在状态数据库中查找查询时间对应的应用各组件的状态信息,并将各组件的状态信息映射到应用的组件拓扑图上,生成状态拓扑图,将应用各组件的状态信息以状态拓扑图的形式展示给用户,利用拓扑图的直观性和整体性,能够向用户清楚显示各组件的运行状态,便于用户从整体上获知应用的健康状况。Compared with the prior art, the embodiment of the present application has the beneficial effect that the state information of each component of the application corresponding to the query time is searched in the state database, and the state information of each component is mapped to the component topology diagram of the application to generate the state. The topology map shows the status information of each component of the application to the user in the form of a status topology map. Using the intuitiveness and integrity of the topology map, the operating status of each component can be clearly displayed to the user, so that the user can know the health of the application as a whole. situation.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only for the present application. For some embodiments, for those of ordinary skill in the art, other drawings can be obtained according to these drawings without paying creative labor.
图1是本申请实施例提供的应用运行状态查询方法的实现流程图;FIG. 1 is an implementation flowchart of an application running status query method according to an embodiment of the present application;
图2是本申请实施例提供的应用运行状态查询方法中将状态拓扑图添加至第一数据库的实现流程图;2 is an implementation flowchart of adding a state topology diagram to a first database in an application running status query method according to an embodiment of the present application;
图3是本申请实施例提供的应用运行状态查询方法中更新第一数据库的实现流程图;3 is an implementation flowchart of updating a first database in an application running status query method according to an embodiment of the present application;
图4是本申请实施例提供的应用运行状态查询方法中对用户的查询时间进行预测的实现流程图;4 is an implementation flowchart of predicting a user's query time in the method for querying an application running state provided by an embodiment of the present application;
图5是本申请实施例提供的应用运行状态查询装置的示意图;FIG. 5 is a schematic diagram of an application running status query device according to an embodiment of the present application; FIG.
图6是本申请实施例提供的终端设备的示意图。FIG. 6 is a schematic diagram of a terminal device according to an embodiment of the present application.
本发明的实施方式Embodiments of the invention
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solution, and advantages of the present application clearer, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the application, and are not used to limit the application.
本申请实施例通过埋点数据得到关联数据,以对关联数据进行分析,得到整个时间段之内、某一操作过程中的用户行为情况和软件的运行状态情况,解决了根据单一埋点处获取到的操作信息单独分析某一点处的用户数据,不能对整个使用过程进行全面的监控,造成数据分析的局限性的问题。The embodiment of the present application obtains related data through buried point data to analyze the related data to obtain user behavior and software running status during a certain period of time during an operation, which solves the problem of obtaining data from a single buried point. The obtained operation information alone analyzes user data at a certain point, and cannot comprehensively monitor the entire use process, which causes the limitation of data analysis.
实施例1Example 1
图1为本申请实施例提供的应用运行状态查询方法的实现流程图,详述如下:FIG. 1 is an implementation flowchart of an application running status query method according to an embodiment of the present application, which is detailed as follows:
在S101中,获取用户输入的包含查询时间的状态查询指令。In S101, a status query instruction including a query time input by a user is acquired.
在本实施例中,用户可以输入当前时间之前的某一时间,查询该时间应用的运行状态,该时间即为查询时间。例如,用户输入的查询时间为3月8日8:00,表示用户需要查询3月8日8:00时的应用的运行状态。In this embodiment, the user can input a time before the current time to query the running status of the application at that time, and the time is the query time. For example, the query time entered by the user is 8:00 on March 8, which means that the user needs to query the running status of the application at 8:00 on March 8.
可选地,每个时间对应于该时间应用的健康状况值。建立并显示时间轴,并在时间轴上显示各个时间对应的健康状况值。其中健康状况值用于表征应用整体的健康情况。时间轴和健康状况值的显示可以方便用户根据各时间应用的健康状况值确定感兴趣的时间进行查询。Optionally, each time corresponds to a health status value applied at that time. Establish and display the timeline, and display the health status value corresponding to each time on the timeline. The health value is used to characterize the overall health of the application. The display of the time axis and the health status value can facilitate the user to determine the time of interest for querying based on the health status value applied at each time.
在S102中,在状态数据库中查找所述查询时间对应的应用各组件的状态信息。In S102, state information of each component of the application corresponding to the query time is searched in a state database.
在本实施例中,状态数据库用于保存采集到的应用各组件的状态信息。状态信息可以包括组件的状态值和告警状态。其中状态值为根据组件的运行参数和预设运行指标对比得到的表征组件运行状态的数据。告警状态可以为正常、一级告警、二级告警等,用于表征组件运行状态的告警等级。In this embodiment, the state database is used to store the collected state information of each component of the application. The status information may include the status value and alarm status of the component. The status value is the data representing the operating status of the component, which is obtained by comparing the operating parameters of the component with preset operating indicators. The alarm status can be normal, primary alarm, secondary alarm, etc., and is used to indicate the alarm level of the component's operating status.
在S103中,获取应用的组件拓扑图。In S103, a component topology diagram of the application is obtained.
在本实施例中,组件拓扑图为根据应用组件之间的关系构建出的拓扑图。应用组件的类型可以分为数据层组件、业务逻辑层组件及表示层组件。可以预先将应用所有的组件按照不同架构层组件之间的关系以及同层架构组件之间的相互关系建立应用的组件拓扑图,并保存组件拓扑图。在需要调用组件拓扑图时,直接获取预先构建的组件拓扑图。In this embodiment, the component topology diagram is a topology diagram constructed according to a relationship between application components. The types of application components can be divided into data layer components, business logic layer components, and presentation layer components. All the components of the application can be established in advance according to the relationship between the components of different architecture layers and the mutual relationship between the components of the same architecture layer, and the component topology map can be saved. When the component topology diagram needs to be called, the pre-built component topology diagram is directly obtained.
在S104中,将查找到的各组件的状态信息映射到所述组件拓扑图上,生成状态拓扑图,并显示所述状态拓扑图。In S104, the state information of the found components is mapped to the component topology map, a status topology map is generated, and the status topology map is displayed.
在本实施例中,查询时间、查找到的各组件的状态信息及状态拓扑图为一一对应关系。将查询时间对应的应用各组件的状态信息映射到组件拓扑图上,生成查询时间对应的状态拓扑图。状态拓扑图可以表征应用各组件之间关系,以及在查询时间时各组件的运行状态。In this embodiment, the query time, the found state information of each component, and the state topology map are one-to-one correspondences. The status information of each component of the application corresponding to the query time is mapped to the component topology map, and a status topology map corresponding to the query time is generated. The state topology diagram can represent the relationship between the components of the application and the running status of each component when querying time.
本申请实施例在状态数据库中查找查询时间对应的应用各组件的状态信息,并将各组件的状态信息映射到应用的组件拓扑图上,生成状态拓扑图,将应用各组件的状态信息以状态拓扑图的形式展示给用户,利用拓扑图的直观性和整体性,能够向用户清楚显示各组件的运行状态,便于用户从整体上获知应用的健康状况。In the embodiment of the present application, the status information of each component of the application corresponding to the query time is searched in the status database, and the status information of each component is mapped on the component topology map of the application to generate a status topology map, and the status information of each component of the application is represented by the status. The topology diagram is displayed to the user. Using the intuitiveness and integrity of the topology diagram, the operating status of each component can be clearly displayed to the user, so that the user can know the health status of the application as a whole.
实施例2Example 2
在S201中,将所述状态拓扑图及所述查询时间添加至第一数据库。In S201, the state topology map and the query time are added to a first database.
在本实施例中,第一数据库用于保存生成的状态拓扑图。可以将用户查询过的查询时间对应的状态拓扑图保存到第一数据库。其中用户可以为同一账户的用户或不同账户的用户。In this embodiment, the first database is used to store the generated state topology map. The state topology map corresponding to the query time that the user has queried may be saved to the first database. The users can be users of the same account or users of different accounts.
在S202中,若再次获取到包含所述查询时间的状态查询指令,则从所述第一数据库中调取所述查询时间对应的状态拓扑图。In S202, if a status query instruction including the query time is obtained again, a status topology map corresponding to the query time is retrieved from the first database.
在本实施例中,第一数据库中保存有用户查询过的已经生成的状态拓扑图。如果用户对之前查询过的时间再次进行状态查询,则可以从第一数据库中获取该时间对应的状态拓扑图。In this embodiment, the first database stores a state topology diagram that has been generated by the user and has been queried. If the user performs a state query again on the time previously queried, the state topology map corresponding to the time can be obtained from the first database.
可选地,在获取到用户输入的包含查询时间的状态查询指令后,查找第一数据库中是否存在该查询时间对应的状态拓扑图,若存在,则从第一数据库中调取该查询时间对应的状态拓扑图,并进行显示;若不存在,则在状态数据库中查找该查询时间对应的应用各组件的状态信息,获取应用的组件拓扑图,将查找到的各组件的状态信息映射到组件拓扑图上,生成该查询时间对应的状态拓扑图,并进行显示。Optionally, after obtaining the status query instruction including the query time input by the user, it is found whether there is a state topology map corresponding to the query time in the first database, and if it exists, the query time correspondence is retrieved from the first database. And displays the status topology map of the application; if it does not exist, look up the status information of the application components corresponding to the query time in the status database, obtain the component topology map of the application, and map the status information of the found components to the components On the topology map, a status topology map corresponding to the query time is generated and displayed.
本实施例通过从第一数据库中调取保存的状态拓扑图,可以避免用户多次查询同一时间点,每次都要进行状态拓扑图生成的过程,从而减少查询过程的处理数据量和处理步骤,提高查询速度。第一数据库可以被多个不用账户的用户查询使用,例如对于第一用户查询过的时间点,在第二用户查询该时间点时可以直接从第一数据库中调取保存的该时间点对应的状态拓扑图,这样使第一数据库中的状态拓扑图能够被不同账户的用户使用,提高第一数据库中状态拓扑图的使用率,进一步提高查询速度。In this embodiment, the saved state topology map is retrieved from the first database, which can prevent users from querying the same time point multiple times, and the process of generating the state topology map every time, thereby reducing the amount of data and processing steps in the query process. To improve query speed. The first database can be used by multiple users who do not have an account. For example, for the time point that the first user has queried, when the second user queries the time point, the corresponding saved time point can be retrieved directly from the first database. State topology map, so that the state topology map in the first database can be used by users of different accounts, increasing the utilization rate of the state topology map in the first database, and further improving the query speed.
实施例3Example 3
作为本申请的一个实施例,如图3所示,上述方法还可以包括:As an embodiment of the present application, as shown in FIG. 3, the foregoing method may further include:
在S301中,记录所述第一数据库中各个状态拓扑图的添加时间和调取次数。In S301, the adding time and the number of retrieval times of each state topology graph in the first database are recorded.
在本实施例中,添加时间为将状态拓扑图添加到第一数据库的时间。调取次数为状态拓扑图在添加到第一数据库后,被调取过的次数。在状态拓扑图每次被调取后更新该状态拓扑图对应的调取次数。调取次数为大于或等于零的整数。当调取次数为零时,表示对应的状态拓扑图在添加到第一数据库后还未被调取过。In this embodiment, the adding time is the time when the state topology map is added to the first database. The number of retrievals is the number of times the state topology graph has been retrieved after being added to the first database. After each state topology diagram is retrieved, the number of retrievals corresponding to the state topology diagram is updated. The number of calls is an integer greater than or equal to zero. When the number of retrievals is zero, it indicates that the corresponding state topology graph has not been retrieved after being added to the first database.
在S302中,根据各个状态拓扑图的添加时间和调取次数计算各个状态拓扑图的删除时间;所述删除时间为从所述第一数据库删除状态拓扑图的时间点。In S302, the deletion time of each state topology graph is calculated according to the addition time and the number of times of retrieval of each state topology graph; the deletion time is the time point when the state topology graph is deleted from the first database.
在本实施例中,在将状态拓扑图添加到第一数据库后,可以计算该状态拓扑图对应的删除时间。状态拓扑图的删除时间为从第一数据库中删除该状态拓扑图的时间点。通过设置删除时间,可以对第一数据库中保存的状态拓扑图进行整理,将第一数据库中长时间未被调取的状态拓扑图进行删除,释放存储空间,以便保存新生成的状态拓扑图。在调取一个状态拓扑图后,更新该状态拓扑图的调取次数,并根据该状态拓扑图的添加时间和更新后的调取次数重新计算该状态拓扑图的删除时间,对删除时间进行更新。In this embodiment, after the state topology map is added to the first database, a deletion time corresponding to the state topology map may be calculated. The deletion time of the state topology graph is the time point when the state topology graph is deleted from the first database. By setting the deletion time, the state topology map stored in the first database can be organized, the state topology map that has not been retrieved for a long time in the first database can be deleted, and the storage space is released to save the newly generated state topology map. After a state topology diagram is retrieved, the number of times the state topology diagram is retrieved is updated, and the deletion time of the state topology diagram is recalculated according to the addition time of the state topology diagram and the updated retrieval times, and the deletion time is updated. .
可选地,第一数据库中的每个状态拓扑图设置有对应的更新参数,其中更新参数可以包括但不限于状态拓扑图的添加时间、调取次数和删除时间。在调取一个状态拓扑图后,更新该状态拓扑图的更新参数中的调取次数和删除时间。Optionally, each state topology map in the first database is provided with corresponding update parameters, where the update parameters may include, but are not limited to, the time of adding, recalling, and deleting the state topology map. After a state topology diagram is retrieved, the number of retrievals and the deletion time in the update parameters of the state topology diagram are updated.
可选地,所述根据各个状态拓扑图的添加时间和调取次数计算各个状态拓扑图的删除时间,包括:计算Optionally, the calculating the deletion time of each state topological graph according to the adding time and the number of times of retrieval of each state topological graph includes:
t s=t t+a+n*b                                 (1) t s = t t + a + n * b (1)
其中, t s 为删除时间, t t 为添加时间, n为调取次数, a为初始保留时间, b为预置时间参量。所述初始保留时间为第一数据库中调取次数为零的状态拓扑图的保留时长。初始保留时间用于表征一个状态拓扑图在第一数据库中的最少保留时间。预置时间参量用于表征状态拓扑图被调取一次对删除时间的影响程度。初始保留时间和预置时间参量可以根据实际需求进行预先设置,在此不作限定。 Among them, t s is the deletion time, t t is the addition time, n is the number of calls, a is the initial retention time, and b is the preset time parameter. The initial retention time is the retention time of the state topology graph with zero recall times in the first database. The initial retention time is used to represent the minimum retention time of a state topology graph in the first database. The preset time parameter is used to represent the influence degree of the state topology graph once retrieved on the deletion time. The initial retention time and preset time parameters can be set in advance according to actual needs, and are not limited here.
例如, a设为60天, b设为20天,状态拓扑图A在3月8日8:00保存到第一数据库时,记录添加时间为3月8日8:00,读取次数为0,根据公式(1)计算删除时间为5月7日8:00。若状态拓扑图A在4月23日11:00被调取,则更新调取次数为1,根据公式(1)的计算结果将删除时间更新为5月27日8:00。如果在4月23日11:00至5月27日8:00期间,状态拓扑图A没有再被调取,则在5月27日8:00从第一数据库中删除状态拓扑图A。 For example, a is set to 60 days and b is set to 20 days. When the state topology map A is saved to the first database at 8:00 on March 8, the record addition time is 8:00 on March 8, and the number of reads is 0. According to formula (1), the deletion time is 8:00 on May 7. If the state topology diagram A is retrieved at 11:00 on April 23, the number of retrieval calls is 1, and the deletion time is updated to 8:00 on May 27 according to the calculation result of formula (1). If the state topology graph A is not retrieved between 11:00 on April 23 and 8:00 on May 27, the state topology graph A is deleted from the first database at 8:00 on May 27.
在S303中,获取当前时间,将删除时间在所述当前时间之前的状态拓扑图从所述第一数据库中删除。In S303, the current time is acquired, and the state topology map with the deletion time before the current time is deleted from the first database.
在本实施例中,可以将第一数据库中各个状态拓扑图的删除时间和当前时间进行对比,将第一状态拓扑图从第一数据库中删除,第一状态拓扑的删除时间超过当前时间。In this embodiment, the deletion time of each state topology map in the first database may be compared with the current time, the first state topology map may be deleted from the first database, and the deletion time of the first state topology may exceed the current time.
可选地,每隔预设时间间隔(如5分钟)读取各个状态拓扑图的删除时间,将当前时间分别与各个删除时间进行对比,将第一数据库中删除时间在当前时间之前的状态拓扑图进行删除。Optionally, read the deletion time of each state topology map every preset time interval (such as 5 minutes), compare the current time with each deletion time, and compare the state topology of the first database with the deletion time before the current time Figure to delete.
本实施例通过根据各状态拓扑图的调取次数自动更新各状态拓扑图的删除时间,再根据删除时间对第一数据库中长时间未被调用的状态拓扑图进行删除,能够在保证第一数据库对查询速度的提升效果的情况下,及时删除不被重复查询的状态拓扑图,从而删减第一数据库中的无效数据,释放第一数据库的存储空间,以便存储之后生成的状态拓扑图。In this embodiment, by automatically updating the deletion time of each state topology map according to the number of times each state topology map is called, and then deleting the state topology map that has not been called for a long time in the first database according to the deletion time, the first database can be guaranteed. In the case of improving the query speed, the state topology map that is not repeatedly queried is deleted in a timely manner, thereby deleting invalid data in the first database, and freeing up storage space of the first database to store the state topology map generated later.
实施例4Example 4
在S401中,获取预设统计时间段内的历史查询数据。In S401, historical query data within a preset statistical time period is acquired.
在本实施例中,预设统计时间段为从当前时间之前的时间中预先选取的一个时间段。历史查询数据为用户在预设统计时间段内所查询的相关数据,历史查询数据可以包括但不限于查询时间及查询时间对应的查询次数。查询次数为在预设统计时间段内用户对该查询时间进行状态查询的次数。In this embodiment, the preset statistical time period is a time period selected in advance from the time before the current time. The historical query data is related data queried by the user within a preset statistical time period. The historical query data may include, but is not limited to, the query time and the number of queries corresponding to the query time. The query count is the number of times the user has performed a status query on the query time within a preset statistical period.
在S402中,根据预设预测规则和所述历史查询数据对用户的查询时间进行预测,得到预测时间。In S402, a user's query time is predicted according to a preset prediction rule and the historical query data to obtain a prediction time.
在本实施例中,预测时间为预测出的用户之后可能会查询状态的时间。根据预设预测规则和历史查询数据可以对查询时间进行预测,得到预测时间。In this embodiment, the predicted time is the time when the predicted user may query the status later. According to preset prediction rules and historical query data, the query time can be predicted to obtain the prediction time.
在一个实施例中,所述预设预测规则可以包括:In one embodiment, the preset prediction rule may include:
查找所述预设统计时间段内查询次数最多的时间点;Find the time point with the highest number of queries within the preset statistical time period;
在以所述查询次数最多的时间点为中心的预设时间段内,均匀选取多个时间点作为预测时间。Within a preset time period centered on the time point with the most number of queries, a plurality of time points are uniformly selected as the prediction time.
在本实施例中,可以对比预设统计时间段内各个查询时间点对应的查询次数,选取出查询次数最多的查询时间点。以该查询时间点为中心确定预设时间段,在预设时间段内均匀地选取多个时间点作为预测时间。例如若设定预设时间段的时长为2天,查询次数最多的时间点为4月23日11:00,则确定出的预设时间段为4月22日11:00至4月24日11:00,可以在预设时间段内均匀地选取预设个数的时间点,将预设个数的时间点都作为预测时间。In this embodiment, the query times corresponding to each query time point in a preset statistical time period may be compared to select the query time point with the highest number of queries. The preset time period is determined with the query time point as the center, and multiple time points are uniformly selected as the prediction time within the preset time period. For example, if the duration of the preset time period is set to 2 days and the time point with the most queries is 11:00 on April 23, then the preset time period determined is from 11:00 on April 22 to April 24 At 11:00, a preset number of time points can be uniformly selected within a preset time period, and the time points of the preset number are all used as prediction times.
如果用户多次查询同一时间点的应用运行状态,则表示该时间点的应用运行状态可能存在异常或该时间点是用户感兴趣的时间点,那么该时间点附近的时间点用户之后可能也会进行查询。本实施例通过在以查询次数最多的时间点为中心的预设时间段内,均匀选取多个时间点作为预测时间,将查询次数最多的时间点附近的时间点作为预测的时间点,能够提高预测的有效性。If a user queries the application running status at the same point multiple times, it indicates that the application running status at that point in time may be abnormal or the point in time is a time point that the user is interested in. Then, the user at the time point near the point in time may also later Make a query. In this embodiment, a plurality of time points are uniformly selected as the prediction time in a preset time period centered on the time point with the most query times, and the time point near the time point with the most query times is used as the prediction time point, which can improve The validity of the forecast.
在另一实施例中,所述预设预测规则可以包括:In another embodiment, the preset prediction rule may include:
将所述预设统计时间段划分为多个时间段;Dividing the preset statistical time period into a plurality of time periods;
分别计算各个时间段内的总查询次数;Calculate the total number of queries in each time period;
在所述总查询次数最多的时间段内均匀选取多个时间点,作为预测时间。Multiple time points are uniformly selected as a prediction time in a time period in which the total query times are the most.
在本实施例中,一个时间段内的总查询次数为该时间段内各个查询时间点的查询次数之和。总查询次数最多的时间段为用户感兴趣的时间段,用户之后可能会对该时间段内的时间点进行查询,因此可以在总查询次数最多的时间段内均匀选取多个时间点,作为预测时间。本实施例通过选取总查询次数最多的时间段内的时间点作为预测的时间点,能够提高预测的有效性。In this embodiment, the total number of queries in a time period is the sum of the number of queries at each query time point in the time period. The time period with the most total query times is the time period that the user is interested in. The user may query the time point in the time period later. Therefore, multiple time points can be evenly selected in the time period with the most total query times as a prediction. time. In this embodiment, by selecting a time point within a time period in which the total number of queries is the most as a prediction time point, the effectiveness of the prediction can be improved.
在S403中,生成所述预测时间对应的状态拓扑图,并将所述预测时间对应的状态拓扑图保存至第二数据库。In S403, a state topology map corresponding to the predicted time is generated, and the state topology map corresponding to the predicted time is saved to a second database.
在S404中,若获取到用户输入的包含的查询时间为所述预测时间的状态查询指令,则从所述第二数据库中调取所述预测时间对应的状态拓扑图。In S404, if a state query instruction including the query time input by the user and the predicted time is obtained, the state topology map corresponding to the predicted time is retrieved from the second database.
在本实施例中,在预测出预测时间后,可以按照S102至S103中的状态拓扑图生成方法生成预测时间对应的状态拓扑图,将预测时间对应的状态拓扑图保存至第二数据库。这样在之后用户查询的时间为预测时间时,可以直接从第二数据库中调取预测时间对应的状态拓扑图。In this embodiment, after the prediction time is predicted, the state topology map corresponding to the prediction time may be generated according to the state topology map generating methods in S102 to S103, and the state topology map corresponding to the prediction time may be saved to the second database. In this way, when the user query time is the predicted time, the state topology map corresponding to the predicted time can be directly retrieved from the second database.
本实施例通过根据历史查询数据和预设预测规则预测出预测时间,提前生成并保存预测时间的状态拓扑图到第二数据库,能够通过预测的方式提前进行状态拓扑图的生成处理,在一定程度上避免了用户查询过程中的状态拓扑图的生成过程,从而减少查询过程的处理数据量和处理步骤,提高查询速度。通过历史查询数据中的各时间点、查询次数以及预设预测规则,能够提高预测时间点的准确率,提高预测成功率。In this embodiment, the prediction time is predicted according to historical query data and preset prediction rules, and a state topology map of the predicted time is generated and saved in a second database in advance. The state topology map can be generated in advance in a predictive manner to a certain extent. This avoids the generation process of the state topology map in the user query process, thereby reducing the amount of data and processing steps in the query process and improving the query speed. Through each time point in the historical query data, the number of queries, and preset prediction rules, the accuracy of the prediction time point can be improved and the prediction success rate can be improved.
可选地,将第二数据库中已经被调取的预测时间的状态拓扑图删除;和/或将第二数据库中超过预设时长没有被调取的状态拓扑图删除。Optionally, the state topology map of the predicted time that has been retrieved in the second database is deleted; and / or the state topology map of the second database that has not been retrieved for more than a preset period of time is deleted.
本实施例通过删除第二数据库中的长时间未被调取的状态拓扑图,能够释放第二数据库的存储空间,以便存储之后预测出的预测时间对应的状态拓扑图。In this embodiment, by deleting the state topology map that has not been retrieved for a long time in the second database, the storage space of the second database can be released so as to store the state topology map corresponding to the predicted time that is predicted later.
本申请实施例在状态数据库中查找查询时间对应的应用各组件的状态信息,并将各组件的状态信息映射到应用的组件拓扑图上,生成状态拓扑图,将应用各组件的状态信息以状态拓扑图的形式展示给用户,利用拓扑图的直观性和整体性,能够向用户清楚显示各组件的运行状态,便于用户从整体上获知应用的健康状况。In the embodiment of the present application, the status information of each component of the application corresponding to the query time is searched in the status database, and the status information of each component is mapped on the component topology map of the application to generate a status topology map, and the status information of each component of the application is expressed as The topology diagram is displayed to the user. Using the intuitiveness and integrity of the topology diagram, the operating status of each component can be clearly displayed to the user, so that the user can know the health status of the application as a whole.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
实施例5Example 5
对应于上文实施例所述的应用运行状态查询方法,图5示出了本申请实施例提供的应用运行状态查询装置的示意图。为了便于说明,仅示出了与本实施例相关的部分。Corresponding to the application running status query method described in the above embodiment, FIG. 5 shows a schematic diagram of an application running status query device provided by an embodiment of the present application. For convenience of explanation, only the parts related to this embodiment are shown.
参照图5,该装置包括第一获取模块51、查找模块52、第二获取模块53及生成模块54。Referring to FIG. 5, the device includes a first acquisition module 51, a search module 52, a second acquisition module 53, and a generation module 54.
第一获取模块51,用于获取用户输入的包含查询时间的状态查询指令。The first obtaining module 51 is configured to obtain a status query instruction including a query time input by a user.
查找模块52,用于在状态数据库中查找所述查询时间对应的应用各组件的状态信息。The searching module 52 is configured to search the state database for the state information of each component of the application corresponding to the query time.
第二获取模块53,用于获取应用的组件拓扑图。The second obtaining module 53 is configured to obtain a component topology diagram of the application.
生成模块54,用于将查找到的各组件的状态信息映射到所述组件拓扑图上,生成状态拓扑图,并显示所述状态拓扑图。A generating module 54 is configured to map the found status information of each component to the component topology map, generate a status topology map, and display the status topology map.
可选地,该装置还包括处理模块,所述处理模块用于:Optionally, the apparatus further includes a processing module, the processing module is configured to:
将所述状态拓扑图及所述查询时间添加至第一数据库;Adding the state topology map and the query time to a first database;
若再次获取到包含所述查询时间的状态查询指令,则从所述第一数据库中调取所述查询时间对应的状态拓扑图。If a status query instruction including the query time is obtained again, a status topology map corresponding to the query time is retrieved from the first database.
可选地,所述处理模块还用于:Optionally, the processing module is further configured to:
记录所述第一数据库中各个状态拓扑图的添加时间和调取次数;Record the adding time and calling times of each state topology graph in the first database;
根据各个状态拓扑图的添加时间和调取次数计算各个状态拓扑图的删除时间;所述删除时间为从第一数据库删除状态拓扑图的时间点;Calculate the deletion time of each state topology map according to the addition time and the number of retrieval times of each state topology map; the deletion time is the time point when the state topology map is deleted from the first database;
获取当前时间,将删除时间在所述当前时间之前的状态拓扑图从所述第一数据库中删除。Obtain the current time, and delete the state topology map with the deletion time before the current time from the first database.
可选地,所述处理模块还用于:Optionally, the processing module is further configured to:
计算t s=t t+a+n*b,其中,t s为删除时间,t t为添加时间, n为调取次数, a为初始保留时间, b为预置时间参量;所述初始保留时间为第一数据库中调取次数为零的状态拓扑图的保留时长。 Calculate t s = t t + a + n * b, where t s is the deletion time, t t is the addition time, n is the number of calls, a is the initial retention time, and b is the preset time parameter; the initial retention The time is the retention time of the state topology graph with zero recall times in the first database.
可选地,所述处理模块还用于:Optionally, the processing module is further configured to:
获取预设统计时间段内的历史查询数据;Obtain historical query data within a preset statistical time period;
根据预设预测规则和所述历史查询数据对用户的查询时间进行预测,得到预测时间;Predicting a user's query time according to a preset prediction rule and the historical query data to obtain a prediction time;
生成所述预测时间对应的状态拓扑图,并将所述预测时间对应的状态拓扑图保存至第二数据库;Generating a state topology map corresponding to the predicted time, and saving the state topology map corresponding to the predicted time to a second database;
若获取到用户输入的包含的查询时间为所述预测时间的状态查询指令,则从所述第二数据库中调取所述预测时间对应的状态拓扑图。If the state query instruction including the query time input by the user is the predicted time, a state topology map corresponding to the predicted time is retrieved from the second database.
可选地,所述预设预测规则包括:Optionally, the preset prediction rule includes:
查找所述预设统计时间段内查询次数最多的时间点;Find the time point with the highest number of queries within the preset statistical time period;
在以所述查询次数最多的时间点为中心的预设时间段内,均匀选取多个时间点作为预测时间。Within a preset time period centered on the time point with the most number of queries, a plurality of time points are uniformly selected as the prediction time.
可选地,所述预设预测规则包括:Optionally, the preset prediction rule includes:
将所述预设统计时间段划分为多个时间段;Dividing the preset statistical time period into a plurality of time periods;
分别计算各个时间段内的总查询次数;Calculate the total number of queries in each time period;
在所述总查询次数最多的时间段内均匀选取多个时间点,作为预测时间。Multiple time points are uniformly selected as a prediction time in a time period in which the total query times are the most.
本申请实施例在状态数据库中查找查询时间对应的应用各组件的状态信息,并将各组件的状态信息映射到应用的组件拓扑图上,生成状态拓扑图,将应用各组件的状态信息以状态拓扑图的形式展示给用户,利用拓扑图的直观性和整体性,能够向用户清楚显示各组件的运行状态,便于用户从整体上获知应用的健康状况。In the embodiment of the present application, the status information of each component of the application corresponding to the query time is searched in the status database, and the status information of each component is mapped on the component topology map of the application to generate a status topology map, and the status information of each component of the application is expressed as The topology diagram is displayed to the user. Using the intuitiveness and integrity of the topology diagram, the operating status of each component can be clearly displayed to the user, so that the user can know the health status of the application as a whole.
实施例6Example 6
图6是本申请一实施例提供的终端设备的示意图。如图6所示,该实施例的终端设备6包括:处理器60、存储器61以及存储在所述存储器61中并可在所述处理器60上运行的计算机可读指令62,例如程序。所述处理器60执行所述计算机可读指令62时实现上述各个方法实施例中的步骤,例如图1所示的步骤101至104。或者,所述处理器60执行所述计算机可读指令62时实现上述各装置实施例中各模块/单元的功能,例如图5所示模块51至53的功能。FIG. 6 is a schematic diagram of a terminal device according to an embodiment of the present application. As shown in FIG. 6, the terminal device 6 of this embodiment includes a processor 60, a memory 61, and computer-readable instructions 62, such as a program, stored in the memory 61 and executable on the processor 60. When the processor 60 executes the computer-readable instructions 62, the steps in the foregoing method embodiments are implemented, for example, steps 101 to 104 shown in FIG. 1. Alternatively, when the processor 60 executes the computer-readable instructions 62, the functions of each module / unit in the foregoing device embodiments are implemented, for example, the functions of modules 51 to 53 shown in FIG. 5.
示例性的,所述计算机可读指令62可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器61中,并由所述处理器60执行,以完成本申请。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机可读指令指令段,该指令段用于描述所述计算机可读指令62在所述终端设备6中的执行过程。Exemplarily, the computer-readable instructions 62 may be divided into one or more modules / units, the one or more modules / units are stored in the memory 61 and executed by the processor 60, To complete this application. The one or more modules / units may be a series of computer-readable instruction instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer-readable instructions 62 in the terminal device 6.
所述终端设备6可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。所述终端设备可包括,但不仅限于,处理器60、存储器61。本领域技术人员可以理解,图6仅仅是终端设备6的示例,并不构成对终端设备6的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述终端设备还可以包括输入输出设备、网络接入设备、总线、显示器等。The terminal device 6 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server. The terminal device may include, but is not limited to, a processor 60 and a memory 61. Those skilled in the art can understand that FIG. 6 is only an example of the terminal device 6 and does not constitute a limitation on the terminal device 6. It may include more or fewer components than shown in the figure, or combine some components or different components. For example, the terminal device may further include an input / output device, a network access device, a bus, a display, and the like.
所称处理器60可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器 (Digital Signal Processor,DSP)、专用集成电路 (Application Specific Integrated Circuit,ASIC)、现成可编程门阵列 (Field-Programmable Gate Array,FPGA) 或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 60 may be a central processing unit (Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), and application-specific integrated circuits (Applications) Specific Integrated Circuit (ASIC), off-the-shelf Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
所述存储器61可以是所述终端设备6的内部存储单元,例如终端设备6的硬盘或内存。所述存储器61也可以是所述终端设备6的外部存储设备,例如所述终端设备6上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器61还可以既包括所述终端设备6的内部存储单元也包括外部存储设备。所述存储器61用于存储所述计算机可读指令以及所述终端设备所需的其他程序和数据。所述存储器61还可以用于暂时地存储已经输出或者将要输出的数据。The memory 61 may be an internal storage unit of the terminal device 6, such as a hard disk or a memory of the terminal device 6. The memory 61 may also be an external storage device of the terminal device 6, such as a plug-in hard disk, a smart media card (SMC), and a secure digital (SD) provided on the terminal device 6. Card, flash card, etc. Further, the memory 61 may further include both an internal storage unit of the terminal device 6 and an external storage device. The memory 61 is configured to store the computer-readable instructions and other programs and data required by the terminal device. The memory 61 may also be used to temporarily store data that has been output or is to be output.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of the description, only the above-mentioned division of functional units and modules is used as an example. In practical applications, the above functions can be allocated by different functional units according to needs. Module completion, that is, dividing the internal structure of the device into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated into one processing unit, or each unit may exist separately physically, or two or more units may be integrated into one unit. The integrated unit may be hardware. It can be implemented in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing from each other, and are not used to limit the protection scope of the present application. For specific working processes of the units and modules in the foregoing system, reference may be made to corresponding processes in the foregoing method embodiments, and details are not described herein again.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above embodiments, the description of each embodiment has its own emphasis. For a part that is not detailed or recorded in an embodiment, reference may be made to related descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art may realize that the units and algorithm steps of each example described in connection with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
在本申请所提供的实施例中,应该理解到,所揭露的装置/终端设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/终端设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed apparatus / terminal device and method may be implemented in other ways. For example, the device / terminal device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be another division manner, such as multiple units. Or components can be combined or integrated into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, which may be electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objective of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each of the units may exist separately physically, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional unit.
所述集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一计算机可读存储介质中,该计算机可读指令在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机可读指令包括计算机可读指令代码,所述计算机可读指令代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机可读指令代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括是电载波信号和电信信号。When the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, this application implements all or part of the processes in the methods of the above embodiments, and can also be completed by computer-readable instructions instructing related hardware. The computer-readable instructions can be stored in a computer-readable storage medium In the computer-readable instructions, when executed by a processor, the steps of the foregoing method embodiments can be implemented. The computer-readable instructions include computer-readable instruction codes, and the computer-readable instruction codes may be in a source code form, an object code form, an executable file, or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer-readable instruction code, a recording medium, a U disk, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (Read-Only Memory, ROM), Random Access Memory Memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdictions. For example, in some jurisdictions, the computer-readable medium Excludes electric carrier signals and telecommunication signals.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to describe the technical solution of the present application, but are not limited thereto. Although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still implement the foregoing implementations. The technical solutions described in the examples are modified, or some of the technical features are equivalently replaced; and these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the application, and should be included in Within the scope of this application.

Claims (20)

  1. 一种应用运行状态查询方法,其特征在于,包括:An application running status query method is characterized in that it includes:
    获取用户输入的包含查询时间的状态查询指令;Obtaining a status query instruction including a query time input by a user;
    在状态数据库中查找所述查询时间对应的应用各组件的状态信息;Searching the state database for the state information of each component of the application corresponding to the query time;
    获取应用的组件拓扑图;Get the component topology diagram of the application;
    将查找到的各组件的状态信息映射到所述组件拓扑图上,生成状态拓扑图,并显示所述状态拓扑图。Map the found status information of each component to the component topology map, generate a status topology map, and display the status topology map.
  2. 如权利要求1所述的应用运行状态查询方法,其特征在于,在所述生成状态拓扑图之后,还包括:The method for querying the running status of an application according to claim 1, further comprising:
    将所述状态拓扑图及所述查询时间添加至第一数据库;Adding the state topology map and the query time to a first database;
    若再次获取到包含所述查询时间的状态查询指令,则从所述第一数据库中调取所述查询时间对应的状态拓扑图。If a status query instruction including the query time is obtained again, a status topology map corresponding to the query time is retrieved from the first database.
  3. 如权利要求2所述的应用运行状态查询方法,其特征在于,还包括:The method for querying the running status of an application according to claim 2, further comprising:
    记录所述第一数据库中各个状态拓扑图的添加时间和调取次数;Record the adding time and calling times of each state topology graph in the first database;
    根据各个状态拓扑图的添加时间和调取次数计算各个状态拓扑图的删除时间;所述删除时间为从所述第一数据库删除状态拓扑图的时间点;Calculating the deletion time of each state topology map according to the addition time and the number of retrieval times of each state topology map; the deletion time is the time point when the state topology map is deleted from the first database;
    获取当前时间,将删除时间在所述当前时间之前的状态拓扑图从所述第一数据库中删除。Obtain the current time, and delete the state topology map with the deletion time before the current time from the first database.
  4. 如权利要求3所述的应用运行状态查询方法,其特征在于,所述根据各个状态拓扑图的添加时间和调取次数计算各个状态拓扑图的删除时间,包括:The method for querying the running status of an application according to claim 3, wherein the calculating the deletion time of each state topology graph according to the addition time and the number of times of retrieval of each state topology graph comprises:
    计算t s=t t+a+n*b,其中, t s 为删除时间, t t 为添加时间, n为调取次数, a为初始保留时间, b为预置时间参量;所述初始保留时间为所述第一数据库中调取次数为零的状态拓扑图的保留时长。 Calculate t s = t t + a + n * b, where t s is the deletion time, t t is the addition time, n is the number of calls, a is the initial retention time, and b is the preset time parameter; the initial retention The time is the retention time of the state topology graph with zero recall times in the first database.
  5. 如权利要求2至4任一项所述的应用运行状态查询方法,其特征在于,还包括:The method for querying an application running status according to any one of claims 2 to 4, further comprising:
    获取预设统计时间段内的历史查询数据;Obtain historical query data within a preset statistical time period;
    根据预设预测规则和所述历史查询数据对用户的查询时间进行预测,得到预测时间;Predicting a user's query time according to a preset prediction rule and the historical query data to obtain a prediction time;
    生成所述预测时间对应的状态拓扑图,并将所述预测时间对应的状态拓扑图保存至第二数据库;Generating a state topology map corresponding to the predicted time, and saving the state topology map corresponding to the predicted time to a second database;
    若获取到用户输入的包含的查询时间为所述预测时间的状态查询指令,则从所述第二数据库中调取所述预测时间对应的状态拓扑图。If the state query instruction including the query time input by the user is the predicted time, a state topology map corresponding to the predicted time is retrieved from the second database.
  6. 如权利要求5所述的应用运行状态查询方法,其特征在于,所述预设预测规则包括:The method for querying the running status of an application according to claim 5, wherein the preset prediction rule comprises:
    查找所述预设统计时间段内查询次数最多的时间点;Find the time point with the highest number of queries within the preset statistical time period;
    在以所述查询次数最多的时间点为中心的预设时间段内,均匀选取多个时间点作为预测时间。Within a preset time period centered on the time point with the most number of queries, a plurality of time points are uniformly selected as the prediction time.
  7. 如权利要求5所述的应用运行状态查询方法,其特征在于,所述预设预测规则包括:The method for querying the running status of an application according to claim 5, wherein the preset prediction rule comprises:
    将所述预设统计时间段划分为多个时间段;Dividing the preset statistical time period into a plurality of time periods;
    分别计算各个时间段内的总查询次数;Calculate the total number of queries in each time period;
    在所述总查询次数最多的时间段内均匀选取多个时间点,作为预测时间。Multiple time points are uniformly selected as a prediction time in a time period in which the total query times are the most.
  8. 一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,其特征在于,所述处理器执行所述计算机可读指令时实现如下步骤:A terminal device includes a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, and is characterized in that the processor implements the computer-readable instructions as follows: step:
    获取用户输入的包含查询时间的状态查询指令;Obtaining a status query instruction including a query time input by a user;
    在状态数据库中查找所述查询时间对应的应用各组件的状态信息;Searching the state database for the state information of each component of the application corresponding to the query time;
    获取应用的组件拓扑图;Get the component topology diagram of the application;
    将查找到的各组件的状态信息映射到所述组件拓扑图上,生成状态拓扑图,并显示所述状态拓扑图。Map the found status information of each component to the component topology map, generate a status topology map, and display the status topology map.
  9. 如权利要求8所述的终端设备,其特征在于,在所述生成状态拓扑图之后,还包括:The terminal device according to claim 8, after the generating the state topology map, further comprising:
    将所述状态拓扑图及所述查询时间添加至第一数据库;Adding the state topology map and the query time to a first database;
    若再次获取到包含所述查询时间的状态查询指令,则从所述第一数据库中调取所述查询时间对应的状态拓扑图。If a status query instruction including the query time is obtained again, a status topology map corresponding to the query time is retrieved from the first database.
  10. 如权利要求9所述的终端设备,其特征在于,还包括:The terminal device according to claim 9, further comprising:
    记录所述第一数据库中各个状态拓扑图的添加时间和调取次数;Record the adding time and calling times of each state topology graph in the first database;
    根据各个状态拓扑图的添加时间和调取次数计算各个状态拓扑图的删除时间;所述删除时间为从所述第一数据库删除状态拓扑图的时间点;Calculating the deletion time of each state topology map according to the addition time and the number of retrieval times of each state topology map; the deletion time is the time point when the state topology map is deleted from the first database;
    获取当前时间,将删除时间在所述当前时间之前的状态拓扑图从所述第一数据库中删除。Obtain the current time, and delete the state topology map with the deletion time before the current time from the first database.
  11. 如权利要求10所述的终端设备,其特征在于,所述根据各个状态拓扑图的添加时间和调取次数计算各个状态拓扑图的删除时间,包括:The terminal device according to claim 10, wherein the calculating the deletion time of each state topology graph according to the addition time and the number of times of retrieval of each state topology graph comprises:
    计算t s=t t+a+n*b,其中, t s 为删除时间, t t 为添加时间, n为调取次数, a为初始保留时间, b为预置时间参量;所述初始保留时间为所述第一数据库中调取次数为零的状态拓扑图的保留时长。 Calculate t s = t t + a + n * b, where t s is the deletion time, t t is the addition time, n is the number of calls, a is the initial retention time, and b is the preset time parameter; the initial retention The time is the retention time of the state topology graph with zero recall times in the first database.
  12. 如权利要求9至11任一项所述的终端设备,其特征在于,还包括:The terminal device according to any one of claims 9 to 11, further comprising:
    获取预设统计时间段内的历史查询数据;Obtain historical query data within a preset statistical time period;
    根据预设预测规则和所述历史查询数据对用户的查询时间进行预测,得到预测时间;Predicting a user's query time according to a preset prediction rule and the historical query data to obtain a prediction time;
    生成所述预测时间对应的状态拓扑图,并将所述预测时间对应的状态拓扑图保存至第二数据库;Generating a state topology map corresponding to the predicted time, and saving the state topology map corresponding to the predicted time to a second database;
    若获取到用户输入的包含的查询时间为所述预测时间的状态查询指令,则从所述第二数据库中调取所述预测时间对应的状态拓扑图。If the state query instruction including the query time input by the user is the predicted time, a state topology map corresponding to the predicted time is retrieved from the second database.
  13. 如权利要求12所述的终端设备,其特征在于,所述预设预测规则包括:The terminal device according to claim 12, wherein the preset prediction rule comprises:
    查找所述预设统计时间段内查询次数最多的时间点;Find the time point with the highest number of queries within the preset statistical time period;
    在以所述查询次数最多的时间点为中心的预设时间段内,均匀选取多个时间点作为预测时间。Within a preset time period centered on the time point with the most number of queries, a plurality of time points are uniformly selected as the prediction time.
  14. 如权利要求12所述的终端设备,其特征在于,所述预设预测规则包括:The terminal device according to claim 12, wherein the preset prediction rule comprises:
    将所述预设统计时间段划分为多个时间段;Dividing the preset statistical time period into a plurality of time periods;
    分别计算各个时间段内的总查询次数;Calculate the total number of queries in each time period;
    在所述总查询次数最多的时间段内均匀选取多个时间点,作为预测时间。Multiple time points are uniformly selected as a prediction time in a time period in which the total query times are the most.
  15. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,其特征在于,所述计算机可读指令被处理器执行时实现:A computer-readable storage medium storing computer-readable instructions, wherein the computer-readable instructions are implemented when a processor executes:
    获取用户输入的包含查询时间的状态查询指令;Obtaining a status query instruction including a query time input by a user;
    在状态数据库中查找所述查询时间对应的应用各组件的状态信息;Searching the state database for the state information of each component of the application corresponding to the query time;
    获取应用的组件拓扑图;Get the component topology diagram of the application;
    将查找到的各组件的状态信息映射到所述组件拓扑图上,生成状态拓扑图,并显示所述状态拓扑图。Map the found status information of each component to the component topology map, generate a status topology map, and display the status topology map.
  16. 如权利要求15所述的计算机可读存储介质,其特征在于,在所述生成状态拓扑图之后,还包括:The computer-readable storage medium according to claim 15, after the generating the state topology map, further comprising:
    将所述状态拓扑图及所述查询时间添加至第一数据库;Adding the state topology map and the query time to a first database;
    若再次获取到包含所述查询时间的状态查询指令,则从所述第一数据库中调取所述查询时间对应的状态拓扑图。If a status query instruction including the query time is obtained again, a status topology map corresponding to the query time is retrieved from the first database.
  17. 如权利要求16所述的计算机可读存储介质,其特征在于,还包括:The computer-readable storage medium of claim 16, further comprising:
    记录所述第一数据库中各个状态拓扑图的添加时间和调取次数;Record the adding time and calling times of each state topology graph in the first database;
    根据各个状态拓扑图的添加时间和调取次数计算各个状态拓扑图的删除时间;所述删除时间为从所述第一数据库删除状态拓扑图的时间点;Calculating the deletion time of each state topology map according to the addition time and the number of retrieval times of each state topology map; the deletion time is the time point when the state topology map is deleted from the first database;
    获取当前时间,将删除时间在所述当前时间之前的状态拓扑图从所述第一数据库中删除。Obtain the current time, and delete the state topology map with the deletion time before the current time from the first database.
  18. 如权利要求17所述的计算机可读存储介质,其特征在于,所述根据各个状态拓扑图的添加时间和调取次数计算各个状态拓扑图的删除时间,包括:The computer-readable storage medium of claim 17, wherein the calculating the deletion time of each state topology graph according to the adding time and the number of times of recalling each state topology graph comprises:
    计算t s=t t+a+n*b,其中, t s 为删除时间, t t 为添加时间, n为调取次数, a为初始保留时间, b为预置时间参量;所述初始保留时间为所述第一数据库中调取次数为零的状态拓扑图的保留时长。 Calculate t s = t t + a + n * b, where t s is the deletion time, t t is the addition time, n is the number of calls, a is the initial retention time, and b is the preset time parameter; the initial retention The time is the retention time of the state topology graph with zero recall times in the first database.
  19. 如权利要求15至18任一项所述的计算机可读存储介质,其特征在于,还包括:The computer-readable storage medium according to any one of claims 15 to 18, further comprising:
    获取预设统计时间段内的历史查询数据;Obtain historical query data within a preset statistical time period;
    根据预设预测规则和所述历史查询数据对用户的查询时间进行预测,得到预测时间;Predicting a user's query time according to a preset prediction rule and the historical query data to obtain a prediction time;
    生成所述预测时间对应的状态拓扑图,并将所述预测时间对应的状态拓扑图保存至第二数据库;Generating a state topology map corresponding to the predicted time, and saving the state topology map corresponding to the predicted time to a second database;
    若获取到用户输入的包含的查询时间为所述预测时间的状态查询指令,则从所述第二数据库中调取所述预测时间对应的状态拓扑图。If the state query instruction including the query time input by the user is the predicted time, a state topology map corresponding to the predicted time is retrieved from the second database.
  20. 一种服务器,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,其特征在于,所述处理器执行所述计算机可读指令时实现如下步骤:A server includes a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, and is characterized in that, when the processor executes the computer-readable instructions, the following steps are implemented: :
    获取用户输入的包含查询时间的状态查询指令;Obtaining a status query instruction including a query time input by a user;
    在状态数据库中查找所述查询时间对应的应用各组件的状态信息;Searching the state database for the state information of each component of the application corresponding to the query time;
    获取应用的组件拓扑图;Get the component topology diagram of the application;
    将查找到的各组件的状态信息映射到所述组件拓扑图上,生成状态拓扑图,并显示所述状态拓扑图。Map the found status information of each component to the component topology map, generate a status topology map, and display the status topology map.
PCT/CN2018/105550 2018-07-18 2018-09-13 Method for querying operating state of application, and terminal device WO2020015114A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810788629.5 2018-07-18
CN201810788629.5A CN109240893B (en) 2018-07-18 2018-07-18 Application running state query method and terminal equipment

Publications (1)

Publication Number Publication Date
WO2020015114A1 true WO2020015114A1 (en) 2020-01-23

Family

ID=65072021

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/105550 WO2020015114A1 (en) 2018-07-18 2018-09-13 Method for querying operating state of application, and terminal device

Country Status (2)

Country Link
CN (1) CN109240893B (en)
WO (1) WO2020015114A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124923B (en) * 2019-12-25 2024-03-22 上海米哈游网络科技股份有限公司 Running state query method and device, server equipment and storage medium
CN113051446A (en) * 2019-12-26 2021-06-29 百度国际科技(深圳)有限公司 Topological relation query method, device, electronic equipment and medium
CN112766741B (en) * 2021-01-22 2023-06-13 南方电网数字平台科技(广东)有限公司 Query method, system, terminal and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1901477A (en) * 2006-07-12 2007-01-24 华为技术有限公司 Searching method and its system for equipment traffic data
CN105809314A (en) * 2014-12-31 2016-07-27 中兴通讯股份有限公司 Method and system for asset management
CN105930249A (en) * 2016-04-20 2016-09-07 百度在线网络技术(北京)有限公司 Application monitoring method and apparatus
CN105979080A (en) * 2016-04-29 2016-09-28 努比亚技术有限公司 Application state display device, method and terminal
CN107710198A (en) * 2015-06-05 2018-02-16 苹果公司 Historical search in application program
CN107786262A (en) * 2016-08-29 2018-03-09 兰捷尔智能科技有限公司 Realize the method that cable network track blocks failure monitors automatically

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101876904A (en) * 2010-02-09 2010-11-03 宇龙计算机通信科技(深圳)有限公司 Mobile terminal, and method and device for outputting running state of application programs
CN105630531B (en) * 2014-11-14 2020-07-31 中兴通讯股份有限公司 Method and device for displaying running state of application of mobile terminal
CN105701110B (en) * 2014-11-27 2019-05-24 中国移动通信集团公司 A kind of method and apparatus that data are applied in inquiry
CN105912466B (en) * 2016-04-07 2018-11-09 百度在线网络技术(北京)有限公司 Using the processing method and processing device of exception information
CN106708992A (en) * 2016-12-16 2017-05-24 浙江中控技术股份有限公司 Data query method, device and system
CN107315671B (en) * 2017-06-16 2020-09-04 东软集团股份有限公司 Application state monitoring method, device and equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1901477A (en) * 2006-07-12 2007-01-24 华为技术有限公司 Searching method and its system for equipment traffic data
CN105809314A (en) * 2014-12-31 2016-07-27 中兴通讯股份有限公司 Method and system for asset management
CN107710198A (en) * 2015-06-05 2018-02-16 苹果公司 Historical search in application program
CN105930249A (en) * 2016-04-20 2016-09-07 百度在线网络技术(北京)有限公司 Application monitoring method and apparatus
CN105979080A (en) * 2016-04-29 2016-09-28 努比亚技术有限公司 Application state display device, method and terminal
CN107786262A (en) * 2016-08-29 2018-03-09 兰捷尔智能科技有限公司 Realize the method that cable network track blocks failure monitors automatically

Also Published As

Publication number Publication date
CN109240893B (en) 2021-06-25
CN109240893A (en) 2019-01-18

Similar Documents

Publication Publication Date Title
CN109344153B (en) Service data processing method and terminal equipment
US9020991B2 (en) System and method for analyzing available space in data blocks
US10592532B2 (en) Database sharding
US8738351B2 (en) Historic storage of dual layer power grid connectivity model
WO2019019769A1 (en) Service function implementation method, device, computer apparatus and storage medium
CN111767268B (en) Database table partitioning method and device, electronic equipment and storage medium
WO2020015114A1 (en) Method for querying operating state of application, and terminal device
CN109446225B (en) Data caching method and device, computer equipment and storage medium
WO2019127772A1 (en) Data dictionary display method and device, terminal device and storage medium
CN113723810A (en) Graph database-based power grid modeling method
TW202008162A (en) Data monitoring method and device, electronic device, and computer readable storage medium
WO2023240830A1 (en) Information management method and apparatus, and device and medium
CN111767270A (en) Data migration method, device, server and storage medium
CN111897643A (en) Thread pool configuration system, method, device and storage medium
US20210064592A1 (en) Computer storage and retrieval mechanisms using distributed probabilistic counting
CN109783321A (en) Monitoring data management method, device, terminal device
CN109240916A (en) Information output controlling method, device and computer readable storage medium
CN109271224B (en) Method and apparatus for determining position
WO2021012554A1 (en) Method and apparatus for updating data field in block chain, medium, and electronic device
CN113779412B (en) Message touch method, node and system based on blockchain network
CN107894942B (en) Method and device for monitoring data table access amount
CN111552715A (en) User query method and device
CN113220705A (en) Slow query identification method and device
CN107480269B (en) Object display method and system, medium and computing equipment
CN113127187B (en) Method and device for cluster expansion and contraction capacity

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18926405

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18926405

Country of ref document: EP

Kind code of ref document: A1