Data monitoring method and device, electronic equipment and storage medium

By obtaining and querying public codes and differential codes, building and sending monitoring plug-ins, it solves the problem of high maintenance costs of multi-platform SDKs, achieves efficient code development and maintenance, and improves the code maintenance efficiency of multi-business platforms.

CN118733372APending Publication Date: 2024-10-01TENCENT CLOUD COMPUTING (BEIJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310328717.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-30
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The existing multi-platform monitoring SDK has high maintenance costs and low code maintenance efficiency. It requires code changes and releases for multiple platforms, resulting in increased development and maintenance costs.

Method used

By obtaining the platform identifier of the current business platform, querying the common code and differential code, building a monitoring plug-in, and sending the plug-in to the business platform to achieve real-time data monitoring, using sub-platform packaging technology, only one set of total code needs to be developed, reducing multiple Code development and maintenance costs for business platforms.

Benefits of technology

It improves the construction efficiency and code development efficiency of monitoring plug-ins, reduces the code development and maintenance costs of multiple business platforms, and improves code maintenance efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733372A_ABST
    Figure CN118733372A_ABST
Patent Text Reader

Abstract

The invention discloses a data monitoring method and device, electronic equipment and a storage medium, which can be applied to various scenes such as cloud technology, artificial intelligence, smart traffic and Internet of Vehicles, the method can be applied to a management tool, and the method comprises the following steps: obtaining a current platform identifier of a current service platform; querying a public code corresponding to the current platform identifier in a first database; querying a current difference code corresponding to the current platform identifier in a second database; the second database is used for storing the corresponding relationship between the platform identifiers corresponding to the plurality of service platforms and the plurality of groups of difference codes; based on the public code and the current difference code, constructing a monitoring plug-in corresponding to the current service platform; sending the monitoring plug-in to the current service platform, so that the current service platform monitors the real-time data of the to-be-monitored features in the current service platform based on the monitoring plug-in; the code development efficiency of the multi-service platform is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] Currently, similar monitoring SDKs are mostly composed of multiple sets of codes, each of which is compatible with the implementation of the platform and is packaged and deployed separately. Existing multi-platform monitoring SDKs have the problem of poor maintainability of multiple sets of codes. For example, if a reporting parameter needs to be added to all platforms, multiple platforms need to modify the code, and each platform needs to be released once; this leads to high multi-platform code maintenance costs and low code maintenance efficiency for multiple business platforms;

[0003] Therefore, it is necessary to provide a data monitoring method, device, electronic device and storage medium, so as to reduce the code maintenance cost of multiple business platforms and improve the code maintenance efficiency of multiple business platforms. Summary of the invention

[0004] The present application provides a data monitoring method, device, electronic device and storage medium, which can reduce the code maintenance cost of multiple business platforms and improve the code maintenance efficiency of multiple business platforms.

[0005] In one aspect, the present application provides a data monitoring method, the method comprising:

[0006] Get the current platform ID of the current business platform;

[0007] Querying the common code corresponding to the current platform identifier in a first database; the first database is used to store common codes corresponding to multiple business platforms; the common code is a monitoring code corresponding to a common feature to be tested shared by the multiple business platforms, and the current business platform is any one of the multiple business platforms;

[0008] Querying the current difference code corresponding to the current platform identifier in the second database; the second database is used to store the corresponding relationship between the platform identifiers corresponding to the multiple business platforms and multiple groups of difference codes; the difference code corresponding to each platform identifier is constructed based on the difference characteristics to be tested corresponding to each business platform;

[0009] Based on the common code and the current difference code, construct a monitoring plug-in corresponding to the current business platform;

[0010] The monitoring plug-in is sent to the current service platform, so that the current service platform monitors the real-time data of the feature to be measured in the current service platform based on the monitoring plug-in.

[0011] Another aspect provides a data monitoring device, the device comprising:

[0012] The current identification acquisition module is used to obtain the current platform identification of the current business platform;

[0013] A public code acquisition module, used to query the public code corresponding to the current platform identifier in a first database; the first database is used to store public codes corresponding to multiple business platforms; the public code is a monitoring code corresponding to a common feature to be tested shared by the multiple business platforms, and the current business platform is any one of the multiple business platforms;

[0014] A difference code acquisition module is used to query the current difference code corresponding to the current platform identifier in the second database; the second database is used to store the corresponding relationship between the platform identifiers corresponding to each of the multiple business platforms and multiple groups of difference codes; the difference code corresponding to each platform identifier is constructed based on the difference characteristics to be tested corresponding to each business platform;

[0015] A plug-in construction module, used to construct a monitoring plug-in corresponding to the current business platform based on the common code and the current difference code;

[0016] The plug-in sending module is used to send the monitoring plug-in to the current business platform, so that the current business platform monitors the real-time data of the feature to be tested in the current business platform based on the monitoring plug-in.

[0017] In an exemplary embodiment, the apparatus further comprises:

[0018] The feature acquisition module to be tested is used to obtain the features to be tested corresponding to each of the multiple business platforms;

[0019] A difference feature determination module, used to determine the common features to be tested shared by the multiple service platforms and the difference features to be tested corresponding to each service platform according to the features to be tested corresponding to the multiple service platforms respectively;

[0020] A first construction module, configured to construct the first database based on common features to be tested shared by the multiple business platforms;

[0021] The second construction module is used to construct the second database based on the difference features to be tested corresponding to each business platform.

[0022] In an exemplary embodiment, the first building block includes:

[0023] A common code determination unit, used to construct a monitoring code corresponding to the common feature to be tested, and obtain the common code;

[0024] The first construction unit is used to construct the first database according to the common code.

[0025] In an exemplary embodiment, the second building block comprises:

[0026] A difference code construction unit is used to construct a difference code corresponding to each business platform according to the difference characteristics to be tested corresponding to each business platform; the difference code corresponding to each business platform is used to monitor the difference characteristics to be tested corresponding to each business platform;

[0027] A relationship determination unit, configured to determine a correspondence between a plurality of platform identifiers and a plurality of groups of difference codes according to the platform identifiers corresponding to the plurality of service platforms and the difference code corresponding to each service platform;

[0028] The second construction unit is used to construct the second database based on the correspondence between the multiple platform identifiers and the multiple groups of difference codes.

[0029] In an exemplary embodiment, the plug-in building block includes:

[0030] A code construction unit, configured to construct a monitoring code corresponding to the current business platform based on the common code and the current difference code;

[0031] A variable acquisition unit, used to acquire the environment variables corresponding to the current business platform;

[0032] The plug-in construction unit is used to update the monitoring code based on the environment variable and construct a monitoring plug-in corresponding to the current business platform according to the update result.

[0033] In an exemplary embodiment, the apparatus further comprises:

[0034] A first update feature acquisition module, used to acquire common update features corresponding to the multiple service platforms;

[0035] A first update code determination module, configured to update the common code in the first database based on the common update feature to obtain a common update code;

[0036] A first updating module, configured to update the monitoring plug-ins corresponding to the plurality of service platforms respectively based on the common updating code, so as to obtain first updated monitoring plug-ins corresponding to the plurality of service platforms respectively;

[0037] The first sending module is used to send the first update monitoring plug-in corresponding to each business platform to each business platform, so that each business platform monitors the real-time data of the feature to be tested in each business platform based on the first update monitoring plug-in corresponding to each business platform.

[0038] In an exemplary embodiment, the apparatus further comprises:

[0039] A second update feature acquisition module, used to acquire update difference features corresponding to the current service platform;

[0040] A second update code determination module, configured to update the current difference code in the second database based on the update difference feature to obtain an update difference code;

[0041] A second updating module, configured to update the monitoring plug-in corresponding to the current business platform based on the updated difference code, to obtain a second updated monitoring plug-in corresponding to the current business platform;

[0042] In an exemplary embodiment, the plug-in sending module includes:

[0043] A plug-in sending unit is used to send the second update monitoring plug-in to the current service platform.

[0044] In an exemplary embodiment, the apparatus further comprises:

[0045] A message receiving module, used for receiving an abnormal prompt message sent by the current business platform when the real-time data is abnormal data;

[0046] A parsing module, used for parsing the abnormal prompt message to obtain a target abnormal message type corresponding to the abnormal prompt message;

[0047] An execution module is used to search for a target processing strategy corresponding to the target abnormal message type based on a preset strategy relationship library, and execute the target processing strategy; the preset strategy relationship library includes a correspondence between abnormal message types and processing strategies.

[0048] On the other hand, a data monitoring device is provided, which includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the data monitoring method as described above.

[0049] On the other hand, a computer storage medium is provided, wherein the computer storage medium stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded and executed by a processor to implement the data monitoring method as described above.

[0050] On the other hand, a computer program product or a computer program is provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes to implement the data monitoring method as described above.

[0051] The data monitoring method, device, electronic device and storage medium provided by this application have the following technical effects:

[0052] The present application obtains the current platform identifier of the current business platform; queries the common code corresponding to the current platform identifier in the first database; the first database is used to store the common codes corresponding to multiple business platforms; the common code is the monitoring code corresponding to the common features to be tested shared by multiple business platforms, and the current business platform is any one of the multiple business platforms; queries the current difference code corresponding to the current platform identifier in the second database; the second database is used to store the correspondence between the platform identifiers corresponding to each of the multiple business platforms and multiple groups of difference codes; the difference code corresponding to each platform identifier is constructed based on the difference features to be tested corresponding to each business platform; based on the common code and the current difference code, construct the monitoring plug-in corresponding to the current business platform; send the monitoring plug-in to the current business platform, so that the current business platform monitors the real-time data of the features to be tested in the current business platform based on the monitoring plug-in; the present application improves the construction efficiency of the monitoring plug-in in the platform through the platform packaging technology. During the code development process, only a set of total codes corresponding to the first database and the second database need to be developed, and there is no need to develop codes for multiple platforms at the same time, which reduces the code development cost of multiple business platforms and improves the code development efficiency of multiple business platforms. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] In order to more clearly illustrate the technical solutions and advantages of the embodiments of this specification or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0054] Figure 1 is a schematic diagram of a data monitoring system provided in an embodiment of this specification;

[0055] Figure 2 It is a flowchart of a data monitoring method provided in an embodiment of this specification;

[0056] Figure 3 It is a flowchart of a method for constructing a database provided in an embodiment of this specification;

[0057] Figure 4 It is a flowchart of a method for sending a first update monitoring plug-in corresponding to each business platform to each business platform provided by an embodiment of this specification;

[0058] Figure 5 It is a flowchart of a method for constructing the second database based on the difference characteristics to be tested corresponding to each business platform provided in an embodiment of this specification;

[0059] Figure 6 It is a flowchart of a method for constructing a monitoring plug-in corresponding to the above-mentioned current business platform based on the above-mentioned common code and the above-mentioned current difference code provided in an embodiment of this specification;

[0060] Figure 7 It is a structural diagram of a data monitoring system provided in an embodiment of this specification;

[0061] Figure 8 It is a flowchart of a method for determining a second update monitoring plug-in corresponding to a current business platform provided by an embodiment of this specification;

[0062] Fig. 9 It is a flowchart of a method for determining and executing a target processing strategy provided by an embodiment of this specification;

[0063] Fig.10 It is a structural schematic diagram of a data monitoring device provided in an embodiment of this specification;

[0064] Fig.11 It is a structural diagram of a server provided in an embodiment of this specification. DETAILED DESCRIPTION

[0065] The following will be combined with the drawings in the embodiments of this specification to clearly and completely describe the technical solutions in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0066] First, some nouns or terms that appear in the description of the embodiments of this specification are explained as follows:

[0067] Cross-end: generally refers to front-end cross-platform technology. Cross-platform generally refers to programming languages, software or hardware devices that can run on multiple operating systems or computers with different hardware architectures. For example, a set of code can implement an App that runs on both iOS and Android systems.

[0068] cocos: An efficient, lightweight, cross-platform integrated 3D development engine.

[0069] Hippy: A streamlined browser that has done a lot of work from the bottom up, smoothing out the differences between iOS and Android and providing a development experience close to the Web. Currently, the upper layer supports two interface frameworks, React and Vue. Front-end developers can use it to convert front-end codes into native instructions of the terminal and develop native terminal apps.

[0070] Quick App: Quick App is a new type of installation-free application developed based on industry standards. Developers can develop it once and it can run on all mobile phones that support industry standards.

[0071] weex: Weex is a framework for developing high-performance native applications using modern Web technologies.

[0072] React Native: A hybrid mobile app development framework that combines the best parts of native development with React, aiming to become the top JavaScript framework for building user interfaces.

[0073] Rollup: A JavaScript module bundler that compiles small blocks of code into larger, more complex blocks of code. Rollup uses a new standardized format for code modules, all of which are included in the ES6 version of JavaScript.

[0074] In short, a database can be seen as an electronic filing cabinet - a place where electronic files are stored, and users can add, query, update, delete, and other operations on the data in the files. The so-called "database" is a collection of data that is stored together in a certain way, can be shared with multiple users, has as little redundancy as possible, and is independent of the application.

[0075] A database management system (DBMS) is a computer software system designed for managing databases. It generally has basic functions such as storage, retrieval, security, and backup. Database management systems can be classified according to the database model they support, such as relational, XML (Extensible Markup Language); or according to the type of computer they support, such as server clusters, mobile phones; or according to the query language used, such as SQL (Structured Query Language), XQuery; or according to performance focus, such as maximum scale, maximum operating speed; or other classification methods. Regardless of the classification method used, some DBMS can cross categories, for example, supporting multiple query languages ​​at the same time.

[0076] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0077] See also Figure 1 , Figure 1 is a schematic diagram of a data monitoring system provided in an embodiment of this specification, such as Figure 1 As shown, the data monitoring system may include at least a server 01 and a client 02 .

[0078] Specifically, in the embodiments of this specification, the server 01 may include an independently operated server, or a distributed server, or a server cluster composed of multiple servers, and may also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. Server 01 may include a network communication unit, a processor, a memory, and the like. Specifically, the server 01 can be used to build a monitoring plug-in corresponding to the current business platform.

[0079] Specifically, in the embodiments of this specification, the client 02 may include physical devices such as smart phones, desktop computers, tablet computers, laptop computers, digital assistants, smart wearable devices, smart speakers, vehicle terminals, smart TVs, etc., and may also include software running in physical devices, such as web pages provided by some service providers to users, or applications provided by these service providers to users. Specifically, the client 02 may be a client corresponding to the current business platform, and may be used to monitor the real-time data of the features to be tested in the current business platform based on the monitoring plug-in.

[0080] A data monitoring method of the present application is introduced below. Figure 2 It is a flow chart of a data monitoring method provided by an embodiment of this specification. This specification provides method operation steps as described in the embodiment or flow chart, but more or fewer operation steps may be included based on conventional or non-creative labor. The order of steps listed in the embodiment is only one way of executing the order of many steps and does not represent the only execution order. When the actual system or server product is executed, it can be executed in sequence or in parallel according to the method shown in the embodiment or the accompanying drawings (for example, in a parallel processor or multi-threaded processing environment).

[0081] Specific as Figure 2 As shown, the above method may include:

[0082] S201: Obtain the current platform identifier of the current business platform.

[0083] In the embodiments of this specification, the server can autonomously obtain the current platform identifier of the current service platform, or send the current platform identifier to the server through the terminal corresponding to the current service platform. The current platform identifier can be a character identifier, an image identifier, etc. of the current service platform.

[0084] S203: Query the common code corresponding to the above-mentioned current platform identifier in the first database; the above-mentioned first database is used to store the common codes corresponding to multiple business platforms; the above-mentioned common code is the monitoring code corresponding to the common characteristics to be tested shared by the above-mentioned multiple business platforms, and the above-mentioned current business platform is any one of the above-mentioned multiple business platforms.

[0085] In the embodiments of this specification, multiple business platforms may include different types of business platforms corresponding to the same operating system; multiple different types of business platforms in the same operating system may include but are not limited to: web, applet, react native, cocos, hippy, quick app, weex. Multiple business platforms may also include the same type of business platforms corresponding to different operating systems; for example, the same type of application in the Apple operating system and the Android operating system; wherein the current business platform may be any one of the multiple business platforms; based on the common features to be tested shared by multiple business platforms, monitoring codes corresponding to the common features to be tested may be constructed, thereby obtaining common codes corresponding to multiple business platforms and storing them in the first database.

[0086] In some embodiments, Figure 3 As shown, the above method also includes:

[0087] S301: Obtaining the features to be tested corresponding to each of the multiple business platforms;

[0088] In the embodiments of this specification, each business platform can correspond to multiple features to be tested, and the features to be tested corresponding to the business platform may include features for realizing SDK lifecycle management, configuration management, plug-in implementation, unified reporting protocol, etc.; and may also include features for determining data collection methods and data reporting interfaces. Among them, lifecycle management is used to monitor SDK startup and shutdown lifecycle, plug-in startup and shutdown lifecycle, data reporting lifecycle, and hook functions that users can inject data processing logic into. Configuration management is used to start monitoring SDK when the configuration file needs to be passed in, including reporting id, reporting address, user unique identifier, reporting interval, function switch, environment definition, etc. Plug-in implementation is one of the most important functions of the kernel layer. The specific implementation of the plug-in can be regarded as a string of functions executed in sequence, and the parameters of each function are the return values ​​of the previous function. Through the data transmission method of the pipeline, all monitoring data will pass through the pipeline, and the plug-in implementation defined by the developer will process the monitoring data in this way. The unified reporting protocol involves log reporting protocol, page performance reporting protocol, page various indicator reporting protocol, user-defined reporting data protocol, etc. These functions are unified in the kernel layer. After the platform layer inherits from the kernel layer, it does not need to understand the specific protocol, but only needs to call the methods encapsulated in the kernel layer.

[0089] S303: Determine, according to the features to be tested corresponding to the multiple service platforms, the common features to be tested shared by the multiple service platforms and the different features to be tested corresponding to each service platform;

[0090] In the embodiments of this specification, it is possible to obtain the corresponding feature sets to be tested of multiple business platforms, extract the common features to be tested shared by multiple business platforms in each feature set to be tested, and then determine the differential features to be tested of each business platform based on the common features to be tested; the differential features to be tested corresponding to a business platform are the features to be tested that are not included in other business platforms. For any business platform, it is possible to obtain the feature set to be tested corresponding to the business platform, and filter out the common features to be tested from the set, thereby obtaining the differential features to be tested corresponding to the business platform.

[0091] S305: constructing the first database based on the common features to be tested shared by the multiple business platforms;

[0092] In the embodiments of the present specification, common features to be tested shared by multiple business platforms may be stored in a preset database, thereby constructing the above-mentioned first database.

[0093] In the embodiment of this specification, the first database is constructed based on the common features to be tested shared by the above-mentioned multiple business platforms, including:

[0094] Constructing the monitoring code corresponding to the above-mentioned common features to be tested to obtain the above-mentioned common code;

[0095] In the embodiments of this specification, the public features to be tested may include but are not limited to features for realizing SDK lifecycle management, configuration management, plug-in implementation, reporting protocol unification and other functions; wherein lifecycle management is used to monitor SDK startup and shutdown lifecycle, plug-in startup and shutdown lifecycle, data reporting lifecycle, and hook functions that users can inject data processing logic. Configuration management is used to start the configuration file that needs to be passed in when monitoring SDK, including reporting id, reporting address, user unique identifier, reporting interval, function switch, environment definition, etc. Plug-in implementation is one of the most important functions of the kernel layer. The specific implementation of the plug-in can be regarded as a string of functions executed in sequence, and the parameters of each function are the return values ​​of the previous function. Through the data transmission method of the pipeline, all monitoring data will pass through the pipeline, and the plug-in implementation defined by the developer will process the monitoring data in this way. The unified reporting protocol involves log reporting protocol, page performance reporting protocol, page various indicator reporting protocol, user-defined reporting data protocol, etc. These functions are unified in the kernel layer. After the platform layer inherits from the kernel layer, it does not need to understand the specific protocol, but only needs to call the method encapsulated in the kernel layer.

[0096] According to the above public code, the above first database is constructed.

[0097] In the embodiments of the present specification, a monitoring code corresponding to the above-mentioned common features to be tested may be constructed to obtain common codes of multiple business platforms, and then the common codes may be stored in the first database.

[0098] In the embodiments of the present specification, the common codes of multiple business platforms can be updated in real time, and the monitoring plug-ins of all business platforms corresponding to the common codes can be updated through one code update; Figure 4 As shown, the above method also includes:

[0099] S401: Acquire common update features corresponding to the above-mentioned multiple business platforms;

[0100] In the embodiment of this specification, if a common feature of multiple business platforms needs to be updated, the common update feature can be obtained; the common update feature can be one or more, and the common update feature can be a feature in the original common feature to be tested, or a newly added feature; the common update feature can include but is not limited to features for realizing SDK life cycle management, configuration management, plug-in implementation, reporting protocol unification and other functions; wherein life cycle management is used to monitor SDK startup and shutdown life cycle, plug-in startup and shutdown life cycle, data reporting life cycle, and the hook function that the user can inject data processing logic. Configuration management is used to start the configuration file that needs to be passed in when monitoring SDK, including reporting id, reporting address, user unique identifier, reporting interval, function switch, environment definition, etc. Plug-in implementation is one of the most important functions of the kernel layer. The specific implementation of the plug-in can be regarded as a string of functions executed in sequence, and the parameters of each function are the return values ​​of the previous function. Through the data transmission mode of the pipeline, all monitoring data will pass through the pipeline, and the plug-in implementation defined by the developer will process the monitoring data in this way. The unified reporting protocol involves log reporting protocol, page performance reporting protocol, page various indicator reporting protocol, user-defined reporting data protocol, etc. These functions are unified in the kernel layer. After the platform layer inherits from the kernel layer, it does not need to understand the specific protocol, but only needs to call the methods encapsulated in the kernel layer.

[0101] S403: Based on the public update feature, the public code in the first database is updated to obtain a public update code;

[0102] In the embodiments of the present specification, the above-mentioned common code in the above-mentioned first database can be updated according to the common update feature to obtain the common update code; the update code corresponding to the common update feature can be written; if the common update feature is a feature in the original common feature to be tested, the code corresponding to the original common feature to be tested is replaced with the update code, thereby updating the code in the first database to obtain the common update code; if the common update feature is a newly added feature, the update code is added to the common code corresponding to the first database to obtain the common update code.

[0103] S405: Based on the common update code, the monitoring plug-ins corresponding to the plurality of service platforms are updated to obtain first updated monitoring plug-ins corresponding to the plurality of service platforms;

[0104] In the embodiments of the present specification, the monitoring plug-ins corresponding to each of the above-mentioned multiple business platforms can be updated according to the common update code to obtain the first updated monitoring plug-in corresponding to each of the above-mentioned multiple business platforms; each business platform updates the monitoring plug-in corresponding to each business platform according to the common update code to obtain the first updated monitoring plug-in corresponding to each business platform.

[0105] S407: Sending the first update monitoring plug-in corresponding to each business platform to each business platform, so that each business platform monitors the real-time data of the feature to be tested in each business platform based on the first update monitoring plug-in corresponding to each business platform.

[0106] In the embodiments of the present specification, for any business platform, a corresponding first update monitoring plug-in can be sent to the business platform based on the update monitoring plug-in determined according to the code update; so that the business platform can monitor the real-time data of the features to be tested in each business platform according to the first update monitoring plug-in, thereby obtaining abnormal data in a timely manner.

[0107] In the embodiments of the present specification, the common codes of multiple business platforms can be updated in real time, and the monitoring plug-ins of all business platforms corresponding to the common codes can be updated through a single code update; during the code maintenance process, only a set of total codes corresponding to the first database needs to be maintained, and there is no need to maintain the codes of multiple platforms at the same time, which reduces the code maintenance costs of multiple business platforms and improves the code maintenance efficiency of multiple business platforms.

[0108] S307: Construct the second database based on the difference features to be tested corresponding to each business platform.

[0109] In the embodiments of this specification, Figure 5 As shown, the second database is constructed based on the difference characteristics to be tested corresponding to each business platform, including:

[0110] S3071: constructing a difference code corresponding to each business platform according to the difference characteristics to be tested corresponding to each business platform; the difference code corresponding to each business platform is used to monitor the difference characteristics to be tested corresponding to each business platform;

[0111] In the embodiments of the present specification, the difference features to be tested corresponding to each business platform may include but are not limited to features for determining the data collection method and the data reporting interface. For example, the web page reports data using xhr (XMLHttpRequest) or image, and the applet reports data using wx.request, etc. Among them, xhr is a JavaScript object provided by the browser, through which it can request data resources on the server; JavaScript (referred to as "JS") is a lightweight, interpreted or just-in-time compiled programming language with function priority. Image is image programming, supporting many image formats, including standard web page formats, high dynamic range images, and raw camera data; wx.request is to send a Hypertext Transfer Protocol (HTTP) request to a specified domain name, and the specified domain name needs to be added to the applet management background. According to the difference features to be tested corresponding to each business platform, the difference code corresponding to the business platform can be constructed; the difference code is used to monitor the difference features to be tested corresponding to each of the above business platforms.

[0112] S3073: Determine a correspondence between the plurality of platform identifiers and the plurality of groups of difference codes according to the platform identifiers corresponding to the plurality of service platforms and the difference code corresponding to each service platform;

[0113] In the embodiment of the present specification, the platform identifiers corresponding to the multiple business platforms can be obtained, and based on the platform identifiers and difference codes corresponding to each business platform, the correspondence between the multiple platform identifiers and the multiple groups of difference codes can be constructed; wherein the platform identifiers and the difference codes are in a one-to-one correspondence.

[0114] S3075: Construct the second database based on the correspondence between the multiple platform identifiers and the multiple groups of difference codes.

[0115] In the embodiment of the present specification, the correspondence between multiple platform identifiers and multiple groups of difference codes may be stored in the second database to facilitate subsequent query of the difference codes corresponding to different service platforms.

[0116] In the embodiments of the present specification, a comprehensive code package corresponding to multiple business platforms can also be constructed based on the first database and the second database; that is, the codes in the first database and the second database are merged to obtain a comprehensive code package, and then platform packaging is performed for different business platforms based on the comprehensive code package.

[0117] In the embodiments of the present specification, a first database can be constructed for common features to be tested of multiple business platforms, and a second database can be constructed based on differential features to be tested corresponding to each business platform, so that the codes corresponding to the common features and differential features are stored separately, and a set of comprehensive codes is constructed for multiple business platforms; in the code development process, only a set of total codes corresponding to the first database and the second database need to be developed, and there is no need to develop codes for multiple platforms at the same time, which reduces the code development costs of multiple business platforms and improves the code development efficiency of multiple business platforms.

[0118] S205: Query the current difference code corresponding to the above-mentioned current platform identifier in the second database; the above-mentioned second database is used to store the correspondence between the platform identifiers corresponding to each of the above-mentioned multiple business platforms and multiple groups of difference codes; the difference code corresponding to each platform identifier is constructed based on the difference characteristics to be tested corresponding to each of the above-mentioned business platforms.

[0119] In the embodiment of the present specification, the second database is used to store the correspondence between the platform identifiers corresponding to the above-mentioned multiple business platforms and multiple groups of difference codes. The difference code corresponding to the current platform identifier can be queried in the second database to obtain the current difference code.

[0120] S207: Based on the common code and the current difference code, a monitoring plug-in corresponding to the current business platform is constructed.

[0121] In the embodiment of this specification, a monitoring plug-in corresponding to the current business platform can be constructed according to the common code corresponding to the current business platform and the current difference code. The monitoring plug-in can be used to monitor the data corresponding to each monitoring feature in the current business platform, which may include various data in the page of the current business platform.

[0122] In the embodiments of this specification, Figure 6 As shown, based on the above common code and the above current difference code, a monitoring plug-in corresponding to the above current business platform is constructed, including:

[0123] S2071: Based on the common code and the current difference code, construct a monitoring code corresponding to the current business platform;

[0124] In the embodiments of the present specification, the monitoring code corresponding to the current business platform may be constructed according to the common code corresponding to the current business platform and the current difference code.

[0125] S2073: Obtain the environment variables corresponding to the current business platform;

[0126] In the embodiments of the present specification, each business platform has different environment variables, and the environment variables corresponding to the current business platform can be obtained, thereby facilitating the construction of a monitoring plug-in.

[0127] S2075: The monitoring code is updated based on the environment variables, and a monitoring plug-in corresponding to the current business platform is constructed according to the update result.

[0128] In the embodiments of this specification, the monitoring code of the current business platform can be updated according to the environment variables, and the monitoring plug-in corresponding to the above-mentioned current business platform can be constructed according to the update result to adapt it to the current business platform; other business platforms can also adopt the same processing method.

[0129] In the embodiments of this specification, different environment variables can be injected into different platforms by injecting environment variables during packaging, and the implementation of different platforms in the code is smoothed through the environment variables. For example, for data reporting, if the current environment is a browser, the browser API is used for reporting. If it is a mini program, the mini program API is called for reporting. Among them, API (Application Programming Interface) is a set of pre-defined functions, the purpose of which is to provide applications and developers with the ability to access a set of routines based on certain software or hardware without having to access the source code or understand the details of the internal working mechanism.

[0130] In an exemplary embodiment, if Figure 7 As shown, Figure 7 It is a structural diagram of a data monitoring system; the data monitoring system includes a kernel layer, a platform layer and a plug-in layer; wherein the kernel layer is used to store a first database, and the platform layer is used to store a second database.

[0131] Core layer: The core layer handles platform-independent logic, including SDK lifecycle management, configuration management, plug-in implementation, reporting protocol unification, etc. It is the layer where the main functions of the SDK belong.

[0132] a. Lifecycle management: monitor the SDK startup and shutdown lifecycle, plug-in startup and shutdown lifecycle, data reporting lifecycle, and users can inject hook functions into data processing logic.

[0133] b. Configuration management: The configuration file that needs to be passed in when starting the monitoring SDK includes the reporting ID, reporting address, user unique identifier, reporting interval, function switch, environment definition, etc.

[0134] c. Plug-in implementation: Plug-in implementation is one of the most important functions of the kernel layer. The specific implementation of the plug-in can be regarded as a series of functions executed in sequence, and the parameter of each function is the return value of the previous function. Through the pipeline data transmission method, all monitoring data will pass through the pipeline, and the plug-in implementation defined by the developer will process the monitoring data in this way.

[0135] d. Unified reporting protocols: including log reporting protocol, page performance reporting protocol, page indicator reporting protocol, user-defined reporting data protocol, etc. These functions are unified in the kernel layer. After the platform layer inherits from the kernel layer, it does not need to understand the specific protocol, but only needs to call the method encapsulated by the kernel layer.

[0136] Platform layer (SDK): The platform layer implements the differences between various platforms, and developers can quickly adapt to a new platform. Multiple business platforms may include but are not limited to the first business platform, the second business platform, the third business platform, etc.; multiple business platforms can be multiple different types of business platforms corresponding to the same operating system, or they can be the same type of business platforms corresponding to multiple operating systems.

[0137] Plugin layer: The plugin layer is divided into two parts. One part is the logic of data collection and reporting of specific platforms. For example, web pages use xhr or image to report data, and small program data uses wx.request. The other part is public plugins, which are usually placed in the kernel layer, such as sampling logic before data reporting, coloring logic of user logs, etc.

[0138] Among them, the kernel layer and the platform layer are in a parent-child relationship. The subclass defined in the platform layer inherits from the parent class defined in the kernel layer. The specific plug-in is used through the use method (Utilization Saturation and Errors Method). The use method is a function defined in the kernel layer. Its main function is to put the plug-in into the pipeline and process the reported data. The specific functions are organized in the form of plug-ins within each platform, which can achieve very friendly code organization and development management. Among them, the use method is mainly used to analyze system performance problems and can guide users to quickly identify resource bottlenecks and errors. As the name of the use method implies, the use method mainly focuses on resource utilization (Utilization), saturation (Saturation) and errors (Errors).

[0139] S209: Sending the monitoring plug-in to the current business platform, so that the current business platform monitors the real-time data of the feature to be tested in the current business platform based on the monitoring plug-in.

[0140] In the embodiments of this specification, after constructing the monitoring plug-in corresponding to the current business platform, the monitoring plug-in can be sent to the current business platform; the current business platform can monitor the real-time data of the features to be tested in the current business platform based on the monitoring plug-in.

[0141] In the embodiments of this specification, the current business platform is any one of multiple business platforms, and the same method can be used to construct a monitoring plug-in and perform data monitoring for other business platforms. According to the difference code corresponding to each business platform and the common code, a monitoring plug-in for each business platform is constructed; and the monitoring plug-in for each business platform is sent to each business platform, so that each business platform monitors the abnormal data of the feature to be tested in each business platform based on the monitoring plug-in for each business platform.

[0142] In the embodiments of this specification, the difference code to be tested of any platform in multiple business platforms can be updated in real time, so as to update the monitoring plug-ins of multiple business platforms based on a set of codes; Figure 8 As shown, the above method also includes:

[0143] S801: Obtaining update difference features corresponding to the current business platform;

[0144] In the embodiments of this specification, the updated difference features corresponding to the current business platform may be one or more, and the updated difference features may be features in the original difference features to be tested, or may be newly added features; the updated difference features may include but are not limited to features used to determine the data collection method and the data reporting interface.

[0145] S803: Based on the updated difference feature, the current difference code in the second database is updated to obtain an updated difference code;

[0146] In the embodiments of the present specification, the current difference code in the above-mentioned second database can be updated according to the update difference feature to obtain the updated difference code; the update code corresponding to the update difference feature can be written; if the update difference feature is a feature in the original current difference feature to be tested, the code corresponding to the original current difference feature to be tested is replaced with the update code, thereby realizing the update of the code in the second database to obtain the updated difference code; if the common update feature is a newly added feature, the update code is added to the current difference code to be tested corresponding to the second database to obtain the updated difference code.

[0147] S805: Based on the updated difference code, the monitoring plug-in corresponding to the current business platform is updated to obtain a second updated monitoring plug-in corresponding to the current business platform.

[0148] In the embodiment of the present specification, sending the monitoring plug-in to the current service platform includes:

[0149] The second update monitoring plug-in is sent to the current service platform.

[0150] In the embodiment of this specification, after determining the second update monitoring plug-in corresponding to the current service platform, the second update monitoring plug-in may be sent to the current service platform so that the current service platform performs data monitoring based on the second update monitoring plug-in.

[0151] In the embodiments of this specification, during the code maintenance process, only a set of total codes corresponding to the first database and the second database need to be maintained, and there is no need to maintain the codes of multiple platforms at the same time, which reduces the code maintenance cost of multiple business platforms and improves the code maintenance efficiency of multiple business platforms.

[0152] In some embodiments, Fig. 9 As shown, the above method also includes:

[0153] S2011: receiving an abnormal prompt message sent by the current business platform when the real-time data is abnormal data;

[0154] In an embodiment of the present specification, the current business platform can, during the process of monitoring the real-time data of the feature to be measured, determine whether the real-time data of each feature to be measured is within a normal numerical range based on the normal numerical range corresponding to each feature to be measured; if the real-time data exceeds the normal numerical range, the real-time data is determined to be abnormal data; at this time, the current business platform sends an abnormal prompt message to the server, and the abnormal prompt message carries the abnormal data and the feature to be measured corresponding to the abnormal data.

[0155] S2013: parsing the above-mentioned abnormal prompt message to obtain the target abnormal message type corresponding to the above-mentioned abnormal prompt message;

[0156] In an embodiment of the present specification, the server can parse the received exception prompt message to obtain the exception data corresponding to the exception prompt message and the feature to be tested corresponding to the exception data, thereby determining the target exception message type corresponding to the exception data, and the target exception message type is used to characterize the feature type of the feature to be tested corresponding to the exception data.

[0157] S2015: Based on a preset policy relationship library, search for a target processing policy corresponding to the target abnormal message type, and execute the target processing policy; the preset policy relationship library includes a correspondence between abnormal message types and processing policies.

[0158] In the embodiment of the present specification, the server can construct a preset policy relationship library in advance according to the correspondence between multiple abnormal message types and multiple processing policies. And search the preset policy relationship library for the target processing policy corresponding to the above target abnormal message type, and execute the target processing policy, so as to timely process the abnormal prompt message, thereby improving the operation stability of the current business platform.

[0159] It can be seen from the technical solutions provided in the above embodiments of this specification that the embodiments of this specification obtain the current platform identifier of the current business platform; query the common code corresponding to the current platform identifier in the first database; the first database is used to store the common codes corresponding to multiple business platforms; the common code is the monitoring code corresponding to the common features to be tested shared by multiple business platforms, and the current business platform is any one of the multiple business platforms; query the current difference code corresponding to the current platform identifier in the second database; the second database is used to store the correspondence between the platform identifiers corresponding to each of the multiple business platforms and the multiple groups of difference codes; the difference code corresponding to each platform identifier is constructed based on the difference features to be tested corresponding to each business platform; based on the common code and the current difference code, construct the monitoring plug-in corresponding to the current business platform; send the monitoring plug-in to the current business platform so that the current business platform monitors the real-time data of the features to be tested in the current business platform based on the monitoring plug-in; this application improves the construction efficiency of the monitoring plug-in in the platform through the platform packaging technology. In the code development process, only a set of total codes corresponding to the first database and the second database need to be developed, and there is no need to develop codes for multiple platforms at the same time, which reduces the code development cost of multiple business platforms and improves the code development efficiency of multiple business platforms.

[0160] The embodiment of this specification also provides a data monitoring device, such as Fig.10 As shown, the above device comprises:

[0161] The current identification acquisition module 1010 is used to acquire the current platform identification of the current service platform;

[0162] The public code acquisition module 1020 is used to query the public code corresponding to the current platform identifier in the first database; the first database is used to store the public codes corresponding to multiple business platforms; the public code is a monitoring code corresponding to the common characteristics to be tested shared by the multiple business platforms, and the current business platform is any one of the multiple business platforms;

[0163] The difference code acquisition module 1030 is used to query the current difference code corresponding to the above-mentioned current platform identifier in the second database; the above-mentioned second database is used to store the corresponding relationship between the platform identifiers corresponding to each of the above-mentioned multiple business platforms and multiple groups of difference codes; the difference code corresponding to each platform identifier is constructed based on the difference characteristics to be tested corresponding to each of the above-mentioned business platforms;

[0164] A plug-in construction module 1040 is used to construct a monitoring plug-in corresponding to the current business platform based on the common code and the current difference code;

[0165] The plug-in sending module 1050 is used to send the monitoring plug-in to the current business platform, so that the current business platform can monitor the real-time data of the feature to be tested in the current business platform based on the monitoring plug-in.

[0166] In an exemplary embodiment, the apparatus further comprises:

[0167] The feature acquisition module to be tested is used to obtain the features to be tested corresponding to each of the multiple business platforms;

[0168] A difference feature determination module, used to determine the common features to be tested shared by the above-mentioned multiple business platforms and the difference features to be tested corresponding to each business platform according to the features to be tested corresponding to each of the above-mentioned multiple business platforms;

[0169] A first construction module, used to construct the first database based on the common features to be tested shared by the multiple business platforms;

[0170] The second construction module is used to construct the second database based on the difference features to be tested corresponding to each business platform.

[0171] In an exemplary embodiment, the first building block comprises:

[0172] A common code determination unit, used to construct a monitoring code corresponding to the common feature to be tested, and obtain the common code;

[0173] The first construction unit is used to construct the first database according to the public code.

[0174] In an exemplary embodiment, the second building block comprises:

[0175] A difference code construction unit is used to construct a difference code corresponding to each business platform according to the difference characteristics to be tested corresponding to each business platform; the difference code corresponding to each business platform is used to monitor the difference characteristics to be tested corresponding to each business platform;

[0176] A relationship determination unit, configured to determine a correspondence between a plurality of platform identifiers and a plurality of groups of difference codes according to the platform identifiers corresponding to the plurality of service platforms and the difference codes corresponding to each service platform;

[0177] The second construction unit is used to construct the second database based on the correspondence between the multiple platform identifiers and the multiple groups of difference codes.

[0178] In an exemplary embodiment, the plug-in building block includes:

[0179] A code construction unit, used to construct a monitoring code corresponding to the current business platform based on the common code and the current difference code;

[0180] A variable acquisition unit, used to acquire the environment variables corresponding to the above current business platform;

[0181] The plug-in construction unit is used to update the above monitoring code based on the above environment variables, and to construct a monitoring plug-in corresponding to the above current business platform according to the update result.

[0182] In an exemplary embodiment, the apparatus further comprises:

[0183] A first update feature acquisition module is used to acquire common update features corresponding to the above-mentioned multiple business platforms;

[0184] A first update code determination module, configured to update the common code in the first database based on the common update feature to obtain a common update code;

[0185] A first updating module, configured to update the monitoring plug-ins corresponding to the plurality of service platforms based on the common updating code to obtain first updated monitoring plug-ins corresponding to the plurality of service platforms;

[0186] The first sending module is used to send the first update monitoring plug-in corresponding to each business platform to each business platform, so that each business platform monitors the real-time data of the feature to be tested in each business platform based on the first update monitoring plug-in corresponding to each business platform.

[0187] In an exemplary embodiment, the apparatus further comprises:

[0188] A second update feature acquisition module is used to acquire the update difference feature corresponding to the above current business platform;

[0189] A second update code determination module, configured to update the current difference code in the second database based on the update difference feature to obtain an update difference code;

[0190] A second updating module, configured to update the monitoring plug-in corresponding to the current business platform based on the updated difference code, to obtain a second updated monitoring plug-in corresponding to the current business platform;

[0191] In an exemplary embodiment, the plug-in sending module includes:

[0192] The plug-in sending unit is used to send the second update monitoring plug-in to the current service platform.

[0193] In an exemplary embodiment, the apparatus further comprises:

[0194] A message receiving module, used to receive an abnormal prompt message sent by the current business platform when the real-time data is abnormal data;

[0195] A parsing module, used to parse the above-mentioned abnormal prompt message to obtain a target abnormal message type corresponding to the above-mentioned abnormal prompt message;

[0196] The execution module is used to search for the target processing strategy corresponding to the above-mentioned target abnormal message type based on the preset strategy relationship library, and execute the above-mentioned target processing strategy; the above-mentioned preset strategy relationship library includes the corresponding relationship between the abnormal message type and the processing strategy.

[0197] The device and method embodiments in the above-mentioned device embodiments are based on the same inventive concept.

[0198] An embodiment of the present specification provides a data monitoring device, which includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded and executed by the processor to implement the data monitoring method provided in the above method embodiment.

[0199] An embodiment of the present application also provides a computer storage medium, which can be set in a terminal to store at least one instruction or at least one program related to a data monitoring method in a method embodiment. The at least one instruction or at least one program is loaded and executed by the processor to implement the data monitoring method provided by the above method embodiment.

[0200] The embodiment of the present application also provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes to implement the data monitoring method provided by the above method embodiment.

[0201] Optionally, in the embodiments of this specification, the storage medium may be located in at least one of the multiple network servers of the computer network. Optionally, in this embodiment, the storage medium may include, but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store program codes.

[0202] The memory described in the embodiments of this specification can be used to store software programs and modules, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory. The memory may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, application programs required for functions, etc.; the data storage area may store data created according to the use of the device, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the memory may also include a memory controller to provide the processor with access to the memory.

[0203] The data monitoring method embodiments provided in the embodiments of this specification can be executed in a mobile terminal, a computer terminal, a server or a similar computing device. Taking running on a server as an example, Fig.11 1 is a hardware structure diagram of a server of a data monitoring method provided in an embodiment of this specification. Fig.11As shown, the server 1100 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 1110 (the central processing unit 1110 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 1130 for storing data, and one or more storage media 1120 (such as one or more mass storage devices) for storing application programs 1123 or data 1122. Among them, the memory 1130 and the storage medium 1120 can be short-term storage or permanent storage. The program stored in the storage medium 1120 may include one or more modules, each of which may include a series of instruction operations on the server. Furthermore, the central processing unit 1110 can be configured to communicate with the storage medium 1120 and execute a series of instruction operations in the storage medium 1120 on the server 1100. The server 1100 may also include one or more power supplies 1160, one or more wired or wireless network interfaces 1150, one or more input and output interfaces 1140, and / or one or more operating systems 1121, such as Windows Server TM, Mac OS X TM, Unix TM, Linux TM, FreeBSD TM, etc.

[0204] The input / output interface 1140 may be used to receive or send data via a network. The specific example of the network may include a wireless network provided by a communication provider of the server 1100. In one example, the input / output interface 1140 includes a network adapter (Network Interface Controller, NIC), which may be connected to other network devices via a base station so as to communicate with the Internet. In one example, the input / output interface 1140 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0205] It can be understood by those skilled in the art that Fig.11 The structure shown is only for illustration and does not limit the structure of the above electronic device. Fig.11 More or fewer components as shown, or with Fig.11 Different configurations are shown.

[0206] It can be seen from the embodiments of the data monitoring method, device, equipment or storage medium provided by the present application that the present application obtains the current platform identifier of the current business platform; queries the common code corresponding to the current platform identifier in the first database; the first database is used to store the common codes corresponding to multiple business platforms; the common code is the monitoring code corresponding to the common features to be tested shared by multiple business platforms, and the current business platform is any one of the multiple business platforms; queries the current difference code corresponding to the current platform identifier in the second database; the second database is used to store the correspondence between the platform identifiers corresponding to each of the multiple business platforms and the multiple groups of difference codes; the difference code corresponding to each platform identifier is constructed based on the difference features to be tested corresponding to each business platform; based on the common code and the current difference code, construct the monitoring plug-in corresponding to the current business platform; send the monitoring plug-in to the current business platform so that the current business platform monitors the real-time data of the features to be tested in the current business platform based on the monitoring plug-in; the present application improves the construction efficiency of the monitoring plug-in in the platform through the platform packaging technology. During the code development process, only a set of total codes corresponding to the first database and the second database need to be developed, and there is no need to develop the codes of multiple platforms at the same time, which reduces the code development cost of multiple business platforms and improves the code development efficiency of multiple business platforms.

[0207] It should be noted that the above sequence of the embodiments of this specification is for description only and does not represent the advantages and disadvantages of the embodiments. The above describes specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0208] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0209] A person skilled in the art will appreciate that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0210] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims

1. A data monitoring method, characterized in that: The method comprises: Get the current platform ID of the current business platform; Querying the common code corresponding to the current platform identifier in a first database; the first database is used to store common codes corresponding to multiple business platforms; the common code is a monitoring code corresponding to a common feature to be tested shared by the multiple business platforms, and the current business platform is any one of the multiple business platforms; Querying the current difference code corresponding to the current platform identifier in the second database; the second database is used to store the corresponding relationship between the platform identifiers corresponding to the multiple business platforms and multiple groups of difference codes; the difference code corresponding to each platform identifier is constructed based on the difference characteristics to be tested corresponding to each business platform; Based on the common code and the current difference code, construct a monitoring plug-in corresponding to the current business platform; The monitoring plug-in is sent to the current service platform, so that the current service platform monitors the real-time data of the feature to be measured in the current service platform based on the monitoring plug-in.

2. The method according to claim 1, characterized in that The method further comprises: Obtain the features to be tested corresponding to multiple business platforms; Determine, according to the features to be tested corresponding to the multiple service platforms, the common features to be tested shared by the multiple service platforms and the different features to be tested corresponding to each service platform; Building the first database based on the common features to be tested shared by the multiple business platforms; The second database is constructed based on the difference features to be tested corresponding to each business platform.

3. The method according to claim 2, characterized in that The step of constructing the first database based on the common features to be tested shared by the multiple business platforms includes: Constructing a monitoring code corresponding to the common feature to be tested to obtain the common code; Constructing the first database according to the common code; The step of constructing the second database based on the difference features to be tested corresponding to each business platform includes: According to the difference characteristics to be tested corresponding to each business platform, construct the difference code corresponding to each business platform; the difference code corresponding to each business platform is used to monitor the difference characteristics to be tested corresponding to each business platform; Determining a correspondence between the plurality of platform identifiers and the plurality of groups of difference codes according to the platform identifiers corresponding to the plurality of service platforms and the difference code corresponding to each service platform; The second database is constructed based on the correspondence between the multiple platform identifiers and the multiple groups of difference codes.

4. The method according to any one of claims 1 to 3, characterized in that: The step of constructing a monitoring plug-in corresponding to the current business platform based on the common code and the current difference code includes: Based on the common code and the current difference code, construct a monitoring code corresponding to the current business platform; Obtaining environment variables corresponding to the current business platform; The monitoring code is updated based on the environment variables, and a monitoring plug-in corresponding to the current business platform is constructed according to the update result.

5. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: Obtaining common update features corresponding to the multiple business platforms; Based on the public update feature, the public code in the first database is updated to obtain a public update code; Based on the common update code, the monitoring plug-ins corresponding to the multiple service platforms are updated to obtain first updated monitoring plug-ins corresponding to the multiple service platforms; The first update monitoring plug-in corresponding to each business platform is sent to each business platform, so that each business platform monitors the real-time data of the feature to be tested in each business platform based on the first update monitoring plug-in corresponding to each business platform.

6. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: Obtaining update difference features corresponding to the current business platform; Based on the updated difference feature, the current difference code in the second database is updated to obtain an updated difference code; Based on the update difference code, the monitoring plug-in corresponding to the current business platform is updated to obtain a second updated monitoring plug-in corresponding to the current business platform; The sending the monitoring plug-in to the current service platform includes: The second update monitoring plug-in is sent to the current service platform.

7. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: Receiving an abnormal prompt message sent by the current business platform when the real-time data is abnormal data; Parsing the abnormal prompt message to obtain the target abnormal message type corresponding to the abnormal prompt message; Based on a preset policy relationship library, a target processing policy corresponding to the target abnormal message type is searched, and the target processing policy is executed; the preset policy relationship library includes a correspondence between abnormal message types and processing policies.

8. A data monitoring device, characterized in that: The device comprises: The current identification acquisition module is used to obtain the current platform identification of the current business platform; A public code acquisition module, used to query the public code corresponding to the current platform identifier in a first database; the first database is used to store public codes corresponding to multiple business platforms; the public code is a monitoring code corresponding to a common feature to be tested shared by the multiple business platforms, and the current business platform is any one of the multiple business platforms; A difference code acquisition module is used to query the current difference code corresponding to the current platform identifier in the second database; the second database is used to store the corresponding relationship between the platform identifiers corresponding to each of the multiple business platforms and multiple groups of difference codes; the difference code corresponding to each platform identifier is constructed based on the difference characteristics to be tested corresponding to each business platform; A plug-in construction module, used to construct a monitoring plug-in corresponding to the current business platform based on the common code and the current difference code; The plug-in sending module is used to send the monitoring plug-in to the current business platform, so that the current business platform monitors the real-time data of the feature to be tested in the current business platform based on the monitoring plug-in.

9. An electronic device, characterized in that: The device includes: a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded and executed by the processor to implement the data monitoring method as described in any one of claims 1-7.

10. A computer storage medium, characterized in that: The computer storage medium stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded and executed by a processor to implement the data monitoring method as described in any one of claims 1-7.

11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the data monitoring method according to any one of claims 1 to 7 is implemented.