Data monitoring method and system, computer equipment, storage medium and product

By building proxy objects and proxying data attributes and data levels, the problem of low data attribute monitoring efficiency under multi-technical frameworks is solved, and unified monitoring of different technical frameworks is realized, and monitoring efficiency is improved.

CN119493704APending Publication Date: 2025-02-21深圳开鸿数字产业发展有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411430711.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-14
Publication Date
2025-02-21

AI Technical Summary

Technical Problem

In software development or device design, since multiple technical frameworks adopt different mechanisms when monitoring data attribute changes, when monitoring program or internal data changes, corresponding monitoring strategies must be adopted for each technical framework, thereby reducing the number of reasons. Monitoring efficiency.

Method used

By obtaining the various data attributes, data hierarchies, attribution and correspondence relationships of the program to be listened to, building proxy objects, and proxying data attributes and data hierarchies based on proxy objects, thus providing a unified listening method for different technical frameworks.

Benefits of technology

It realizes monitoring attributes in different technical frameworks through proxy methods, improves the efficiency of attribute monitoring, and can uniformly monitor data attributes under different technical frameworks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119493704A_ABST
    Figure CN119493704A_ABST
Patent Text Reader

Abstract

The invention discloses a data monitoring method and system, computer equipment, a storage medium and a product, and relates to the technical field of application development, and the data monitoring method comprises the following steps: obtaining each data attribute of a program to be monitored, each data level, an affiliation relationship between the data levels, and a data attribute of the program to be monitored; a corresponding relation between each data attribute and each data level; constructing a proxy object based on each data attribute, each data level, the affiliation relationship and the corresponding relationship, and performing proxy on each data attribute and each data level based on the proxy object; when the data attributes with the data changes are monitored through the agent, the data attributes with the data changes in all the data attributes serve as target data attributes, and prompt information is output according to the target data attributes. The technical scheme of the invention aims to solve the technical problem of how to improve the data change monitoring efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of application development technology, and in particular to a data monitoring method, system, computer equipment, storage medium and product. Background Art

[0002] In software development or device design, multiple technical frameworks are often integrated, and these frameworks use different mechanisms when monitoring data attribute changes. Since multiple such technical frameworks may coexist within a program or device, in the process of monitoring data changes within the program or device, corresponding monitoring strategies must be adopted for the characteristics of each technical framework, resulting in low monitoring efficiency.

[0003] Therefore, how to improve the efficiency of data change monitoring is a technical problem that needs to be solved by those skilled in the art. Summary of the invention

[0004] The main purpose of this application is to provide a data monitoring method, system, computer device, storage medium and product, aiming to solve the technical problem of how to improve the efficiency of data change monitoring.

[0005] To achieve the above purpose, the present application proposes a data monitoring method, which includes:

[0006] Acquire each data attribute, each data level, the attribution relationship between each data level, and the corresponding relationship between each data attribute and each data level of the program to be monitored;

[0007] Constructing a proxy object based on each of the data attributes, each of the data levels, the attribution relationship and the corresponding relationship, and proxying each of the data attributes and each of the data levels based on the proxy object;

[0008] When a data attribute with data changes is monitored through the proxy, the data attribute with data changes among the data attributes is used as a target data attribute, and prompt information is output according to the target data attribute.

[0009] In one embodiment, the step of constructing a proxy object based on each of the data attributes, each of the data levels, the attribution relationship and the corresponding relationship includes:

[0010] Construct the initial object through the object constructor;

[0011] Determining the level of the attribution relationship, and when it is detected that the level is one, determining each parent level and each child level in each data level according to the attribution relationship;

[0012] In the initial object, establishing first attributes corresponding to each of the parent levels, and using each of the first attributes as a first-level attribute of the initial object;

[0013] Establishing second attributes corresponding to each of the sub-levels on each of the first-level attributes according to the attribution relationship, and using the second attributes as second-level attributes of the initial object;

[0014] Establishing third attributes corresponding to each of the data attributes on each of the second-level attributes according to the corresponding relationship, and using the third attributes as the third-level attributes of the initial object;

[0015] The original object is used as a proxy object.

[0016] In one embodiment, the step of proxying each of the data attributes and each of the data hierarchies based on the proxy object includes:

[0017] Recursively traverse the proxy object to obtain the attribute names corresponding to each of the first-level attributes, each of the second-level attributes, and each of the third-level attributes;

[0018] Based on the proxy interface, a read function and a write function of the attribute corresponding to each attribute name are constructed to proxy each data attribute and each data hierarchy.

[0019] In one embodiment, after the step of constructing a read function and a write function of the attribute corresponding to each attribute name based on the proxy interface, the method further includes:

[0020] Obtaining the subscriber lists corresponding to the attribute names, and constructing subscription prompt statements according to the subscriber lists;

[0021] Add each of the subscription prompt statements to the write function corresponding to each of the attribute names.

[0022] In one embodiment, after the step of taking the data attribute with data change among the data attributes as the target data attribute, the method further includes:

[0023] Determine the target data level corresponding to the target data attribute according to the corresponding relationship, wherein the number of the target data level is one or more;

[0024] Get the attribute change subscription information corresponding to each subscriber;

[0025] Using the attribute change subscription information matching the target data hierarchy as the target subscription information, and using the subscriber corresponding to the target subscription information as the target subscriber;

[0026] The change information corresponding to the target data attribute is transmitted to the target subscriber.

[0027] In one embodiment, after the step of taking the data attribute with data change among the data attributes as the target data attribute, the method further includes:

[0028] Acquire a preset associated data attribute corresponding to the target data attribute, and acquire attribute values ​​corresponding to the associated data attribute and the target data attribute;

[0029] If it is determined that the attribute value of the associated data attribute does not match the attribute value of the target data attribute, an error message is output.

[0030] In addition, to achieve the above purpose, the present application also proposes a data monitoring system, the data monitoring system comprising:

[0031] A data acquisition module, used to acquire each data attribute, each data level, the attribution relationship between each data level, and the corresponding relationship between each data attribute and each data level of the program to be monitored;

[0032] An agent construction module, used to construct an agent object based on each of the data attributes, each of the data levels, the attribution relationship and the corresponding relationship, and to perform agent processing on each of the data attributes and each of the data levels based on the agent object;

[0033] The change prompt module is used to, when a data attribute with data changes is monitored through an agent, take the data attribute with data changes among the data attributes as a target data attribute, and output prompt information according to the target data attribute.

[0034] In addition, to achieve the above objectives, the present application also proposes a computer device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the data monitoring method described above.

[0035] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the data monitoring method described above are implemented.

[0036] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the data monitoring method described above are implemented.

[0037] In an embodiment of the present application, by obtaining each data attribute, each data level, the attribution relationship between each data level, and the correspondence relationship between each data attribute and each data level of the program to be monitored, the data with monitoring requirements in the program to be monitored can be obtained; then, a proxy object is constructed based on each data attribute, each data level, the attribution relationship and the correspondence relationship, and based on the proxy object, each data attribute and each data level is proxy-ed, and a unified monitoring method can be provided for each data with monitoring requirements through the proxy, so that programs or devices built by different technical frameworks can monitor attributes through the proxy; then, when a data attribute with data changes is monitored through the proxy, the data attribute with data changes in each data attribute is used as the target data attribute, and prompt information is output according to the target data attribute, so that the change of data can be monitored through the proxy, and the prompt is output.

[0038] Therefore, the present application can monitor the attributes in different technical frameworks in a proxy manner, thereby improving the efficiency of attribute monitoring. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] 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.

[0040] In order to more clearly illustrate the embodiments of the present application or the technical solutions in 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.

[0041] Figure 1 A flowchart of the first embodiment of the data monitoring method of the present application is provided;

[0042] Figure 2 A hierarchical tree diagram of an embodiment of the data monitoring method of the present application;

[0043] Figure 3 This is a flow chart of a specific embodiment of the data monitoring method of this application;

[0044] Figure 4 This is a schematic diagram of the module structure of the data monitoring system according to an embodiment of the present application;

[0045] Figure 5 Schematic diagram of the device structure of the hardware operating environment involved in the data monitoring method in the embodiment of the present application.

[0046] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0047] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0048] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0049] Nowadays, in software development or device design, multiple technical frameworks are often integrated, and these frameworks use different mechanisms when monitoring data attribute changes. Since multiple such technical frameworks may coexist within a program or device, in the process of monitoring data changes within the program or device, corresponding monitoring strategies must be adopted for the characteristics of each technical framework, resulting in low monitoring efficiency.

[0050] Therefore, how to improve the efficiency of data change monitoring is a technical problem that needs to be solved by those skilled in the art.

[0051] To solve this technical problem, the present application obtains the data with monitoring requirements in the program to be monitored by obtaining each data attribute, each data level, the attribution relationship between each data level, and the correspondence between each data attribute and each data level; then, a proxy object is constructed based on each data attribute, each data level, the attribution relationship and the correspondence relationship, and based on the proxy object, each data attribute and each data level is proxyed, and a unified monitoring method can be provided for each data with monitoring requirements through the proxy, so that programs or devices built with different technical frameworks can monitor attributes through the proxy; then, when a data attribute with data changes is monitored through the proxy, the data attribute with data changes in each data attribute is used as the target data attribute, and prompt information is output according to the target data attribute, so that the change of data can be monitored through the proxy, and a prompt is output.

[0052] Therefore, the present application can monitor the attributes in different technical frameworks in a proxy manner, thereby improving the efficiency of attribute monitoring.

[0053] It should be noted that the execution subject of the data monitoring method of the present application can be a computer device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a server, etc. The following takes a computer as an example to illustrate various embodiments of the data monitoring method of the present application.

[0054] Based on this, the present application embodiment provides a data monitoring method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the data monitoring method of the present application.

[0055] In this embodiment, the data monitoring method includes steps S10 to S30:

[0056] Step S10, obtaining each data attribute of the program to be monitored, each data level, the attribution relationship between each data level, and the corresponding relationship between each data attribute and each data level;

[0057] It should be noted that the program to be monitored refers to the program that has the property monitoring requirements. Data attributes refer to the attributes involved in each technical framework when developing the program to be monitored. Data hierarchy refers to the nodes related to the program functions developed by each technical framework in the program to be monitored. For example, the data hierarchy can include capabilities, topology nodes, etc. The attribution relationship refers to the parent-child relationship between each node.

[0058] Please refer to Figure 2 , Figure 2 This is a hierarchical tree diagram of an embodiment of the data monitoring method of the present application. Among them, function 1, function 2, node 1, node 2 and node 3 are data hierarchies, and attributes 1 to 5 are data attributes. The attribution relationship between function 1 and node 1 and node 2 is: function 1 is the parent node of node 1 and node 2. The corresponding relationship is: attribute 1 and attribute 2 correspond to node 1, attribute 3 and attribute 4 correspond to node 2, and attribute 5 corresponds to node 3.

[0059] In a feasible implementation manner, the data attributes, data levels, belonging relationships and corresponding relationships of the program to be monitored may be pre-set according to the functions of the program.

[0060] Step S20, constructing a proxy object based on each of the data attributes, each of the data levels, the attribution relationship and the corresponding relationship, and proxying each of the data attributes and each of the data levels based on the proxy object;

[0061] It is understandable that, in order to facilitate unified monitoring of various data attributes, a proxy object can be constructed based on the data attributes, data hierarchy, attribution relationship and corresponding relationship of the program to be monitored, and the proxy can be performed through the proxy object.

[0062] It should be noted that proxying the data hierarchy means: if a change in a data attribute is detected, the change can be mapped to the direct data hierarchy corresponding to the data attribute, as well as the indirect data hierarchy. Thus, the changed attributes can be obtained not only from the data attribute level, but also from the data hierarchy level.

[0063] In a feasible implementation manner, the above step S20 includes:

[0064] Step S201, constructing an initial object through an object constructor;

[0065] It should be noted that the object constructor refers to a function in the field of programming that can construct an object and initialize the object. In this embodiment, in order to improve the versatility of the initial object, the native function of the browser can be used to construct the initial object.

[0066] Step S202, determining the level of the attribution relationship, and when it is detected that the level is one, determining each parent level and each child level in each data level according to the attribution relationship;

[0067] It is understandable that after obtaining the attribution relationship of each data level, the attribution relationship can be converted into a graph, and then the level can be determined based on the graph. It should be noted that the level is a parent-child relationship that represents only one level in each data level. For example, Figure 2 Then, the parent and child hierarchies can be further determined in advance in each data hierarchy so as to construct the proxy in the initial object based on the parent-child relationship.

[0068] For example, in Figure 2 In the example, function 1 and function 2 are parent levels, and node 1 to node 3 are child levels.

[0069] Step S203, in the initial object, establishing first attributes corresponding to each of the parent levels, and using each of the first attributes as a first-level attribute of the initial object;

[0070] It is understandable that after distinguishing the parent level and the child level, the unique identifier corresponding to each parent level can be obtained first, and then the unique identifier is used as the attribute name to create the attribute with the unique identifier as the attribute name in the initial object. Thus, the first attribute corresponding to each parent level can be obtained. At the level of the initial object, the attribute with the unique identifier corresponding to each parent level as the attribute name is the first-level attribute of the initial object.

[0071] Step S204, establishing second attributes corresponding to each of the sub-levels on each of the first-level attributes according to the attribution relationship, and using the second attributes as second-level attributes of the initial object;

[0072] Similarly, after the first-level attributes of the initial object are created, attributes with the unique identifier of the sub-level as the attribute name can be created on the first-level attributes based on the attribution relationship, so as to obtain the second-level attributes of the initial object.

[0073] Step S205, establishing third attributes corresponding to each of the data attributes on each of the second-level attributes according to the corresponding relationship, and using the third attributes as the third-level attributes of the initial object;

[0074] Similarly, after the second-level attributes are created, third-level attributes corresponding to the data attributes can be created based on the corresponding relationship and on the basis of the second-level attributes.

[0075] Step S206: use the initial object as a proxy object.

[0076] It is understandable that after the data attributes are also created in the initial object, the initial object can be used as a proxy object to proxy the monitoring of various attributes.

[0077] Exemplarily, when the program to be monitored is a super device (a multi-device system, these devices are combined around the main device (the device with the strongest computing power) to form a hardware device cluster according to the needs of the business or scenario. The super device unifies the data standards, shields the complexity of heterogeneous devices, and maps data of multiple modes to a unified representation space to achieve multi-modal data fusion. These devices can work together to provide a more efficient and intelligent device management and control experience), if the data hierarchy of the super device is capabilities and nodes, then the proxy object can be established according to the following steps:

[0078] Get the topological node and capability list of the super device, and create a new object SuperDeviceData according to the object constructor. It will traverse the capability list of the super device and set the capability identifier of each capability as the first-level attribute name of SuperDeviceData. Then traverse the topological node list, get the capability identifier of each node, set the node code to the corresponding capability identifier object, and use the attribute list corresponding to the capability to initialize all the attributes of the corresponding node to null values. Then, SuperDeviceData can be used as a proxy object.

[0079] In a feasible implementation manner, the above step S20 further includes:

[0080] Step S207, recursively traverse the proxy object to obtain the attribute names corresponding to each of the first-level attributes, each of the second-level attributes, and each of the third-level attributes;

[0081] It is understandable that after the proxy object is constructed, a tree-like attribute hierarchy will be presented in the proxy object, so the attribute names corresponding to each first-level attribute, each second-level attribute, and each third-level attribute can be obtained by recursive traversal.

[0082] For example, Figure 2 For example, you can get the attribute names corresponding to function 1 to function 2, node 1 to node 3, and attribute 1 to attribute 5.

[0083] Step S208, based on the proxy interface, construct a read function and a write function of the attribute corresponding to each attribute name, so as to proxy each data attribute and each data hierarchy.

[0084] It should be noted that the read function refers to the get function, which is used to obtain the value corresponding to the attribute name and will not cause the attribute to change; the write function refers to the set function, which is used to reset the value corresponding to a certain attribute name and will cause the attribute to change.

[0085] In this embodiment, after obtaining each attribute name, a read function and a write function of each attribute name can be constructed based on the proxy, thereby achieving the purpose of proxying each data attribute and each data level.

[0086] For example, in Figure 2 In the given example, write functions corresponding to function 1 to function 2, node 1 to node 3, and attribute 1 to attribute 5 can be constructed respectively, and read functions corresponding to function 1 to function 2, node 1 to node 3, and attribute 1 to attribute 5 can be constructed respectively.

[0087] Step S30: when a data attribute with data changes is monitored through the proxy, the data attribute with data changes among the data attributes is used as a target data attribute, and prompt information is output according to the target data attribute.

[0088] In this embodiment, after constructing the agents corresponding to each data level and each data attribute, the data attribute with data changes can be monitored through the write function in the agent. That is, if it is detected that the write function is called, it indicates that the data attribute with data changes is monitored. Then, the data attribute with changes is used as the target data attribute, and prompt information is output according to the target data attribute.

[0089] In an embodiment of the present application, by obtaining each data attribute, each data level, the attribution relationship between each data level, and the correspondence relationship between each data attribute and each data level of the program to be monitored, the data with monitoring requirements in the program to be monitored can be obtained; then, a proxy object is constructed based on each data attribute, each data level, the attribution relationship and the correspondence relationship, and based on the proxy object, each data attribute and each data level is proxy-ed, and a unified monitoring method can be provided for each data with monitoring requirements through the proxy, so that programs or devices built by different technical frameworks can monitor attributes through the proxy; then, when a data attribute with data changes is monitored through the proxy, the data attribute with data changes in each data attribute is used as the target data attribute, and prompt information is output according to the target data attribute, so that the change of data can be monitored through the proxy, and the prompt is output.

[0090] Therefore, the present application can monitor the attributes in different technical frameworks in a proxy manner, thereby improving the efficiency of attribute monitoring.

[0091] Furthermore, based on the above-mentioned first embodiment of the data monitoring method of the present application, a second embodiment of the data monitoring method of the present application is proposed.

[0092] In this embodiment, after the above step S208, the method further includes:

[0093] Step S100, obtaining the subscriber lists corresponding to the attribute names, and constructing subscription prompt statements according to the subscriber lists;

[0094] It is understandable that different attribute values ​​may correspond to different response strategies in specific scenarios. Therefore, there will be one or more subscribers who subscribe to the value change information of a certain attribute in order to switch the response strategy. Therefore, it is possible to obtain the subscriber list corresponding to each attribute name, and construct a subscription prompt statement based on the subscriber list. For example, a subscription prompt statement containing the names of all subscribers in the subscriber list can be constructed. Among them, the subscription prompt statement is used to prompt the subscriber that the attribute value has changed.

[0095] Step S200: adding each subscription prompt statement to the write function corresponding to each attribute name.

[0096] It is understandable that the method of adding the subscription prompt statement to the write function adopted by the present application can immediately transmit the change information to the subscriber after the attribute value is changed, thereby improving the efficiency of information transmission.

[0097] Furthermore, based on the above-mentioned first embodiment and / or second embodiment of the data monitoring method of the present application, a third embodiment of the data monitoring method of the present application is proposed.

[0098] In this embodiment, after the above step S30, the method further includes:

[0099] Step S300, determining the target data level corresponding to the target data attribute according to the corresponding relationship, wherein the number of the target data level is one or more;

[0100] For example, in Figure 2 In the example, if the target data attribute is attribute 1, the target data hierarchy includes node 1 and function 1.

[0101] Step S400, obtaining the attribute change subscription information corresponding to each subscriber;

[0102] It can be understood that the attribute change subscription information refers to the attribute information subscribed by the subscriber. For example, the attribute change subscription information of a subscriber is: Figure 2 Function 1 in the function, then when the attributes under the data level of function 1 change, the subscriber needs to be notified.

[0103] Step S500, taking the attribute change subscription information matching the target data hierarchy as the target subscription information, and taking the subscriber corresponding to the target subscription information as the target subscriber;

[0104] Step S600: delivering the change information corresponding to the target data attribute to the target subscriber.

[0105] In this embodiment, the changes of attributes can be monitored not only from the data attribute level, but also from the data layer level, thereby expanding the influence range of attribute monitoring and making it easier for different subscribers to respond from different levels.

[0106] Furthermore, based on the above-mentioned first embodiment and / or second embodiment of the data monitoring method of the present application, a fourth embodiment of the data monitoring method of the present application is proposed.

[0107] In this embodiment, after the above step S30, the method further includes:

[0108] Step S700, obtaining a preset associated data attribute corresponding to the target data attribute, and obtaining attribute values ​​corresponding to the associated data attribute and the target data attribute;

[0109] It is understandable that among the multiple attributes of the program to be monitored, there are data attributes that are related to each other. The above-mentioned related data attributes refer to data attributes that are related to the target data attributes. Among them, the relationship between a certain data attribute and other data attributes is preset. Therefore, after determining the target data attribute, the preset related data attribute corresponding to the target data attribute can be obtained, and the attribute value can be obtained.

[0110] Step S800: If it is determined that the attribute value of the associated data attribute does not match the attribute value of the target data attribute, an error message is output.

[0111] It should be noted that in actual scenarios, a set of rules is usually set to determine whether the attribute value of the target data attribute matches the attribute value of the associated data attribute. This application does not limit the rules used to determine whether the attribute values ​​match.

[0112] For example, when the program to be monitored is used to control the lights and power supply of a certain place, there is an association between the data attribute representing whether the lights are enabled (hereinafter referred to as the first data attribute) and the data attribute representing whether the power supply is disconnected (hereinafter referred to as the second data attribute). Therefore, when a change in the first data attribute is detected, for example, from on to off, it can be determined whether the attribute value of the second data attribute represents that the power supply is disconnected. If the power supply is detected to be disconnected, there is no need to output a prompt message; if the power supply is detected to be not disconnected, an error message can be output to remind the technician to optimize.

[0113] In this embodiment, the present application can automatically detect the optimizable space in the program to be monitored by judging whether the attribute value of the associated data attribute matches the attribute value of the target data attribute, thereby improving the efficiency of program programming.

[0114] Furthermore, based on all the above-mentioned embodiments of the data monitoring method of the present application, a specific embodiment of the data monitoring method of the present application is proposed.

[0115] Please refer to Figure 3 , Figure 3 This is a flow chart of a specific embodiment of the data monitoring method of the present application. Among them, subscriber A subscribes to the attribute changes under the data level of capability 1, subscriber B subscribes to the attribute changes under the data level of node 1-1, and subscriber C subscribes to the changes of the data attribute 1-2-1. Therefore, if attribute 1-2-1 changes, subscribers A to C will all receive the change information and make different responses. In addition, when subscribing to attribute change information, you can subscribe to a certain capability, node or attribute based on the preset global subscription method. When subscribing, you can automatically add subscription events to the subscription list of the attribute. Specifically, when the device attribute change monitoring of the super device instance is established through WebSocket, and when it is detected that the server has an attribute change message push, the corresponding attribute value of the corresponding node under the corresponding capability will be updated accordingly, and the set operation will be triggered layer by layer, then the events in the corresponding subscription list will be triggered and executed. When an atomic service (a subscriber) subscribes to a capability, node or attribute using the global subscription method, it retrieves the attribute path corresponding to SuperDeviceData, obtains the corresponding proxy object, and then adds the callback method of the subscription event to the subscription list in the object, and returns a method to cancel the subscription to the subscriber. Thus, this application can not only implement the subscription of attribute change information, but also cancel the subscription.

[0116] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the data monitoring method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0117] This application also provides a data monitoring system, please refer to Figure 4 , the data monitoring system comprises:

[0118] The data acquisition module 10 is used to acquire each data attribute, each data level, the attribution relationship between each data level, and the corresponding relationship between each data attribute and each data level of the program to be monitored;

[0119] The proxy construction module 20 is used to construct a proxy object based on each of the data attributes, each of the data levels, the attribution relationship and the corresponding relationship, and to proxy each of the data attributes and each of the data levels based on the proxy object;

[0120] The change prompt module 30 is used to, when a data attribute with data changes is monitored through the agent, take the data attribute with data changes among the data attributes as a target data attribute, and output prompt information according to the target data attribute.

[0121] In one embodiment, the agent construction module 20 is further configured to:

[0122] Construct the initial object through the object constructor;

[0123] Determining the level of the attribution relationship, and when it is detected that the level is one, determining each parent level and each child level in each data level according to the attribution relationship;

[0124] In the initial object, establishing first attributes corresponding to each of the parent levels, and using each of the first attributes as a first-level attribute of the initial object;

[0125] Establishing second attributes corresponding to each of the sub-levels on each of the first-level attributes according to the attribution relationship, and using the second attributes as second-level attributes of the initial object;

[0126] Establishing third attributes corresponding to each of the data attributes on each of the second-level attributes according to the corresponding relationship, and using the third attributes as the third-level attributes of the initial object;

[0127] The original object is used as a proxy object.

[0128] In one embodiment, the agent construction module 20 is further configured to:

[0129] Recursively traverse the proxy object to obtain the attribute names corresponding to each of the first-level attributes, each of the second-level attributes, and each of the third-level attributes;

[0130] Based on the proxy interface, a read function and a write function of the attribute corresponding to each attribute name are constructed to proxy each data attribute and each data hierarchy.

[0131] In one embodiment, the data monitoring system further includes:

[0132] A subscriber list acquisition module, used to acquire the subscriber lists corresponding to each of the attribute names, and construct a subscription prompt statement according to each of the subscriber lists;

[0133] The function expansion module is used to add each of the subscription prompt statements to the write function corresponding to each of the attribute names.

[0134] In one embodiment, the data monitoring system further includes:

[0135] a target level determination module, configured to determine the target data level corresponding to the target data attribute according to the corresponding relationship, wherein the number of the target data level is one or more;

[0136] The subscription information acquisition module is used to obtain the attribute change subscription information corresponding to each subscriber;

[0137] A target determination module, used to use the attribute change subscription information matching the target data hierarchy as the target subscription information, and use the subscriber corresponding to the target subscription information as the target subscriber;

[0138] The information transmission module is used to transmit the change information corresponding to the target data attribute to the target subscriber.

[0139] In one embodiment, the data monitoring system further includes:

[0140] An attribute value acquisition module, used to acquire a preset associated data attribute corresponding to the target data attribute, and acquire attribute values ​​corresponding to the associated data attribute and the target data attribute respectively;

[0141] The value matching module is used to output an error message if it is determined that the attribute value of the associated data attribute does not match the attribute value of the target data attribute.

[0142] The data monitoring system provided by the present application adopts the data monitoring method in the above embodiment, which can solve the technical problem of how to improve the efficiency of data change monitoring. Compared with the prior art, the beneficial effects of the data monitoring system provided by the present application are the same as the beneficial effects of the data monitoring method provided by the above embodiment, and other technical features of the data monitoring system are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0143] The present application provides a computer device, which includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the data monitoring method in the above-mentioned embodiment 1.

[0144] Reference below Figure 5 , which shows a schematic diagram of the structure of a computer device suitable for implementing an embodiment of the present application. Figure 5 The computer device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0145] like Figure 5 As shown, the computer device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the computer device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the computer device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a computer device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0146] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0147] The computer device provided by the present application adopts the data monitoring method in the above embodiment to solve the technical problem of how to improve the efficiency of data change monitoring. Compared with the prior art, the beneficial effects of the computer device provided by the present application are the same as the beneficial effects of the data monitoring method provided by the above embodiment, and the other technical features in the computer device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0148] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0149] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0150] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the data monitoring method in the above-mentioned embodiment.

[0151] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0152] The computer-readable storage medium may be included in the computer device; or may exist independently without being installed in the computer device.

[0153] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by a computer device, the computer device: obtains each data attribute, each data level, the attribution relationship between each data level, and the correspondence relationship between each data attribute and each data level of the program to be monitored; constructs a proxy object based on each data attribute, each data level, the attribution relationship and the correspondence relationship, and based on the proxy object, proxies each data attribute and each data level; when a data attribute with data change is monitored through the proxy, the data attribute with data change among the data attributes is used as the target data attribute, and prompt information is output according to the target data attribute.

[0154] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0155] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0156] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0157] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned data monitoring method, and can solve the technical problem of how to improve the efficiency of data change monitoring. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the data monitoring method provided by the above-mentioned embodiment, and will not be repeated here.

[0158] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned data monitoring method when executed by a processor.

[0159] The computer program product provided by this application can solve the technical problem of how to improve the efficiency of data change monitoring. Compared with the prior art, the beneficial effects of the computer program product provided by this application are the same as the beneficial effects of the data monitoring method provided by the above embodiment, which will not be repeated here.

[0160] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A data monitoring method, characterized in that: The data monitoring method comprises: Acquire each data attribute, each data level, the attribution relationship between each data level, and the corresponding relationship between each data attribute and each data level of the program to be monitored; Constructing a proxy object based on each of the data attributes, each of the data levels, the attribution relationship and the corresponding relationship, and proxying each of the data attributes and each of the data levels based on the proxy object; When a data attribute with data changes is monitored through the proxy, the data attribute with data changes among the data attributes is used as a target data attribute, and prompt information is output according to the target data attribute.

2. The data monitoring method according to claim 1, characterized in that: The step of constructing a proxy object based on the data attributes, the data levels, the attribution relationships and the corresponding relationships includes: Construct the initial object through the object constructor; Determining the level of the attribution relationship, and when it is detected that the level is one, determining each parent level and each child level in each data level according to the attribution relationship; In the initial object, establishing first attributes corresponding to each of the parent levels, and using each of the first attributes as a first-level attribute of the initial object; Establishing second attributes corresponding to each of the sub-levels on each of the first-level attributes according to the attribution relationship, and using the second attributes as second-level attributes of the initial object; Establishing third attributes corresponding to each of the data attributes on each of the second-level attributes according to the corresponding relationship, and using the third attributes as the third-level attributes of the initial object; The original object is used as a proxy object.

3. The data monitoring method according to claim 2, characterized in that: The step of proxying each of the data attributes and each of the data levels based on the proxy object includes: Recursively traverse the proxy object to obtain the attribute names corresponding to each of the first-level attributes, each of the second-level attributes, and each of the third-level attributes; Based on the proxy interface, a read function and a write function of the attribute corresponding to each attribute name are constructed to proxy each data attribute and each data hierarchy.

4. The data monitoring method according to claim 3, characterized in that: After the step of constructing a read function and a write function for the attribute corresponding to each attribute name based on the proxy interface, the method further includes: Obtaining the subscriber lists corresponding to the attribute names, and constructing subscription prompt statements according to the subscriber lists; Add each of the subscription prompt statements to the write function corresponding to each of the attribute names.

5. The data monitoring method according to claim 1, characterized in that: After the step of taking the data attribute with data change among the data attributes as the target data attribute, the method further includes: Determine the target data level corresponding to the target data attribute according to the corresponding relationship, wherein the number of the target data level is one or more; Get the attribute change subscription information corresponding to each subscriber; Using the attribute change subscription information matching the target data hierarchy as the target subscription information, and using the subscriber corresponding to the target subscription information as the target subscriber; The change information corresponding to the target data attribute is transmitted to the target subscriber.

6. The data monitoring method according to claim 1, characterized in that: After the step of taking the data attribute with data change among the data attributes as the target data attribute, the method further includes: Acquire a preset associated data attribute corresponding to the target data attribute, and acquire attribute values ​​corresponding to the associated data attribute and the target data attribute; If it is determined that the attribute value of the associated data attribute does not match the attribute value of the target data attribute, an error message is output.

7. A data monitoring system, characterized in that: The data monitoring system comprises: A data acquisition module, used to acquire each data attribute, each data level, the attribution relationship between each data level, and the corresponding relationship between each data attribute and each data level of the program to be monitored; An agent construction module, used to construct an agent object based on each of the data attributes, each of the data levels, the attribution relationship and the corresponding relationship, and to perform agent processing on each of the data attributes and each of the data levels based on the agent object; The change prompt module is used to, when a data attribute with data changes is monitored through an agent, take the data attribute with data changes among the data attributes as a target data attribute, and output prompt information according to the target data attribute.

8. A computer device, characterized in that: The computer device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the data monitoring method according to any one of claims 1 to 6.

9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the data monitoring method according to any one of claims 1 to 6 are implemented.

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the data monitoring method according to any one of claims 1 to 6 are implemented.