Target data display method and device, storage medium and electronic device
By obtaining operation information from the configuration center and decoupling it into parsing information, sending target instructions to the application node to obtain memory data, and sending it to the target web page for display, it solves the problem of being unable to operate and display memory data in real time in the production environment, and achieves for efficient and accurate data processing.
Patent Information
- Application Number
- CN202411116347.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2025-01-21
AI Technical Summary
In a production environment, it is impossible to operate and display memory data in real time. Traditional tools such as jmap and Arthas can only target a single process, and it is difficult to analyze complex process combinations.
By obtaining operation information from the configuration center, decoupling the operation information to obtain parsing information, sending target instructions to the application node based on the parsing information, obtaining the data to be displayed and sending it to the target web page for display.
It realizes the real-time operation and display of memory data in the production environment, solves the problem that traditional tools cannot handle multi-process and complex data, and improves the efficiency and accuracy of data processing.
Smart Images

Figure CN119337010A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart home technology, and more specifically, to a method and device for displaying target data, a storage medium, and an electronic device. Background Art
[0002] In a production environment, it is very inconvenient to view the memory data in the background service in real time. For example, if you want to view the saved content of a map collection data in the memory, you can either use jmap to perform a dump analysis of the heap snapshot, or use analysis tools such as Arthas to connect to a fixed JVM process for analysis. Moreover, tools such as Arthas can only target a single process. If there are a large number of processes in the production environment, the analysis will be more difficult.
[0003] The traditional jmap mode cannot achieve real-time modification of memory data, and Arthas also has the problem of only being able to modify a single process object.
[0004] Regarding the problem in related technologies that in a production environment, real-time operation and display of memory data cannot be achieved, no effective solution has been proposed.
[0005] Therefore, it is necessary to improve the related technology to overcome the above-mentioned defects in the related technology. Summary of the invention
[0006] The embodiments of the present invention provide a method and device for displaying target data, a storage medium and an electronic device, so as to at least solve the technical problem in the related art that it is impossible to operate and display memory data in real time in a production environment.
[0007] According to one aspect of an embodiment of the present invention, a method for displaying target data is provided, comprising: when operation information is obtained from a configuration center, decoupling the operation information to obtain parsing information corresponding to the operation information, wherein the parsing information is used to indicate first data to be displayed in an application node and an operation type corresponding to the first data; sending a target instruction to the first data to be displayed in the application node according to the parsing information to obtain target data corresponding to the first data to be displayed; and sending the target data to a target web page for display.
[0008] In an exemplary embodiment, before sending a target instruction to the first data to be displayed in the application node according to the parsed information, the method further includes: when the operation type is a data monitoring type, obtaining a monitoring file carried by the parsed information, wherein the monitoring file is used to indicate multiple data to be monitored and monitoring rules corresponding to the multiple data to be monitored; generating a collection instruction according to the monitoring file, wherein the collection instruction is used to collect the multiple data to be monitored from the application node; determining the first data according to the multiple data to be monitored, and determining the collection instruction as a target instruction.
[0009] In an exemplary embodiment, after determining the first data based on the multiple data to be monitored and determining the collection instruction as a target instruction, the method further includes: generating process registration information based on the first data and the target instruction; sending the process registration information to the application node, receiving the target process fed back by the application node based on the registration information, to instruct the application node to generate a target process based on the registration information, wherein the target process is used to assist in collecting the target data.
[0010] In an exemplary embodiment, before sending a target instruction to the first data to be displayed in the application node according to the parsed information, the method further includes: when the operation type is a data modification type, determining a modification file carried by the parsed information, wherein the modification file is used to indicate a plurality of data items to be modified and modification parameters corresponding to the plurality of data items to be modified; generating a modification instruction according to the modification parameters corresponding to each of the plurality of data items to be modified; determining the first data according to the plurality of data items to be modified, and determining the modification instruction as a target instruction.
[0011] In an exemplary embodiment, before sending the target data to the target web page for display, the method further includes: determining an application identifier corresponding to the target data; and sending the application identifier to the target web page to instruct the target web page to generate a display area matching the application identifier.
[0012] In an exemplary embodiment, before sending the target data to the target webpage for display, the method further includes: sending the target data to an alarm system to instruct the alarm system to determine whether to feed back alarm information to the target webpage.
[0013] In an exemplary embodiment, after sending the target data to a target web page for display, the method further includes: obtaining feedback information issued by the target object on the target web page based on the target data, wherein the feedback information is used to indicate whether to regenerate the target data; and when the feedback information indicates to regenerate the target data, determining to send a target instruction to the first data to be displayed in the application node again.
[0014] According to another aspect of an embodiment of the present invention, a device for displaying target data is also provided, including: a decoupling module, used to decouple the operation information when the operation information is obtained from a configuration center, and obtain parsing information corresponding to the operation information, wherein the parsing information is used to indicate the first data to be displayed in the application node and the operation type corresponding to the first data; a sending module, used to send a target instruction to the first data to be displayed in the application node according to the parsing information, and obtain the target data corresponding to the first data to be displayed; and a display module, used to send the target data to a target web page for display.
[0015] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned method for displaying target data when running.
[0016] According to another aspect of an embodiment of the present invention, there is provided an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method for displaying target data through the computer program.
[0017] Through the present invention, when the operation information is obtained from the configuration center, the operation information is decoupled to obtain the parsing information corresponding to the operation information, wherein the parsing information is used to indicate the first data to be displayed in the application node and the operation type corresponding to the first data; according to the parsing information, a target instruction is sent to the first data to be displayed in the application node to obtain the target data corresponding to the first data to be displayed; and the target data is sent to the target web page for display. In other words, the above technical solution solves the technical problem in the related technology that it is impossible to operate and display the memory data in real time in the production environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0020] Figure 1 is a schematic diagram of a hardware environment of an optional method for displaying target data according to an embodiment of the present application;
[0021] Figure 2 is a flowchart of an optional method for displaying target data according to an embodiment of the present application;
[0022] Figure 3 is a schematic diagram of the principle of an optional method for displaying target data according to an embodiment of the present application;
[0023] Figure 4 is a flowchart of an optional unified modification and display of distributed application data according to an embodiment of the present application;
[0024] Figure 5 It is a schematic diagram of the composition of an optional target data display device according to an embodiment of the present application. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0027] According to one aspect of an embodiment of the present application, a method for displaying target data is provided. The method for displaying target data is widely used in smart home (Smart Home), smart home, smart home device ecology, smart residential (IntelligenceHouse) ecology and other whole-house intelligent digital control application scenarios. Optionally, in this embodiment, the above-mentioned method for displaying target data can be applied to Figure 1 In the hardware environment shown in FIG. 1 , a plurality of terminal devices 102 and a server 104 are formed. Figure 1 As shown, the server 104 is connected to multiple terminal devices 102 via a network, and can be used to provide services (such as application services, etc.) for the terminals or clients installed on the terminals. A database can be set on the server or independently of the server to provide data storage services for the server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data computing services for the server 104.
[0028] The network may include but is not limited to at least one of the following: wired network, wireless network. The wired network may include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network, and the wireless network may include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The terminal device 102 may be but is not limited to a PC, a mobile phone, a tablet computer, a smart air conditioner, a smart range hood, a smart refrigerator, a smart oven, a smart stove, a smart washing machine, a smart water heater, a smart washing device, a smart dishwasher, a smart projection device, a smart TV, a smart clothes drying rack, a smart curtain, a smart audio and video, a smart socket, a smart speaker, a smart fresh air device, a smart kitchen and bathroom device, a smart bathroom device, a smart sweeping robot, a smart window cleaning robot, a smart mopping robot, a smart air purification device, a smart steamer, a smart microwave oven, a smart kitchen treasure, a smart purifier, a smart water dispenser, a smart door lock, etc.
[0029] In this embodiment, a method for displaying target data is provided, including but not limited to being applied to a computer terminal. Figure 2 is a flowchart of a method for displaying target data according to an embodiment of the present invention, and the process includes the following steps:
[0030] Step S202: when the operation information is obtained from the configuration center, decouple the operation information to obtain parsing information corresponding to the operation information, wherein the parsing information is used to indicate the first data to be displayed in the application node and the operation type corresponding to the first data;
[0031] It should be noted that the operation types may include: data monitoring type and data modification type.
[0032] Step S204: sending a target instruction to the first data to be displayed in the application node according to the parsing information, and obtaining target data corresponding to the first data to be displayed;
[0033] Step S206: Send the target data to the target webpage for display.
[0034] Optionally, the execution subject of the above steps may be a process, program, system, etc. to which agent technology is applied.
[0035] Through the above steps, when the operation information is obtained from the configuration center, the operation information is decoupled to obtain the parsing information corresponding to the operation information, wherein the parsing information is used to indicate the first data to be displayed in the application node and the operation type corresponding to the first data; according to the parsing information, a target instruction is sent to the first data to be displayed in the application node to obtain the target data corresponding to the first data to be displayed; and the target data is sent to the target web page for display. The above technical solution solves the technical problem in the related technology that it is impossible to operate and display the memory data in real time in the production environment.
[0036] In an exemplary embodiment, before sending a target instruction to the first data to be displayed in the application node according to the parsed information, the method further includes: when the operation type is a data monitoring type, obtaining a monitoring file carried by the parsed information, wherein the monitoring file is used to indicate multiple data to be monitored and monitoring rules corresponding to the multiple data to be monitored; generating a collection instruction according to the monitoring file, wherein the collection instruction is used to collect the multiple data to be monitored from the application node; determining the first data according to the multiple data to be monitored, and determining the collection instruction as a target instruction.
[0037] That is to say, first obtain the monitoring file carried by the parsed information. The monitoring file is used to indicate multiple data to be monitored and the monitoring rules corresponding to these data. Optionally, the monitoring rules may include information such as the data collection frequency and storage location. Then generate a collection instruction based on the monitoring file. The collection instruction is used to collect multiple data to be monitored from the application node. Optionally, the collection instruction can be automatically generated based on the information in the monitoring file, or it can be manually configured according to the user's needs. Then determine the first data based on the multiple data to be monitored, and determine the collection instruction as the target instruction. In other words, after collecting multiple data to be monitored, it can be determined by a certain algorithm or rule which data is the first data, that is, the data to be displayed. Then determine the collection instruction as the target instruction to perform subsequent operations.
[0038] Optionally, the monitoring file is configured in the configuration center. The configuration center configures the data items to be monitored according to the application ID (application identifier). The configuration center has a long connection heartbeat with all applications. Once the configuration is completed, it will be uniformly issued according to the application ID. In this way, the premise of unified configuration of the monitored data items can be completed through this step. Among them, the application ID usually refers to the unique identifier of the application in software development. This identifier can be used to identify and distinguish different applications in the system to ensure that they can be correctly identified and managed.
[0039] In an exemplary embodiment, after determining the first data based on the multiple data to be monitored and determining the collection instruction as a target instruction, the method further includes: generating process registration information based on the first data and the target instruction; sending the process registration information to the application node, and receiving the target process fed back by the application node based on the registration information, wherein the target process is used to assist in collecting the target data.
[0040] It should be noted that the process registration information is a special data structure used to describe and control the running state of the process. It records the current state of the process and all information used to control the running of the process.
[0041] Optionally, the entire information controlling the running of the process may include: a process identifier, a user identifier, a resource allocation list, processor related information, and the like.
[0042] After receiving the target process fed back by the application node based on the registration information, the application node will generate the target process based on the registration information, and this target process will be used to assist in collecting target data. This not only improves the efficiency and accuracy of data processing, reduces the error rate of manual intervention, but also provides a more flexible and customizable monitoring solution to meet different needs.
[0043] In an exemplary embodiment, before sending a target instruction to the first data to be displayed in the application node according to the parsed information, the method further includes: when the operation type is a data modification type, determining a modification file carried by the parsed information, wherein the modification file is used to indicate a plurality of data items to be modified and modification parameters corresponding to the plurality of data items to be modified; generating a modification instruction according to the modification parameters corresponding to each of the plurality of data items to be modified; determining the first data according to the plurality of data items to be modified, and determining the modification instruction as a target instruction.
[0044] That is to say, the modification file is used to indicate multiple data items to be modified and the modification parameters corresponding to these data items. By reading the modification file, each data item to be modified and its corresponding modification parameters can be obtained. Then, corresponding modification instructions are generated according to the modification parameters of each data item to be modified. These instructions can be SQL statements, Python codes or other types of instructions, which are used to indicate how to modify the data items to be modified. The generated modification instructions are associated with the target data to form a target instruction, so that the application node can perform a modification operation in response to the first data according to the target instruction.
[0045] In an exemplary embodiment, before sending the target data to the target web page for display, the method further includes: determining an application identifier corresponding to the target data; and sending the application identifier to the target web page to instruct the target web page to generate a display area matching the application identifier.
[0046] That is, in order to ensure that the target webpage can display data according to the application classification, the application category corresponding to the target data is determined by obtaining the application identifier corresponding to the target data, and then a display area matching the application identifier is generated according to the target webpage.
[0047] In an exemplary embodiment, before sending the target data to the target webpage for display, the method further includes: sending the target data to an alarm system to instruct the alarm system to determine whether to feed back alarm information to the target webpage.
[0048] That is, before displaying the target data, the target data is first sent to the alarm system, so that the alarm system generates an alarm message, wherein the alarm message may include: alarm or no alarm, and then the alarm message and the target data are sent to the target web page together.
[0049] In an exemplary embodiment, after sending the target data to a target web page for display, the method further includes: obtaining feedback information issued by the target object on the target web page based on the target data, wherein the feedback information is used to indicate whether to regenerate the target data; and when the feedback information indicates to regenerate the target data, determining to send a target instruction to the first data in the application node again.
[0050] That is to say, by monitoring the user interaction time or automatically triggered events on the target web page, the feedback information of the target object on the target data can be obtained. These feedback information can be user operations such as clicks, slides, inputs, etc., or they can be statistical data or other indicators automatically generated by the system. According to the feedback information obtained, determine whether it is necessary to regenerate the target data. If the feedback information indicates that there is a problem with the target data or it does not meet the user's needs, the target data needs to be regenerated, otherwise the target data does not need to be regenerated. In the case where the feedback information indicates to regenerate the target data, determine to send the target instruction to the first data in the application node again. If the target data needs to be regenerated, the target instruction will be sent to the first data in the application node again.
[0051] Figure 3 is a schematic diagram of the principle of an optional method for displaying target data according to an embodiment of the present application, such as Figure 3 As shown:
[0052] Step 1: Configure the monitored data items;
[0053] First, in the configuration center, configure the data items to be monitored according to the applicationId (equivalent to the application identifier). There is a long connection heartbeat between the configuration center and all applications. Once the configuration is completed, it will be uniformly issued according to the applicationId level. In this way, the premise of unified configuration of the monitored data items can be completed through this step.
[0054] It should be noted that, for the process of applying agent technology, step 1 is equivalent to decoupling the operation information obtained from the configuration center to obtain the analysis information corresponding to the operation information, wherein the analysis information is used to indicate the first data to be displayed in the application node and the operation type corresponding to the first data.
[0055] Step 2: Load the agent.
[0056] The use of agent technology can realize the decoupling of application and memory monitoring item configuration and implementation, and the application can hot-swap the agent without perception, so that the user does not feel it (decoupling the operation information).
[0057] It should be noted that Agent corresponds to applicationId and is used to monitor the data configured by applicationId. The relationship between Agent and MBean is that Agent contains and manages MBeans and provides access interfaces to the outside through MBeanServer.
[0058] Step 3: Pull monitoring rules;
[0059] The agent actively pulls configuration rules and monitors changes in the configuration center in real time by monitoring events.
[0060] Step 4: Generate MBean conversion rules;
[0061] It should be noted that the full name of MBean is Managed Bean, a managed Java object that follows the design pattern of the JMX specification.
[0062] The generation of agent conversion rules is a critical step. On the one hand, the simple rules of the configuration center can be used to realize the conversion of the configured class name to the MBean implementation class. On the other hand, a script language can be directly configured through the configuration center to implement the conversion rules more flexibly.
[0063] Optionally, the conversion from class name to MBean implementation class is implemented by simple rules in the configuration center.
[0064] Predefined rules: In the configuration center, you can predefine a series of rules that specify how to map the class names in the configuration to the corresponding MBean implementation classes. This approach is suitable for those standardized and fixed-mode conversion requirements.
[0065] Automatic mapping: Through the configuration center, you can achieve automatic mapping of class names to MBeans, reduce manual intervention, and improve the accuracy and efficiency of conversion. For example, developers only need to specify the corresponding class name in the configuration file, and the configuration center can automatically complete the conversion.
[0066] Configure a script language through the configuration center to implement more flexible conversion rules:
[0067] Scripting language flexibility: Using the scripting language, more complex logic can be written in the configuration center to handle conversion rules.
[0068] Dynamic adjustment: The scripting language supports dynamic adjustment of conversion rules without modifying the Agent code. This helps to adapt to rapidly changing management requirements and reduce system maintenance costs.
[0069] Step 5, MBean is registered in memory;
[0070] Step 6: Collect MBean objects regularly;
[0071] The agent replaces the application to complete the MBean object registration and the corresponding API function registration functions. At this point, the application is extended through the agent. The program has the ability to view specific memory data through MBean. Then the agent exposes the data through the proxy http interface, and the outside world can query the data in the memory through the http interface.
[0072] Step 7: Prometheus (an open source system monitoring and alerting toolkit) regularly stores objects in memory;
[0073] Use prometheus as a time series database to store the size and content of objects in memory. You can also configure alarm notifications when a certain type of object is larger than a certain range.
[0074] Step 8: Data display;
[0075] You can use grafana (an open source data visualization tool) to display data in groups according to applicationid, or you can implement the front-end page yourself to display the data.
[0076] The flowchart of the unified modification and display of distributed application data is as follows Figure 4 As shown, the specific steps include:
[0077] Steps 1, 2 and 3 configure the data content modification and push of the center;
[0078] The configuration center modifies the memory data at the applicationId level. The configuration center will be responsible for the centralized push of data content, so that the agent associated with the applicationId will receive the memory data modification request. The protocol for data change requests can be standardized:
[0079] {applicationId}:{event}:{class}:{object}:[{value}…].
[0080] applicationId: Different applicationids represent different versions or variants of the same application, and are used to distinguish the level or version of the application. For example, an application may have versions APP_1.0 and APP_2.0.
[0081] event: the type of event pushed. add means adding data, update means updating data, delete means deleting data, and script: means that a scripting language needs to be used to enhance the data content.
[0082] class: used to indicate the full class name of the object that actually needs to be operated. The full class name and the object registered in the MBean can be used to uniquely identify the object that actually needs to be operated, such as com.xxx.xxx.module.Person.
[0083] object: used to represent member objects in a specific class, such as the age attribute in the Person class;
[0084] value: used to indicate the specific content to be added / modified / deleted, for example, 18. When the event is script, the encrypted script content will be filled and sent;
[0085] In combination with the above example, when the age attribute of the Person object in PersonInfoApp is changed to 18, the original content of the transmitted full name is:
[0086] [PersonInfoAPP.update.com.xxx.xxx.module.Person.age:18].
[0087] Step 6. Prometheus regularly stores objects in memory;
[0088] Use prometheus as a time series database to store the size and content of objects in memory. You can also configure alarm notifications when a certain type of object is larger than a certain range.
[0089] Step 7: Data display;
[0090] The adjustment results can be reflected by displaying the changes in memory data before and after the front-end data.
[0091] Through the above method, it is possible to display the memory object composition of all JVM process levels in a centralized manner according to the application, which is more convenient and easier to maintain than the display at a single process level; a batch of background application nodes can be managed at the same time, and the maintenance rate is much higher than that of a single node operation; the agent's non-intrusive design is used to decouple the business code from the source and realize a pluggable design; the agent expands the script code execution capability to achieve more flexible operations on the data in the memory, not limited to the addition, deletion, modification and query operations; by connecting the data in the memory to the time series database, it can be combined with the alarm system to monitor and warn the key data in the memory in real time and safely, so as to facilitate the timely discovery of data problems in the production environment.
[0092] In this embodiment, a display device for target data is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0093] The following combination Figure 5 The scheme of the present invention is further described. Figure 5 1 is a schematic diagram of the composition of an optional target data display device according to an embodiment of the present application, which specifically includes:
[0094] A decoupling module 52 is used to decouple the operation information when the operation information is obtained from the configuration center, and obtain parsing information corresponding to the operation information, wherein the parsing information is used to indicate the first data to be displayed in the application node and the operation type corresponding to the first data;
[0095] A sending module 54, configured to send a target instruction to the first data to be displayed in the application node according to the parsing information, so as to obtain target data corresponding to the first data to be displayed;
[0096] The display module 56 is used to send the target data to a target web page for display.
[0097] Through the above-mentioned device, when the operation information is obtained from the configuration center, the operation information is decoupled to obtain the parsing information corresponding to the operation information, wherein the parsing information is used to indicate the first data to be displayed in the application node and the operation type corresponding to the first data; according to the parsing information, a target instruction is sent to the first data to be displayed in the application node to obtain the target data corresponding to the first data to be displayed; the target data is sent to the target web page for display, which solves the technical problem in the related technology that it is impossible to realize real-time operation and display of memory data in a production environment.
[0098] Optionally, the above-mentioned device also includes: a collection module, which is used to obtain the monitoring file carried by the parsed information when the operation type is a data monitoring type, wherein the monitoring file is used to indicate multiple data to be monitored and the monitoring rules corresponding to the multiple data to be monitored; generate a collection instruction according to the monitoring file, wherein the collection instruction is used to collect the multiple data to be monitored from the application node; determine the first data according to the multiple data to be monitored, and determine the collection instruction as a target instruction.
[0099] Optionally, the acquisition module is also used to generate process registration information based on the first data and the target instruction; send the process registration information to the application node, receive the target process fed back by the application node based on the registration information, so as to instruct the application node to generate the target process according to the registration information, wherein the target process is used to assist in collecting the target data.
[0100] Optionally, the above-mentioned device also includes: a modification module, which is used to determine the modification file carried by the parsed information when the operation type is a data modification type, wherein the modification file is used to indicate multiple data items to be modified and modification parameters corresponding to the multiple data items to be modified respectively; generate a modification instruction according to the modification parameters corresponding to each of the multiple data items to be modified; determine the first data according to the multiple data items to be modified, and determine the modification instruction as the target instruction.
[0101] Optionally, the above-mentioned device also includes: a generation module, used to determine an application identifier corresponding to the target data; and send the application identifier to the target webpage to instruct the target webpage to generate a display area matching the application identifier.
[0102] Optionally, the above device further comprises: an alarm module, configured to send the target data to an alarm system to instruct the alarm system to determine whether to feed back alarm information to the target webpage.
[0103] Optionally, the above-mentioned device also includes: a sending module, used to obtain feedback information issued by the target object on the target web page based on the target data, wherein the feedback information is used to indicate whether to regenerate the target data; when the feedback information indicates to regenerate the target data, determine to send the target instruction to the first data in the application node again.
[0104] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0105] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps:
[0106] S1, when the operation information is obtained from the configuration center, decouple the operation information to obtain parsing information corresponding to the operation information, wherein the parsing information is used to indicate first data to be displayed in the application node and an operation type corresponding to the first data;
[0107] S2, sending a target instruction to the first data to be displayed in the application node according to the parsing information, to obtain target data corresponding to the first data to be displayed;
[0108] S3, sending the target data to a target webpage for display.
[0109] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0110] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0111] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0112] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0113] S1, when the operation information is obtained from the configuration center, decouple the operation information to obtain parsing information corresponding to the operation information, wherein the parsing information is used to indicate first data to be displayed in the application node and an operation type corresponding to the first data;
[0114] S2, sending a target instruction to the first data to be displayed in the application node according to the parsing information, to obtain target data corresponding to the first data to be displayed;
[0115] S3, sending the target data to a target webpage for display.
[0116] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0117] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0118] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0119] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for displaying target data, characterized in that: include: In the case of obtaining the operation information from the configuration center, decoupling the operation information to obtain parsing information corresponding to the operation information, wherein the parsing information is used to indicate the first data to be displayed in the application node and the operation type corresponding to the first data; Sending a target instruction to the first data to be displayed in the application node according to the parsed information to obtain target data corresponding to the first data to be displayed; The target data is sent to a target web page for display.
2. The method for displaying target data according to claim 1, characterized in that: Before sending a target instruction to the first data to be displayed in the application node according to the parsed information, the method further includes: In the case where the operation type is data monitoring, obtaining a monitoring file carried by the parsed information, wherein the monitoring file is used to indicate a plurality of data to be monitored and monitoring rules corresponding to the plurality of data to be monitored respectively; Generate a collection instruction according to the monitoring file, wherein the collection instruction is used to collect the plurality of to-be-monitored data from the application node; The first data is determined according to the plurality of data to be monitored, and the acquisition instruction is determined as a target instruction.
3. The method for displaying target data according to claim 2, characterized in that: After determining the first data according to the plurality of data to be monitored and determining the acquisition instruction as a target instruction, the method further includes: Generate process registration information according to the first data and the target instruction; The process registration information is sent to the application node, and a target process fed back by the application node based on the registration information is received, wherein the target process is used to assist in collecting the target data.
4. The method for displaying target data according to claim 1, characterized in that: Before sending a target instruction to the first data to be displayed in the application node according to the parsed information, the method further includes: In the case where the operation type is a data modification type, determining a modification file carried by the parsed information, wherein the modification file is used to indicate a plurality of data items to be modified and modification parameters respectively corresponding to the plurality of data items to be modified; Generate a modification instruction according to the modification parameter corresponding to each of the plurality of data items to be modified; The first data is determined according to the multiple data items to be modified, and the modification instruction is determined as a target instruction.
5. The method for displaying target data according to claim 1, characterized in that: Before sending the target data to the target webpage for display, the method further includes: Determine an application identifier corresponding to the target data; The application identifier is sent to the target webpage to instruct the target webpage to generate a display area matching the application identifier.
6. The method for displaying target data according to claim 5, characterized in that: Before sending the target data to the target webpage for display, the method further includes: The target data is sent to the alarm system to instruct the alarm system to determine whether to feed back alarm information to the target webpage.
7. The method for displaying target data according to claim 1, characterized in that: After sending the target data to the target webpage for display, the method further includes: Acquiring feedback information sent by the target object on the target webpage based on the target data, wherein the feedback information is used to indicate whether to regenerate the target data; In a case where the feedback information indicates to regenerate the target data, it is determined to send a target instruction to the first data to be displayed in the application node again.
8. A target data display device, characterized in that: include: a decoupling module, configured to, when the operation information is obtained from the configuration center, decouple the operation information to obtain parsing information corresponding to the operation information, wherein the parsing information is used to indicate first data to be displayed in the application node and an operation type corresponding to the first data; A sending module, configured to send a target instruction to the first data to be displayed in the application node according to the parsing information, so as to obtain target data corresponding to the first data to be displayed; The display module is used to send the target data to a target web page for display.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method according to any one of claims 1 to 7 when executed.
10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 7 through the computer program.