Search

CN-122019672-A - Data detection method, apparatus, device, readable storage medium, and program product

CN122019672ACN 122019672 ACN122019672 ACN 122019672ACN-122019672-A

Abstract

The embodiment of the disclosure provides a data detection method, a device, equipment, a readable storage medium and a program product, and relates to the fields of data detection and the like, wherein application scenes comprise but are not limited to business data detection scenes. The method comprises the steps of obtaining detection alarm rules corresponding to target services, wherein the detection alarm rules comprise first service data identifiers of all service levels, hierarchical relations among all service levels and first alarm conditions corresponding to all service levels, determining service data of all service levels of the target services from a service data set to be detected based on the first service data identifiers of all service levels, sequentially determining target service levels, of which the service data meet the first alarm conditions of the corresponding service levels, from all service levels based on the hierarchical relations among all service levels, and generating alarm contents for all target service levels, and determining target alarm contents, of which the alarm content transmission rules are met, in an alarm content set based on alarm content transmission rules.

Inventors

  • LIU JIANYIN
  • ZHANG CHENGUANG
  • ZHAO GUOHAO

Assignees

  • 深圳市腾讯计算机系统有限公司

Dates

Publication Date
20260512
Application Date
20241111

Claims (11)

  1. 1. A data detection method, comprising: Acquiring a service data set to be detected of a target service, wherein the service data set to be detected comprises service data of a plurality of service levels of the target service; acquiring a preset detection alarm rule corresponding to the target service, wherein the detection alarm rule comprises a first service data identifier of each service level in the plurality of service levels, a level relation among the service levels and a first alarm condition corresponding to each service level in the service levels; Determining service data of each service level of the target service from the service data set to be detected based on a first service data identifier of each service level; determining, in sequence, from each service level, a target service level, in which service data satisfies a first alarm condition of a corresponding service level, based on a level relationship between the service levels, and generating alarm content for each target service level, where if the target service level is one service level, the target service level is a highest-level service level, and if the target service level includes at least two service levels, the at least two service levels are at least two consecutive service levels including the highest-level service level; And determining target alarm content meeting the alarm content transmission rule in an alarm content set based on a preset alarm content transmission rule, and transmitting the target alarm content to a target object, wherein the alarm content set comprises alarm content aiming at each target service level.
  2. 2. The method of claim 1, wherein the business data for each of the plurality of business levels comprises business data for a plurality of dimensions, wherein the detection alarm rules further comprise a second business data identification for each of the plurality of dimensions for each of the business levels, a hierarchical relationship between the plurality of dimensions, and a second alarm condition for each of the plurality of dimensions for the business level, and wherein the method further comprises: for each business level, determining business data of each dimension of the business level from business data of the business level based on a second business data identification of each dimension of the business level; For each target service level, determining target dimensions of which service data meet corresponding second alarm conditions from the dimensions of the target service level in sequence based on the level relation among the dimensions of the target service level, and generating alarm content for each target dimension; the alarm content set further comprises alarm content for each target dimension.
  3. 3. The method according to claim 1 or 2, wherein the determining, in turn, from the respective service levels based on the hierarchical relationship between the respective service levels, a target service level for which the service data satisfies the first alarm condition of the corresponding service level, and generating the alarm content for the respective target service levels, comprises: According to the hierarchy relation among the service hierarchies, the following judging operations are sequentially executed according to the sequence from high to low of the hierarchy level of each service hierarchy until the service data of the current service hierarchy does not meet the first alarm condition corresponding to the current service hierarchy, or the service data of the current service hierarchy meets the first alarm condition corresponding to the current service hierarchy and the current service hierarchy is the last hierarchy; Wherein, the judging operation comprises the following steps: determining whether the current service level is a target service level based on a first alarm condition corresponding to the current service level; If the current service level is determined to be the target service level, generating alarm content corresponding to the target service level based on the first alarm condition, and taking the next service level of the current service level as the current service level of the next judging operation.
  4. 4. A method according to claim 2 or 3, wherein for each target service level, determining, in turn, from the plurality of dimensions of the target service level, a target dimension for which the service data satisfies the corresponding second alert condition based on a hierarchical relationship between the plurality of dimensions of the target service level, and generating alert content for each target dimension, comprises: For each target service level, according to the level relation among multiple dimensions of the service level, sequentially executing the following judging operations according to the order of the dimension level from high to low until the service data of the current dimension does not meet the second alarm judging condition corresponding to the current dimension, or the service data of the current dimension meets the second alarm condition corresponding to the current dimension and the current dimension is the dimension of the last dimension level: Wherein, the judging operation comprises the following steps: Determining whether the current dimension is a target dimension or not based on a second alarm condition corresponding to the current dimension; and if the current dimension is determined to be the target dimension, generating alarm content corresponding to the target dimension based on the second alarm condition, and taking the next dimension of the current dimension as the current dimension of the next judging operation.
  5. 5. The method according to claim 1, wherein determining, based on a preset alert content transmission rule, a target alert content in an alert content set that satisfies the alert content transmission rule, and transmitting the target alert content to a target object, comprises at least one of: Based on the alarm frequency of each type of alarm content in different types in a preset alarm content transmission rule, determining alarm content matched with each type of alarm content from the alarm content set, determining the matched alarm content as target alarm content, and transmitting the target alarm content to a target object at the alarm frequency; Based on a deduplication strategy aiming at the same type of alarm content in the alarm content transmission rule, deduplicating the same type of alarm content in the alarm content set to obtain deduplicated alarm content, determining the deduplicated alarm content as target alarm content, and transmitting the target alarm content to a target object in a preset time period.
  6. 6. The method of claim 1, further comprising, prior to said acquiring the service data set to be detected for the target service: acquiring original data and storing the original data in a message queue; Dividing the original data in the message queue into a plurality of arrays based on a preset time interval by a preset distributed stream data processing engine, and storing the arrays into a preset database; the obtaining the service data set to be detected of the target service includes: Based on a data detection request for the target service triggered at a fixed time, acquiring an array for the target service from the preset database, wherein a service data set to be detected of the target service comprises the array for the target service.
  7. 7. The method of claim 2, wherein said transmitting the targeted alert content to a targeted object comprises: displaying an alarm picture aiming at the target alarm content to a target object, wherein the alarm picture comprises the target alarm content and at least one of the following components: Service data for a service level of the target alert content, service data for a dimension of the target alert content, a first alert condition for the service level of the target alert content, and a second alert condition for the dimension of the target alert content.
  8. 8. A data detection apparatus, comprising: The first processing module is used for acquiring a to-be-detected service data set of a target service, wherein the to-be-detected service data set comprises service data of a plurality of service levels of the target service; The second processing module is used for acquiring a preset detection alarm rule corresponding to the target service, wherein the detection alarm rule comprises a first service data identifier of each service level in the plurality of service levels, a level relation among the service levels and a first alarm condition corresponding to each service level in the service levels; a third processing module, configured to determine, from the to-be-detected service data set, service data of each service level of the target service based on a first service data identifier of each service level; A fourth processing module, configured to sequentially determine, based on a hierarchical relationship between the service levels, a target service level in which service data meets a first alarm condition of a corresponding service level from the service levels, and generate alarm content for each target service level, where if the target service level is one service level, the target service level is a highest-level service level, and if the target service level includes at least two service levels, the at least two service levels are at least two consecutive service levels including the highest-level service level; and a fifth processing module, configured to determine, based on a preset alarm content transmission rule, a target alarm content in an alarm content set that satisfies the alarm content transmission rule, and transmit the target alarm content to a target object, where the alarm content set includes alarm contents for each target service level.
  9. 9. An electronic device comprising a memory, a processor and a computer program stored on the memory, characterized in that the processor executes the computer program to carry out the steps of the method of any one of claims 1-7.
  10. 10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any of claims 1-7.
  11. 11. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any of claims 1-7.

Description

Data detection method, apparatus, device, readable storage medium, and program product Technical Field The present disclosure relates to the field of computer technology, and in particular, to a data detection method, apparatus, device, readable storage medium, and program product. Background In the prior art, a detection alarm system detects and alarms service data of a service platform, if the service data meets an alarm threshold, the detection alarm system triggers an alarm, and the detection alarm system always detects and alarms with single index based on the service data reported by the service platform, and can not analyze the reported service data layer by layer and can not alarm in a targeted and hierarchical manner, so that the alarm is frequently triggered for the service data with larger fluctuation, and the alarm is not easily triggered for the service data with overlarge alarm threshold, so that the alarm efficiency of the service data is lower. Disclosure of Invention The present disclosure addresses the shortcomings of the existing approaches by providing a data detection method, apparatus, device, computer-readable storage medium, and computer program product for solving the problem of how to improve the alert efficiency of service data. In a first aspect, the present disclosure provides a data detection method, including: acquiring a to-be-detected service data set of a target service, wherein the to-be-detected service data set comprises service data of a plurality of service levels of the target service; Acquiring a preset detection alarm rule corresponding to a target service, wherein the detection alarm rule comprises first service data identifiers of all service levels in a plurality of service levels, a level relation among all service levels and first alarm conditions corresponding to each service level in all service levels; Determining service data of each service level of the target service from the service data set to be detected based on the first service data identification of each service level; Determining, in sequence, from each service level, a target service level, for which service data satisfies a first alarm condition of the corresponding service level, based on a level relationship between each service level, and generating alarm content for each target service level, wherein if the target service level is one service level, the target service level is a highest-level service level, and if the target service level includes at least two service levels, the at least two service levels are at least two consecutive service levels including the highest-level service level; And determining target alarm content meeting the alarm content transmission rule in an alarm content set based on a preset alarm content transmission rule, and transmitting the target alarm content to a target object, wherein the alarm content set comprises alarm content aiming at each target service level. In one embodiment, the business data of each of the plurality of business levels comprises business data of a plurality of dimensions, the detection alert rule further comprises a second business data identification of each of the plurality of dimensions of each of the business levels, a hierarchical relationship between the plurality of dimensions, and a second alert condition corresponding to each of the plurality of dimensions of the business level, further comprising: for each business level, determining business data of each dimension of the business level from business data of the business level based on a second business data identification of each dimension of the business level; For each target service level, determining target dimensions of which service data meet corresponding second alarm conditions from the dimensions of the target service level in sequence based on the level relation among the dimensions of the target service level, and generating alarm content for each target dimension; the alarm content set further comprises alarm content for each target dimension. In one embodiment, determining, in turn, from each business level, based on a hierarchical relationship between the business levels, a target business level for which the business data satisfies a first alert condition for the corresponding business level, and generating alert content for each target business level, includes: According to the hierarchy relation among the service hierarchies, the following judging operations are sequentially executed according to the sequence from high to low of the hierarchy level of each service hierarchy until the service data of the current service hierarchy does not meet the first alarm condition corresponding to the current service hierarchy, or the service data of the current service hierarchy meets the first alarm condition corresponding to the current service hierarchy and the current service hierarchy is the last hierarchy; Wherein the judging operation comprises the following step