WO2021164179A1 - Data monitoring method and apparatus - Google Patents

Data monitoring method and apparatus Download PDF

Info

Publication number
WO2021164179A1
WO2021164179A1 PCT/CN2020/099562 CN2020099562W WO2021164179A1 WO 2021164179 A1 WO2021164179 A1 WO 2021164179A1 CN 2020099562 W CN2020099562 W CN 2020099562W WO 2021164179 A1 WO2021164179 A1 WO 2021164179A1
Authority
WO
WIPO (PCT)
Prior art keywords
monitored device
monitored
characteristic value
data
data request
Prior art date
Application number
PCT/CN2020/099562
Other languages
French (fr)
Chinese (zh)
Inventor
黄咏康
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2021164179A1 publication Critical patent/WO2021164179A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/04Network management architectures or arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Definitions

  • This application relates to the field of big data, and in particular to a data monitoring method and device.
  • the inventor realized that the cloud monitoring platform is widely used to manage the collected data sent by the monitored device, so as to achieve the purpose of unified management of multiple monitored devices.
  • the embodiments of this application provide a data monitoring method and related equipment to solve the problem that the existing cloud monitoring platform products cannot meet the increasing monitoring needs of users. During the use process, there are platforms that cannot perform new equipment. Management, equipment monitoring and other problems.
  • the embodiments of the present application provide a data monitoring method and device, which can incorporate different newly-added devices into the management scope of the platform, thereby improving the monitoring effect.
  • an embodiment of the present application provides a data monitoring method.
  • the above method includes: searching for the characteristic value of the monitored device; in the case that the monitored device has the above characteristic value, judging whether the monitored device is a mirror copy Device; In the case that the monitored device is not the mirror copy device, confirm that the monitored device is a registered device; obtain the account priority corresponding to the monitored device; according to the corresponding relationship between the account priority and the data request threshold Acquire the first data request threshold corresponding to the monitored device; in the case that the number of data requests of the monitored device reaches the first data request threshold, reject the data request sent by the monitored device.
  • an embodiment of the present application provides a data monitoring device, which includes a module for executing the method of the first aspect.
  • an embodiment of the present application provides a server, the server includes a processor and a memory, the processor and the memory are connected to each other, wherein the memory is used to store a computer program that supports the server to execute the above method, and The computer program includes program instructions, and the processor is configured to invoke the program instructions to execute the method of the first aspect described above.
  • an embodiment of the present application provides a computer-readable storage medium that stores a computer program, and the computer program includes program instructions that, when executed by a processor, cause all The processor executes the method of the first aspect described above.
  • Fig. 1 is an architecture diagram of a data monitoring system provided by an embodiment of the present application.
  • Fig. 2 is a flowchart of a data monitoring method provided by an embodiment of the present application.
  • Fig. 3 is a flowchart of another data monitoring method provided by an embodiment of the present application.
  • Fig. 4 is a schematic structural diagram of a data monitoring device provided by an embodiment of the present application.
  • Fig. 5 is a schematic block diagram of a server provided by an embodiment of the present application.
  • the technical solution of the present application can be applied to the field of big data technology, and different newly-added devices can be included in the management scope of the platform, which improves the monitoring effect.
  • the monitoring device assigns a characteristic value to each registered monitored device, if you need to confirm the registration of the monitored device, you only need to find the characteristic value corresponding to the monitored device, and use the characteristic value to distinguish the monitored device.
  • the number of data requests for each monitored device is limited. Therefore, a data monitoring method proposed in this application can realize that different newly added devices are included in the management scope of the platform, and the monitoring effect is improved.
  • FIG. 1 is an architecture diagram of a data monitoring system provided by an embodiment of the present application.
  • the system includes a monitored device 10, a data monitoring device 20, and a monitoring platform 30.
  • the monitored device 10 may be a portable terminal such as a mobile phone, a tablet computer, or a notebook computer, or a non-portable terminal such as a desktop computer, or other devices capable of uploading data.
  • the monitored device 10 is used to provide characteristic values to the data monitoring device 20.
  • the data monitoring device 20 is used to obtain the characteristic value of the monitored device 10; the data monitoring device 20 is also used to confirm whether the above characteristic value exists in the registration database of the monitoring platform 30; the data monitoring device 20 is also used to obtain The account priority of the device 10 and the corresponding first data request threshold; the data monitoring device 20 is also used to reject the request sent by the monitored device 10 when the number of data requests of the monitored device 10 reaches the first data request threshold. Data request.
  • the monitoring platform 30 is used to provide the data monitoring device 20 with the characteristic values of the registered equipment.
  • the data monitoring device 20 obtains the universally unique identification code generated by the monitoring platform 30 when the monitored device 10 does not have a characteristic value, and uses the universally unique identification code as the above-mentioned monitored device 10 Eigenvalues.
  • FIG. 2 is a schematic flowchart of a data monitoring method provided by an embodiment of the present application, and the foregoing method includes.
  • the monitored device after the monitored device is legally registered in the monitoring platform, it will obtain the specified characteristic value, so that each monitored device can be distinguished by using the characteristic value. After the monitoring device is started or upgraded, it is necessary to first determine whether the corresponding monitored device has been registered in the monitoring platform.
  • the aforementioned monitoring platform uses a uniform naming rule to generate different characteristic values for the monitored device.
  • the first 3 digits of the characteristic value are used to indicate the area where the monitored device is located, the 4th to 6th digits of the characteristic value are used to indicate the model of the monitored device, and the last digit of the characteristic value is used to indicate whether the monitored device is Mirror copy equipment.
  • the naming information sent by the user is received; in the case of receiving the naming information, the naming information is sent to the monitoring platform.
  • the above-mentioned data monitoring device receives the named field sent by the user, and randomly selects the numerical value of the specific position of the characteristic value to represent the named field set by the user.
  • the data monitoring device receives the naming field sent by the user as "model", and the naming field needs to be represented by 3 digits in the characteristic value.
  • the data monitoring device randomly selects the 5th to 7th digits of the characteristic value to indicate the Name the field. It should be understood that the foregoing description is only used as an example, and the embodiment of the present application does not specifically limit the naming rule of the characteristic value.
  • the randomly generated “02” is used to indicate “A land”
  • the randomly generated “33” is used to indicate "B land”.
  • the above data monitoring device counts that 55% of the monitored equipment belongs to brand A, 40% of the monitored equipment belongs to brand B, and 5% of the monitored equipment belongs to brand C.
  • the above data monitoring device uses "000” and "001". "And “111” are used to represent the monitored devices of brands A, B and C, respectively.
  • the copied monitored devices when multiple monitored devices are mirrored and copied, the copied monitored devices may have duplicate characteristic values, that is, if the characteristic values of the monitored devices are not unique, the above-mentioned monitored devices are mirrored copy devices.
  • the above-mentioned data monitoring device may further determine whether to register the copied monitored device according to the judgment result.
  • the above-mentioned characteristic value exists in the registration database and the monitored device is not the above-mentioned mirror copying device, it is confirmed that the above-mentioned monitored device is a device that has been legally registered.
  • the monitored device in the case where the monitored device is the above-mentioned mirror copy device, it is determined whether there are duplicate data with the above characteristic value in the registration database of the monitoring platform; if it exists, the above-mentioned data of the monitored device is cleared. Feature value, and perform the above-mentioned step of finding the feature value of the monitored device. Otherwise, confirm that the above-mentioned monitored device is a registered device.
  • the monitored device B is obtained.
  • the monitored device B and the monitored device A are two different devices.
  • the above data monitoring device needs to clear the characteristic value of the monitored device B first, and register the monitored device B on the monitoring platform to be monitored Device B assigns a new characteristic value, so that two devices are managed with different characteristic values.
  • the data monitoring device inquires that the monitored device is a mirrored copy device, the data monitoring device generates the characteristic value of the monitored device according to the characteristic value of the other monitored device copied by the monitored device.
  • the characteristic value of the monitored device A is "A330"
  • the registered device A is mirrored and copied to obtain the monitored devices B and C.
  • the above-mentioned data monitoring device regards "A330-1” and "A330-2” as the characteristic values of the monitored equipment B and C, respectively, according to the characteristic value of the monitored equipment A.
  • the characteristic value of the monitored device A is "A330"
  • the successfully registered monitored device A is mirrored and copied to obtain the monitored devices B and C in the first place and the monitored device D in the second place.
  • the aforementioned data monitoring device regards "A330-10” and “A330-11” as the characteristic values of the monitored equipment B and C, respectively, according to the characteristic value of the monitored equipment A, and regards "A330-20” as the characteristic value of the monitored equipment D.
  • Eigenvalues Eigenvalues.
  • the method before confirming that the monitored device is a registered device, the method further includes: in the case that the monitored device does not have a characteristic value, obtaining the universal unique identification generated by the monitoring platform Code; the above universally unique identification code is used as the characteristic value of the above-mentioned monitored device.
  • the aforementioned universally unique identifier can be a globally unique identifier (globally unique identifier).
  • unique identifier GID
  • the above-mentioned data monitoring device associates and stores the monitored equipment and characteristic values that have an association relationship.
  • the monitored equipment B and C are mirrored copy equipment of the monitored equipment A
  • the above data monitoring device associates the monitored equipment A with B, C for storage
  • the monitored equipment B and C are displayed as the branch options of the monitored equipment A .
  • the monitored device A is the upper-level option of the monitored devices B and C.
  • the monitoring interface of the monitored device A can contain abnormal warning information of the monitored devices B and C.
  • the data monitoring device can be monitored through the monitoring interface.
  • the monitoring interface of device A enters the details pages of monitored devices B and C.
  • different account priorities correspond to different operation permissions.
  • the running account corresponding to the monitored device A can only query the running status of the monitored device A, and cannot uninstall the service on the monitored device A; the running account corresponding to the monitored device B can start and stop the monitoring service of the monitored device B , Query the running log and version information of the monitored device B.
  • the operating account corresponding to the monitored device A can perform all operations on the monitored device A, but before performing the corresponding operations, the operating account corresponding to the monitored device A needs to obtain the authorization instructions of the monitoring platform.
  • the above-mentioned data monitoring device configures the operation corresponding to the above-mentioned account priority according to the actual use requirements of the user.
  • the priority of the running account on the above-mentioned monitored device is a normal account, and it has 3 operation permissions.
  • the above-mentioned data monitoring device can assign these 3 operation permissions to operation A, operation B, and operation according to the actual use needs of the user. C.
  • the above-mentioned data monitoring apparatus uses the acquired characteristic value and the account priority of the monitored device for associated storage, so as to obtain different first data request thresholds of the above-mentioned monitored device.
  • the first data request threshold is a query per second (QPS), and the data monitoring device sets the first data request threshold in a gradient according to the user's account priority .
  • QPS query per second
  • the query rate per second is set to 15; for the monitored device whose account priority is ordinary, the query rate per second is set to 20; for the above account priority is high For monitored devices, the query rate per second is set to 30.
  • the query rate per second for the monitored devices with a low account priority is set to 15; according to the user's setting, the data monitoring device will specify 100 monitored devices with a low priority to query per second The rate is set to 10.
  • the query rate per second is set to 20; according to the user's setting, the above-mentioned data monitoring device sets the designated priority of 50 units as the ordinary monitored equipment’s query rate per second Set to 30.
  • the above-mentioned data monitoring device can adjust the traffic of the monitored device in real time according to the number of users who are currently sending data requests.
  • the monitoring platform sends the currently allowed increase range to the data monitoring device, that is, the data monitoring device can increase the traffic limit of the monitored device accordingly.
  • the monitoring platform will give priority to increasing the traffic limit of the monitored device with a higher account priority in order from high to low.
  • the above-mentioned data monitoring device increases and/or decreases the number of work units corresponding to the above-mentioned monitored equipment according to the above-mentioned account priority; the above-mentioned number of work units is the same as the number of data requests of the above-mentioned monitored equipment Directly proportional.
  • the above data monitoring device increases the number of work units from 2 to 6 by calling back the Kubernetes interface; for accounts For users with low priority, the above-mentioned data monitoring device increases the number of working units from one to two.
  • the above data monitoring device when the number of data requests of the monitored device decreases, for users with high account priority, the above data monitoring device reduces the number of work units from the original 6 to 4 through the callback Kubernetes interface; For users with low account priority, the above-mentioned data monitoring device reduces the number of working units from the original four to one.
  • the data monitoring device preferentially increases the number of work units of the monitored device with a higher account priority.
  • the above-mentioned data monitoring device sends prompt information to the monitored equipment according to the current number of data requests.
  • the above-mentioned prompt information can be the estimated time of the task calculated by the above-mentioned monitoring platform, can also suggest the waiting time for the user, and can also be the information of the idle running time period.
  • the above-mentioned data monitoring device can send idle running time period information to users with low account priority, suggesting users with low account priority to change the upload task time, and select a relatively idle time period to perform the data upload task.
  • the data monitoring device determines whether any of the following conditions is met: whether the device information of the monitored device is updated, or whether the version information of the data monitoring device is updated; when any of the above conditions is met Send update information to the monitoring platform, where the update information includes the device information of the monitored device and/or the version information of the data monitoring device, and the device information includes name information and/or network information.
  • the registration status of each monitored device can be confirmed, thereby realizing the monitoring of all newly added devices on the platform. Management improves the monitoring effect.
  • FIG. 3 is a schematic flowchart of another data monitoring method provided by an embodiment of the present application, and the foregoing method includes.
  • step S106 of the above-mentioned embodiment in FIG. 3, which will not be repeated here.
  • the aforementioned interface alarm information includes one or more of the following information: alarm information about the number of data requests, alarm information about the hypertext transfer protocol status code, and alarm information about the total number of calls.
  • the above confirming that the monitored device meets the alarm condition includes: obtaining the number of data requests, the total number of calls, and the hypertext transfer protocol status code currently corresponding to the monitored device; determining whether any of the following conditions Satisfaction: Whether the number of data requests currently corresponding to the monitored device exceeds the second data request threshold, or whether the total number of calls exceeds the number corresponding to the account priority, or whether the hypertext transfer protocol status code is the same as the preset value; When any of the above conditions are met, confirm that the above-mentioned monitored equipment meets the alarm conditions.
  • the data monitoring device when the data monitoring device receives the "500" hypertext transfer protocol status code sent by the monitored device, the data monitoring device confirms that the monitored device meets the alarm condition.
  • the monitored device and the data monitoring device are connected by HTTPS short connection, that is, the data monitoring device can calculate and control the QPS of a specific user by counting the number of interfaces called by the monitored device.
  • HTTPS short connection that is, the data monitoring device can calculate and control the QPS of a specific user by counting the number of interfaces called by the monitored device.
  • the aforementioned data monitoring device counts the number of interfaces called by the monitored device, and combines the statistical result with the package corresponding to the user to obtain the usage fee corresponding to the monitored device.
  • the above-mentioned user’s package includes 1000 free calls, and the part that exceeds 1000 but does not exceed 5000 will be charged at 0.05 yuan per time for the number of calls to the monitored device.
  • the monitored device corresponding to the user has made 2000 calls, that is, the user also needs to pay a fee of 50 yuan for the use.
  • the above-mentioned data monitoring apparatus collects statistics on the usage expenses of the monitored equipment corresponding to the time period according to the usage time period of the monitored equipment.
  • the above-mentioned user’s package does not include the number of free calls, and billing is entirely based on the actual number of calls.
  • the above-mentioned monitoring platform stipulates that during busy periods, the number of calls to monitored equipment is charged at 0.1 yuan/time; in normal time periods, the number of calls to monitored equipment is charged at 0.05 yuan/time; during idle time periods , The number of invocations of the monitored equipment is charged at 0.03 yuan/time.
  • the monitored device corresponding to the user made 1000 calls during busy time, 2000 calls during normal time, and 1000 calls during idle time, that is, the user needs to pay 230 yuan.
  • the above-mentioned data monitoring device obtains the usage fee corresponding to the monitored device according to the number of monitored devices and the number of calls.
  • the above-mentioned data monitoring device charges the monitored device with a small number of calls according to the actual number of calls of the monitored device; for the monitored device with a large number of calls, it charges according to the package corresponding to the whole machine.
  • the characteristic value of the monitored device is detected based on the registration database of the monitoring platform, and the condition of the monitored device that meets the alarm conditions is sent to the monitoring platform, and the registration and usage status of each monitored device can be confirmed, thereby The management of all new equipment on the platform is realized, and the monitoring effect is improved.
  • the embodiment of the present application also provides a data monitoring device.
  • the device includes a module for executing the method described in FIG. 1 or FIG. 2, and is configured on a server.
  • FIG. 4 is a schematic block diagram of a data monitoring device provided in an embodiment of the present application.
  • the data monitoring device of this embodiment may include: a feature unit 301, a judgment unit 302, a determination unit 303, an acquisition unit 304, a control unit 305, and a sending unit 306.
  • the characteristic unit 301 is used to find the characteristic value of the monitored device.
  • the judging unit 302 is configured to judge whether the monitored device is a mirror copying device when the above-mentioned characteristic value exists in the above-mentioned monitored device.
  • the determining unit 303 is configured to confirm that the monitored device is a registered device when the monitored device is not the mirror copy device.
  • the obtaining unit 304 is configured to obtain the account priority corresponding to the above-mentioned monitored device.
  • the acquiring unit 304 is further configured to acquire the first data request threshold corresponding to the monitored device according to the corresponding relationship between the account priority and the data request threshold.
  • the control unit 305 is configured to reject the data request sent by the monitored device when the number of data requests of the monitored device reaches the first data request threshold.
  • the judgment unit 302 is further configured to judge whether there is data that is duplicated with the characteristic value in the registration database of the monitoring platform when the monitored device is the mirror copy device.
  • the determination unit 303 is specifically configured to, if it exists, clear the characteristic value of the monitored device, and execute the step of finding the characteristic value of the monitored device; otherwise, confirm the monitored device The device is a registered device.
  • the feature unit 301 is also used to obtain the universal unique identification code generated by the monitoring platform in the case that the monitored device does not have a feature value; As the characteristic value of the above-mentioned monitored device.
  • control unit 305 is further configured to increase and/or decrease the number of work units corresponding to the monitored device according to the account priority; the number of work units is the same as that of the monitored device. Is directly proportional to the number of data requests.
  • the above-mentioned device further includes: a sending unit 306, configured to send interface alarm information to the above-mentioned monitoring platform when it is confirmed that the above-mentioned monitored equipment meets the alarm condition;
  • the above-mentioned interface alarm information includes the following: One or more types of information: alarm information about the number of data requests, alarm information about the hypertext transfer protocol status code, and alarm information about the total number of calls.
  • the sending unit 306 is specifically configured to obtain the number of data requests, the total number of calls, and the hypertext transfer protocol status code currently corresponding to the monitored device; and to determine whether any of the following conditions is met: the above Whether the number of data requests currently corresponding to the monitored device exceeds the second data request threshold, or whether the above-mentioned total number of calls exceeds the number of times corresponding to the above-mentioned account priority, or whether the above-mentioned hypertext transfer protocol status code is the same as the preset value; When a condition is met, confirm that the above-mentioned monitored equipment meets the alarm condition.
  • the above-mentioned feature unit 301 is further configured to determine whether the naming information sent by the user is received before obtaining the universally unique identification code generated for the monitored device in the registration database of the monitoring platform ; In the case of receiving the naming information, send the naming information to the monitoring platform.
  • FIG. 5 is a schematic block diagram of a server provided by an embodiment of the present application.
  • the server includes a processor 401, an input device 402, an output device 403, and a memory 404.
  • the aforementioned processor 401, input device 402, output device 403, and memory 404 may be connected to each other through a bus.
  • the connection through a bus is taken as an example.
  • the input device 402 is used to input data and/or signals
  • the output device 403 is used to output data and/or signals.
  • the output device and the input device may be independent devices or an integrated device.
  • the memory 404 is used to store a computer program, and the computer program includes program instructions.
  • the processor 401 is used to execute the program instructions stored in the memory 404. Wherein, the processor 401 is configured to call the program instructions to execute: find the characteristic value of the monitored device; in the case that the monitored device has the characteristic value, determine whether the monitored device is a mirror copy device In the case that the monitored device is not the mirror copy device, confirm that the monitored device is a registered device; obtain the account priority corresponding to the monitored device; according to the account priority and data request The corresponding relationship of the threshold value, the first data request threshold corresponding to the monitored device is obtained; when the number of data requests of the monitored device reaches the first data request threshold, the data sent by the monitored device is rejected ask.
  • the processor 401 is further configured to: in the case that the monitored device is the mirror copy device, determine whether there is a duplicate of the characteristic value in the registration database of the monitoring platform. Data; if it exists, clear the characteristic value of the monitored device, and execute the step of finding the characteristic value of the monitored device; otherwise, confirm that the monitored device is a registered device.
  • the processor 401 is further configured to: before confirming that the monitored device is a registered device, if the monitored device does not have the characteristic value, obtain The universal unique identification code generated for the monitored device in the registration database of the monitoring platform; the universal unique identification code is used as the characteristic value of the monitored device.
  • the processor 401 is further configured to: increase and/or decrease the number of work units corresponding to the monitored device according to the account priority; The number of data requests from the monitored device is directly proportional.
  • the processor 401 is further configured to: upon confirming that the monitored device meets the alarm condition, send interface alarm information to the monitoring platform; the interface alarm information includes the following: One or more types of information: alarm information about the number of data requests, alarm information about the hypertext transfer protocol status code, and alarm information about the total number of calls.
  • the processor 401 is specifically configured to: obtain the current number of data requests, the total number of calls, and the hypertext transfer protocol status code corresponding to the monitored device; and determine whether any of the following conditions is met: Whether the number of data requests currently corresponding to the monitored device exceeds the second data request threshold, or whether the total number of calls exceeds the number corresponding to the account priority, or whether the hypertext transfer protocol status code is consistent with a preset value Same; when any one of the conditions is met, confirm that the monitored device meets the alarm condition.
  • the processor 401 is further configured to: before obtaining the universal unique identification code generated for the monitored device in the registration database of the monitoring platform, determine whether the name sent by the user is received Information; in the case of receiving the naming information, send the naming information to the monitoring platform.
  • the so-called processor 401 may be a central processing unit (Central Processing Unit, CPU).
  • the processor 401 may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSPs), and application-specific integrated circuits (Application Specific Integrated Circuits). Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the memory 404 may include a read-only memory and a random access memory, and provides instructions and data to the processor 401.
  • a part of the memory 404 may also include a non-volatile random access memory.
  • the memory 404 may also store device type information.
  • the processor 401, input device 402, output device 403, and memory 404 described in the embodiment of the present application can execute the implementation described in the method embodiment described in FIG. 2 or FIG. 3 provided by the embodiment of the present application.
  • the implementation of the data monitoring device described in the embodiment of the present application can also be implemented, which will not be repeated here.
  • a computer-readable storage medium In another embodiment of the present application, a computer-readable storage medium is provided.
  • the computer-readable storage medium may be non-volatile or volatile.
  • the computer-readable storage medium stores a computer program, and the computer program includes program instructions that are implemented when executed by a processor: to find a characteristic value of a monitored device; the characteristic value exists in the monitored device In the case of, determine whether the monitored device is a mirror copy device; in the case that the monitored device is not the mirror copy device, confirm that the monitored device is a registered device; obtain the monitored device Corresponding account priority; obtain the first data request threshold corresponding to the monitored device according to the corresponding relationship between the account priority and the data request threshold; the number of data requests on the monitored device reaches the first data In the case of requesting the threshold, the data request sent by the monitored device is rejected.
  • the computer-readable storage medium may be the internal storage unit of the server described in any of the foregoing embodiments, such as the hard disk or memory of the server.
  • the computer-readable storage medium may also be an external storage device of the server, such as a plug-in hard disk equipped on the server, a smart memory card (Smart Media Card, SMC), and a secure digital (Secure Digital). Digital, SD) card, flash memory card (Flash Card) and so on.
  • the computer-readable storage medium may also include both an internal storage unit of the server and an external storage device.
  • the computer-readable storage medium is used to store the computer program and other programs and data required by the server.
  • the computer-readable storage medium can also be used to temporarily store data that has been output or will be output.
  • the program can be stored in a computer readable storage medium. During execution, it may include the procedures of the above-mentioned method embodiments.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random storage memory (Random Access Memory, RAM) etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present application relates to data monitoring and is applied to the field of big data. Disclosed are a data monitoring method and a related apparatus. The method is applied to the technical field of data monitoring, and comprises: searching for a feature value of a monitored device; in the case that the monitored device has the feature value, determining whether the monitored device is a mirror-copied device; in the case that the monitored device is not the mirror-copied device, confirming the monitored device as a registered device; obtaining an account priority corresponding to the monitored device; obtaining, according to a correspondence between the account priority and a data request threshold, a first data request threshold corresponding to the monitored device; and in the case that the number of data requests of the monitored device reaches the first data request threshold, rejecting the data request issued by the monitored device. The implementation of the present application can achieve management of all newly added devices on a platform and enhance the monitoring effect.

Description

一种数据监控方法及装置Data monitoring method and device
本申请要求于2020年2月17日提交中国专利局、申请号为202010098060.7、发明名称为“一种数据监控方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on February 17, 2020, the application number is 202010098060.7, and the invention title is "a data monitoring method and device", the entire content of which is incorporated into this application by reference .
技术领域Technical field
本申请涉及大数据领域,尤其涉及一种数据监控方法及装置。This application relates to the field of big data, and in particular to a data monitoring method and device.
背景技术Background technique
随着云技术的不断发展,发明人意识到,云监控平台被广泛应用于管理被监控设备发送的采集数据,从而达到对多个被监控设备进行统一管理的目的。With the continuous development of cloud technology, the inventor realized that the cloud monitoring platform is widely used to manage the collected data sent by the monitored device, so as to achieve the purpose of unified management of multiple monitored devices.
现有云监控厂商为了保障云监控平台产品的安全性,通常只能管理内部网络中的特定品牌的机器。但在实际的使用过程中,用户需要管理不同厂商生产的机器,不仅仅为该厂商生产的机器。现有的云监控平台产品不能适应用户不断增长的监控需求,在使用过程中,存在平台不能对新增设备进行管理,设备监控失联等问题。In order to ensure the security of cloud monitoring platform products, existing cloud monitoring vendors usually can only manage specific brands of machines in the internal network. However, in actual use, users need to manage machines produced by different manufacturers, not just those produced by that manufacturer. The existing cloud monitoring platform products cannot adapt to the ever-increasing monitoring needs of users. In the process of use, there are problems such as the platform's inability to manage new equipment and the disconnection of equipment monitoring.
技术问题technical problem
有鉴于此,本申请实施例提供了一种数据监控方法及相关设备,以解决现有的云监控平台产品不能适应用户不断增长的监控需求,在使用过程中,存在平台不能对新增设备进行管理,设备监控失联等问题。In view of this, the embodiments of this application provide a data monitoring method and related equipment to solve the problem that the existing cloud monitoring platform products cannot meet the increasing monitoring needs of users. During the use process, there are platforms that cannot perform new equipment. Management, equipment monitoring and other problems.
技术解决方案Technical solutions
本申请实施例提供了一种数据监控方法及装置,可以将不同新增设备纳入平台的管理范围,提升了监控效果。The embodiments of the present application provide a data monitoring method and device, which can incorporate different newly-added devices into the management scope of the platform, thereby improving the monitoring effect.
第一方面,本申请实施例提供了一种数据监控方法,上述方法包括:查找被监控设备的特征值;在上述被监控设备存在上述特征值的情况下,判断上述被监控设备是否为镜像复制设备;在上述被监控设备不为上述镜像复制设备的情况下,确认上述被监控设备为已注册设备;获取上述被监控设备对应的账户优先级;根据上述账户优先级和数据请求阈值的对应关系,获取上述被监控设备对应的第一数据请求阈值;在上述被监控设备的数据请求数达到上述第一数据请求阈值的情况下,拒绝上述被监控设备发出的数据请求。In the first aspect, an embodiment of the present application provides a data monitoring method. The above method includes: searching for the characteristic value of the monitored device; in the case that the monitored device has the above characteristic value, judging whether the monitored device is a mirror copy Device; In the case that the monitored device is not the mirror copy device, confirm that the monitored device is a registered device; obtain the account priority corresponding to the monitored device; according to the corresponding relationship between the account priority and the data request threshold Acquire the first data request threshold corresponding to the monitored device; in the case that the number of data requests of the monitored device reaches the first data request threshold, reject the data request sent by the monitored device.
第二方面,本申请实施例提供了一种数据监控装置,该数据监控装置包括用于执行上述第一方面的方法的模块。In a second aspect, an embodiment of the present application provides a data monitoring device, which includes a module for executing the method of the first aspect.
第三方面,本申请实施例提供了一种服务器,该服务器包括处理器和存储器,所述处理器和存储器相互连接,其中,所述存储器用于存储支持服务器执行上述方法的计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行上述第一方面的方法。In a third aspect, an embodiment of the present application provides a server, the server includes a processor and a memory, the processor and the memory are connected to each other, wherein the memory is used to store a computer program that supports the server to execute the above method, and The computer program includes program instructions, and the processor is configured to invoke the program instructions to execute the method of the first aspect described above.
第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行上述第一方面的方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium that stores a computer program, and the computer program includes program instructions that, when executed by a processor, cause all The processor executes the method of the first aspect described above.
有益效果Beneficial effect
本申请实施例,可以将不同新增设备纳入平台的管理范围,提升了监控效果。In the embodiments of this application, different newly-added devices can be included in the management scope of the platform, which improves the monitoring effect.
附图说明Description of the drawings
图1是本申请实施例提供的一种数据监控系统的架构图。Fig. 1 is an architecture diagram of a data monitoring system provided by an embodiment of the present application.
图2是本申请实施例提供的一种数据监控方法的流程图。Fig. 2 is a flowchart of a data monitoring method provided by an embodiment of the present application.
图3是本申请实施例提供的另一种数据监控方法的流程图。Fig. 3 is a flowchart of another data monitoring method provided by an embodiment of the present application.
图4是本申请实施例提供的一种数据监控装置的结构示意图。Fig. 4 is a schematic structural diagram of a data monitoring device provided by an embodiment of the present application.
图5是本申请实施例提供的一种服务器的示意性框图。Fig. 5 is a schematic block diagram of a server provided by an embodiment of the present application.
本发明的实施方式Embodiments of the present invention
应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described here are only used to explain the application, and are not used to limit the application.
本申请的技术方案可应用于大数据技术领域,可将不同新增设备纳入平台的管理范围,提升了监控效果。The technical solution of the present application can be applied to the field of big data technology, and different newly-added devices can be included in the management scope of the platform, which improves the monitoring effect.
由于监控装置对每一台已注册的被监控设备都分配了特征值,如果需要确认被监控设备的注册情况,仅需查找对应被监控设备的特征值,且使用特征值区分被监控设备,可以限制每一台被监控设备的数据请求数,因此本申请提出的一种数据监控方法可以实现了将不同新增设备纳入平台的管理范围,提升了监控效果。Since the monitoring device assigns a characteristic value to each registered monitored device, if you need to confirm the registration of the monitored device, you only need to find the characteristic value corresponding to the monitored device, and use the characteristic value to distinguish the monitored device. The number of data requests for each monitored device is limited. Therefore, a data monitoring method proposed in this application can realize that different newly added devices are included in the management scope of the platform, and the monitoring effect is improved.
请参阅图1,图1是本申请实施例提供的一种数据监控系统的架构图。如图1所示,该系统中包括被监控设备10、数据监控装置20和监控平台30。在一种可能的实现方式中,被监控设备10可以为手机、平板电脑、笔记本电脑等便携式终端,也可以为台式电脑等非便携式终端,或者为其他能够上传数据的设备。Please refer to FIG. 1. FIG. 1 is an architecture diagram of a data monitoring system provided by an embodiment of the present application. As shown in Figure 1, the system includes a monitored device 10, a data monitoring device 20, and a monitoring platform 30. In a possible implementation manner, the monitored device 10 may be a portable terminal such as a mobile phone, a tablet computer, or a notebook computer, or a non-portable terminal such as a desktop computer, or other devices capable of uploading data.
需要说明的是,在图1所示的数据监控系统中:被监控设备10,用于向数据监控装置20提供特征值。It should be noted that in the data monitoring system shown in FIG. 1, the monitored device 10 is used to provide characteristic values to the data monitoring device 20.
数据监控装置20,用于获得被监控设备10的特征值;数据监控装置20,还用于确认上述特征值是否存在于监控平台30的注册数据库中;数据监控装置20,还用于获取被监控设备10的账户优先级和对应的第一数据请求阈值;数据监控装置20,还用于在被监控设备10的数据请求数达到上述第一数据请求阈值的情况下,拒绝上述被监控设备发出的数据请求。The data monitoring device 20 is used to obtain the characteristic value of the monitored device 10; the data monitoring device 20 is also used to confirm whether the above characteristic value exists in the registration database of the monitoring platform 30; the data monitoring device 20 is also used to obtain The account priority of the device 10 and the corresponding first data request threshold; the data monitoring device 20 is also used to reject the request sent by the monitored device 10 when the number of data requests of the monitored device 10 reaches the first data request threshold. Data request.
监控平台30,用于向数据监控装置20提供已注册设备的特征值。The monitoring platform 30 is used to provide the data monitoring device 20 with the characteristic values of the registered equipment.
在一种可能的实现方式中,数据监控装置20在被监控设备10不存在特征值的情况下,获取监控平台30生成的通用唯一标识码,将该通用唯一标识码作为上述被监控设备10的特征值。In a possible implementation, the data monitoring device 20 obtains the universally unique identification code generated by the monitoring platform 30 when the monitored device 10 does not have a characteristic value, and uses the universally unique identification code as the above-mentioned monitored device 10 Eigenvalues.
请参阅图2,图2是本申请实施例提供的一种数据监控方法的流程示意图,上述方法包括。Please refer to FIG. 2. FIG. 2 is a schematic flowchart of a data monitoring method provided by an embodiment of the present application, and the foregoing method includes.
S101、查找被监控设备的特征值。S101. Find the characteristic value of the monitored device.
本申请实施例中,被监控设备在监控平台中进行合法注册后,会得到指定的特征值,使得每台被监控设备都能够使用该特征值进行区分。监控装置启动或者升级之后,都需要先判断对应的被监控设备是否已经在监控平台中进行了注册。In the embodiment of the present application, after the monitored device is legally registered in the monitoring platform, it will obtain the specified characteristic value, so that each monitored device can be distinguished by using the characteristic value. After the monitoring device is started or upgraded, it is necessary to first determine whether the corresponding monitored device has been registered in the monitoring platform.
在一种可能的实现方式中,上述监控平台使用统一的命名规则为被监控设备生成不同的特征值。In a possible implementation manner, the aforementioned monitoring platform uses a uniform naming rule to generate different characteristic values for the monitored device.
例如,特征值的前3位用于表示被监控设备所处的地区,特征值的第4~6位用于表示被监控设备的型号,特征值的最后一位用于表示被监控设备是否为镜像复制设备。For example, the first 3 digits of the characteristic value are used to indicate the area where the monitored device is located, the 4th to 6th digits of the characteristic value are used to indicate the model of the monitored device, and the last digit of the characteristic value is used to indicate whether the monitored device is Mirror copy equipment.
进一步的,判断是否接收到用户发送的命名信息;在接收到所述命名信息的情况下,向所述监控平台发送所述命名信息。Further, it is determined whether the naming information sent by the user is received; in the case of receiving the naming information, the naming information is sent to the monitoring platform.
进一步的,上述数据监控装置接收用户发送的命名字段,并随机选择特征值的特定位置的数值用于表示用户设定的命名字段。Further, the above-mentioned data monitoring device receives the named field sent by the user, and randomly selects the numerical value of the specific position of the characteristic value to represent the named field set by the user.
例如,上述数据监控装置接收到用户发送的命名字段为“型号”,并且该命名字段需要用特征值中的3位数字表示,上述数据监控装置随机选择特征值的第5~7位数字表示该命名字段。应理解,上述说明仅仅是用作举例,本申请实施例不对特征值的命名规则作具体限定。For example, the data monitoring device receives the naming field sent by the user as "model", and the naming field needs to be represented by 3 digits in the characteristic value. The data monitoring device randomly selects the 5th to 7th digits of the characteristic value to indicate the Name the field. It should be understood that the foregoing description is only used as an example, and the embodiment of the present application does not specifically limit the naming rule of the characteristic value.
又例如,在上述数据监控装置接收到用户输入的“甲地”的情况下,将随机生成的“02”用于表示“甲地”,将随机生成的“33”用于表示“乙地”。进一步的,上述数据监控装置统计到55%的被监控设备属于品牌A,40%的被监控设备属于品牌B,5%的被监控设备属于品牌C,上述数据监控装置使用“000”、“001”和“111”用于分别表示品牌A、B及C的被监控设备。For another example, in the case where the above-mentioned data monitoring device receives the "A place" input by the user, the randomly generated "02" is used to indicate "A land", and the randomly generated "33" is used to indicate "B land". . Furthermore, the above data monitoring device counts that 55% of the monitored equipment belongs to brand A, 40% of the monitored equipment belongs to brand B, and 5% of the monitored equipment belongs to brand C. The above data monitoring device uses "000" and "001". "And "111" are used to represent the monitored devices of brands A, B and C, respectively.
S102、在上述被监控设备存在上述特征值的情况下,判断上述被监控设备是否为镜像复制设备。S102: In the case where the above-mentioned monitored device has the above-mentioned characteristic value, determine whether the above-mentioned monitored device is a mirror copying device.
本申请方案中,在镜像复制多个被监控设备时,复制得到的被监控设备可能会存在重复的特征值,即被监控设备的特征值如果不唯一,则上述被监控设备为镜像复制设备。为了保障后台服务的安全与稳定,上述数据监控装置可以根据判断结果,进一步,确定是否要为复制得到的被监控设备进行注册。In the solution of the present application, when multiple monitored devices are mirrored and copied, the copied monitored devices may have duplicate characteristic values, that is, if the characteristic values of the monitored devices are not unique, the above-mentioned monitored devices are mirrored copy devices. In order to ensure the security and stability of the background service, the above-mentioned data monitoring device may further determine whether to register the copied monitored device according to the judgment result.
S103、在上述被监控设备不为上述镜像复制设备的情况下,确认上述被监控设备为已注册设备。S103: In the case that the monitored device is not the mirror copy device, confirm that the monitored device is a registered device.
具体的,在上述特征值存在于注册数据库,且被监控设备不为上述镜像复制设备的情况下,确认上述被监控设备为已经经过合法注册的设备。Specifically, in the case where the above-mentioned characteristic value exists in the registration database and the monitored device is not the above-mentioned mirror copying device, it is confirmed that the above-mentioned monitored device is a device that has been legally registered.
在一种可能的实现方式中,在上述被监控设备为上述镜像复制设备的情况下,判断监控平台的注册数据库中是否存在与上述特征值重复的数据;若存在,清除上述被监控设备的上述特征值,并执行上述查找被监控设备的特征值的步骤。否则,确认上述被监控设备为已注册设备。In a possible implementation, in the case where the monitored device is the above-mentioned mirror copy device, it is determined whether there are duplicate data with the above characteristic value in the registration database of the monitoring platform; if it exists, the above-mentioned data of the monitored device is cleared. Feature value, and perform the above-mentioned step of finding the feature value of the monitored device. Otherwise, confirm that the above-mentioned monitored device is a registered device.
例如,对注册成功的被监控设备A进行镜像复制后,得到被监控设备B。此时,被监控设备B已经与被监控设备A为两台不同的设备,上述数据监控装置需要先清除被监控设备B的特征值,并在监控平台对被监控设备B进行注册,为被监控设备B分配新的特征值,从而采用不同的特征值对两个设备进行管理。For example, after mirroring and copying the monitored device A that is successfully registered, the monitored device B is obtained. At this time, the monitored device B and the monitored device A are two different devices. The above data monitoring device needs to clear the characteristic value of the monitored device B first, and register the monitored device B on the monitoring platform to be monitored Device B assigns a new characteristic value, so that two devices are managed with different characteristic values.
进一步的,在上述数据监控装置查询到上述被监控设备为镜像复制设备的情况下,上述数据监控装置根据该被监控设备复制的其他被监控设备的特征值,生成该被监控设备的特征值。Further, when the data monitoring device inquires that the monitored device is a mirrored copy device, the data monitoring device generates the characteristic value of the monitored device according to the characteristic value of the other monitored device copied by the monitored device.
例如,被监控设备A的特征值为“A330”,对注册成功的被监控设备A进行镜像复制,得到被监控设备B和C。上述数据监控装置依据上述被监控设备A的特征值,将“A330-1”和“A330-2”分别作为被监控设备B和C的特征值。For example, the characteristic value of the monitored device A is "A330", and the registered device A is mirrored and copied to obtain the monitored devices B and C. The above-mentioned data monitoring device regards "A330-1" and "A330-2" as the characteristic values of the monitored equipment B and C, respectively, according to the characteristic value of the monitored equipment A.
又例如,被监控设备A的特征值为“A330”,对注册成功的被监控设备A进行镜像复制,得到在甲地的被监控设备B和C,以及在乙地的被监控设备D。上述数据监控装置根据上述被监控设备A的特征值,将“A330-10”和“A330-11”分别作为被监控设备B和C的特征值,将“A330-20”作为被监控设备D的特征值。For another example, the characteristic value of the monitored device A is "A330", and the successfully registered monitored device A is mirrored and copied to obtain the monitored devices B and C in the first place and the monitored device D in the second place. The aforementioned data monitoring device regards "A330-10" and "A330-11" as the characteristic values of the monitored equipment B and C, respectively, according to the characteristic value of the monitored equipment A, and regards "A330-20" as the characteristic value of the monitored equipment D. Eigenvalues.
在另一种可能的实现方式中,在上述确认上述被监控设备为已注册设备之前,上述方法还包括:在上述被监控设备不存在特征值的情况下,获取上述监控平台生成的通用唯一识别码;将上述通用唯一识别码作为上述被监控设备的特征值。In another possible implementation, before confirming that the monitored device is a registered device, the method further includes: in the case that the monitored device does not have a characteristic value, obtaining the universal unique identification generated by the monitoring platform Code; the above universally unique identification code is used as the characteristic value of the above-mentioned monitored device.
例如,上述通用唯一识别码(universally unique identifier,UUID)可以为全局唯一标识符(globally unique identifier,GUID),也可以使用全局唯一标识符(globally unique identifier,GUID)对上述被监控设备进行区分。应理解,本申请实施例中对通用唯一识别码的生成方式不作任何具体限定。For example, the aforementioned universally unique identifier (UUID) can be a globally unique identifier (globally unique identifier). unique identifier (GUID), you can also use a globally unique identifier (GUID) to distinguish the above-mentioned monitored devices. It should be understood that the method for generating the universal unique identification code is not specifically limited in the embodiments of the present application.
进一步的,上述数据监控装置将具有关联关系的被监控设备和特征值进行关联存储。Further, the above-mentioned data monitoring device associates and stores the monitored equipment and characteristic values that have an association relationship.
例如,被监控设备B、C是被监控设备A的镜像复制设备,上述数据监控装置将被监控设备A和B、C进行关联存储,被监控设备B和C以被监控设备A的分支选项显示。For example, the monitored equipment B and C are mirrored copy equipment of the monitored equipment A, the above data monitoring device associates the monitored equipment A with B, C for storage, and the monitored equipment B and C are displayed as the branch options of the monitored equipment A .
进一步的,被监控设备A作为被监控设备B和C的上一级选项,上述被监控设备A的监控界面上可以包含被监控设备B和C的异常警告信息,上述数据监控装置可以通过被监控设备A的监控界面进入被监控设备B和C的详情页面。Further, the monitored device A is the upper-level option of the monitored devices B and C. The monitoring interface of the monitored device A can contain abnormal warning information of the monitored devices B and C. The data monitoring device can be monitored through the monitoring interface. The monitoring interface of device A enters the details pages of monitored devices B and C.
S104、获取上述被监控设备对应的账户优先级。S104. Obtain the account priority corresponding to the monitored device.
在一种可能的实现方式中,不同的账户优先级对应不同的操作权限。In a possible implementation, different account priorities correspond to different operation permissions.
例如,被监控设备A对应的运行账户只能查询被监控设备A的运行状态,不能卸载被监控设备A上的服务;被监控设备B对应的运行账户可以启动、停止被监控设备B的监控服务,查询被监控设备B的运行日志和版本信息。For example, the running account corresponding to the monitored device A can only query the running status of the monitored device A, and cannot uninstall the service on the monitored device A; the running account corresponding to the monitored device B can start and stop the monitoring service of the monitored device B , Query the running log and version information of the monitored device B.
又例如,被监控设备A对应的运行账户可以对被监控设备A进行所有操作,但是在执行对应操作之前,上述被监控设备A对应的运行账户需要得到上述监控平台的授权指令。For another example, the operating account corresponding to the monitored device A can perform all operations on the monitored device A, but before performing the corresponding operations, the operating account corresponding to the monitored device A needs to obtain the authorization instructions of the monitoring platform.
进一步的,上述数据监控装置根据用户的实际使用需求,对上述账户优先级对应的操作进行配置。Further, the above-mentioned data monitoring device configures the operation corresponding to the above-mentioned account priority according to the actual use requirements of the user.
例如,在上述被监控设备上的运行账户优先级为普通账户,拥有3项操作权限,上述数据监控装置可以根据用户的实际使用需求,将这3项操作权限分配给操作A、操作B以及操作C。For example, the priority of the running account on the above-mentioned monitored device is a normal account, and it has 3 operation permissions. The above-mentioned data monitoring device can assign these 3 operation permissions to operation A, operation B, and operation according to the actual use needs of the user. C.
S105、根据上述账户优先级和数据请求阈值的对应关系,获取上述被监控设备对应的第一数据请求阈值。S105. Obtain the first data request threshold corresponding to the monitored device according to the corresponding relationship between the account priority and the data request threshold.
具体的,上述数据监控装置使用获取的特征值和被监控设备的账户优先级进行关联存储,从而获取上述被监控设备的不同的第一数据请求阈值。Specifically, the above-mentioned data monitoring apparatus uses the acquired characteristic value and the account priority of the monitored device for associated storage, so as to obtain different first data request thresholds of the above-mentioned monitored device.
在一种可能的实现方式中,上述第一数据请求阈值为每秒查询率(query per second ,QPS),上述数据监控装置根据用户的账户优先级,对上述第一数据请求阈值进行梯度化设置。In a possible implementation manner, the first data request threshold is a query per second (QPS), and the data monitoring device sets the first data request threshold in a gradient according to the user's account priority .
例如,对于上述账户优先级为低的被监控设备,每秒查询率均设置为15;对于上述账户优先级为普通的被监控设备,每秒查询率设置为20;对于上述账户优先级为高的被监控设备,每秒查询率设置为30。For example, for the monitored device whose account priority is low, the query rate per second is set to 15; for the monitored device whose account priority is ordinary, the query rate per second is set to 20; for the above account priority is high For monitored devices, the query rate per second is set to 30.
又例如,对于上述账户优先级为低的被监控设备,每秒查询率均设置为15;根据用户的设置,上述数据监控装置将指定的100台优先级为低的被监控设备的每秒查询率设置为10。For another example, the query rate per second for the monitored devices with a low account priority is set to 15; according to the user's setting, the data monitoring device will specify 100 monitored devices with a low priority to query per second The rate is set to 10.
又例如,对于上述账户优先级为普通的被监控设备,每秒查询率设置为20;根据用户的设置,上述数据监控装置将指定的50台优先级为普通的被监控设备的每秒查询率设置为30。For another example, for the above-mentioned account priority of ordinary monitored equipment, the query rate per second is set to 20; according to the user's setting, the above-mentioned data monitoring device sets the designated priority of 50 units as the ordinary monitored equipment’s query rate per second Set to 30.
S106、在上述被监控设备的数据请求数达到上述第一数据请求阈值的情况下,拒绝上述被监控设备发出的数据请求。S106: When the number of data requests of the monitored device reaches the first data request threshold, reject the data request sent by the monitored device.
在一种可能的实现方式中,上述数据监控装置可以根据当前发出数据请求的用户数量,实时对被监控设备的流量进行调整。In a possible implementation manner, the above-mentioned data monitoring device can adjust the traffic of the monitored device in real time according to the number of users who are currently sending data requests.
例如,当前发出请求的用户数量较少,监控平台向数据监控装置发送当前允许的上调幅度,即数据监控装置可以对应将被监控设备的流量限制进行上调。For example, if the number of users currently requesting is small, the monitoring platform sends the currently allowed increase range to the data monitoring device, that is, the data monitoring device can increase the traffic limit of the monitored device accordingly.
又例如,当前用户数量较多,监控平台为保障被监控设备的运行流程,按照等级从高到低的顺序,优先上调账户优先级较高的被监控设备的流量限制。For another example, there are currently a large number of users. In order to ensure the operation process of the monitored device, the monitoring platform will give priority to increasing the traffic limit of the monitored device with a higher account priority in order from high to low.
在另一种可能的实现方式中,上述数据监控装置按照上述账户优先级对上述被监控设备对应的工作单元数量进行增加和/或减少操作;上述工作单元数量与上述被监控设备的数据请求数成正比。In another possible implementation manner, the above-mentioned data monitoring device increases and/or decreases the number of work units corresponding to the above-mentioned monitored equipment according to the above-mentioned account priority; the above-mentioned number of work units is the same as the number of data requests of the above-mentioned monitored equipment Directly proportional.
例如,在上述被监控设备的数据请求数增加的情况下,对于账户优先级高的用户,上述数据监控装置通过回调Kubernetes接口,将工作单元的数量由原来的2个增加到6个;对于账户优先级低的用户,上述数据监控装置将工作单元的数量由原来的1个增加到2个。For example, when the number of data requests of the monitored device increases, for users with high account priority, the above data monitoring device increases the number of work units from 2 to 6 by calling back the Kubernetes interface; for accounts For users with low priority, the above-mentioned data monitoring device increases the number of working units from one to two.
又例如,在上述被监控设备的数据请求数减少的情况下,对于账户优先级高的用户,上述数据监控装置通过回调Kubernetes接口,将工作单元的数量由原来的6个减少到4个;对于账户优先级低的用户,上述数据监控装置将工作单元的数量由原来的4个减少到1个。For another example, when the number of data requests of the monitored device decreases, for users with high account priority, the above data monitoring device reduces the number of work units from the original 6 to 4 through the callback Kubernetes interface; For users with low account priority, the above-mentioned data monitoring device reduces the number of working units from the original four to one.
又例如,在上述被监控设备的数据请求数增加,且上述数据监控装置能够增加的工作单元有限的情况下,上述数据监控装置优先增加账户优先级较高的的被监控设备的工作单元数量。进一步的,上述数据监控装置根据当前数据请求数,向被监控设备发送提示信息。上述提示信息可以为上述监控平台计算得出的任务预计用时,也可以为用户建议等待用时,还可以为空闲运行时间段信息。上述数据监控装置可以通过向账户优先级低的用户发送空闲运行时间段信息,建议账户优先级低的用户更改上传任务的时间,选择较为空闲的时间段进行数据上传任务。For another example, when the number of data requests of the monitored device increases, and the number of work units that can be added by the data monitoring device is limited, the data monitoring device preferentially increases the number of work units of the monitored device with a higher account priority. Further, the above-mentioned data monitoring device sends prompt information to the monitored equipment according to the current number of data requests. The above-mentioned prompt information can be the estimated time of the task calculated by the above-mentioned monitoring platform, can also suggest the waiting time for the user, and can also be the information of the idle running time period. The above-mentioned data monitoring device can send idle running time period information to users with low account priority, suggesting users with low account priority to change the upload task time, and select a relatively idle time period to perform the data upload task.
在又一种可能的实现方式中,上述数据监控装置判断以下任一条件是否满足:上述被监控设备的设备信息是否更新,或者上述数据监控装置的版本信息是否更新;当上述任一条件满足时,向上述监控平台发送更新信息,上述更新信息包括上述被监控设备的设备信息和/或上述数据监控装置的版本信息,上述设备信息包括名称信息和/或网络信息。In another possible implementation manner, the data monitoring device determines whether any of the following conditions is met: whether the device information of the monitored device is updated, or whether the version information of the data monitoring device is updated; when any of the above conditions is met Send update information to the monitoring platform, where the update information includes the device information of the monitored device and/or the version information of the data monitoring device, and the device information includes name information and/or network information.
本申请实施例中通过获得被监控设备的特征值,并基于监控平台的注册数据库对该特征值进行检测,可以确认每一台被监控设备的注册情况,从而实现了对平台所有新增设备的管理,提升了监控效果。In the embodiment of this application, by obtaining the characteristic value of the monitored device and detecting the characteristic value based on the registration database of the monitoring platform, the registration status of each monitored device can be confirmed, thereby realizing the monitoring of all newly added devices on the platform. Management improves the monitoring effect.
请参阅图3,图3是本申请实施例提供的另一种数据监控方法的流程示意图,上述方法包括。Please refer to FIG. 3, which is a schematic flowchart of another data monitoring method provided by an embodiment of the present application, and the foregoing method includes.
S201、查找被监控设备的特征值。S201. Search for the characteristic value of the monitored device.
该步骤的具体实现可参考图3上述实施例的步骤S101,在此不再赘述。For the specific implementation of this step, reference may be made to step S101 of the above-mentioned embodiment in FIG. 3, which will not be repeated here.
S202、在上述被监控设备存在上述特征值的情况下,判断上述被监控设备是否为镜像复制设备。S202: In the case where the above-mentioned monitored device has the above-mentioned characteristic value, determine whether the above-mentioned monitored device is a mirror copying device.
该步骤的具体实现可参考图3上述实施例的步骤S102,在此不再赘述。For the specific implementation of this step, reference may be made to step S102 of the above-mentioned embodiment in FIG. 3, which will not be repeated here.
S203、在上述被监控设备不为上述镜像复制设备的情况下,确认上述被监控设备为已注册设备。S203: In the case that the monitored device is not the mirror copy device, confirm that the monitored device is a registered device.
该步骤的具体实现可参考图3上述实施例的步骤S103,在此不再赘述。For the specific implementation of this step, reference may be made to step S103 of the above-mentioned embodiment in FIG. 3, which will not be repeated here.
S204、获取上述被监控设备对应的账户优先级。S204. Obtain the account priority corresponding to the monitored device.
该步骤的具体实现可参考图3上述实施例的步骤S104,在此不再赘述。For the specific implementation of this step, reference may be made to step S104 of the above-mentioned embodiment in FIG. 3, which will not be repeated here.
S205、根据上述账户优先级和数据请求阈值的对应关系,获取上述被监控设备对应的第一数据请求阈值。S205. Obtain the first data request threshold corresponding to the monitored device according to the corresponding relationship between the account priority and the data request threshold.
该步骤的具体实现可参考图3上述实施例的步骤S105,在此不再赘述。For the specific implementation of this step, reference may be made to step S105 of the above-mentioned embodiment in FIG. 3, which will not be repeated here.
S206、在上述被监控设备的数据请求数达到上述第一数据请求阈值的情况下,拒绝上述被监控设备发出的数据请求。S206: When the number of data requests of the monitored device reaches the first data request threshold, reject the data request sent by the monitored device.
该步骤的具体实现可参考图3上述实施例的步骤S106,在此不再赘述。For the specific implementation of this step, reference may be made to step S106 of the above-mentioned embodiment in FIG. 3, which will not be repeated here.
S207、在确认上述被监控设备符合告警条件的情况下,向上述监控平台发送接口告警信息。S207: After confirming that the monitored device meets the alarm condition, send interface alarm information to the monitoring platform.
具体的,上述接口告警信息包括以下一种或多种信息:数据请求数告警信息、超文本传输协议状态码告警信息以及总调用次数告警信息。Specifically, the aforementioned interface alarm information includes one or more of the following information: alarm information about the number of data requests, alarm information about the hypertext transfer protocol status code, and alarm information about the total number of calls.
在一种可能的实现方式中,上述确认上述被监控设备符合告警条件,包括:获取上述被监控设备当前对应的数据请求数、总调用次数以及超文本传输协议状态码;判断以下任一条件是否满足:上述被监控设备当前对应的数据请求数是否超过第二数据请求阈值,或者上述总调用次数是否超过上述账户优先级对应的次数,或者上述超文本传输协议状态码是否与预设值相同;当上述任一条件满足时,确认上述被监控设备符合告警条件。In a possible implementation manner, the above confirming that the monitored device meets the alarm condition includes: obtaining the number of data requests, the total number of calls, and the hypertext transfer protocol status code currently corresponding to the monitored device; determining whether any of the following conditions Satisfaction: Whether the number of data requests currently corresponding to the monitored device exceeds the second data request threshold, or whether the total number of calls exceeds the number corresponding to the account priority, or whether the hypertext transfer protocol status code is the same as the preset value; When any of the above conditions are met, confirm that the above-mentioned monitored equipment meets the alarm conditions.
例如,当上述数据监控装置接收到上述被监控设备发送的“500”超文本传输协议状态码时,上述数据监控装置确认该被监控设备符合告警条件。For example, when the data monitoring device receives the "500" hypertext transfer protocol status code sent by the monitored device, the data monitoring device confirms that the monitored device meets the alarm condition.
本申请实施例中,被监控设备和数据监控装置之间采用HTTPS短连接的方式进行连接,即数据监控装置通过统计被监控设备调用的接口数量,就可以对具体用户的QPS进行计算和控制。利用HTTPS的加密通道保证数据安全的同时,通过短连接即用即关的特点,降低被监控设备连接资源的消耗,同时达到了良好的监控效果。In this embodiment of the application, the monitored device and the data monitoring device are connected by HTTPS short connection, that is, the data monitoring device can calculate and control the QPS of a specific user by counting the number of interfaces called by the monitored device. While using the encrypted channel of HTTPS to ensure data security, through the feature of short connection that is ready to use and close, it reduces the consumption of connection resources of the monitored device, and at the same time achieves a good monitoring effect.
进一步的,上述数据监控装置对被监控设备的调用的接口数量进行统计,将统计结果结合用户对应的套餐,得到被监控设备对应的使用费用。Further, the aforementioned data monitoring device counts the number of interfaces called by the monitored device, and combines the statistical result with the package corresponding to the user to obtain the usage fee corresponding to the monitored device.
例如,上述用户的套餐中包含了1000次免费调用次数,超过1000次未超过5000次的部分,按照0.05元/次对被监控设备的调用次数进行计费。用户对应的被监控设备进行了2000次调用,即用户还需要支付50元的使用费用。For example, the above-mentioned user’s package includes 1000 free calls, and the part that exceeds 1000 but does not exceed 5000 will be charged at 0.05 yuan per time for the number of calls to the monitored device. The monitored device corresponding to the user has made 2000 calls, that is, the user also needs to pay a fee of 50 yuan for the use.
在又一种可能的实现方式中,上述数据监控装置根据被监控设备的使用时间段,统计被监控设备对应时间段的使用费用。In another possible implementation manner, the above-mentioned data monitoring apparatus collects statistics on the usage expenses of the monitored equipment corresponding to the time period according to the usage time period of the monitored equipment.
例如,上述用户的套餐为不包含免费调用次数,完全按照实际调用次数进行计费。上述监控平台规定在忙碌时间段,按照0.1元/次对被监控设备的调用次数进行计费;在一般时间段,按照0.05元/次对被监控设备的调用次数进行计费;在空闲时间段,按照0.03元/次对被监控设备的调用次数进行计费。用户对应的被监控设备在忙碌时间段进行了1000次调用,在一般时间段进行了2000次调用,在空闲时间段进行了1000次调用,即用户需要支付230元。For example, the above-mentioned user’s package does not include the number of free calls, and billing is entirely based on the actual number of calls. The above-mentioned monitoring platform stipulates that during busy periods, the number of calls to monitored equipment is charged at 0.1 yuan/time; in normal time periods, the number of calls to monitored equipment is charged at 0.05 yuan/time; during idle time periods , The number of invocations of the monitored equipment is charged at 0.03 yuan/time. The monitored device corresponding to the user made 1000 calls during busy time, 2000 calls during normal time, and 1000 calls during idle time, that is, the user needs to pay 230 yuan.
在又一种可能的实现方式中,上述数据监控装置根据被监控设备的数量和调用数量,得到被监控设备对应的使用费用。In another possible implementation manner, the above-mentioned data monitoring device obtains the usage fee corresponding to the monitored device according to the number of monitored devices and the number of calls.
例如,上述数据监控装置对于调用次数较少的被监控设备,按照被监控设备的实际调用次数进行计费;对于调用次数较多的被监控设备,按照整机对应的套餐进行计费。For example, the above-mentioned data monitoring device charges the monitored device with a small number of calls according to the actual number of calls of the monitored device; for the monitored device with a large number of calls, it charges according to the package corresponding to the whole machine.
本申请实施例中基于监控平台的注册数据库对被监控设备特征值进行检测,将符合告警条件的被监控设备情况发送给监控平台,可以确认每一台被监控设备的注册情况和使用情况,从而实现了对平台所有新增设备的管理,提升了监控效果。In the embodiment of this application, the characteristic value of the monitored device is detected based on the registration database of the monitoring platform, and the condition of the monitored device that meets the alarm conditions is sent to the monitoring platform, and the registration and usage status of each monitored device can be confirmed, thereby The management of all new equipment on the platform is realized, and the monitoring effect is improved.
本申请实施例还提供了一种数据监控装置。该装置包括用于执行前述图1或者图2所述的方法的模块,配置于服务器。具体地,参见图4,是本申请实施例提供的数据监控装置的示意框图。本实施例的数据监控装置可包括:特征单元301、判断单元302、确定单元303、获取单元304、控制单元305及发送单元306。The embodiment of the present application also provides a data monitoring device. The device includes a module for executing the method described in FIG. 1 or FIG. 2, and is configured on a server. Specifically, refer to FIG. 4, which is a schematic block diagram of a data monitoring device provided in an embodiment of the present application. The data monitoring device of this embodiment may include: a feature unit 301, a judgment unit 302, a determination unit 303, an acquisition unit 304, a control unit 305, and a sending unit 306.
特征单元301,用于查找被监控设备的特征值。The characteristic unit 301 is used to find the characteristic value of the monitored device.
判断单元302,用于在上述被监控设备存在上述特征值的情况下,判断上述被监控设备是否为镜像复制设备。The judging unit 302 is configured to judge whether the monitored device is a mirror copying device when the above-mentioned characteristic value exists in the above-mentioned monitored device.
确定单元303,用于在上述被监控设备不为上述镜像复制设备的情况下,确认上述被监控设备为已注册设备。The determining unit 303 is configured to confirm that the monitored device is a registered device when the monitored device is not the mirror copy device.
获取单元304,用于获取上述被监控设备对应的账户优先级。The obtaining unit 304 is configured to obtain the account priority corresponding to the above-mentioned monitored device.
上述获取单元304还用于,根据上述账户优先级和数据请求阈值的对应关系,获取上述被监控设备对应的第一数据请求阈值。The acquiring unit 304 is further configured to acquire the first data request threshold corresponding to the monitored device according to the corresponding relationship between the account priority and the data request threshold.
控制单元305,用于在上述被监控设备的数据请求数达到上述第一数据请求阈值的情况下,拒绝上述被监控设备发出的数据请求。The control unit 305 is configured to reject the data request sent by the monitored device when the number of data requests of the monitored device reaches the first data request threshold.
在一种可能的实现方式中,上述判断单元302还用于,在上述被监控设备为上述镜像复制设备的情况下,判断监控平台的注册数据库中是否存在与上述特征值重复的数据。In a possible implementation manner, the judgment unit 302 is further configured to judge whether there is data that is duplicated with the characteristic value in the registration database of the monitoring platform when the monitored device is the mirror copy device.
在另一种可能的实现方式中,上述确定单元303具体用于,若存在,清除上述被监控设备的上述特征值,并执行上述查找被监控设备的特征值的步骤;否则,确认上述被监控设备为已注册设备。In another possible implementation manner, the determination unit 303 is specifically configured to, if it exists, clear the characteristic value of the monitored device, and execute the step of finding the characteristic value of the monitored device; otherwise, confirm the monitored device The device is a registered device.
在又一种可能的实现方式中,上述特征单元301还用于,在上述被监控设备不存在特征值的情况下,获取上述监控平台生成的通用唯一识别码;用于将上述通用唯一识别码作为上述被监控设备的特征值。In another possible implementation manner, the feature unit 301 is also used to obtain the universal unique identification code generated by the monitoring platform in the case that the monitored device does not have a feature value; As the characteristic value of the above-mentioned monitored device.
在又一种可能的实现方式中,上述控制单元305还用于,按照上述账户优先级对上述被监控设备对应的工作单元数量进行增加和/或减少操作;上述工作单元数量与上述被监控设备的数据请求数成正比。In another possible implementation manner, the control unit 305 is further configured to increase and/or decrease the number of work units corresponding to the monitored device according to the account priority; the number of work units is the same as that of the monitored device. Is directly proportional to the number of data requests.
在又一种可能的实现方式中,上述装置还包括:发送单元306,用于在确认上述被监控设备符合告警条件的情况下,向上述监控平台发送接口告警信息;上述接口告警信息包括以下一种或多种信息:数据请求数告警信息、超文本传输协议状态码告警信息以及总调用次数告警信息。In another possible implementation manner, the above-mentioned device further includes: a sending unit 306, configured to send interface alarm information to the above-mentioned monitoring platform when it is confirmed that the above-mentioned monitored equipment meets the alarm condition; the above-mentioned interface alarm information includes the following: One or more types of information: alarm information about the number of data requests, alarm information about the hypertext transfer protocol status code, and alarm information about the total number of calls.
在又一种可能的实现方式中,上述发送单元306具体用于,获取上述被监控设备当前对应的数据请求数、总调用次数以及超文本传输协议状态码;判断以下任一条件是否满足:上述被监控设备当前对应的数据请求数是否超过第二数据请求阈值,或者上述总调用次数是否超过上述账户优先级对应的次数,或者上述超文本传输协议状态码是否与预设值相同;当上述任一条件满足时,确认上述被监控设备符合告警条件。In another possible implementation manner, the sending unit 306 is specifically configured to obtain the number of data requests, the total number of calls, and the hypertext transfer protocol status code currently corresponding to the monitored device; and to determine whether any of the following conditions is met: the above Whether the number of data requests currently corresponding to the monitored device exceeds the second data request threshold, or whether the above-mentioned total number of calls exceeds the number of times corresponding to the above-mentioned account priority, or whether the above-mentioned hypertext transfer protocol status code is the same as the preset value; When a condition is met, confirm that the above-mentioned monitored equipment meets the alarm condition.
在又一种可能的实现方式中,上述特征单元301还用于,获取所述监控平台的注册数据库中针对所述被监控设备生成的通用唯一识别码之前,判断是否接收到用户发送的命名信息;在接收到所述命名信息的情况下,向所述监控平台发送所述命名信息。In another possible implementation manner, the above-mentioned feature unit 301 is further configured to determine whether the naming information sent by the user is received before obtaining the universally unique identification code generated for the monitored device in the registration database of the monitoring platform ; In the case of receiving the naming information, send the naming information to the monitoring platform.
需要说明的是,本申请实施例所描述的数据监控装置的各功能模块的功能可根据图2或者图3所述的方法实施例中的方法具体实现,其具体实现过程可以参照图2或者图3的方法实施例的相关描述,此处不再赘述。It should be noted that the functions of each functional module of the data monitoring device described in the embodiment of the present application can be specifically implemented according to the method in the method embodiment described in FIG. 2 or FIG. 3, and the specific implementation process may refer to FIG. 2 or FIG. The relevant description of the method embodiment of 3 will not be repeated here.
请参见图5,图5是本申请实施例提供的一种服务器的示意性框图,如图5所示,该服务器包括,处理器401、输入装置402、输出装置403以及存储器404。上述处理器401、输入装置402、输出装置403及存储器404之间可以通过总线相互连接,在本申请实施例所示图5中以通过总线连接为例。其中,输入装置402用于输入数据和/或信号,以及输出装置403用于输出数据和/或信号。输出装置和输入装置可以是独立的器件,也可以是一个整体的器件,存储器404用于存储计算机程序,所述计算机程序包括程序指令,处理器401用于执行存储器404存储的程序指令。其中,处理器401被配置用于调用所述程序指令执行:查找被监控设备的特征值;在所述被监控设备存在所述特征值的情况下,判断所述被监控设备是否为镜像复制设备;在所述被监控设备不为所述镜像复制设备的情况下,确认所述被监控设备为已注册设备;获取所述被监控设备对应的账户优先级;根据所述账户优先级和数据请求阈值的对应关系,获取所述被监控设备对应的第一数据请求阈值;在所述被监控设备的数据请求数达到所述第一数据请求阈值的情况下,拒绝所述被监控设备发出的数据请求。Please refer to FIG. 5. FIG. 5 is a schematic block diagram of a server provided by an embodiment of the present application. As shown in FIG. 5, the server includes a processor 401, an input device 402, an output device 403, and a memory 404. The aforementioned processor 401, input device 402, output device 403, and memory 404 may be connected to each other through a bus. In FIG. 5 shown in the embodiment of the present application, the connection through a bus is taken as an example. The input device 402 is used to input data and/or signals, and the output device 403 is used to output data and/or signals. The output device and the input device may be independent devices or an integrated device. The memory 404 is used to store a computer program, and the computer program includes program instructions. The processor 401 is used to execute the program instructions stored in the memory 404. Wherein, the processor 401 is configured to call the program instructions to execute: find the characteristic value of the monitored device; in the case that the monitored device has the characteristic value, determine whether the monitored device is a mirror copy device In the case that the monitored device is not the mirror copy device, confirm that the monitored device is a registered device; obtain the account priority corresponding to the monitored device; according to the account priority and data request The corresponding relationship of the threshold value, the first data request threshold corresponding to the monitored device is obtained; when the number of data requests of the monitored device reaches the first data request threshold, the data sent by the monitored device is rejected ask.
在一种可能实现的方式中,所述处理器401还用于:在所述被监控设备为所述镜像复制设备的情况下,判断监控平台的注册数据库中是否存在与所述特征值重复的数据;若存在,清除所述被监控设备的所述特征值,并执行所述查找被监控设备的特征值的步骤;否则,确认所述被监控设备为已注册设备。In a possible implementation manner, the processor 401 is further configured to: in the case that the monitored device is the mirror copy device, determine whether there is a duplicate of the characteristic value in the registration database of the monitoring platform. Data; if it exists, clear the characteristic value of the monitored device, and execute the step of finding the characteristic value of the monitored device; otherwise, confirm that the monitored device is a registered device.
在一种可能实现的方式中,所述处理器401还用于:在所述确认所述被监控设备为已注册设备之前,在所述被监控设备不存在所述特征值的情况下,获取所述监控平台的注册数据库中针对所述被监控设备生成的通用唯一识别码;将所述通用唯一识别码作为所述被监控设备的特征值。In a possible implementation manner, the processor 401 is further configured to: before confirming that the monitored device is a registered device, if the monitored device does not have the characteristic value, obtain The universal unique identification code generated for the monitored device in the registration database of the monitoring platform; the universal unique identification code is used as the characteristic value of the monitored device.
在一种可能实现的方式中,所述处理器401还用于:按照所述账户优先级对所述被监控设备对应的工作单元数量进行增加和/或减少操作;所述工作单元数量与所述被监控设备的数据请求数成正比。In a possible implementation manner, the processor 401 is further configured to: increase and/or decrease the number of work units corresponding to the monitored device according to the account priority; The number of data requests from the monitored device is directly proportional.
在一种可能实现的方式中,所述处理器401还用于:在确认所述被监控设备符合告警条件的情况下,向所述监控平台发送接口告警信息;所述接口告警信息包括以下一种或多种信息:数据请求数告警信息、超文本传输协议状态码告警信息以及总调用次数告警信息。In a possible implementation manner, the processor 401 is further configured to: upon confirming that the monitored device meets the alarm condition, send interface alarm information to the monitoring platform; the interface alarm information includes the following: One or more types of information: alarm information about the number of data requests, alarm information about the hypertext transfer protocol status code, and alarm information about the total number of calls.
在一种可能实现的方式中,所述处理器401具体用于:获取所述被监控设备当前对应的数据请求数、总调用次数以及超文本传输协议状态码;判断以下任一条件是否满足:所述被监控设备当前对应的数据请求数是否超过第二数据请求阈值,或者所述总调用次数是否超过所述账户优先级对应的次数,或者所述超文本传输协议状态码是否与预设值相同;当所述任一条件满足时,确认所述被监控设备符合告警条件。In a possible implementation manner, the processor 401 is specifically configured to: obtain the current number of data requests, the total number of calls, and the hypertext transfer protocol status code corresponding to the monitored device; and determine whether any of the following conditions is met: Whether the number of data requests currently corresponding to the monitored device exceeds the second data request threshold, or whether the total number of calls exceeds the number corresponding to the account priority, or whether the hypertext transfer protocol status code is consistent with a preset value Same; when any one of the conditions is met, confirm that the monitored device meets the alarm condition.
在一种可能实现的方式中,所述处理器401还用于:在获取所述监控平台的注册数据库中针对所述被监控设备生成的通用唯一识别码之前,判断是否接收到用户发送的命名信息;在接收到所述命名信息的情况下,向所述监控平台发送所述命名信息。In a possible implementation manner, the processor 401 is further configured to: before obtaining the universal unique identification code generated for the monitored device in the registration database of the monitoring platform, determine whether the name sent by the user is received Information; in the case of receiving the naming information, send the naming information to the monitoring platform.
应当理解,在本申请实施例中,所称处理器401可以是中央处理单元(Central Processing Unit,CPU),该处理器401还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in the embodiment of the present application, the so-called processor 401 may be a central processing unit (Central Processing Unit, CPU). The processor 401 may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSPs), and application-specific integrated circuits (Application Specific Integrated Circuits). Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
该存储器404可以包括只读存储器和随机存取存储器,并向处理器401提供指令和数据。存储器404的一部分还可以包括非易失性随机存取存储器。例如,存储器404还可以存储设备类型的信息。The memory 404 may include a read-only memory and a random access memory, and provides instructions and data to the processor 401. A part of the memory 404 may also include a non-volatile random access memory. For example, the memory 404 may also store device type information.
具体实现中,本申请实施例中所描述的处理器401、输入装置402、输出装置403及存储器404可执行本申请实施例提供的图2或者图3所述的方法实施例所描述的实现方式,也可执行本申请实施例所描述的数据监控装置的实现方式,在此不再赘述。In specific implementation, the processor 401, input device 402, output device 403, and memory 404 described in the embodiment of the present application can execute the implementation described in the method embodiment described in FIG. 2 or FIG. 3 provided by the embodiment of the present application. , The implementation of the data monitoring device described in the embodiment of the present application can also be implemented, which will not be repeated here.
在本申请的另一实施例中提供一种计算机可读存储介质,可选地,该计算机可读存储介质可以是非易失性的,也可以是易失性的。所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令被处理器执行时实现:查找被监控设备的特征值;在所述被监控设备存在所述特征值的情况下,判断所述被监控设备是否为镜像复制设备;在所述被监控设备不为所述镜像复制设备的情况下,确认所述被监控设备为已注册设备;获取所述被监控设备对应的账户优先级;根据所述账户优先级和数据请求阈值的对应关系,获取所述被监控设备对应的第一数据请求阈值;在所述被监控设备的数据请求数达到所述第一数据请求阈值的情况下,拒绝所述被监控设备发出的数据请求。In another embodiment of the present application, a computer-readable storage medium is provided. Optionally, the computer-readable storage medium may be non-volatile or volatile. The computer-readable storage medium stores a computer program, and the computer program includes program instructions that are implemented when executed by a processor: to find a characteristic value of a monitored device; the characteristic value exists in the monitored device In the case of, determine whether the monitored device is a mirror copy device; in the case that the monitored device is not the mirror copy device, confirm that the monitored device is a registered device; obtain the monitored device Corresponding account priority; obtain the first data request threshold corresponding to the monitored device according to the corresponding relationship between the account priority and the data request threshold; the number of data requests on the monitored device reaches the first data In the case of requesting the threshold, the data request sent by the monitored device is rejected.
所述计算机可读存储介质可以是前述任一实施例所述的服务器的内部存储单元,例如服务器的硬盘或内存。所述计算机可读存储介质也可以是所述服务器的外部存储设备,例如所述服务器上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述计算机可读存储介质还可以既包括所述服务器的内部存储单元也包括外部存储设备。所述计算机可读存储介质用于存储所述计算机程序以及所述服务器所需的其他程序和数据。所述计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的数据。The computer-readable storage medium may be the internal storage unit of the server described in any of the foregoing embodiments, such as the hard disk or memory of the server. The computer-readable storage medium may also be an external storage device of the server, such as a plug-in hard disk equipped on the server, a smart memory card (Smart Media Card, SMC), and a secure digital (Secure Digital). Digital, SD) card, flash memory card (Flash Card) and so on. Further, the computer-readable storage medium may also include both an internal storage unit of the server and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the server. The computer-readable storage medium can also be used to temporarily store data that has been output or will be output.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing relevant hardware through a computer program. The program can be stored in a computer readable storage medium. During execution, it may include the procedures of the above-mentioned method embodiments. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random storage memory (Random Access Memory, RAM) etc.
以上所揭露的仅为本申请的部分实施例而已,当然不能以此来限定本申请之权利范围,本领域普通技术人员可以理解实现上述实施例的全部或部分流程,并依本申请权利要求所作的等同变化,仍属于本申请所涵盖的范围。The above-disclosed are only part of the embodiments of this application. Of course, it cannot be used to limit the scope of rights of this application. Those of ordinary skill in the art can understand all or part of the procedures for implementing the above-mentioned embodiments and make them in accordance with the claims of this application. The equivalent change of is still within the scope of this application.

Claims (20)

  1. 一种数据监控方法,其中,包括:A data monitoring method, which includes:
    查找被监控设备的特征值;Find the characteristic value of the monitored device;
    在所述被监控设备存在所述特征值的情况下,判断所述被监控设备是否为镜像复制设备;In the case that the monitored device has the characteristic value, determine whether the monitored device is a mirror copy device;
    在所述被监控设备不为所述镜像复制设备的情况下,确认所述被监控设备为已注册设备;In the case that the monitored device is not the mirror copy device, confirm that the monitored device is a registered device;
    获取所述被监控设备对应的账户优先级;Acquiring the account priority corresponding to the monitored device;
    根据所述账户优先级和数据请求阈值的对应关系,获取所述被监控设备对应的第一数据请求阈值;Acquiring the first data request threshold corresponding to the monitored device according to the correspondence between the account priority and the data request threshold;
    在所述被监控设备的数据请求数达到所述第一数据请求阈值的情况下,拒绝所述被监控设备发出的数据请求。When the number of data requests of the monitored device reaches the first data request threshold, reject the data request sent by the monitored device.
  2. 根据权利要求1所述的方法,其中,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    在所述被监控设备为所述镜像复制设备的情况下,判断监控平台的注册数据库中是否存在与所述特征值重复的数据;In the case that the monitored device is the mirror copy device, determine whether there is data that is duplicated with the characteristic value in the registration database of the monitoring platform;
    若存在,清除所述被监控设备的所述特征值,并执行所述查找被监控设备的特征值的步骤;If it exists, clear the characteristic value of the monitored device, and execute the step of finding the characteristic value of the monitored device;
    否则,确认所述被监控设备为已注册设备。Otherwise, confirm that the monitored device is a registered device.
  3. 根据权利要求1或2所述的方法,其中,在所述确认所述被监控设备为已注册设备之前,所述方法还包括:The method according to claim 1 or 2, wherein, before the confirming that the monitored device is a registered device, the method further comprises:
    在所述被监控设备不存在所述特征值的情况下,获取所述监控平台的注册数据库中针对所述被监控设备生成的通用唯一识别码;In the case that the monitored device does not have the characteristic value, obtain a universal unique identification code generated for the monitored device in the registration database of the monitoring platform;
    将所述通用唯一识别码作为所述被监控设备的特征值。The universal unique identification code is used as the characteristic value of the monitored device.
  4. 根据权利要求3所述的方法,其中,所述方法还包括:The method according to claim 3, wherein the method further comprises:
    按照所述账户优先级对所述被监控设备对应的工作单元数量进行增加和/或减少操作;Increase and/or decrease the number of work units corresponding to the monitored device according to the account priority;
    所述工作单元数量与所述被监控设备的数据请求数成正比。The number of working units is proportional to the number of data requests of the monitored device.
  5. 根据权利要求4所述的方法,其中,所述方法还包括:The method according to claim 4, wherein the method further comprises:
    在确认所述被监控设备符合告警条件的情况下,向所述监控平台发送接口告警信息;When it is confirmed that the monitored device meets the alarm condition, send interface alarm information to the monitoring platform;
    所述接口告警信息包括以下一种或多种信息:数据请求数告警信息、超文本传输协议状态码告警信息以及总调用次数告警信息。The interface alarm information includes one or more of the following information: alarm information about the number of data requests, alarm information about the hypertext transfer protocol status code, and alarm information about the total number of calls.
  6. 根据权利要求5所述的方法,其中,所述确认所述被监控设备符合告警条件,包括:The method according to claim 5, wherein the confirming that the monitored device meets an alarm condition comprises:
    获取所述被监控设备当前对应的数据请求数、总调用次数以及超文本传输协议状态码;Acquiring the number of data requests, the total number of calls, and the hypertext transfer protocol status code currently corresponding to the monitored device;
    判断以下任一条件是否满足:所述被监控设备当前对应的数据请求数是否超过第二数据请求阈值,或者所述总调用次数是否超过所述账户优先级对应的次数,或者所述超文本传输协议状态码是否与预设值相同;Determine whether any of the following conditions is met: whether the number of data requests currently corresponding to the monitored device exceeds the second data request threshold, or whether the total number of calls exceeds the number corresponding to the account priority, or the hypertext transmission Whether the protocol status code is the same as the preset value;
    当所述任一条件满足时,确认所述被监控设备符合告警条件。When any one of the conditions is met, it is confirmed that the monitored device meets the alarm condition.
  7. 根据所述权利要求3所述的方法,其中,所述获取所述监控平台的注册数据库中针对所述被监控设备生成的通用唯一识别码之前,所述方法还包括:The method according to claim 3, wherein before the obtaining the universal unique identification code generated for the monitored device in the registration database of the monitoring platform, the method further comprises:
    判断是否接收到用户发送的命名信息;Determine whether the naming information sent by the user is received;
    在接收到所述命名信息的情况下,向所述监控平台发送所述命名信息。In the case of receiving the naming information, sending the naming information to the monitoring platform.
  8. 一种数据监控装置,其中,包括:A data monitoring device, which includes:
    特征单元,用于查找被监控设备的特征值;Characteristic unit, used to find the characteristic value of the monitored device;
    判断单元,用于在所述被监控设备存在所述特征值的情况下,判断所述被监控设备是否为镜像复制设备;A judging unit, configured to judge whether the monitored device is a mirror copying device in the case that the monitored device has the characteristic value;
    确定单元,用于在所述被监控设备不为所述镜像复制设备的情况下,确认所述被监控设备为已注册设备;A determining unit, configured to confirm that the monitored device is a registered device when the monitored device is not the mirror copy device;
    获取单元,用于获取所述被监控设备对应的账户优先级;An obtaining unit, configured to obtain the account priority corresponding to the monitored device;
    所述获取单元还用于,根据所述账户优先级和数据请求阈值的对应关系,获取所述被监控设备对应的第一数据请求阈值;The obtaining unit is further configured to obtain the first data request threshold corresponding to the monitored device according to the corresponding relationship between the account priority and the data request threshold;
    控制单元,用于在所述被监控设备的数据请求数达到所述第一数据请求阈值的情况下,拒绝所述被监控设备发出的数据请求。The control unit is configured to reject the data request sent by the monitored device when the number of data requests of the monitored device reaches the first data request threshold.
  9. 一种服务器,其中,包括处理器和存储器,所述处理器和所述存储器相互连接,其中,所述存储器用于存储计算机程序,所述计算机程序包括程序指令,所述处理器被配置调用所述程序指令,用于查找被监控设备的特征值;在所述被监控设备存在所述特征值的情况下,判断所述被监控设备是否为镜像复制设备;在所述被监控设备不为所述镜像复制设备的情况下,确认所述被监控设备为已注册设备;获取所述被监控设备对应的账户优先级;根据所述账户优先级和数据请求阈值的对应关系,获取所述被监控设备对应的第一数据请求阈值;在所述被监控设备的数据请求数达到所述第一数据请求阈值的情况下,拒绝所述被监控设备发出的数据请求。A server, including a processor and a memory, the processor and the memory are connected to each other, wherein the memory is used to store a computer program, the computer program includes program instructions, the processor is configured to call the The program instructions are used to find the characteristic value of the monitored device; in the case that the monitored device has the characteristic value, determine whether the monitored device is a mirroring copy device; when the monitored device is not owned by In the case of the mirror copy device, confirm that the monitored device is a registered device; obtain the account priority corresponding to the monitored device; obtain the monitored device according to the correspondence between the account priority and the data request threshold The first data request threshold corresponding to the device; when the number of data requests of the monitored device reaches the first data request threshold, the data request sent by the monitored device is rejected.
  10. 根据权利要求9所述的服务器,其中,所述处理器还用于:在所述被监控设备为所述镜像复制设备的情况下,判断监控平台的注册数据库中是否存在与所述特征值重复的数据;若存在,清除所述被监控设备的所述特征值,并执行所述查找被监控设备的特征值的步骤;否则,确认所述被监控设备为已注册设备。The server according to claim 9, wherein the processor is further configured to: in the case that the monitored device is the mirror copy device, determine whether there is a duplicate of the characteristic value in the registration database of the monitoring platform If it exists, clear the characteristic value of the monitored device and execute the step of finding the characteristic value of the monitored device; otherwise, confirm that the monitored device is a registered device.
  11. 根据权利要求9或10所述的服务器,其中,所述处理器还用于:在所述确认所述被监控设备为已注册设备之前,在所述被监控设备不存在所述特征值的情况下,获取所述监控平台的注册数据库中针对所述被监控设备生成的通用唯一识别码;The server according to claim 9 or 10, wherein the processor is further configured to: before confirming that the monitored device is a registered device, when the monitored device does not have the characteristic value Next, obtain the universal unique identification code generated for the monitored device in the registration database of the monitoring platform;
    将所述通用唯一识别码作为所述被监控设备的特征值。The universal unique identification code is used as the characteristic value of the monitored device.
  12. 根据权利要求11所述的服务器,其中,所述处理器还用于:按照所述账户优先级对所述被监控设备对应的工作单元数量进行增加和/或减少操作;所述工作单元数量与所述被监控设备的数据请求数成正比。The server according to claim 11, wherein the processor is further configured to: increase and/or decrease the number of work units corresponding to the monitored device according to the account priority; the number of work units is equal to The number of data requests of the monitored device is directly proportional.
  13. 根据权利要求12所述的服务器,其中,所述处理器还用于:在确认所述被监控设备符合告警条件的情况下,向所述监控平台发送接口告警信息;所述接口告警信息包括以下一种或多种信息:数据请求数告警信息、超文本传输协议状态码告警信息以及总调用次数告警信息。The server according to claim 12, wherein the processor is further configured to: upon confirming that the monitored device meets the alarm condition, send interface alarm information to the monitoring platform; the interface alarm information includes the following One or more types of information: alarm information about the number of data requests, alarm information about the hypertext transfer protocol status code, and alarm information about the total number of calls.
  14. 根据权利要求13所述的服务器,其中,所述处理器具体用于:获取所述被监控设备当前对应的数据请求数、总调用次数以及超文本传输协议状态码;判断以下任一条件是否满足:所述被监控设备当前对应的数据请求数是否超过第二数据请求阈值,或者所述总调用次数是否超过所述账户优先级对应的次数,或者所述超文本传输协议状态码是否与预设值相同;当所述任一条件满足时,确认所述被监控设备符合告警条件。The server according to claim 13, wherein the processor is specifically configured to: obtain the number of data requests, the total number of calls, and the hypertext transfer protocol status code currently corresponding to the monitored device; and determine whether any of the following conditions is satisfied : Whether the number of data requests currently corresponding to the monitored device exceeds the second data request threshold, or whether the total number of calls exceeds the number corresponding to the account priority, or whether the hypertext transfer protocol status code is consistent with a preset The value is the same; when any one of the conditions is met, it is confirmed that the monitored device meets the alarm condition.
  15. 根据所述权利要求11所述的服务器,其中,所述处理器还用于:在获取所述监控平台的注册数据库中针对所述被监控设备生成的通用唯一识别码之前,判断是否接收到用户发送的命名信息;在接收到所述命名信息的情况下,向所述监控平台发送所述命名信息。The server according to claim 11, wherein the processor is further configured to: before obtaining the universal unique identification code generated for the monitored device in the registration database of the monitoring platform, determine whether a user is received The sent naming information; when the naming information is received, the naming information is sent to the monitoring platform.
  16. 一种计算机可读存储介质,其中,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行以实现如下步骤:A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the following steps:
    查找被监控设备的特征值;在所述被监控设备存在所述特征值的情况下,判断所述被监控设备是否为镜像复制设备;Find the characteristic value of the monitored device; in the case that the monitored device has the characteristic value, determine whether the monitored device is a mirroring copy device;
    在所述被监控设备不为所述镜像复制设备的情况下,确认所述被监控设备为已注册设备;In the case that the monitored device is not the mirror copy device, confirm that the monitored device is a registered device;
    获取所述被监控设备对应的账户优先级;根据所述账户优先级和数据请求阈值的对应关系,获取所述被监控设备对应的第一数据请求阈值;Acquiring the account priority corresponding to the monitored device; acquiring the first data request threshold corresponding to the monitored device according to the correspondence between the account priority and the data request threshold;
    在所述被监控设备的数据请求数达到所述第一数据请求阈值的情况下,拒绝所述被监控设备发出的数据请求。When the number of data requests of the monitored device reaches the first data request threshold, reject the data request sent by the monitored device.
  17. 根据权利要求16所述的计算机可读存储介质,其中,还实现以下步骤:The computer-readable storage medium according to claim 16, wherein the following steps are further implemented:
    在所述被监控设备为所述镜像复制设备的情况下,判断监控平台的注册数据库中是否存在与所述特征值重复的数据;In the case that the monitored device is the mirror copy device, determine whether there is data that is duplicated with the characteristic value in the registration database of the monitoring platform;
    若存在,清除所述被监控设备的所述特征值,并执行所述查找被监控设备的特征值的步骤;If it exists, clear the characteristic value of the monitored device, and execute the step of finding the characteristic value of the monitored device;
    否则,确认所述被监控设备为已注册设备。Otherwise, confirm that the monitored device is a registered device.
  18. 根据权利要求16或17所述的计算机可读存储介质,其中,还实现以下步骤:The computer-readable storage medium according to claim 16 or 17, wherein the following steps are further implemented:
    在所述确认所述被监控设备为已注册设备之前,在所述被监控设备不存在所述特征值的情况下,获取所述监控平台的注册数据库中针对所述被监控设备生成的通用唯一识别码;Before confirming that the monitored device is a registered device, in the case that the monitored device does not have the characteristic value, obtain the universal unique value generated for the monitored device in the registration database of the monitoring platform Identifier;
    将所述通用唯一识别码作为所述被监控设备的特征值。The universal unique identification code is used as the characteristic value of the monitored device.
  19. 根据权利要求18所述的计算机可读存储介质,其中,还实现以下步骤:The computer-readable storage medium according to claim 18, wherein the following steps are further implemented:
    按照所述账户优先级对所述被监控设备对应的工作单元数量进行增加和/或减少操作;Increase and/or decrease the number of work units corresponding to the monitored device according to the account priority;
    所述工作单元数量与所述被监控设备的数据请求数成正比。The number of working units is proportional to the number of data requests of the monitored device.
  20. 根据权利要求19所述的计算机可读存储介质,其中,还实现以下步骤:The computer-readable storage medium according to claim 19, wherein the following steps are further implemented:
    在确认所述被监控设备符合告警条件的情况下,向所述监控平台发送接口告警信息;When it is confirmed that the monitored device meets the alarm condition, send interface alarm information to the monitoring platform;
    所述接口告警信息包括以下一种或多种信息:数据请求数告警信息、超文本传输协议状态码告警信息以及总调用次数告警信息。The interface alarm information includes one or more of the following information: alarm information about the number of data requests, alarm information about the hypertext transfer protocol status code, and alarm information about the total number of calls.
PCT/CN2020/099562 2020-02-17 2020-06-30 Data monitoring method and apparatus WO2021164179A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010098060.7 2020-02-17
CN202010098060.7A CN111371841B (en) 2020-02-17 2020-02-17 Data monitoring method and device

Publications (1)

Publication Number Publication Date
WO2021164179A1 true WO2021164179A1 (en) 2021-08-26

Family

ID=71211384

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/099562 WO2021164179A1 (en) 2020-02-17 2020-06-30 Data monitoring method and apparatus

Country Status (2)

Country Link
CN (1) CN111371841B (en)
WO (1) WO2021164179A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114900444A (en) * 2022-04-25 2022-08-12 北京奇艺世纪科技有限公司 Data monitoring method and device, electronic equipment and storage medium
CN115277479A (en) * 2022-07-29 2022-11-01 国网浙江省电力有限公司宁波供电公司 Method and system for realizing system operation condition monitoring based on monitoring assistant
WO2023109780A1 (en) * 2021-12-15 2023-06-22 华为技术有限公司 Device monitoring method and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140095703A1 (en) * 2012-09-28 2014-04-03 Delta Electronics, Inc. System for managing and monitoring cloud hosts and method thereof
CN106339254A (en) * 2015-07-15 2017-01-18 中兴通讯股份有限公司 Quick starting method and device, and management node for virtual machine
CN108809702A (en) * 2018-05-25 2018-11-13 联想(北京)有限公司 A kind of device management method and device management platform
CN110351357A (en) * 2019-07-08 2019-10-18 中国平安人寿保险股份有限公司 Server current-limiting method, device, computer equipment and storage medium

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9130826B2 (en) * 2013-03-15 2015-09-08 Enterasys Networks, Inc. System and related method for network monitoring and control based on applications
MX2015014381A (en) * 2013-04-12 2016-07-07 Riavera Corp Mobile payment system using subaccounts of account holder.
US9491155B1 (en) * 2014-08-13 2016-11-08 Amazon Technologies, Inc. Account generation based on external credentials
US10810310B2 (en) * 2016-01-14 2020-10-20 Georgia Tech Research Corporation Systems and methods for runtime program monitoring through analysis of side channel signals
CN112214382A (en) * 2016-12-16 2021-01-12 华为技术有限公司 Alarm method and device
US10885165B2 (en) * 2017-05-17 2021-01-05 Forescout Technologies, Inc. Account monitoring
CN109981388A (en) * 2017-12-28 2019-07-05 北京京东尚科信息技术有限公司 A kind of method and apparatus of monitoring device
CN109766237A (en) * 2018-12-15 2019-05-17 深圳壹账通智能科技有限公司 Monitoring method, device, equipment and storage medium based on order distribution
CN110138688A (en) * 2019-04-15 2019-08-16 深圳壹账通智能科技有限公司 Dynamic adjusts method, apparatus, equipment and the readable storage medium storing program for executing of business interface
CN110430252B (en) * 2019-07-26 2022-06-10 Oppo广东移动通信有限公司 Resource data processing method and device, equipment and readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140095703A1 (en) * 2012-09-28 2014-04-03 Delta Electronics, Inc. System for managing and monitoring cloud hosts and method thereof
CN106339254A (en) * 2015-07-15 2017-01-18 中兴通讯股份有限公司 Quick starting method and device, and management node for virtual machine
CN108809702A (en) * 2018-05-25 2018-11-13 联想(北京)有限公司 A kind of device management method and device management platform
CN110351357A (en) * 2019-07-08 2019-10-18 中国平安人寿保险股份有限公司 Server current-limiting method, device, computer equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023109780A1 (en) * 2021-12-15 2023-06-22 华为技术有限公司 Device monitoring method and electronic device
CN114900444A (en) * 2022-04-25 2022-08-12 北京奇艺世纪科技有限公司 Data monitoring method and device, electronic equipment and storage medium
CN115277479A (en) * 2022-07-29 2022-11-01 国网浙江省电力有限公司宁波供电公司 Method and system for realizing system operation condition monitoring based on monitoring assistant

Also Published As

Publication number Publication date
CN111371841A (en) 2020-07-03
CN111371841B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
WO2021164179A1 (en) Data monitoring method and apparatus
WO2022068761A1 (en) Data processing method and apparatus, electronic device, and storage medium
WO2021012568A1 (en) Data processing method and related device
WO2020233059A1 (en) Login processing method based on data processing and related apparatus
WO2021051878A1 (en) Cloud resource acquisition method and apparatus based on user permission, and computer device
WO2018201887A1 (en) Data response method, apparatus, terminal device, and medium
WO2021203848A1 (en) Device state identification method and apparatus, and smart terminal
WO2020000761A1 (en) Task management method and apparatus, computer device and storage medium
WO2019237591A1 (en) File format conversion method and apparatus, computer device, and storage medium
WO2020000758A1 (en) Server acceptance method and apparatus, computer device, and storage medium
CN108804938B (en) Authority detection method and device, electronic equipment and readable storage medium
WO2019047071A1 (en) Method and terminal for responding to database fault
WO2019205324A1 (en) Task allocation method and system, and terminal device
CN111552567A (en) Thread management method and device, electronic equipment and storage medium
CN115238247A (en) Data processing method based on zero trust data access control system
CN113238815B (en) Interface access control method, device, equipment and storage medium
WO2019223095A1 (en) Process operation monitoring method, terminal device and computer-readable storage medium
CN109600254A (en) The generation method and related system of full link log
WO2023241366A1 (en) Data processing method and system, and electronic device and computer-readable storage medium
CN111638885A (en) Plug-in issuing method and device, electronic equipment and storage medium
WO2023134247A1 (en) Container management method and container management system
WO2020248384A1 (en) Repeated request access prevention method and apparatus, computer device, and storage medium
CN115454576B (en) Virtual machine process management method and system and electronic equipment
US20220327242A1 (en) Data management method and apparatus
US11416318B1 (en) Application programming interface for integration flow design

Legal Events

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

Ref document number: 20919847

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 08/12/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20919847

Country of ref document: EP

Kind code of ref document: A1