Search

CN-116738013-B - Data alarming method and device

CN116738013BCN 116738013 BCN116738013 BCN 116738013BCN-116738013-B

Abstract

One or more embodiments of the present specification disclose a data alarm method and apparatus. The method comprises the steps of firstly obtaining target data to be processed, then determining a target data view corresponding to the target data from a pre-built data view list according to a data source identifier of the obtained target data, determining an alarm condition corresponding to the target data view from pre-configured alarm conditions based on configuration information of the target data view, wherein the target data view at least comprises fields of the target data and a field path of the fields, and finally carrying out alarm processing on the target data based on the determined alarm condition and the field path of the fields in the target data view.

Inventors

  • YUAN QIMING

Assignees

  • 支付宝(杭州)信息技术有限公司

Dates

Publication Date
20260505
Application Date
20230614

Claims (10)

  1. 1. A data alert method comprising: acquiring target data to be processed; Determining a target data view corresponding to the target data from a pre-constructed data view list according to the data source identification of the target data, and determining an alarm condition corresponding to the target data view from pre-configured alarm conditions based on configuration information of the target data view, wherein the target data view at least comprises a field of the target data and a field path of the field; Performing alarm processing on the target data based on the determined alarm condition and the field path of the field in the target data view; wherein the data view list includes data views constructed based on historical data, the historical data including the same data structure as the target data.
  2. 2. The method of claim 1, wherein the target data comprises structured data or semi-structured data.
  3. 3. The method of claim 1, the method further comprising: Acquiring a plurality of historical data; according to the data structure of the obtained historical data, each historical data is converted into a corresponding data view, and the data view at least comprises fields of the corresponding historical data and field paths of the corresponding historical data fields; and constructing the data view list based on the data view of each historical data.
  4. 4. The method of claim 1, wherein the view configuration information comprises a data source identifier, a data source format associated with the data view, and field information of a plurality of fields contained in the data, wherein the field information comprises a field identifier, a field data type, and a field path.
  5. 5. The method of claim 4, the method further comprising: Determining the value of an alarm parameter in data corresponding to each data view according to field information of each field in each data view of the data view list, wherein the alarm parameter is an object for alarm detection based on the alarm condition; and determining the threshold value of the alarm parameter in the alarm condition corresponding to each field according to the field data type of each field in each data view.
  6. 6. The method of claim 5, the data view corresponding to a plurality of alert conditions, the method further comprising: Receiving an instruction for increasing the alarm condition relation; According to the acquired instructions, a logical relationship between a plurality of alarm conditions is configured.
  7. 7. The method of claim 5, the alerting the target data based on the determined alert condition and a field path of the field in the target data view, comprising: determining an alarm condition corresponding to the target data view according to a data source identifier of data corresponding to the target data view, and determining a corresponding field based on the alarm condition; determining the type of a parser for parsing the determined field according to the data source format of the target data view; Converting the data corresponding to the target data view into corresponding data objects according to different data source formats based on a format generation algorithm; inputting the data object and the field path corresponding to the determined field into the parser to obtain a parsed value; And carrying out alarm processing on the target data based on the analysis value and the threshold value of the alarm parameter in the alarm condition corresponding to the determined field.
  8. 8. The method of claim 7, wherein the alert processing the target data based on the resolution value and the threshold value of the alert parameter in the alert condition corresponding to the determined field comprises: acquiring an analysis value of an alarm condition corresponding to the determined field; Determining a first alarm calculation result corresponding to the alarm condition according to the analysis value of the alarm condition corresponding to the determined field and the threshold value of the alarm parameter in the alarm condition corresponding to the determined field; determining a second alarm calculation result according to a preset alarm condition calculation rule and the first alarm calculation result; And generating alarm information according to the second alarm calculation result.
  9. 9. A data alert device comprising: The data input module is used for acquiring target data to be processed; A target data view and alarm condition determining module, according to a data source identifier of the target data, determining a target data view corresponding to the target data from a pre-constructed data view list, and determining an alarm condition corresponding to the target data view from pre-configured alarm conditions based on configuration information of the target data view, wherein the target data view at least comprises a field of the target data and a field path of the field; the alarm calculation module is used for carrying out alarm processing on the target data based on the determined alarm condition and the field path of the field in the target data view; wherein the data view list includes data views constructed based on historical data, the historical data including the same data structure as the target data.
  10. 10. An electronic device, comprising: processor, and A memory arranged to store computer executable instructions that, when executed, enable the processor to: acquiring target data to be processed; Determining a target data view corresponding to the target data from a pre-constructed data view list according to the data source identification of the target data, and determining an alarm condition corresponding to the target data view from pre-configured alarm conditions based on configuration information of the target data view, wherein the target data view at least comprises a field of the target data and a field path of the field; Performing alarm processing on the target data based on the determined alarm condition and the field path of the field in the target data view; wherein the data view list includes data views constructed based on historical data, the historical data including the same data structure as the target data.

Description

Data alarming method and device Technical Field The present document relates to the technical field of alarm management, and in particular, to a data alarm method and device. Background In the technical field of alarm processing, the input content of an alarm system is usually data, and how to perform alarm management based on different types of data is an important problem in the alarm processing process. In the related art, data cleaning and processing are generally required for input data in an alarm system by a professional, and the input data needs to be split or converted into data of a specified type, when the alarm system needs to configure an alarm or start an alarm, the input data also needs to be developed pertinently by a technician, and when the content of the data changes, corresponding data processing logic, cleaning logic, table structure and the like also need to be changed correspondingly, so that an alarm processing mechanism capable of being better needs to be provided. Disclosure of Invention On one hand, one or more embodiments of the present disclosure provide a data alert method, which includes acquiring target data to be processed, determining a target data view corresponding to the target data from a pre-constructed data view list according to a data source identifier of the target data, determining an alert condition corresponding to the target data view from pre-configured alert conditions based on configuration information of the target data view, wherein the target data view at least includes a field of the target data and a field path of the field, and performing alert processing on the target data based on the determined alert condition and the field path of the field in the target data view. On the other hand, one or more embodiments of the present disclosure provide a data alarm device, which includes a data input module for acquiring target data to be processed, a target data view and alarm condition determining module for determining a target data view corresponding to the target data from a pre-constructed data view list according to a data source identifier of the target data, and determining an alarm condition corresponding to the target data view from pre-configured alarm conditions based on configuration information of the target data view, where the target data view includes at least a field of the target data and a field path of the field, and an alarm calculating module for performing alarm processing on the target data based on the determined alarm condition and the field path of the field in the target data view. In yet another aspect, one or more embodiments of the present specification provide an electronic device comprising a processor, and a memory arranged to store computer-executable instructions that, when executed, enable the processor to obtain target data to be processed, determine a target data view corresponding to the target data from a pre-constructed data view list according to a data source identification of the target data, and determine an alert condition corresponding to the target data view from pre-configured alert conditions based on configuration information of the target data view, the target data view including at least a field of the target data and a field path of the field, and alert process the target data based on the determined alert condition and the field path of the field in the target data view. In yet another aspect, one or more embodiments of the present disclosure provide a storage medium for storing computer-executable instructions that, when executed by a processor, implement a process of obtaining target data to be processed, determining a target data view corresponding to the target data from a pre-constructed data view list according to a data source identification of the target data, and determining an alarm condition corresponding to the target data view from pre-configured alarm conditions based on configuration information of the target data view, wherein the target data view includes at least a field of the target data and a field path of the field, and performing alarm processing on the target data based on the determined alarm condition and the field path of the field in the target data view. Drawings In order to more clearly illustrate one or more embodiments of the present specification or the prior art, the drawings that are required for the description of the embodiments or the prior art will be briefly described, and it is apparent that the drawings in the following description are only some embodiments described in one or more embodiments of the present specification, and other drawings may be obtained according to these drawings without inventive effort for a person of ordinary skill in the art. FIG. 1 is a schematic flow chart of a data alerting method in accordance with an embodiment of the present disclosure; FIG. 2 is a schematic diagram of a data view according to an embodiment of the present disclosu