CN110109801B - Page element management method based on data processing and related equipment - Google Patents
Page element management method based on data processing and related equipment Download PDFInfo
- Publication number
- CN110109801B CN110109801B CN201910297329.1A CN201910297329A CN110109801B CN 110109801 B CN110109801 B CN 110109801B CN 201910297329 A CN201910297329 A CN 201910297329A CN 110109801 B CN110109801 B CN 110109801B
- Authority
- CN
- China
- Prior art keywords
- monitoring
- monitoring area
- area
- elements
- preset
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/302—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3089—Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Mathematical Physics (AREA)
- Testing And Monitoring For Control Systems (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the application discloses a page element management method based on data processing and related equipment, wherein the method is applied to the technical field of data processing, and comprises the following steps: when the page element monitoring function is detected to be started, acquiring attribute information of monitoring elements in a pre-divided monitoring area, detecting whether the monitoring area meets preset management conditions corresponding to the monitoring area or not based on the attribute information of the monitoring elements in the monitoring area, and executing management operation corresponding to the preset management conditions on the monitoring area if the monitoring area meets the preset management conditions. By adopting the method and the device, unified management of a plurality of monitoring elements can be realized, and management efficiency of page elements is improved.
Description
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a page element management method and related device based on data processing.
Background
Since the resources provided by the page are mostly network resources existing in the internet, the network resources have a certain timeliness. Therefore, after the page is online, page elements of the page need to be monitored frequently to perform corresponding management.
At present, the monitoring of page elements is mostly carried out on single page elements in a page, a plurality of monitoring elements cannot be managed uniformly, the monitoring distribution is messy, and omission or secondary monitoring coverage easily occurs in subsequent development. Therefore, how to uniformly manage multiple monitoring elements becomes a problem to be solved.
Disclosure of Invention
The embodiment of the application provides a page element management method based on data processing and related equipment, which can realize unified management of a plurality of monitoring elements and are beneficial to improving the management efficiency of page elements.
In a first aspect, an embodiment of the present application provides a method for managing page elements based on data processing, where the method includes:
when the monitoring function of the page element is detected to be started, acquiring attribute information of the monitoring element in a pre-divided monitoring area, wherein the monitoring element is the page element determined according to the monitoring requirement, the monitoring area is obtained by carrying out area pre-division on the monitoring element according to a pre-configured monitoring area division rule, and the monitoring area comprises at least one monitoring element;
detecting whether the monitoring area meets preset management conditions corresponding to the monitoring area or not based on attribute information of monitoring elements in the monitoring area;
And if the monitoring area is detected to meet the preset management condition, executing management operation corresponding to the preset management condition on the monitoring area.
In an embodiment, the attribute information includes an attribute value of the monitoring element, and the specific implementation manner of detecting, based on the attribute information of the monitoring element in the monitoring area, whether the monitoring area meets the preset management condition corresponding to the monitoring area is: comparing the attribute value of any monitoring element in the monitoring area with the preset attribute value of any monitoring element; if the attribute value of any monitoring element is not matched with the preset attribute value of any monitoring element, determining that the monitoring area meets the preset management condition corresponding to the monitoring area.
In one embodiment, if the attribute value of any monitoring element is not matched with the preset attribute value of any monitoring element by comparison, determining any monitoring element as a target monitoring element; the specific implementation manner of executing the management operation corresponding to the preset management condition on the monitoring area is as follows: executing management operation corresponding to the preset management condition on the target monitoring element, wherein the management operation comprises at least one of the following steps: adding identification information to the target monitoring element, and adjusting the display color of the display area corresponding to the target monitoring element to be a preset color.
In an embodiment, the attribute information includes the number of the monitoring elements, and the specific implementation manner of detecting, based on the attribute information of the monitoring elements in the monitoring area, whether the monitoring area meets the preset management condition corresponding to the monitoring area is: comparing the number of the monitoring elements in the monitoring area with the pre-recorded historical number of the monitoring elements in the monitoring area; and if the number of the monitoring elements in the monitoring area is not equal to the historical number of the monitoring elements in the monitoring area by comparison, determining that the monitoring area meets the preset management condition corresponding to the monitoring area.
In an embodiment, the specific implementation manner of executing the management operation corresponding to the preset management condition on the monitoring area is: if the comparison results in that the number of the monitoring elements in the monitoring area is larger than the historical number of the monitoring elements, executing a first management operation corresponding to the preset management condition on the monitoring area; and if the comparison results in that the number of the monitoring elements in the monitoring area is smaller than the historical number of the monitoring elements, executing a second management operation corresponding to the preset management condition on the monitoring area.
In an embodiment, the monitoring area is a display page, and before the management operation corresponding to the preset management condition is executed on the monitoring area, if it is detected that the monitoring area meets the preset management condition, it may also be detected whether a page switching operation for the display page exists; and if the page switching operation exists, triggering a step of executing the management operation corresponding to the preset management condition on the monitoring area.
In one embodiment, the preconfigured monitoring area dividing rule is used for indicating that the monitoring elements with the matched attribute information are divided into the same monitoring area, and attribute information of each monitoring element in at least one monitoring element can be obtained; and dividing the monitoring elements matched with the attribute information into the same monitoring area based on the indication of the monitoring area dividing rule so as to obtain at least one monitoring area.
In a second aspect, an embodiment of the present application provides a page element management apparatus based on data processing, where the page element management apparatus includes a module for executing the method of the first aspect.
In a third aspect, an embodiment of the present application provides a terminal device, where the terminal device includes a processor, a memory, an input device, and an output device, where the processor, the memory, the input device, and the output device are connected to each other, where the memory is configured to store a computer program supporting the terminal device to perform the method described above, and the computer program includes program instructions, and the processor is configured to invoke the program instructions to perform the method of the first aspect described above.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium storing a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the method of the first aspect described above.
In this embodiment of the present application, when detecting that the page element monitoring function is turned on, the terminal device may acquire attribute information of a monitoring element in a pre-divided monitoring area, and based on the attribute information of the monitoring element in the monitoring area, detect whether the monitoring area meets a preset management condition corresponding to the monitoring area, and if it is detected that the monitoring area meets the preset management condition, execute a management operation corresponding to the preset management condition on the monitoring area. By adopting the method and the device, unified management of a plurality of monitoring elements can be realized, and management efficiency of page elements is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a page element management method based on data processing according to an embodiment of the present application;
FIG. 2 is a flowchart of another page element management method based on data processing according to an embodiment of the present application;
FIG. 3 is a flowchart of another page element management method based on data processing according to an embodiment of the present application;
FIG. 4 is a schematic block diagram of a page element management apparatus based on data processing according to an embodiment of the present application;
fig. 5 is a schematic block diagram of a terminal device provided in an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Referring to fig. 1, fig. 1 is a flow chart of a page element management method based on data processing, where the method is applied to a terminal device and may be executed by the terminal device, and as shown in the drawing, the page element management method may include:
101: and when the monitoring function of the page element is detected to be started, acquiring attribute information of the monitoring element in the pre-divided monitoring area. The monitoring element is a page element determined according to the monitoring requirement, the monitoring area is obtained by carrying out area pre-division on the monitoring element according to a pre-configured monitoring area division rule, and the monitoring area comprises at least one monitoring element.
In one embodiment, a developer may pre-configure the monitoring requirements for the monitoring elements and the monitoring region partitioning rules. Wherein the monitoring requirement is used for indicating which page elements are monitored, namely, which page elements are determined to be monitoring elements; the monitoring area dividing rule is used for indicating that monitoring elements with the matched attribute information are divided into the same monitoring area, and at least one monitoring area is further obtained.
In one embodiment, the terminal device may obtain attribute information of each monitoring element in the at least one monitoring element, and divide the monitoring element with the matched attribute information into the same monitoring area based on the indication of the monitoring area division rule, so as to obtain at least one monitoring area. The attribute information may include, among other things, an ID, tag, category, name, etc. attribute of the monitoring element. In one embodiment, if any one of the ID attribute, the tag attribute, the category attribute, and the name attribute of any two monitoring elements is the same, it may be determined that the any two monitoring elements match. For example, the monitoring area rule may be, for example, dividing a monitoring element with a name attribute of "nw" into the same monitoring area. In this case, the name attribute of all the page elements (i.e., monitoring elements) to be monitored may be detected, and the monitoring elements with the name attribute of "nw" may be divided into the same monitoring area.
102: based on the attribute information of the monitoring elements in the monitoring area, whether the monitoring area meets the preset management conditions corresponding to the monitoring area is detected.
103: and if the monitoring area is detected to meet the preset management condition, executing management operation corresponding to the preset management condition on the monitoring area.
In one embodiment, after obtaining at least one monitoring area, an identifier (such as a number) may be added for each monitoring area, and a corresponding management condition (i.e., a preset management condition) may be configured for each identified monitoring area in the management condition configuration page. The correspondence between the monitoring area and the management condition may be as shown in table 1, for example:
TABLE 1
Monitoring area | Management conditions |
1 | A |
2 | B |
3 | C |
As can be seen from table 1, each monitoring area may correspond to one management condition. Thus, the management conditions between each monitoring area may be completely independent.
As a possible implementation manner, superposition, replacement and deletion of the corresponding management conditions of each monitoring area can be flexibly adjusted in a management condition configuration page or an independent plug-in according to different monitoring requirements. For example, the management conditions corresponding to the monitoring area 1 are superimposed as a and B, and the management condition B corresponding to the monitoring area 2 is changed to other management conditions such as F and the like.
Wherein, the attribute information of the monitoring elements in the pre-divided monitoring area may include attribute values of the monitoring elements and/or the number of the monitoring elements in the monitoring area. The preset management condition may be that an attribute value of any monitoring element in the monitoring area changes, or that the number of monitoring elements in the monitoring area changes. In one embodiment, when the preset management condition is that the attribute value of any monitoring element in the monitoring area changes, the management operation corresponding to the preset management condition may include at least one of the following: adding identification information to a monitoring element (namely, a target monitoring element) with the changed attribute value in the monitoring area, adjusting the display color of the display area corresponding to the target monitoring element to a preset color, and the like.
In another embodiment, the number of monitoring elements in the monitoring area is changed when the preset management condition is that. Then, the management operation corresponding to the preset management condition may be to add identification information to the monitoring area.
In one embodiment, the monitoring area may be a display page, that is, all page elements in the display page are monitoring elements, and the attribute information of the page elements in the same page may be different. For this case, if the developer wants to divide all the page elements in the display page into the same monitoring area, custom attribute information may be given to all the page elements in the display page, so as to ensure that all the page elements in the display page are divided into the same monitoring area. For example, if a developer wants to divide all page elements (elements P1, P2 and P3) in a first page into the same monitoring area, custom attributes may be given to the above elements P1, P2 and P3 in the first page in advance, for example, name attributes of three elements are unified as "WXZ". In this case, a rule for dividing the monitored area may be configured: the element with the name attribute of WXZ is divided into the same monitoring area. In this way all page elements (element P1, element P2 and element P3) in the first page can be divided into the same monitoring area.
In an embodiment, the monitoring area may be a display page, if the terminal device detects that the monitoring area meets a preset management condition, it may detect whether there is a page switching operation for the display page, and if there is a page switching operation, trigger to execute a step of executing a management operation corresponding to the preset management condition on the monitoring area. The page switch operation may be a touch operation for triggering a page to jump or exit from a current page, for example: touching a "next page" function button or touching an "exit" function button, etc. In this way, when the user is about to exit the current display page, the corresponding management operation can be executed.
In this embodiment of the present application, when detecting that the page element monitoring function is turned on, the terminal device may acquire attribute information of a monitoring element in a pre-divided monitoring area, and based on the attribute information of the monitoring element in the monitoring area, detect whether the monitoring area meets a preset management condition corresponding to the monitoring area, and if it is detected that the monitoring area meets the preset management condition, execute a management operation corresponding to the preset management condition on the monitoring area. By adopting the method and the device, unified management of a plurality of monitoring elements can be realized, and management efficiency of page elements is improved.
Referring to fig. 2, fig. 2 is a flow chart of another data processing based page element management method provided in an embodiment of the present application, where the method is applied to a terminal device and may be executed by the terminal device, and as shown in the drawing, the page element management method may include:
201: and when the monitoring function of the page element is detected to be started, acquiring attribute information of the monitoring element in the pre-divided monitoring area, wherein the attribute information comprises attribute values of the monitoring element in the monitoring area.
202: comparing the attribute value of any monitoring element in the monitoring area with the preset attribute value of any monitoring element, and if the attribute value of any monitoring element is not matched with the preset attribute value of any monitoring element, determining that the monitoring area meets the preset management condition corresponding to the monitoring area.
In one embodiment, each monitoring element has its own preset attribute value, which may also be referred to as an initial attribute value. The preset attribute value may be a general attribute value of the monitoring element, or may be a custom attribute value added to the monitoring element. In one embodiment, the preset management condition corresponding to the monitoring area is that the attribute value of any monitoring element in the monitoring area is not matched with the attribute value of any monitoring element, and at least one monitoring element exists in the monitoring area. In this case, the terminal device may traverse the attribute values of all the monitoring elements in the monitoring area, compare the attribute value of each monitoring element with the preset attribute value corresponding to each monitoring element, and if the attribute value of any monitoring element obtained by comparison does not match the preset attribute value of any monitoring element, determine that the monitoring area meets the preset management condition corresponding to the monitoring area.
In one embodiment, if the attribute value of any monitoring element is different from the preset attribute value of any monitoring element, it may be determined that the attribute value of any monitoring element is not matched with the preset attribute value of any monitoring element. In another embodiment, if the difference between the attribute value of any monitoring element and the preset attribute value of any monitoring element is greater than the preset difference threshold, it may be determined that the attribute value of any monitoring element does not match the preset attribute value of any monitoring element. Specifically, the present application is not particularly limited as to the preset management conditions corresponding to the monitored area.
In one embodiment, the terminal device obtains the attribute value of any monitoring element from all monitoring elements in the monitoring area, compares the attribute value of any monitoring element with the preset attribute value of any monitoring element, if the attribute value of any monitoring element obtained by comparison is matched with the preset attribute value of any monitoring element, the terminal device can continuously obtain the attribute values of other monitoring elements in the monitoring area, compares the attribute values of other monitoring elements with the preset attribute value, and if the attribute value of any monitoring element in the monitoring area obtained by comparison is not matched with the preset attribute value of any monitoring element, determines that the monitoring area meets the preset management condition corresponding to the monitoring area. If the monitoring area does not exist, until all the monitoring elements in the monitoring area are traversed, the attribute values of all the monitoring elements are matched with the corresponding preset attribute values, detection is stopped, and it can be determined that the monitoring area does not meet the corresponding preset management conditions of the monitoring area.
For example, there are 3 monitoring elements in the monitoring area 1, which are monitoring elements P1, P2, and P3, respectively. Wherein, P1, P2 and P3 respectively correspond to preset attribute values as shown in table 2. Under the condition, the terminal equipment traverses the attribute values of all the monitoring elements in the monitoring area, determines that the attribute values corresponding to the monitoring elements P1, P2 and P3 are respectively 0.5, 1 and 1, and can obtain that the attribute value of the monitoring element P1 is different from the preset attribute value of the monitoring element P1, and determines that the attribute value of the monitoring element P1 is not matched with the preset attribute value of the monitoring element P1, so that the monitoring area 1 can be determined to meet the preset management condition corresponding to the monitoring area.
TABLE 2
Monitoring element | Presetting attribute values |
P1 | 1 |
P2 | 1 |
P3 | 1 |
203: and if the monitoring area is detected to meet the preset management condition, executing management operation corresponding to the preset management condition on the monitoring area.
In one embodiment, each of the management conditions may correspond to a respective management operation. And if the terminal equipment compares the attribute value of any monitoring element with the preset attribute value of any monitoring element, determining any monitoring element as a target monitoring element. Further, the terminal device may perform a management operation corresponding to a preset management condition on the target monitoring element, where the management operation includes at least one of the following: adding identification information to the target monitoring element, and adjusting the display color of the display area corresponding to the target monitoring element to be a preset color. The adding of the identification information to the target monitoring element may be, for example, marking (such as redness, highlighting, underlining, etc.) the target monitoring element, or changing a font size, a display area size, etc. corresponding to the specified element. In this way, the user can be alerted to which monitoring elements in the monitoring area have been altered.
For example, assume that the preset management condition a corresponding to the monitoring area 1 is that a target monitoring element exists in the monitoring area, and a preset attribute value of the target monitoring element is different from an attribute value of the target monitoring element. In the monitoring area 1, there are 3 monitoring elements, namely monitoring elements P1, P2 and P3, respectively. The preset attribute values corresponding to the P1, P2 and P3 are shown in table 2, and the terminal device traverses the attribute values of all the monitoring elements in the monitoring area to determine that the attribute values corresponding to the monitoring elements P1, P2 and P3 are 0.5, 0.5 and 1 respectively. It can be seen that, if the attribute values of the monitoring element P1 and the monitoring element P2 are different from the respective corresponding preset attribute values, the monitoring element P1 and the monitoring element P2 can be determined as target monitoring elements, and it is determined that the monitoring area 1 meets the preset management condition a corresponding to the monitoring area.
Further, assume that the management operation corresponding to the preset management condition a is marked red for the target monitoring element. In this case, after the terminal device determines the monitoring element P1 and the monitoring element P2 as the target monitoring elements, the monitoring element P1 and the monitoring element P2 may be marked red to remind the user that the monitoring element P1 and the monitoring element P2 have a change.
In this embodiment of the present application, when detecting that the page element monitoring function is turned on, the terminal device may acquire attribute information of a monitoring element in a pre-divided monitoring area, where the attribute information includes an attribute value of the monitoring element in the monitoring area. Further, the terminal device may compare the attribute value of any monitoring element in the monitoring area with the preset attribute value of the monitoring element in the monitoring area, and if the attribute value of any monitoring element obtained by comparing with the preset attribute value of any monitoring element is not matched with the preset attribute value of any monitoring element, determine that the monitoring area meets the preset management condition corresponding to the monitoring area, and further execute the management operation corresponding to the preset management condition on the monitoring area. By adopting the method and the device, unified management of a plurality of monitoring elements can be realized, and management efficiency of page elements is improved.
Referring to fig. 3, fig. 3 is a flow chart of yet another page element management method based on data processing according to an embodiment of the present application, where the method is applied to a terminal device and may be executed by the terminal device, and as shown in the drawing, the page element management method may include:
301: when the page element monitoring function is detected to be started, attribute information of monitoring elements in the pre-divided monitoring area is acquired, wherein the attribute information comprises the number of the monitoring elements in the monitoring area.
302: comparing the number of the monitoring elements in the monitoring area with the number of the histories of the monitoring elements in the pre-recorded monitoring area, and if the number of the monitoring elements in the monitoring area is not equal to the number of the histories of the monitoring elements in the monitoring area, determining that the monitoring area meets the preset management condition corresponding to the monitoring area.
In one embodiment, when the terminal device detects that the page element monitoring function is started, all the pre-divided monitoring areas can be monitored, and each monitoring area is pre-recorded with the history number of the corresponding monitoring element. Taking one of all monitoring areas as an example, monitoring area 1. The terminal device may obtain the number of the monitoring elements in the monitoring area 1, compare the number of the monitoring elements in the monitoring area 1 with the historical number of the monitoring elements in the monitoring area 1, if the number of the monitoring elements in the monitoring area is not equal to the historical number of the monitoring elements in the pre-recorded monitoring area, determine that the monitoring area meets the preset management condition corresponding to the monitoring area, and update the pre-stored historical number of the monitoring elements by using the number of the monitoring elements in the monitoring area 1.
303: and if the monitoring area is detected to meet the preset management condition, executing management operation corresponding to the preset management condition on the monitoring area.
In one embodiment, the preset management condition is that the number of the monitoring elements in the monitoring area is not equal to the historical number of the monitoring elements in the pre-recorded monitoring area, and the management operation corresponding to the preset management condition is to add identification information to the monitoring area. The monitoring area is a display page, and marking information is added to the display page to remind a user that the number of monitoring elements of the display page is changed; or, if the monitoring area is not a display page, the monitoring area may be marked on the monitoring management page, so that the user can know which monitoring area has the number of monitoring elements changed after viewing the monitoring management page. The monitoring management page displays basic information (such as the number of the monitoring area) of each monitoring area, and mark information corresponding to each monitoring area.
In one embodiment, if the number of the monitoring elements in the monitoring area is greater than the historical number of the monitoring elements, the terminal device executes a first management operation corresponding to a preset management condition on the monitoring area. The first management operation may be adding identification information to the newly added monitoring elements in the monitoring area, adjusting the display color of the display area corresponding to the newly added monitoring elements to a preset color, or directly adding prompt information in the monitoring area, where the prompt information is used to prompt the user of the number of the newly added monitoring elements and the identification (such as the name) of each newly added monitoring element, or directly marking the monitoring area with red, and so on. The specific operation mode of the first management operation can be adjusted according to the actual monitoring requirement, and the invention is not limited in particular.
In another embodiment, if the number of the monitoring elements in the monitoring area is smaller than the historical number of the monitoring elements, the terminal device executes a second management operation corresponding to the preset management condition on the monitoring area. The second management operation may be to add prompt information to the monitored area or directly add identification information to the monitored area, so as to prompt the user to delete the number of the monitored elements and identify (such as name) of each deleted monitored element. It will be appreciated that the first management operation and the second management operation are different. For example, assuming that the first management operation is to mark the monitoring area with red color for prompting the user that the monitoring area has added the monitoring element, the management operation may be different from the mark with red color for prompting the user that the monitoring area has reduced the monitoring element.
For example, if the monitoring area is a page, the preset management condition corresponding to the monitoring area is that the number of monitoring elements in the display page is greater than the historical number of monitoring elements in the display page (hereinafter referred to as condition 1), or the number of monitoring elements in the display page is less than the historical number of monitoring elements in the display page (hereinafter referred to as condition 2). Wherein, the condition 1 corresponds to a first management operation, the condition 2 corresponds to a second management operation, the first management operation marks the display page with red color, and marks the added monitoring element name; the second management operation may be graying out the display page and marking the decreasing add element name.
In the embodiment of the application, when detecting that the monitoring function of the page element is started, the terminal equipment acquires attribute information of the monitoring elements in the pre-divided monitoring area, wherein the attribute information comprises the number of the monitoring elements in the monitoring area. Further, the terminal device may compare the number of the monitoring elements in the monitoring area with the number of the histories of the monitoring elements in the pre-recorded monitoring area, and if the number of the monitoring elements in the monitoring area is not equal to the number of the histories of the monitoring elements in the monitoring area, determine that the monitoring area meets the preset management condition corresponding to the monitoring area, and further execute the management operation corresponding to the preset management condition on the monitoring area. By adopting the method and the device, unified management of a plurality of monitoring elements can be realized, and management efficiency of page elements is improved.
The embodiment of the application also provides a page element management device based on data processing. The apparatus comprises means for performing the methods described in the foregoing figures 1, 2 or 3. Specifically, referring to fig. 4, a schematic block diagram of a page element management apparatus provided in an embodiment of the present application is provided. The page element management apparatus of the present embodiment includes:
A detection module 40, configured to detect whether a page element monitoring function is turned on;
the processing module 41 is configured to obtain attribute information of a monitoring element in a pre-divided monitoring area when the detection module detects that a page element monitoring function is started, where the monitoring element is determined according to a monitoring requirement, the monitoring area is obtained by performing area pre-division on the monitoring element according to a pre-configured monitoring area division rule, and the monitoring area includes at least one monitoring element;
the processing module 41 is further configured to detect, based on attribute information of a monitoring element in the monitoring area, whether the monitoring area meets a preset management condition corresponding to the monitoring area;
the processing module 41 is further configured to execute a management operation corresponding to the preset management condition on the monitored area if the monitored area is detected to satisfy the preset management condition.
In one embodiment, the attribute information includes an attribute value of the monitoring element, and the processing module 41 is specifically configured to compare the attribute value of any monitoring element in the monitoring area with a preset attribute value of the any monitoring element; if the attribute value of any monitoring element is not matched with the preset attribute value of any monitoring element, determining that the monitoring area meets the preset management condition corresponding to the monitoring area.
In one embodiment, the processing module 41 is further configured to determine, if the attribute value of the any monitoring element obtained by comparing is not matched with the preset attribute value of the any monitoring element, the any monitoring element as the target monitoring element; executing management operation corresponding to the preset management condition on the target monitoring element, wherein the management operation comprises at least one of the following steps: adding identification information to the target monitoring element, and adjusting the display color of the display area corresponding to the target monitoring element to be a preset color.
In one embodiment, the attribute information includes the number of the monitoring elements, and the processing module 41 is specifically configured to compare the number of the monitoring elements in the monitoring area with a pre-recorded historical number of the monitoring elements in the monitoring area; and if the number of the monitoring elements in the monitoring area is not equal to the historical number of the monitoring elements in the monitoring area by comparison, determining that the monitoring area meets the preset management condition corresponding to the monitoring area.
In one embodiment, the processing module 41 is specifically configured to execute, if the comparison results in that the number of the monitoring elements in the monitoring area is greater than the historical number of the monitoring elements, a first management operation corresponding to the preset management condition on the monitoring area; and if the comparison results in that the number of the monitoring elements in the monitoring area is smaller than the historical number of the monitoring elements, executing a second management operation corresponding to the preset management condition on the monitoring area.
In one embodiment, the monitoring area is a display page, and the processing module 41 is further configured to detect whether a page switching operation for the display page exists if it is detected that the monitoring area meets the preset management condition; and if the page switching operation exists, executing the management operation corresponding to the preset management condition on the monitoring area.
In one embodiment, the preconfigured monitoring area division rule is used for indicating that the monitoring elements with the matched attribute information are divided into the same monitoring area, and the processing module 41 is further used for obtaining the attribute information of each monitoring element in the at least one monitoring element; and dividing the monitoring elements matched with the attribute information into the same monitoring area based on the indication of the monitoring area dividing rule so as to obtain at least one monitoring area.
It should be noted that, the functions of each functional module of the page element management apparatus described in the embodiments of the present application may be specifically implemented according to the method in the method embodiment described in fig. 1, fig. 2 or fig. 3, and the specific implementation process may refer to the relevant description of the method embodiment in fig. 1, fig. 2 or fig. 3, which is not repeated herein.
Referring to fig. 5, fig. 5 is a schematic block diagram of a terminal device provided in an embodiment of the present application, and as shown in fig. 5, the terminal device includes a processor 501, a memory 502, an input device 503, and an output device 504. The processor 501, memory 502, input device 503, and output device 504 may be connected by a bus or other means, such as by a bus connection in fig. 5 as shown in the embodiments of the present application. The memory 502 is used for storing a computer program, the computer program comprising program instructions, and the processor 501 is used for executing the program instructions stored in the memory 502. Wherein the processor 501 is configured to invoke the program instruction execution: detecting whether a page element monitoring function is started or not through an input device 503, and acquiring attribute information of monitoring elements in a pre-divided monitoring area when the input device 503 detects that the page element monitoring function is started, wherein the monitoring elements are page elements determined according to monitoring requirements, the monitoring area is obtained by carrying out area pre-division on the monitoring elements according to a pre-configured monitoring area division rule, and the monitoring area comprises at least one monitoring element; detecting whether the monitoring area meets preset management conditions corresponding to the monitoring area or not based on attribute information of monitoring elements in the monitoring area; and if the monitoring area is detected to meet the preset management condition, executing management operation corresponding to the preset management condition on the monitoring area.
In one embodiment, the attribute information includes an attribute value of the monitoring element, and the processor 501 is specifically configured to compare the attribute value of any monitoring element in the monitoring area with a preset attribute value of the any monitoring element; if the attribute value of any monitoring element is not matched with the preset attribute value of any monitoring element, determining that the monitoring area meets the preset management condition corresponding to the monitoring area.
In one embodiment, the processor 501 is further configured to determine, if the attribute value of the any monitoring element does not match the preset attribute value of the any monitoring element, the any monitoring element as the target monitoring element; executing, by the output device 504, a management operation corresponding to the preset management condition on the target monitoring element, where the management operation includes at least one of the following: adding identification information to the target monitoring element, and adjusting the display color of the display area corresponding to the target monitoring element to be a preset color.
In one embodiment, the attribute information includes the number of the monitoring elements, and the processor 501 is specifically configured to compare the number of the monitoring elements in the monitoring area with a pre-recorded size of the historical number of the monitoring elements in the monitoring area; and if the number of the monitoring elements in the monitoring area is not equal to the historical number of the monitoring elements in the monitoring area by comparison, determining that the monitoring area meets the preset management condition corresponding to the monitoring area.
In one embodiment, the processor 501 is specifically configured to execute, if the comparison results in that the number of the monitoring elements in the monitoring area is greater than the historical number of the monitoring elements, a first management operation corresponding to the preset management condition on the monitoring area through the output device 504; if the comparison shows that the number of the monitoring elements in the monitoring area is smaller than the historical number of the monitoring elements, a second management operation corresponding to the preset management condition is performed on the monitoring area through the output device 504.
In one embodiment, the monitoring area is a display page, and the processor 501 is further configured to detect whether a page switching operation for the display page exists if it is detected that the monitoring area meets the preset management condition; if the page switching operation exists, the output device 504 executes the management operation corresponding to the preset management condition on the monitoring area.
In one embodiment, the preconfigured monitoring area division rule is configured to instruct that the monitoring elements with the matched attribute information are divided into the same monitoring area, and the processor 501 is further configured to obtain attribute information of each monitoring element in at least one monitoring element; and dividing the monitoring elements matched with the attribute information into the same monitoring area based on the indication of the monitoring area dividing rule so as to obtain at least one monitoring area.
It should be appreciated that in embodiments of the present application, the processor 501 may be a central processing unit (CentralProcessing Unit, CPU), the processor 501 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific IntegratedCircuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 502 may include read only memory and random access memory and provide instructions and data to the processor 501. A portion of memory 502 may also include non-volatile random access memory. For example, the memory 502 may also store information of device type.
The input device 503 may include a touch pad, fingerprint sensor, microphone, etc., and the output device 504 may include a display (LCD, etc.), speaker, etc.
In specific implementation, the processor 501, the memory 502, the input device 503, and the output device 504 described in the embodiments of the present application may perform the implementation described in the method embodiments of fig. 1, fig. 2, or fig. 3 provided in the embodiments of the present application, or may also perform the implementation of the data processing based sorting apparatus described in the embodiments of the present application, which is not described herein again.
In another embodiment of the present application, a computer readable storage medium is provided, the computer readable storage medium storing a computer program comprising program instructions that when executed by a processor implement: when the monitoring function of the page element is detected to be started, acquiring attribute information of the monitoring element in a pre-divided monitoring area, wherein the monitoring element is the page element determined according to the monitoring requirement, the monitoring area is obtained by carrying out area pre-division on the monitoring element according to a pre-configured monitoring area division rule, and the monitoring area comprises at least one monitoring element; detecting whether the monitoring area meets preset management conditions corresponding to the monitoring area or not based on attribute information of monitoring elements in the monitoring area;
and if the monitoring area is detected to meet the preset management condition, executing management operation corresponding to the preset management condition on the monitoring area.
The computer readable storage medium may be an internal storage unit of the terminal device according to any of the foregoing embodiments, for example, a hard disk or a memory of the terminal device. The computer readable storage medium may also be an external storage device of the terminal device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the terminal device. Further, the computer-readable storage medium may further include both an internal storage unit and an external storage device of the terminal device. The computer-readable storage medium is used for storing the computer program and other programs and data required by the terminal device. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored on a computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), or the like.
The above disclosure is only a few examples of the present application, and it is not intended to limit the scope of the claims, and those of ordinary skill in the art will understand that all or a portion of the above-described embodiments may be implemented and that equivalent changes may be made in the claims of the present application while still falling within the scope of the present invention.
Claims (9)
1. A method for managing page elements based on data processing, the method comprising:
acquiring attribute information of each monitoring element in at least one monitoring element;
dividing the monitoring elements with the matched attribute information into the same monitoring area based on the indication of the monitoring area dividing rule so as to obtain at least one monitoring area;
When the monitoring function of the page element is detected to be started, acquiring attribute information of the monitoring element in a pre-divided monitoring area, wherein the monitoring element is the page element determined according to the monitoring requirement, the monitoring area is obtained by carrying out area pre-division on the monitoring element according to a pre-configured monitoring area division rule, and the monitoring area comprises at least one monitoring element;
detecting whether the monitoring area meets preset management conditions corresponding to the monitoring area or not based on attribute information of monitoring elements in the monitoring area; wherein each monitoring area corresponds to at least one preset management condition;
if the monitoring area is detected to meet the preset management condition, executing management operation corresponding to the preset management condition on the monitoring area; wherein the management operation then comprises at least one of: adding identification information to a target monitoring element in the monitoring area, adjusting the display color of the display area corresponding to the target monitoring element to be a preset color, and adding the identification information to the monitoring area, wherein the target monitoring element is a monitoring element with changed attribute value.
2. The method according to claim 1, wherein the attribute information includes an attribute value of the monitoring element, and the detecting whether the monitoring area meets a preset management condition corresponding to the monitoring area based on the attribute information of the monitoring element in the monitoring area includes:
Comparing the attribute value of any monitoring element in the monitoring area with the preset attribute value of any monitoring element;
if the attribute value of any monitoring element is not matched with the preset attribute value of any monitoring element, determining that the monitoring area meets the preset management condition corresponding to the monitoring area.
3. The method according to claim 2, wherein the method further comprises:
if the attribute value of any monitoring element is not matched with the preset attribute value of any monitoring element, determining any monitoring element as a target monitoring element;
wherein the executing the management operation corresponding to the preset management condition on the monitoring area includes:
executing management operation corresponding to the preset management condition on the target monitoring element, wherein the management operation comprises at least one of the following steps: adding identification information to the target monitoring element, and adjusting the display color of the display area corresponding to the target monitoring element to be a preset color.
4. The method according to claim 1, wherein the attribute information includes the number of the monitoring elements, and the detecting whether the monitoring area satisfies a preset management condition corresponding to the monitoring area based on the attribute information of the monitoring elements in the monitoring area includes:
Comparing the number of the monitoring elements in the monitoring area with the pre-recorded historical number of the monitoring elements in the monitoring area;
and if the number of the monitoring elements in the monitoring area is not equal to the historical number of the monitoring elements in the monitoring area by comparison, determining that the monitoring area meets the preset management condition corresponding to the monitoring area.
5. The method according to claim 4, wherein the performing the management operation corresponding to the preset management condition on the monitored area includes:
if the comparison results in that the number of the monitoring elements in the monitoring area is larger than the historical number of the monitoring elements, executing a first management operation corresponding to the preset management condition on the monitoring area;
and if the comparison results in that the number of the monitoring elements in the monitoring area is smaller than the historical number of the monitoring elements, executing a second management operation corresponding to the preset management condition on the monitoring area.
6. The method according to any one of claims 1 to 5, wherein the monitoring area is a display page, and before the management operation corresponding to the preset management condition is performed on the monitoring area, the method further includes:
If the monitoring area is detected to meet the preset management condition, detecting whether page switching operation aiming at the display page exists or not;
and if the page switching operation exists, triggering the step of executing the management operation corresponding to the preset management condition on the monitoring area.
7. A data processing-based page element management apparatus, the apparatus comprising:
the processing module is used for acquiring attribute information of each monitoring element in at least one monitoring element, and dividing the monitoring elements with the matched attribute information into the same monitoring area based on the indication of the monitoring area dividing rule so as to obtain at least one monitoring area;
the detection module is used for detecting whether the page element monitoring function is started or not;
the processing module is further used for acquiring attribute information of monitoring elements in a pre-divided monitoring area when the detection module detects that a page element monitoring function is started, the monitoring elements are determined according to monitoring requirements, the monitoring area is obtained by carrying out area pre-division on the monitoring elements according to a pre-configured monitoring area division rule, and the monitoring area comprises at least one monitoring element;
The processing module is further used for detecting whether the monitoring area meets preset management conditions corresponding to the monitoring area or not based on attribute information of monitoring elements in the monitoring area; wherein each monitoring area corresponds to at least one preset management condition;
the processing module is further configured to execute a management operation corresponding to the preset management condition on the monitored area if the monitored area is detected to meet the preset management condition; wherein the management operation then comprises at least one of: adding identification information to a target monitoring element in the monitoring area, adjusting the display color of the display area corresponding to the target monitoring element to be a preset color, and adding the identification information to the monitoring area, wherein the target monitoring element is a monitoring element with changed attribute value.
8. A terminal device comprising a processor and a memory, the processor and the memory being interconnected, wherein the memory is adapted to store a computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method according to any of claims 1-6.
9. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the method of any of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910297329.1A CN110109801B (en) | 2019-04-12 | 2019-04-12 | Page element management method based on data processing and related equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910297329.1A CN110109801B (en) | 2019-04-12 | 2019-04-12 | Page element management method based on data processing and related equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110109801A CN110109801A (en) | 2019-08-09 |
CN110109801B true CN110109801B (en) | 2023-04-28 |
Family
ID=67483893
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910297329.1A Active CN110109801B (en) | 2019-04-12 | 2019-04-12 | Page element management method based on data processing and related equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110109801B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106649035A (en) * | 2016-11-16 | 2017-05-10 | 乐视控股(北京)有限公司 | Page resource element monitoring method and device and monitoring server |
CN107464152A (en) * | 2016-06-03 | 2017-12-12 | 阿里巴巴集团控股有限公司 | Data processing method, client and service end |
WO2018121501A1 (en) * | 2016-12-29 | 2018-07-05 | 北京国双科技有限公司 | Method and apparatus for monitoring network visitor behavior |
CN108459845A (en) * | 2018-03-14 | 2018-08-28 | 北京思特奇信息技术股份有限公司 | A kind of surveillance tag attribute buries point methods and device |
CN109117225A (en) * | 2018-07-26 | 2019-01-01 | 郑州云海信息技术有限公司 | A kind of display interface dynamic adjusting method, device, equipment and readable storage medium storing program for executing |
-
2019
- 2019-04-12 CN CN201910297329.1A patent/CN110109801B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107464152A (en) * | 2016-06-03 | 2017-12-12 | 阿里巴巴集团控股有限公司 | Data processing method, client and service end |
CN106649035A (en) * | 2016-11-16 | 2017-05-10 | 乐视控股(北京)有限公司 | Page resource element monitoring method and device and monitoring server |
WO2018121501A1 (en) * | 2016-12-29 | 2018-07-05 | 北京国双科技有限公司 | Method and apparatus for monitoring network visitor behavior |
CN108459845A (en) * | 2018-03-14 | 2018-08-28 | 北京思特奇信息技术股份有限公司 | A kind of surveillance tag attribute buries point methods and device |
CN109117225A (en) * | 2018-07-26 | 2019-01-01 | 郑州云海信息技术有限公司 | A kind of display interface dynamic adjusting method, device, equipment and readable storage medium storing program for executing |
Also Published As
Publication number | Publication date |
---|---|
CN110109801A (en) | 2019-08-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11158143B2 (en) | Vehicle diagnostic method and device, and computer readable storage medium | |
US9158432B2 (en) | Region recommendation device, region recommendation method and recording medium | |
US8205195B2 (en) | Method and system for automatically classifying and installing patches on systems | |
CN108848142B (en) | Message pushing method and device, computer equipment and storage medium | |
US20170004013A1 (en) | Method and device for managing application | |
CN108520177B (en) | Application software management method and device, mobile terminal and readable storage medium | |
JP6756379B2 (en) | Log analysis methods, systems and programs | |
CN106325826A (en) | Configuration file detection method and apparatus | |
CN112818937B (en) | Excel file identification method and device, electronic equipment and readable storage medium | |
CN109478311A (en) | A kind of image-recognizing method and terminal | |
CN109670091A (en) | A kind of metadata intelligent maintenance method and apparatus based on data standard | |
CN111752740A (en) | Microservice anomaly compensation method, microservice anomaly compensation device, microservice anomaly compensation equipment and computer readable storage medium | |
US9826039B2 (en) | Configurable communication systems and methods for communication | |
CN109597745B (en) | Abnormal data processing method and device | |
CN110109801B (en) | Page element management method based on data processing and related equipment | |
CN103902445A (en) | Regression test object determination method and device | |
KR102464688B1 (en) | Method and apparatus for detrmining event level of monitoring result | |
US20170147987A1 (en) | Method and apparatus for generating a combined calendar | |
CN114816389A (en) | Management system building method, device, equipment and medium based on meta-model | |
CN110851676B (en) | Index data processing method and device and electronic equipment | |
CN114547008A (en) | Data processing method, device, equipment and medium | |
CN111104085B (en) | Display screen adaptation method, device, computer equipment and storage medium | |
CN112668798A (en) | Method and device for determining process path and path planning platform | |
US20240094034A1 (en) | Corrupted sensors detection in sensor consortium | |
CN107977566B (en) | Function triggering method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |