WO2017118341A1 - Data monitoring method and apparatus - Google Patents

Data monitoring method and apparatus Download PDF

Info

Publication number
WO2017118341A1
WO2017118341A1 PCT/CN2016/113454 CN2016113454W WO2017118341A1 WO 2017118341 A1 WO2017118341 A1 WO 2017118341A1 CN 2016113454 W CN2016113454 W CN 2016113454W WO 2017118341 A1 WO2017118341 A1 WO 2017118341A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
period
proportional
sampling
proportional position
Prior art date
Application number
PCT/CN2016/113454
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 WO2017118341A1 publication Critical patent/WO2017118341A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0201Market modelling; Market analysis; Collecting market data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0623Item investigation
    • G06Q30/0625Directed, with specific intent or strategy

Definitions

  • the present application relates to the field of computer technology, and in particular, to a data monitoring method and apparatus.
  • the commonly used data monitoring method is to use a manual monitoring method or a simple script file for data comparison, and judge whether the data has stability problem according to the comparison result.
  • the technical problem to be solved by the present application is to provide a data monitoring method and device, which can reduce the workload while realizing data monitoring.
  • the application provides a data monitoring method, including:
  • the data sampling configuration indicating a proportional position of the sampled data
  • the data to be monitored includes sampling data of multiple cycles; the proportional position includes the same proportional position of at least two periods, at least two proportional positions of the same period, or at least two of the total number of periods Proportional position.
  • the proportional position includes a first proportional position of the first period and the second period;
  • Obtaining data fluctuation characteristics of the at least two sampled data including:
  • the data fluctuation feature is obtained based on the comparison result.
  • the method includes: the proportional position includes a first proportional position of the first period and the second period, and a second proportional position of the first period and the second period;
  • sampling data corresponding to a first proportional position of the first period sampling data corresponding to a first proportional position of the second period, sampling data corresponding to a second proportional position of the first period, and a second period The sampling data corresponding to the second proportional position;
  • Obtaining data fluctuation characteristics of the at least two sampled data including:
  • the data fluctuation feature is obtained according to the first comparison result and the second comparison result.
  • the proportional position includes at least three proportional positions of the current period
  • Obtaining data fluctuation characteristics of the at least two sampled data including:
  • the data fluctuation feature is acquired according to the change trend.
  • the proportional position includes at least three proportional positions of the total number of cycles
  • Obtaining data fluctuation characteristics of the at least two sampled data including:
  • the data fluctuation feature includes at least one of the following data features:
  • the fluctuation amount, the fluctuation ratio, the fluctuation amount or the fluctuation ratio attribute, the fluctuation tendency, and the standard deviation of the at least two sampled data are the fluctuation amount, the fluctuation ratio, the fluctuation amount or the fluctuation ratio attribute, the fluctuation tendency, and the standard deviation of the at least two sampled data.
  • the application provides a data monitoring device, including:
  • a configuration acquiring unit configured to acquire a data sampling configuration, where the data sampling configuration indicates a proportional position of the sampled data
  • a data acquiring unit configured to acquire at least two sampling data corresponding to the proportional position from data to be monitored
  • a feature acquiring unit configured to acquire data fluctuation characteristics of the at least two sampled data
  • a result obtaining unit configured to obtain, according to the data fluctuation feature, a monitoring result of the data to be monitored.
  • the data to be monitored includes sampling data of multiple cycles; the proportional position includes the same proportional position of at least two periods, at least two proportional positions of the same period, or at least two of the total number of periods Proportional position.
  • the feature acquiring unit is configured to compare sampling data corresponding to the first proportional position of the second period with sampling data corresponding to the first proportional position of the first period, to obtain a comparison result, and according to the comparison result The data fluctuation characteristics are obtained.
  • the proportional position includes a first proportional position of the first period and the second period, and a second proportional position of the first period and the second period;
  • the data acquiring unit is configured to: obtain, from the data to be monitored, sampling data corresponding to a first proportional position of a first period, sampling data corresponding to a first proportional position of a second period, and a second ratio of the first period Sampling data corresponding to the location and sampling data corresponding to the second proportional position of the second period;
  • the feature acquiring unit is configured to compare sampling data corresponding to the first proportional position of the second period with sampling data corresponding to the first proportional position of the first period, to obtain a first comparison result, where the first Comparing the sampling data corresponding to the second proportional position of the two periods with the sampling data corresponding to the second proportional position of the first period, obtaining a second comparison result, and obtaining the basis according to the first comparison result and the second comparison result.
  • the data acquiring unit is configured to: obtain, from the data to be monitored, sampling data corresponding to at least three proportional positions of a current period;
  • the feature acquiring unit is configured to acquire a trend of the sampling data corresponding to the adjacent proportional position according to the sampling data corresponding to the at least three proportional positions of the current period, and acquire the data fluctuation feature according to the changing trend.
  • the proportional position includes at least three proportional positions of the total number of cycles
  • the data acquiring unit is configured to: acquire, from the data to be monitored, sampling data of a period corresponding to the at least three proportional positions in all periods;
  • the feature acquiring unit is configured to obtain the data fluctuation feature according to the sampling data of the period corresponding to the at least three proportional positions.
  • the data fluctuation feature includes at least one of the following data features:
  • the fluctuation amount, the fluctuation ratio, the fluctuation amount or the fluctuation ratio attribute, the fluctuation tendency, and the standard deviation of the at least two sampled data are the fluctuation amount, the fluctuation ratio, the fluctuation amount or the fluctuation ratio attribute, the fluctuation tendency, and the standard deviation of the at least two sampled data.
  • FIG. 1 is a schematic flow chart of an embodiment of a method provided by the present application.
  • FIG. 3 is a schematic structural diagram of an apparatus embodiment provided by the present application.
  • Continuous data mainly refers to data representing business characteristics generated every fixed period in the database. For example, in big data, it usually produces one piece of data per day, one piece of data per week, or one piece of data per month, which can be stored in different partitions in the database.
  • the fluctuation of continuous data usually meets certain rules, and the rule is used to monitor the volatility of continuous data to ensure the continuous stability of data is called stability monitoring.
  • stability monitoring For example, a certain health bureau's data is monthly drug consumption. If this data suddenly increases, the fluctuation is more serious, which means that the number of patients in the area is increasing, and the health department needs to make an advance plan for a certain Drugs are macro-dispatched to ensure the health of members of society.
  • the commonly used data monitoring method is to use a manual monitoring method or a simple script file for data comparison, and judge whether the data has stability problem according to the comparison result.
  • the amount of data tends to be large, which will result in a large workload.
  • the embodiment of the present application provides a data monitoring method and device, which can reduce the workload while realizing data monitoring.
  • the present application provides an embodiment of a method for monitoring data.
  • the method of this embodiment includes:
  • the data sampling configuration may be pre-configured by the user to determine the proportional position of the sampled data, that is, the position at which the sampled data is located according to the ratio of (number or time, etc.).
  • Step 102 Obtain at least two sampling data corresponding to the proportional position from data to be monitored.
  • the data to be monitored may be read from a database such as an Open Data Processing Service (ODPS) or a data warehouse Hive.
  • ODPS Open Data Processing Service
  • Hive a database
  • the data to be monitored may include sampling data of a plurality of cycles; the proportional position may include at least two identical positions of at least two cycles, at least two proportional positions of the same cycle, or at least two of a total number of cycles Proportional position.
  • the details are as follows. Can be read from an offline database.
  • the proportional position includes the same proportional position of at least two cycles.
  • the proportional position includes the first proportional position of the first period and the second period, and then the sampling data corresponding to the first proportional position of the first period and the sampling data corresponding to the first proportional position of the second period are acquired in 102.
  • the first period is the current day
  • the second period is the previous day
  • the first proportional position is 30%
  • the sampling data corresponding to the first proportional position of the first period refers to all data of the current day, 30% of the corresponding sampling data, assuming that 100 samples of data are generated in chronological order on the same day, specifically may refer to the 30th (100 ⁇ 30%) sampling data
  • the sampling data corresponding to the second proportional position of the second period refers to the sampling data corresponding to the 30th position of all the data of the previous day.
  • the proportional position includes at least two proportional positions of the same period.
  • the proportional position includes the first proportional position and the second proportional position of the current period, and then the sampling data corresponding to the first proportional position of the current period and the sampling data corresponding to the second proportional position of the current period are acquired.
  • the first proportional position is 30%
  • the second proportional position is 60%.
  • the sampling data corresponding to the first proportional position of the current period refers to the sampling data corresponding to the 30%th position of all the data of the current day.
  • the sampling data corresponding to the second proportional position of the period refers to the sampling data corresponding to the 60%th position of all the data of the day.
  • the proportional position includes at least two proportional positions of the total number of cycles.
  • the proportional position includes a first proportional position and a second proportional position of the total number of cycles, and in the total number of acquisition cycles in 102, the sampling data of the period corresponding to the first proportional position, and the second The sampling data of the period corresponding to the proportional position.
  • the first proportional position is 20%
  • the second proportional position is 40%
  • the total number of periods is 100.
  • the sampling data of the period corresponding to the first proportional position refers to the sampling data of the 20th period.
  • the sampling data of the period corresponding to the second proportional position refers to the sampling data of the 40th period.
  • the data fluctuation feature may include at least one of the following data characteristics: an attribute of the fluctuation amount, the fluctuation ratio, the fluctuation amount, or the fluctuation ratio of the at least two sampling data (for example, a standard deviation or a variance) Etc), fluctuation trends, and standard deviations, etc.
  • the data fluctuation feature may be stored in a database.
  • the sampled data is accumulated data
  • the at least two sampled data includes the total amount of commodities corresponding to the 5th hour of the day, and the 8th hour of the day corresponds to The total amount of goods
  • the data fluctuation characteristics can be obtained according to the fluctuation amount, the fluctuation ratio, the fluctuation amount or the fluctuation ratio data, or the fluctuation trend.
  • the sampled data is independent data, that is, the sampled data are independent of each other, for example, the at least two sampled data include the number of commodities respectively produced on the current day and the previous day, and the data fluctuation characteristics can be acquired according to the standard deviation.
  • the fluctuation characteristics of at least two sampled data can be reflected, thereby being capable of indirectly reflecting the fluctuation characteristics of the data to be monitored. Therefore, according to the data fluctuation feature, it can be determined whether the fluctuation of the data to be monitored exceeds a normal range, and if so, an alarm or prompt information can be generated for prompting the user. For example, if the data fluctuation characteristic is greater than a preset fluctuation threshold, an alarm or prompt information may be generated.
  • the data sampling configuration is obtained, where the data sampling configuration indicates the proportional position of the sampled data, and thus at least two sampling data corresponding to the proportional position are obtained from the data to be monitored, That is, the sampling of the data to be monitored is performed, and the monitoring result of the data to be monitored is obtained according to the data fluctuation characteristics of the sampled at least two sampling data. It can be seen that, in the embodiment of the present application, all data in the monitoring data is no longer monitored, but at least two sampling data are sampled by using the data sampling configuration, and data fluctuation characteristics of at least two sampling data are used for data monitoring, so While realizing data monitoring, it can reduce the workload.
  • the stability check rule may be preset, and the data fluctuation feature is calculated according to the stability check rule, thereby obtaining the band characteristic of the sampled data.
  • the stability check rule may be preset, and the data fluctuation feature is calculated according to the stability check rule, thereby obtaining the band characteristic of the sampled data.
  • the proportional position includes a first proportional position of the first period and the second period.
  • the first period, the second period, and the first proportional position may be set by the user in the data sampling configuration.
  • the first period may be the current day
  • the second period may be the first N days, where N may be Take values from the set (1, 3, 7).
  • the first proportional position may be a position corresponding to m%, and m may be a value in the set (20, 30, 40, 50, 60, 70, 80, 90).
  • the method 102 includes: acquiring sampling data corresponding to a first proportional position of the first period from the data to be monitored, and The sampling data corresponding to the first proportional position of the second period.
  • the sampled data may be accumulated data.
  • each sampled data corresponds to the total amount of commodities at a certain moment, and the data of the mth digit may be the total amount of commodities corresponding to the m%th position.
  • the method 103 includes: comparing sampling data corresponding to the first proportional position of the second period with sampling data corresponding to the first proportional position of the first period to obtain a comparison result; and obtaining the data fluctuation characteristic according to the comparison result.
  • the comparison result may be the fluctuation amount: XY or Fluctuation ratio: (XY) / X.
  • the comparison result may be compared with a preset fluctuation threshold. If the comparison result is greater than the preset fluctuation threshold, the fluctuation is relatively large, and the prompt or alarm information may be generated at this time.
  • the proportional position includes a first proportional position of the first period and the second period, and a second proportional position of the first period and the second period.
  • the first period, the second period, the first proportional position, and the second proportional position may all be set by the user in the data sampling configuration.
  • the first period may be the current day
  • the second period may be the first N days. , where N can take values in the set (1, 3, 7).
  • the first proportional position may be a position corresponding to m1%
  • the first proportional position may be a position corresponding to m2%
  • m1 and m2 are respectively taken in a set (20, 30, 40, 50, 60, 70, 80, 90) , m1 ⁇ m2.
  • the method includes: acquiring, from the data to be monitored, sampling data corresponding to a first proportional position of a first period, sampling data corresponding to a first proportional position of a second period, sampling data corresponding to a second proportional position of the first period, and The sample data corresponding to the second proportional position of the second period.
  • the sampling data corresponding to the m1% position and the sampling data corresponding to the m2% position of all the data of the day, and all the data of the first N days are at the m1%.
  • the sampled data may be accumulated data.
  • each sampled data corresponds to the total quantity of products at a certain moment, and the data of the m1%th bit may be the total quantity of commodities corresponding to the position of the m1%, and the data of the m2%th bit. It can be the total amount of goods corresponding to the m2% position.
  • sampling data corresponding to the first proportional position of the second period with sampling data corresponding to the first proportional position of the first period to obtain a first comparison result; and second ratio of the second period Location pair
  • the sampled data is compared with the sampled data corresponding to the second proportional position of the first cycle to obtain a second comparison result; and the data fluctuation feature is obtained according to the first comparison result and the second comparison result.
  • the attributes of the first comparison result and the second comparison result may be used as the data fluctuation feature.
  • the data fluctuation characteristic is compared with a preset fluctuation threshold. If the data fluctuation characteristic is greater than a preset fluctuation threshold, the fluctuation is relatively large, and the prompt or alarm information may be generated at this time.
  • the proportional position includes at least three proportional positions of the current period.
  • at least three proportional positions may be set by the user in the data sampling configuration, for example, the at least three proportional positions may include 1 minute, 2 minutes, 3 minutes, ..., 9 points, 9 in total position.
  • the method includes: acquiring sampling data corresponding to at least three proportional positions of the current period from the data to be monitored. For example, from the data to be monitored, among all the data of the day, the sampling data corresponding to the 10th, 20th, 30th, ..., 90thth positions respectively.
  • the method includes: acquiring, according to the sampling data corresponding to the at least three proportional positions of the current period, a variation trend of the sampling data corresponding to the adjacent proportional position; and acquiring the data fluctuation feature according to the changing trend.
  • the data fluctuation characteristics are mainly determined according to the trend of the sampled data.
  • the sampled data is continuously increased, for example, when the sampled data is specifically the age of the user, and if the change trend is judged at this time In order to increase, it indicates that the data fluctuation characteristics are better; on the contrary, if the change trend is increased or decreased, the data fluctuation characteristics are poor, and prompt or alarm information can be generated at this time.
  • the sampled data is continuously reduced.
  • the sampled data is specifically the remaining number of commodities, and at this time, the data fluctuation characteristics can be judged according to whether the change trend is always reduced.
  • the data fluctuation characteristics are acquired according to the sampling data corresponding to the proportional position of the time.
  • the proportional position includes at least three proportional positions of the total number of cycles.
  • at least three proportional positions may be set by the user in a data sampling configuration, for example, the at least three proportional positions may include 2 The position corresponding to the quantile, 4th, 6th, and 8th positions.
  • the method includes: acquiring, from the data to be monitored, sampling data of a period corresponding to the at least three proportional positions in all periods. For example, a total of 30 cycles (for example, 1 cycle per cycle) are obtained, and sampling data of the 20th, 40th, 60th, and 80thth positions respectively corresponding to the positions of the 30th cycle, that is, the first The sample data corresponding to the 6th, 12th, 18th, and 24th cycles, respectively.
  • the sampled data may be independent data.
  • the sampled data of each cycle may be the total number of data generated in this cycle.
  • the method 103 includes: obtaining the data fluctuation feature according to sampling data of a period corresponding to the at least three proportional positions respectively.
  • the standard deviation of the sampling data of the period corresponding to the at least three proportional positions may be used as the data fluctuation characteristic.
  • the standard deviation is calculated based on the total number of pieces of data generated at the sixth, twelfth, eighteenth, and twenty-fourth cycles.
  • the calculated standard deviation can be compared with a preset fluctuation threshold. If the calculated standard deviation is greater than the preset fluctuation threshold, the fluctuation is relatively large, and a prompt or alarm information can be generated at this time.
  • the fluctuation value or the fluctuation ratio between the periods of the adjacent proportional positions may be separately calculated, and the data fluctuation characteristics may be determined according to the fluctuation value or the variation trend of the fluctuation ratio.
  • the sampled data is the drug consumption value
  • the fluctuation ratio of the adjacent two data is calculated according to the drug consumption value generated in the sixth, twelfth, 18th, and 24th cycles, and if the fluctuation ratio is continuously high, the health is indicated.
  • the degree is decreasing, and a prompt or alarm message can be generated at this time.
  • the present application provides an embodiment of a method for monitoring data.
  • the method of this embodiment includes:
  • the data sampling configuration indicates a proportional position of the sampled data.
  • the embodiment of the present application further provides a corresponding device embodiment, which is specifically described below.
  • the present application provides an apparatus embodiment of a data monitoring apparatus.
  • the device of the embodiment The configuration includes: a configuration acquisition unit 301, a data acquisition unit 302, a feature acquisition unit 303, and a result acquisition unit 304.
  • the configuration obtaining unit 301 is configured to acquire a data sampling configuration, where the data sampling configuration indicates a proportional position of the sampled data.
  • the data sampling configuration may be pre-configured by the user to determine the proportional position of the sampled data, that is, the position at which the sampled data is located according to the ratio of (number or time, etc.). For example, the proportional position of the sampled data is m%, indicating that the sampled data is located at a position corresponding to the number or time ratio of m%.
  • the data obtaining unit 302 is configured to acquire at least two sampling data corresponding to the proportional position from the data to be monitored.
  • the data to be monitored may include sampling data of a plurality of periods; the proportional position may include the same proportional position of at least two periods, at least two proportional positions of the same period, or at least two of the total number of periods Proportional position.
  • the proportional position includes the same proportional position of at least two cycles.
  • the proportional position includes a first proportional position of the first period and the second period, and the data acquiring unit 302 acquires sampling data corresponding to the first proportional position of the first period and sampling corresponding to the first proportional position of the second period. data.
  • the proportional position includes at least two proportional positions of the same period.
  • the proportional position includes the first proportional position and the second proportional position of the current period, and the data acquiring unit 302 acquires the sampling data corresponding to the first proportional position of the current period and the sampling data corresponding to the second proportional position of the current period.
  • the proportional position includes at least two proportional positions of the total number of cycles.
  • the proportional position includes a first proportional position and a second proportional position of the total number of cycles, and the data acquiring unit 302 acquires sampling data of a period corresponding to the first proportional position, and the The sampling data of the period corresponding to the second proportional position.
  • the feature acquiring unit 303 is configured to acquire data fluctuation characteristics of the at least two pieces of sample data.
  • the data fluctuation feature may include at least one of the following data characteristics: an attribute of the fluctuation amount, the fluctuation ratio, the fluctuation amount, or the fluctuation ratio of the at least two sampling data (for example, a standard deviation or a variance) Etc), fluctuation trends, and standard deviations, etc.
  • the data fluctuation characteristic may be according to Data on fluctuations, volatility, volatility or volatility, or volatility acquisition.
  • the sampled data is independent data
  • the at least two sampled data includes the number of commodities respectively produced on the current day and the previous day
  • the data fluctuation characteristics may be acquired according to the standard deviation.
  • the result obtaining unit 304 is configured to obtain a monitoring result of the data to be monitored according to the data fluctuation feature.
  • the device may further include a generating unit, configured to determine, according to the data fluctuation feature, whether the fluctuation of the data to be monitored exceeds a normal range, and if yes, generate an alarm or prompt information for prompting the user . For example, if the data fluctuation characteristic is greater than a preset fluctuation threshold, an alarm or prompt information may be generated.
  • all data in the monitoring data is no longer monitored, but at least two sampling data are sampled by using the data sampling configuration, and data fluctuation characteristics of at least two sampling data are used for data monitoring, so While realizing data monitoring, it can reduce the workload.
  • the stability check rule may be preset, and the data fluctuation feature is calculated according to the stability check rule, thereby obtaining the band characteristic of the sampled data.
  • the stability check rule may be preset, and the data fluctuation feature is calculated according to the stability check rule, thereby obtaining the band characteristic of the sampled data.
  • data fluctuation characteristics are acquired according to sampling data corresponding to the same proportional position of at least two periods.
  • the proportional position includes a first proportional position of the first period and the second period.
  • the data obtaining unit 302 is configured to acquire, from the data to be monitored, sampling data corresponding to a first proportional position of a first period and sampling data corresponding to a first proportional position of a second period.
  • the feature acquiring unit 303 is configured to compare sampling data corresponding to the first proportional position of the second period with sampling data corresponding to the first proportional position of the first period, obtain a comparison result, and obtain the comparison result according to the comparison result.
  • the data fluctuation feature is configured to acquire, from the data to be monitored, sampling data corresponding to a first proportional position of a first period and sampling data corresponding to a first proportional position of a second period.
  • the comparison result may be a fluctuation amount or a fluctuation ratio.
  • the comparison result may be compared with a preset fluctuation threshold. If the comparison result is greater than the preset fluctuation threshold, the fluctuation is relatively large, and the prompt or alarm information may be generated at this time.
  • data fluctuation characteristics are acquired according to sampling data corresponding to a plurality of identical proportional positions of at least two periods.
  • the proportional position includes a first proportional position of the first period and the second period, and a second proportional position of the first period and the second period.
  • the data obtaining unit 302 is configured to: obtain, from the data to be monitored, sampling data corresponding to a first proportional position of a first period, sampling data corresponding to a first proportional position of a second period, and a second proportional position of the first period. Corresponding sample data and sample data corresponding to the second proportional position of the second period.
  • the feature acquiring unit 303 is specifically configured to: sample data corresponding to the first proportional position of the second period and the first period Comparing the sampling data corresponding to the first proportional position, obtaining a first comparison result, comparing the sampling data corresponding to the second proportional position of the second period with the sampling data corresponding to the second proportional position of the first period, to obtain the first And comparing the results, and obtaining the data fluctuation characteristic according to the first comparison result and the second comparison result.
  • the first comparison result may be a fluctuation amount or a fluctuation ratio
  • the second comparison result may be a fluctuation amount or a fluctuation ratio.
  • the attributes of the first comparison result and the second comparison result such as standard deviation, variance, or change trend, etc., may be used as the data fluctuation feature.
  • the data fluctuation characteristic is compared with a preset fluctuation threshold. If the data fluctuation characteristic is greater than a preset fluctuation threshold, the fluctuation is relatively large, and the prompt or alarm information may be generated at this time.
  • the proportional position includes at least three proportional positions of the current period.
  • the data obtaining unit 302 is configured to: obtain, from the data to be monitored, sampling data corresponding to at least three proportional positions of the current period respectively;
  • the feature acquiring unit 303 is specifically configured to: respectively, according to at least three proportional positions of the current period Sampling data, obtaining a trend of the sampling data corresponding to the adjacent proportional position; and acquiring the data fluctuation characteristic according to the changing trend.
  • the data fluctuation characteristics are mainly determined according to the trend of the sampled data.
  • the sampled data is continuously increased, for example, when the sampled data is specifically the age of the user, and if the change trend is judged at this time In order to increase, it indicates that the data fluctuation characteristics are better; on the contrary, if the change trend is increased or decreased, the data fluctuation characteristics are poor, and prompt or alarm information can be generated at this time.
  • the sampled data is continuously reduced.
  • the sampled data is specifically the remaining number of commodities, and at this time, the data fluctuation characteristics can be judged according to whether the change trend is always reduced.
  • the data fluctuation characteristics are acquired according to the sampling data corresponding to the proportional position of the time.
  • the proportional position includes at least three proportional positions of the total number of cycles; the data obtaining unit 302 is specifically configured to: acquire, from the data to be monitored, a period corresponding to the at least three proportional positions in all the periods And the feature acquiring unit 303 is configured to obtain the data fluctuation feature according to the sampling data of the period corresponding to the at least three proportional positions.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • a computer readable storage medium A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Landscapes

  • Business, Economics & Management (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Game Theory and Decision Science (AREA)
  • Data Mining & Analysis (AREA)
  • Testing And Monitoring For Control Systems (AREA)

Abstract

A data monitoring method and apparatus. The method comprises: acquiring a data sampling configuration, wherein the data sampling configuration indicates the proportional position of sampled data (101); acquiring, from data to be monitored, at least two pieces of sampled data corresponding to the proportional position (102); acquiring a data fluctuation feature of the at least two pieces of sampled data (103); and according to the data fluctuation feature, obtaining a monitoring result of the data to be monitored (104). Since not all data in the data to be monitored need to be monitored, instead, at least two pieces of sampled data are sampled by means of a data sampling configuration, and the data is monitored by means of a data fluctuation feature of the at least two pieces of sampled data, data monitoring is realized, and at the same time, workloads can be reduced.

Description

一种数据的监控方法及装置Data monitoring method and device
本申请要求2016年01月06日递交的申请号为201610007303.5、发明名称为“一种数据的监控方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims the priority of the Chinese Patent Application Serial No. No. No. No. No. No.
技术领域Technical field
本申请涉及计算机技术领域,尤其是涉及一种数据的监控方法及装置。The present application relates to the field of computer technology, and in particular, to a data monitoring method and apparatus.
背景技术Background technique
在大数据时代,数据被越来越广泛的分析和使用,但是由于数据的数据量越来越大,收集过程越来越复杂,导致数据难免会出现稳定性问题。因此,如何能够对数据的稳定性进行监控就显得尤为重要。In the era of big data, data is being analyzed and used more and more widely. However, due to the increasing data volume of data, the collection process becomes more and more complicated, which leads to stability problems in data. Therefore, how to monitor the stability of data is particularly important.
目前常用的数据监控方式是,通过人工监控的方式,或者利用简单的脚本文件进行数据比对,根据比对结果判断数据是否出现稳定性问题。At present, the commonly used data monitoring method is to use a manual monitoring method or a simple script file for data comparison, and judge whether the data has stability problem according to the comparison result.
然而,无论是人工监控方式,还是利用简单的脚本文件进行监控的方式,由于数据量往往较大,因此将会导致较大的工作量。However, whether it is a manual monitoring method or a simple script file for monitoring, the amount of data tends to be large, which will result in a large workload.
发明内容Summary of the invention
本申请解决的技术问题在于提供一种数据的监控方法及装置,以实现数据监控的同时,能够减少工作量。The technical problem to be solved by the present application is to provide a data monitoring method and device, which can reduce the workload while realizing data monitoring.
为此,本申请解决技术问题的技术方案是:To this end, the technical solution to solve the technical problem of the present application is:
本申请提供了一种数据的监控方法,包括:The application provides a data monitoring method, including:
获取数据采样配置,所述数据采样配置指示出采样数据的比例位置;Acquiring a data sampling configuration, the data sampling configuration indicating a proportional position of the sampled data;
从待监控数据中获取所述比例位置对应的至少两个采样数据;Acquiring at least two sampling data corresponding to the proportional position from the data to be monitored;
获取所述至少两个采样数据的数据波动特征;Obtaining data fluctuation characteristics of the at least two sampled data;
根据所述数据波动特征,获得对所述待监控数据的监控结果。Obtaining a monitoring result of the data to be monitored according to the data fluctuation feature.
可选的,所述待监控数据中包括多个周期的采样数据;所述比例位置包括至少两个周期的相同比例位置、同一周期的至少两个比例位置、或者周期总个数的至少两个比例位置。Optionally, the data to be monitored includes sampling data of multiple cycles; the proportional position includes the same proportional position of at least two periods, at least two proportional positions of the same period, or at least two of the total number of periods Proportional position.
可选的,所述比例位置包括第一周期和第二周期的第一比例位置; Optionally, the proportional position includes a first proportional position of the first period and the second period;
从待监控数据中获取所述比例位置对应的至少两个采样数据,包括:Acquiring at least two sampling data corresponding to the proportional position from the data to be monitored, including:
从所述待监控数据中获取第一周期的第一比例位置对应的采样数据和第二周期的第一比例位置对应的采样数据;Obtaining sampling data corresponding to the first proportional position of the first period and sampling data corresponding to the first proportional position of the second period from the data to be monitored;
获取所述至少两个采样数据的数据波动特征,包括:Obtaining data fluctuation characteristics of the at least two sampled data, including:
将所述第二周期的第一比例位置对应的采样数据与第一周期的第一比例位置对应的采样数据进行比较,获得比较结果;Comparing the sampling data corresponding to the first proportional position of the second period with the sampling data corresponding to the first proportional position of the first period to obtain a comparison result;
根据所述比较结果获得所述数据波动特征。The data fluctuation feature is obtained based on the comparison result.
可选的,包括:所述比例位置包括第一周期和第二周期的第一比例位置,以及第一周期和第二周期的第二比例位置;Optionally, the method includes: the proportional position includes a first proportional position of the first period and the second period, and a second proportional position of the first period and the second period;
从待监控数据中获取至少两个采样数据,包括:Obtain at least two sample data from the data to be monitored, including:
从所述待监控数据中获取第一周期的第一比例位置对应的采样数据、第二周期的第一比例位置对应的采样数据、第一周期的第二比例位置对应的采样数据和第二周期的第二比例位置对应的采样数据;Obtaining, from the data to be monitored, sampling data corresponding to a first proportional position of the first period, sampling data corresponding to a first proportional position of the second period, sampling data corresponding to a second proportional position of the first period, and a second period The sampling data corresponding to the second proportional position;
获取所述至少两个采样数据的数据波动特征,包括:Obtaining data fluctuation characteristics of the at least two sampled data, including:
将所述第二周期的第一比例位置对应的采样数据与第一周期的第一比例位置对应的采样数据进行比较,获得第一比较结果;Comparing the sampling data corresponding to the first proportional position of the second period with the sampling data corresponding to the first proportional position of the first period to obtain a first comparison result;
将所述第二周期的第二比例位置对应的采样数据与第一周期的第二比例位置对应的采样数据进行比较,获得第二比较结果;Comparing the sampling data corresponding to the second proportional position of the second period with the sampling data corresponding to the second proportional position of the first period to obtain a second comparison result;
根据所述第一比较结果和所述第二比较结果获得所述数据波动特征。The data fluctuation feature is obtained according to the first comparison result and the second comparison result.
可选的,所述比例位置包括当前周期的至少三个比例位置;Optionally, the proportional position includes at least three proportional positions of the current period;
从待监控数据中获取所述比例位置对应的至少两个采样数据,包括:Acquiring at least two sampling data corresponding to the proportional position from the data to be monitored, including:
从所述待监控数据中获取当前周期的至少三个比例位置分别对应的采样数据;Obtaining sampling data corresponding to at least three proportional positions of the current period from the data to be monitored;
获取所述至少两个采样数据的数据波动特征,包括:Obtaining data fluctuation characteristics of the at least two sampled data, including:
根据当前周期的至少三个比例位置分别对应的采样数据,获取相邻比例位置对应的采样数据的变化趋势;Obtaining a change trend of sampling data corresponding to the adjacent proportional position according to sampling data corresponding to at least three proportional positions of the current period;
根据所述变化趋势,获取所述数据波动特征。The data fluctuation feature is acquired according to the change trend.
可选的,所述比例位置包括周期总个数的至少三个比例位置;Optionally, the proportional position includes at least three proportional positions of the total number of cycles;
从待监控数据中获取所述比例位置对应的至少两个采样数据,包括:Acquiring at least two sampling data corresponding to the proportional position from the data to be monitored, including:
从所述待监控数据中获取所有周期中,所述至少三个比例位置分别对应的周期的采样数据; Obtaining, from the data to be monitored, sampling data of a period corresponding to the at least three proportional positions in all periods;
获取所述至少两个采样数据的数据波动特征,包括:Obtaining data fluctuation characteristics of the at least two sampled data, including:
根据所述至少三个比例位置分别对应的周期的采样数据,获得所述数据波动特征。And obtaining the data fluctuation feature according to the sampling data of the period corresponding to the at least three proportional positions respectively.
可选的,所述数据波动特征包括以下数据特征中的至少一种:Optionally, the data fluctuation feature includes at least one of the following data features:
所述至少两个采样数据的波动量、波动比例、波动量或波动比例的属性、波动趋势、以及标准差。The fluctuation amount, the fluctuation ratio, the fluctuation amount or the fluctuation ratio attribute, the fluctuation tendency, and the standard deviation of the at least two sampled data.
本申请提供了一种数据的监控装置,包括:The application provides a data monitoring device, including:
配置获取单元,用于获取数据采样配置,所述数据采样配置指示出采样数据的比例位置;a configuration acquiring unit, configured to acquire a data sampling configuration, where the data sampling configuration indicates a proportional position of the sampled data;
数据获取单元,用于从待监控数据中获取所述比例位置对应的至少两个采样数据;a data acquiring unit, configured to acquire at least two sampling data corresponding to the proportional position from data to be monitored;
特征获取单元,用于获取所述至少两个采样数据的数据波动特征;a feature acquiring unit, configured to acquire data fluctuation characteristics of the at least two sampled data;
结果获取单元,用于根据所述数据波动特征,获得对所述待监控数据的监控结果。And a result obtaining unit, configured to obtain, according to the data fluctuation feature, a monitoring result of the data to be monitored.
可选的,所述待监控数据中包括多个周期的采样数据;所述比例位置包括至少两个周期的相同比例位置、同一周期的至少两个比例位置、或者周期总个数的至少两个比例位置。Optionally, the data to be monitored includes sampling data of multiple cycles; the proportional position includes the same proportional position of at least two periods, at least two proportional positions of the same period, or at least two of the total number of periods Proportional position.
可选的,所述比例位置包括第一周期和第二周期的第一比例位置;Optionally, the proportional position includes a first proportional position of the first period and the second period;
所述数据获取单元具体用于,从所述待监控数据中获取第一周期的第一比例位置对应的采样数据和第二周期的第一比例位置对应的采样数据;The data acquiring unit is configured to: obtain, from the data to be monitored, sampling data corresponding to a first proportional position of a first period and sampling data corresponding to a first proportional position of a second period;
所述特征获取单元具体用于,将所述第二周期的第一比例位置对应的采样数据与第一周期的第一比例位置对应的采样数据进行比较,获得比较结果,以及根据所述比较结果获得所述数据波动特征。The feature acquiring unit is configured to compare sampling data corresponding to the first proportional position of the second period with sampling data corresponding to the first proportional position of the first period, to obtain a comparison result, and according to the comparison result The data fluctuation characteristics are obtained.
可选的,所述比例位置包括第一周期和第二周期的第一比例位置,以及第一周期和第二周期的第二比例位置;Optionally, the proportional position includes a first proportional position of the first period and the second period, and a second proportional position of the first period and the second period;
所述数据获取单元具体用于,从所述待监控数据中获取第一周期的第一比例位置对应的采样数据、第二周期的第一比例位置对应的采样数据、第一周期的第二比例位置对应的采样数据和第二周期的第二比例位置对应的采样数据;The data acquiring unit is configured to: obtain, from the data to be monitored, sampling data corresponding to a first proportional position of a first period, sampling data corresponding to a first proportional position of a second period, and a second ratio of the first period Sampling data corresponding to the location and sampling data corresponding to the second proportional position of the second period;
所述特征获取单元具体用于,将所述第二周期的第一比例位置对应的采样数据与第一周期的第一比例位置对应的采样数据进行比较,获得第一比较结果,将所述第二周期的第二比例位置对应的采样数据与第一周期的第二比例位置对应的采样数据进行比较,获得第二比较结果,以及根据所述第一比较结果和所述第二比较结果获得所述数据波动特征。 The feature acquiring unit is configured to compare sampling data corresponding to the first proportional position of the second period with sampling data corresponding to the first proportional position of the first period, to obtain a first comparison result, where the first Comparing the sampling data corresponding to the second proportional position of the two periods with the sampling data corresponding to the second proportional position of the first period, obtaining a second comparison result, and obtaining the basis according to the first comparison result and the second comparison result The characteristics of data fluctuations.
可选的,所述比例位置包括当前周期的至少三个比例位置;Optionally, the proportional position includes at least three proportional positions of the current period;
所述数据获取单元具体用于,从所述待监控数据中获取当前周期的至少三个比例位置分别对应的采样数据;The data acquiring unit is configured to: obtain, from the data to be monitored, sampling data corresponding to at least three proportional positions of a current period;
所述特征获取单元具体用于,根据当前周期的至少三个比例位置分别对应的采样数据,获取相邻比例位置对应的采样数据的变化趋势;根据所述变化趋势,获取所述数据波动特征。The feature acquiring unit is configured to acquire a trend of the sampling data corresponding to the adjacent proportional position according to the sampling data corresponding to the at least three proportional positions of the current period, and acquire the data fluctuation feature according to the changing trend.
可选的,所述比例位置包括周期总个数的至少三个比例位置;Optionally, the proportional position includes at least three proportional positions of the total number of cycles;
所述数据获取单元具体用于,从所述待监控数据中获取所有周期中,所述至少三个比例位置分别对应的周期的采样数据;The data acquiring unit is configured to: acquire, from the data to be monitored, sampling data of a period corresponding to the at least three proportional positions in all periods;
所述特征获取单元具体用于,根据所述至少三个比例位置分别对应的周期的采样数据,获得所述数据波动特征。The feature acquiring unit is configured to obtain the data fluctuation feature according to the sampling data of the period corresponding to the at least three proportional positions.
可选的,所述数据波动特征包括以下数据特征中的至少一种:Optionally, the data fluctuation feature includes at least one of the following data features:
所述至少两个采样数据的波动量、波动比例、波动量或波动比例的属性、波动趋势、以及标准差。The fluctuation amount, the fluctuation ratio, the fluctuation amount or the fluctuation ratio attribute, the fluctuation tendency, and the standard deviation of the at least two sampled data.
通过上述技术方案可知,本申请实施例中,获取数据采样配置,其中所述数据采样配置指示出采样数据的比例位置,因此从待监控数据中获取所述比例位置对应的至少两个采样数据,即相当于对所述待监控数据进行抽样,根据抽样出的至少两个采样数据的数据波动特征,获取对所述待监控数据的监控结果。可见,本申请实施例中不再对待监控数据的所有数据进行监控,而是利用数据采样配置从中抽样出至少两个采样数据,利用至少两个采样数据的数据波动特征进行数据监控,因此在实现数据监控的同时,能够减少工作量。According to the foregoing technical solution, in the embodiment of the present application, the data sampling configuration is obtained, where the data sampling configuration indicates the proportional position of the sampled data, and thus at least two sampling data corresponding to the proportional position are obtained from the data to be monitored, That is, the data to be monitored is sampled, and the monitoring result of the data to be monitored is obtained according to the data fluctuation characteristics of the at least two sampled data. It can be seen that, in the embodiment of the present application, all data of the monitoring data is no longer monitored, but at least two sampling data are sampled by using the data sampling configuration, and data fluctuation characteristics of at least two sampling data are used for data monitoring, thereby implementing Data monitoring can reduce the workload at the same time.
附图说明DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present application. Other figures may also be obtained from those of ordinary skill in the art in view of these figures.
图1为本申请提供的一种方法实施例的流程示意图;1 is a schematic flow chart of an embodiment of a method provided by the present application;
图2为本申请提供的另一种方法实施例的流程示意图;2 is a schematic flow chart of another method embodiment provided by the present application;
图3为本申请提供的一种装置实施例的结构示意图。 FIG. 3 is a schematic structural diagram of an apparatus embodiment provided by the present application.
具体实施方式detailed description
由于数据的数据量越来越大,收集过程越来越复杂,难免会由于数据出错或者数据本身波动较大等原因导致出现稳定性的问题。因此,如何能够对数据的稳定性进行监控,当数据发生问题的时候,及时发现并修复,就显得尤为重要。As the data volume of data increases, the collection process becomes more and more complicated, and it is inevitable that stability will occur due to data errors or large fluctuations in the data itself. Therefore, how to monitor the stability of the data, when the data is a problem, find and repair in time, it is particularly important.
连续数据,主要指的是数据库中每隔固定周期产生的表示业务特征的数据。例如,在大数据中,通常是每天产生一份数据,每周产生一份数据、或每月产生一份数据,这些数据可以被存储到数据库中不同的分区。Continuous data mainly refers to data representing business characteristics generated every fixed period in the database. For example, in big data, it usually produces one piece of data per day, one piece of data per week, or one piece of data per month, which can be stored in different partitions in the database.
连续数据的波动情况通常满足一定的规则,而利用该规则对连续数据的波动性进行监控,保证数据的连续稳定性称之为稳定性监控。例如,某一卫生局的某项数据是每月的药品消耗量,如果这项数据突然增加,波动比较严重,那就说明该地区患病人数在增加,卫生部门需要做提前预案,对某一药品进行宏观调度,来保证社会成员的健康。The fluctuation of continuous data usually meets certain rules, and the rule is used to monitor the volatility of continuous data to ensure the continuous stability of data is called stability monitoring. For example, a certain health bureau's data is monthly drug consumption. If this data suddenly increases, the fluctuation is more serious, which means that the number of patients in the area is increasing, and the health department needs to make an advance plan for a certain Drugs are macro-dispatched to ensure the health of members of society.
目前常用的数据监控方式是,通过人工监控的方式,或者利用简单的脚本文件进行数据比对,根据比对结果判断数据是否出现稳定性问题。然而,无论是人工监控方式,还是利用简单的脚本文件进行监控的方式,由于数据量往往较大,因此将会导致较大的工作量。At present, the commonly used data monitoring method is to use a manual monitoring method or a simple script file for data comparison, and judge whether the data has stability problem according to the comparison result. However, whether it is a manual monitoring method or a simple script file for monitoring, the amount of data tends to be large, which will result in a large workload.
本申请实施例提供一种数据的监控方法及装置,以实现数据监控的同时,能够减少工作量。The embodiment of the present application provides a data monitoring method and device, which can reduce the workload while realizing data monitoring.
为了使本技术领域的人员更好地理解本申请中的技术方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。The technical solutions in the embodiments of the present application are clearly and completely described in the following, in which the technical solutions in the embodiments of the present application are clearly and completely described. The embodiments are only a part of the embodiments of the present application, and not all of them. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope should fall within the scope of the present invention.
请参阅图1,本申请提供了数据的监控方法的一种方法实施例。本实施例的所述方法包括:Referring to FIG. 1, the present application provides an embodiment of a method for monitoring data. The method of this embodiment includes:
101:获取数据采样配置,所述数据采样配置指示出采样数据的比例位置。101: Acquire a data sampling configuration, where the data sampling configuration indicates a proportional position of the sampled data.
在本申请实施例中,可以由用户预先配置出数据采样配置,从而确定出采样数据的比例位置,即按照(个数或者时间等)比例,采样数据所位于的位置。例如,采样数据的比例位置为m%,表示采样数据位于个数或者时间比例为m%所对应的位置,也可以称为M分位,M=m/10。In the embodiment of the present application, the data sampling configuration may be pre-configured by the user to determine the proportional position of the sampled data, that is, the position at which the sampled data is located according to the ratio of (number or time, etc.). For example, the proportional position of the sampled data is m%, indicating that the sampled data is located at a position corresponding to the number or time ratio of m%, and may also be referred to as an M-score, M=m/10.
102:从待监控数据中获取所述比例位置对应的至少两个采样数据。 Step 102: Obtain at least two sampling data corresponding to the proportional position from data to be monitored.
本实施例中,可以从大数据计算服务(Open Data Processing Service,简称ODPS)、数据仓库Hive等数据库中读取所述待监控数据。In this embodiment, the data to be monitored may be read from a database such as an Open Data Processing Service (ODPS) or a data warehouse Hive.
其中,所述待监控数据可以包括多个周期的采样数据;所述比例位置可以包括至少两个周期的相同比例位置、同一周期的至少两个比例位置、或者周期的总个数的至少两个比例位置。下面分别具体说明。可以从离线数据库中读取。The data to be monitored may include sampling data of a plurality of cycles; the proportional position may include at least two identical positions of at least two cycles, at least two proportional positions of the same cycle, or at least two of a total number of cycles Proportional position. The details are as follows. Can be read from an offline database.
第一种情况,所述比例位置包括至少两个周期的相同比例位置。例如,所述比例位置包括第一周期和第二周期的第一比例位置,则102中获取第一周期的第一比例位置对应的采样数据以及第二周期的第一比例位置对应的采样数据。举例说明,所述第一周期为当天,所述第二周期为前一天,第一比例位置为30%,第一周期的第一比例位置对应的采样数据指的是当天的所有数据中,第30%的位置对应的采样数据,假设当天按时间顺序共产生了100个采样数据,则具体可以指第30(100×30%)个采样数据;第二周期的第二比例位置对应的采样数据指的是前一天的所有数据中,第30%的位置对应的采样数据。In the first case, the proportional position includes the same proportional position of at least two cycles. For example, the proportional position includes the first proportional position of the first period and the second period, and then the sampling data corresponding to the first proportional position of the first period and the sampling data corresponding to the first proportional position of the second period are acquired in 102. For example, the first period is the current day, the second period is the previous day, and the first proportional position is 30%, and the sampling data corresponding to the first proportional position of the first period refers to all data of the current day, 30% of the corresponding sampling data, assuming that 100 samples of data are generated in chronological order on the same day, specifically may refer to the 30th (100×30%) sampling data; the sampling data corresponding to the second proportional position of the second period Refers to the sampling data corresponding to the 30th position of all the data of the previous day.
第二种情况,所述比例位置包括同一周期的至少两个比例位置。例如,所述比例位置包括当前周期的第一比例位置和第二比例位置,则102中获取当前周期的第一比例位置对应的采样数据以及当前周期的第二比例位置对应的采样数据。举例说明,第一比例位置为30%,第二比例位置为60%,当前周期的第一比例位置对应的采样数据指的是当天的所有数据中,第30%的位置对应的采样数据,当前周期的第二比例位置对应的采样数据指的是当天的所有数据中,第60%的位置对应的采样数据。In the second case, the proportional position includes at least two proportional positions of the same period. For example, the proportional position includes the first proportional position and the second proportional position of the current period, and then the sampling data corresponding to the first proportional position of the current period and the sampling data corresponding to the second proportional position of the current period are acquired. For example, the first proportional position is 30%, and the second proportional position is 60%. The sampling data corresponding to the first proportional position of the current period refers to the sampling data corresponding to the 30%th position of all the data of the current day. The sampling data corresponding to the second proportional position of the period refers to the sampling data corresponding to the 60%th position of all the data of the day.
第三种情况,所述比例位置包括周期总个数的至少两个比例位置。例如,所述比例位置包括周期总个数的第一比例位置和第二比例位置,则102中获取周期总个数中,所述第一比例位置对应的周期的采样数据,以及所述第二比例位置对应的周期的采样数据。举例说明,第一比例位置为20%,第二比例位置为40%,周期总个数为100,所述第一比例位置对应的周期的采样数据指的是第20个周期的采样数据,所述第二比例位置对应的周期的采样数据指的是第40个周期的采样数据。In the third case, the proportional position includes at least two proportional positions of the total number of cycles. For example, the proportional position includes a first proportional position and a second proportional position of the total number of cycles, and in the total number of acquisition cycles in 102, the sampling data of the period corresponding to the first proportional position, and the second The sampling data of the period corresponding to the proportional position. For example, the first proportional position is 20%, the second proportional position is 40%, and the total number of periods is 100. The sampling data of the period corresponding to the first proportional position refers to the sampling data of the 20th period. The sampling data of the period corresponding to the second proportional position refers to the sampling data of the 40th period.
103:获取所述至少两个采样数据的数据波动特征。103: Acquire data fluctuation characteristics of the at least two sampled data.
在本申请实施例中,所述数据波动特征可以包括以下数据特征中的至少一种:所述至少两个采样数据的波动量、波动比例、波动量或波动比例的属性(例如标准差或者方差等)、波动趋势、以及标准差等等。本实施例在获取到所述数据波动特征之后,可以将所述数据波动特征存储在数据库中。 In the embodiment of the present application, the data fluctuation feature may include at least one of the following data characteristics: an attribute of the fluctuation amount, the fluctuation ratio, the fluctuation amount, or the fluctuation ratio of the at least two sampling data (for example, a standard deviation or a variance) Etc), fluctuation trends, and standard deviations, etc. After acquiring the data fluctuation feature in this embodiment, the data fluctuation feature may be stored in a database.
其中,当采样数据为累积的数据时,也就是说采样数据是累积形成的数据时,例如所述至少两个采样数据包括当天第5个小时对应的商品总量,以及当天第8个小时对应的商品总量,所述数据波动特征可以根据波动量、波动比例、波动量或波动比例的数据、或者波动趋势获取。Wherein, when the sampled data is accumulated data, that is to say, the sampled data is accumulated data, for example, the at least two sampled data includes the total amount of commodities corresponding to the 5th hour of the day, and the 8th hour of the day corresponds to The total amount of goods, the data fluctuation characteristics can be obtained according to the fluctuation amount, the fluctuation ratio, the fluctuation amount or the fluctuation ratio data, or the fluctuation trend.
当采样数据为独立的数据,也就是说采样数据之间相互独立时,例如所述至少两个采样数据包括当天和前一天分别生产的商品数量,所述数据波动特征可以根据标准差获取。When the sampled data is independent data, that is, the sampled data are independent of each other, for example, the at least two sampled data include the number of commodities respectively produced on the current day and the previous day, and the data fluctuation characteristics can be acquired according to the standard deviation.
104:根据所述数据波动特征,获得对所述待监控数据的监控结果。104: Obtain a monitoring result of the data to be monitored according to the data fluctuation feature.
由于所述数据波动特征,能够反映至少两个采样数据的波动特性,从而能够间接反映待监测数据的波动特性。因此,根据所述数据波动特征,能够确定出所述待监测数据的波动是否超出正常范围,如果是,则可以生成报警或者提示信息,用于提示用户。例如,所述数据波动特征大于预设的波动阈值,则可以生成报警或提示信息。Due to the data fluctuation characteristic, the fluctuation characteristics of at least two sampled data can be reflected, thereby being capable of indirectly reflecting the fluctuation characteristics of the data to be monitored. Therefore, according to the data fluctuation feature, it can be determined whether the fluctuation of the data to be monitored exceeds a normal range, and if so, an alarm or prompt information can be generated for prompting the user. For example, if the data fluctuation characteristic is greater than a preset fluctuation threshold, an alarm or prompt information may be generated.
通过上述技术方案可知,本申请实施例中,获取数据采样配置,其中所述数据采样配置指示出采样数据的比例位置,因此从待监控数据中获取所述比例位置对应的至少两个采样数据,即相当于对所述待监控数据中进行抽样,根据抽样出的至少两个采样数据的数据波动特征,获取对所述待监控数据的监控结果。可见,本申请实施例中不再对待监控数据中的所有数据进行监控,而是利用数据采样配置从中抽样出至少两个采样数据,利用至少两个采样数据的数据波动特征进行数据监控,因此在实现数据监控的同时,能够减少工作量。According to the foregoing technical solution, in the embodiment of the present application, the data sampling configuration is obtained, where the data sampling configuration indicates the proportional position of the sampled data, and thus at least two sampling data corresponding to the proportional position are obtained from the data to be monitored, That is, the sampling of the data to be monitored is performed, and the monitoring result of the data to be monitored is obtained according to the data fluctuation characteristics of the sampled at least two sampling data. It can be seen that, in the embodiment of the present application, all data in the monitoring data is no longer monitored, but at least two sampling data are sampled by using the data sampling configuration, and data fluctuation characteristics of at least two sampling data are used for data monitoring, so While realizing data monitoring, it can reduce the workload.
本申请实施例中,可以预置稳定性校验规则,根据稳定性校验规则计算数据波动特征,从而获取采样数据的波段特性。下面本申请实施例中将提供稳定性校验规则的四种可选的实现方式。In the embodiment of the present application, the stability check rule may be preset, and the data fluctuation feature is calculated according to the stability check rule, thereby obtaining the band characteristic of the sampled data. Four alternative implementations of the stability check rule will be provided in the following embodiments of the present application.
(1)第一种稳定性校验规则中,根据至少两个周期的相同比例位置对应的采样数据,获取数据波动特征。(1) In the first stability check rule, data fluctuation characteristics are acquired according to sampling data corresponding to the same proportional position of at least two periods.
具体地,所述比例位置包括第一周期和第二周期的第一比例位置。其中,第一周期,第二周期以及第一比例位置均可以由用户在数据采样配置中进行设定,例如,第一周期可以为当天,第二周期可以为第前N天,其中N可以在集合(1,3,7)中取值。第一比例位置可以为m%对应的位置,m可以在集合(20,30,40,50,60,70,80,90)中取值。Specifically, the proportional position includes a first proportional position of the first period and the second period. The first period, the second period, and the first proportional position may be set by the user in the data sampling configuration. For example, the first period may be the current day, and the second period may be the first N days, where N may be Take values from the set (1, 3, 7). The first proportional position may be a position corresponding to m%, and m may be a value in the set (20, 30, 40, 50, 60, 70, 80, 90).
102包括:从所述待监控数据中获取第一周期的第一比例位置对应的采样数据和第 二周期的第一比例位置对应的采样数据。The method 102 includes: acquiring sampling data corresponding to a first proportional position of the first period from the data to be monitored, and The sampling data corresponding to the first proportional position of the second period.
例如,从待监控数据中获取,当天的所有数据中在第m%的位置对应的采样数据,以及第前N天的所有数据中在第m%的位置对应的采样数据,若第m%的位置对应小数,可以对其进行四舍五入处理。其中,采样数据可以为累积的数据,例如,每个采样数据对应某一时刻的商品总量,第m%位的数据可以为第m%的位置对应的商品总量。For example, from the data to be monitored, the sampling data corresponding to the m% position of all the data of the day, and the sampling data corresponding to the m% position of all the data of the first N days, if the m% The position corresponds to a decimal and can be rounded off. The sampled data may be accumulated data. For example, each sampled data corresponds to the total amount of commodities at a certain moment, and the data of the mth digit may be the total amount of commodities corresponding to the m%th position.
103包括:将所述第二周期的第一比例位置对应的采样数据与第一周期的第一比例位置对应的采样数据进行比较,获得比较结果;根据所述比较结果获得所述数据波动特征。The method 103 includes: comparing sampling data corresponding to the first proportional position of the second period with sampling data corresponding to the first proportional position of the first period to obtain a comparison result; and obtaining the data fluctuation characteristic according to the comparison result.
例如,当天的所有数据中在第m%的位置对应的采样数据为X,第前N天的所有数据中在第m%的位置对应的数据为Y,该比较结果可以为波动量:X-Y或者波动比例:(X-Y)/X。可以将该比较结果与预设的波动阈值进行比较,若该比较结果大于预设的波动阈值,则说明波动比较大,此时可以生成提示或者报警信息。For example, in all the data of the day, the sampling data corresponding to the m% position is X, and the data corresponding to the m% position of all the data of the first N days is Y, and the comparison result may be the fluctuation amount: XY or Fluctuation ratio: (XY) / X. The comparison result may be compared with a preset fluctuation threshold. If the comparison result is greater than the preset fluctuation threshold, the fluctuation is relatively large, and the prompt or alarm information may be generated at this time.
(2)第二种稳定性校验规则中,根据至少两个周期的多个相同比例位置对应的采样数据,获取数据波动特征。(2) In the second stability check rule, data fluctuation characteristics are acquired according to sampling data corresponding to a plurality of identical proportional positions of at least two periods.
具体地,所述比例位置包括第一周期和第二周期的第一比例位置,以及第一周期和第二周期的第二比例位置。其中,第一周期,第二周期,第一比例位置以及第二比例位置均可以由用户在数据采样配置中进行设定,例如,第一周期可以为当天,第二周期可以为第前N天,其中N可以在集合(1,3,7)中取值。第一比例位置可以为m1%对应的位置,第一比例位置可以为m2%对应的位置,m1和m2分别在集合(20,30,40,50,60,70,80,90)中取值,m1<m2。Specifically, the proportional position includes a first proportional position of the first period and the second period, and a second proportional position of the first period and the second period. The first period, the second period, the first proportional position, and the second proportional position may all be set by the user in the data sampling configuration. For example, the first period may be the current day, and the second period may be the first N days. , where N can take values in the set (1, 3, 7). The first proportional position may be a position corresponding to m1%, the first proportional position may be a position corresponding to m2%, and m1 and m2 are respectively taken in a set (20, 30, 40, 50, 60, 70, 80, 90) , m1 < m2.
102包括:从所述待监控数据中获取第一周期的第一比例位置对应的采样数据、第二周期的第一比例位置对应的采样数据、第一周期的第二比例位置对应的采样数据和第二周期的第二比例位置对应的采样数据。The method includes: acquiring, from the data to be monitored, sampling data corresponding to a first proportional position of a first period, sampling data corresponding to a first proportional position of a second period, sampling data corresponding to a second proportional position of the first period, and The sample data corresponding to the second proportional position of the second period.
例如,从待监控数据中获取,当天的所有数据中在第m1%的位置对应的采样数据和在第m2%的位置对应的采样数据,以及第前N天的所有数据中在第m1%的位置对应的采样数据和在第m2%的位置对应的采样数据。其中,采样数据可以为累积的数据,例如,每个采样数据对应某一时刻的商品总量,第m1%位的数据可以为第m1%的位置对应的商品总量,第m2%位的数据可以为第m2%的位置对应的商品总量。For example, from the data to be monitored, the sampling data corresponding to the m1% position and the sampling data corresponding to the m2% position of all the data of the day, and all the data of the first N days are at the m1%. The sampling data corresponding to the position and the sampling data corresponding to the position of the m2%. The sampled data may be accumulated data. For example, each sampled data corresponds to the total quantity of products at a certain moment, and the data of the m1%th bit may be the total quantity of commodities corresponding to the position of the m1%, and the data of the m2%th bit. It can be the total amount of goods corresponding to the m2% position.
103包括:将所述第二周期的第一比例位置对应的采样数据与第一周期的第一比例位置对应的采样数据进行比较,获得第一比较结果;将所述第二周期的第二比例位置对 应的采样数据与第一周期的第二比例位置对应的采样数据进行比较,获得第二比较结果;根据所述第一比较结果和所述第二比较结果获得所述数据波动特征。103: comparing sampling data corresponding to the first proportional position of the second period with sampling data corresponding to the first proportional position of the first period to obtain a first comparison result; and second ratio of the second period Location pair The sampled data is compared with the sampled data corresponding to the second proportional position of the first cycle to obtain a second comparison result; and the data fluctuation feature is obtained according to the first comparison result and the second comparison result.
例如,当天的所有数据中在第m1%的位置对应的采样数据为X1,第前N天的所有数据中在第m1%的位置对应的采样数据为Y1,第一比较结果可以为波动量X1-Y1或者波动比例(X1-Y1)/X1。当天的所有数据中在第m2%的位置对应的采样数据为X2,第前N天的所有数据中在第m2%的位置对应的采样数据为Y2,第二比较结果可以为波动量X2-Y2或者波动比例(X2-Y2)/X2。For example, the sampling data corresponding to the m1% position of all the data of the day is X1, and the sampling data corresponding to the m1% position of all the data of the first N days is Y1, and the first comparison result may be the fluctuation amount X1. -Y1 or fluctuation ratio (X1-Y1)/X1. The sampling data corresponding to the m2% position of all the data of the day is X2, and the sampling data corresponding to the m2% position of all the data of the first N days is Y2, and the second comparison result may be the fluctuation amount X2-Y2. Or the fluctuation ratio (X2-Y2)/X2.
可以将第一比较结果和第二比较结果的属性,例如标准差、方差或者变化趋势等,作为所述数据波动特征。将所述数据波动特征与预设的波动阈值进行比较,若所述数据波动特征大于预设的波动阈值,则说明波动比较大,此时可以生成提示或者报警信息。The attributes of the first comparison result and the second comparison result, such as standard deviation, variance, or change trend, etc., may be used as the data fluctuation feature. The data fluctuation characteristic is compared with a preset fluctuation threshold. If the data fluctuation characteristic is greater than a preset fluctuation threshold, the fluctuation is relatively large, and the prompt or alarm information may be generated at this time.
(3)第三种稳定性校验规则中,根据同一周期的不同比例位置对应的采样数据,获取数据波动特征。(3) In the third stability check rule, data fluctuation characteristics are acquired according to sampling data corresponding to different proportional positions of the same period.
具体地,所述比例位置包括当前周期的至少三个比例位置。其中,至少三个比例位置可以由用户在数据采样配置中进行设定,例如,所述至少三个比例位置可以包括1分位、2分位、3分位、…、9分位共9个位置。Specifically, the proportional position includes at least three proportional positions of the current period. Wherein, at least three proportional positions may be set by the user in the data sampling configuration, for example, the at least three proportional positions may include 1 minute, 2 minutes, 3 minutes, ..., 9 points, 9 in total position.
102包括:从所述待监控数据中获取当前周期的至少三个比例位置分别对应的采样数据。例如,从待监控数据中获取,当天的所有数据中,在第10%、第20%、第30%、…、第90%的位置分别对应的采样数据。The method includes: acquiring sampling data corresponding to at least three proportional positions of the current period from the data to be monitored. For example, from the data to be monitored, among all the data of the day, the sampling data corresponding to the 10th, 20th, 30th, ..., 90thth positions respectively.
103包括:根据当前周期的至少三个比例位置分别对应的采样数据,获取相邻比例位置对应的采样数据的变化趋势;根据所述变化趋势,获取所述数据波动特征。The method includes: acquiring, according to the sampling data corresponding to the at least three proportional positions of the current period, a variation trend of the sampling data corresponding to the adjacent proportional position; and acquiring the data fluctuation feature according to the changing trend.
在这种规则中,主要根据采样数据的变化趋势判断数据波动特征,例如,在一些情况下,采样数据是不断增加的,例如当采样数据具体为用户的年龄,此时若判断出变化趋势一直为增加,则说明数据波动特征较好;反之,若变化趋势有增有减,则说明数据波动特征较差,此时可以生成提示或者报警信息。在另外一些情况下,采样数据是不断减少的,例如采样数据具体为商品的剩余个数,此时可以根据变化趋势是否一直减少,判断数据波动特征。In this rule, the data fluctuation characteristics are mainly determined according to the trend of the sampled data. For example, in some cases, the sampled data is continuously increased, for example, when the sampled data is specifically the age of the user, and if the change trend is judged at this time In order to increase, it indicates that the data fluctuation characteristics are better; on the contrary, if the change trend is increased or decreased, the data fluctuation characteristics are poor, and prompt or alarm information can be generated at this time. In other cases, the sampled data is continuously reduced. For example, the sampled data is specifically the remaining number of commodities, and at this time, the data fluctuation characteristics can be judged according to whether the change trend is always reduced.
(4)第四种稳定性校验规则中,根据时间的比例位置对应的采样数据,获取数据波动特征。(4) In the fourth stability check rule, the data fluctuation characteristics are acquired according to the sampling data corresponding to the proportional position of the time.
具体地,所述比例位置包括周期总个数的至少三个比例位置。其中,至少三个比例位置可以由用户在数据采样配置中进行设定,例如,所述至少三个比例位置可以包括2 分位、4分位、6分位和8分位对应的位置。Specifically, the proportional position includes at least three proportional positions of the total number of cycles. Wherein, at least three proportional positions may be set by the user in a data sampling configuration, for example, the at least three proportional positions may include 2 The position corresponding to the quantile, 4th, 6th, and 8th positions.
102包括:从所述待监控数据中获取所有周期中,所述至少三个比例位置分别对应的周期的采样数据。例如,共包括30个周期(例如每个周期为1天),获取30个周期中,第20%、第40%、第60%和第80%的位置分别对应的周期的采样数据,即第6个、第12个、第18个和第24个周期分别对应的采样数据。其中,采样数据可以为独立的数据,例如,每个周期的采样数据可以是这一周期产生的数据的总条数。The method includes: acquiring, from the data to be monitored, sampling data of a period corresponding to the at least three proportional positions in all periods. For example, a total of 30 cycles (for example, 1 cycle per cycle) are obtained, and sampling data of the 20th, 40th, 60th, and 80thth positions respectively corresponding to the positions of the 30th cycle, that is, the first The sample data corresponding to the 6th, 12th, 18th, and 24th cycles, respectively. The sampled data may be independent data. For example, the sampled data of each cycle may be the total number of data generated in this cycle.
103包括:根据所述至少三个比例位置分别对应的周期的采样数据,获得所述数据波动特征。The method 103 includes: obtaining the data fluctuation feature according to sampling data of a period corresponding to the at least three proportional positions respectively.
可以将所述至少三个比例位置分别对应的周期的采样数据的标准差,作为所述数据波动特征。例如,根据第6个、第12个、第18个和第24个周期产生的数据的总条数,计算标准差。可以将计算出的标准差与预设的波动阈值进行比较,若计算出的标准差大于预设的波动阈值,则说明波动比较大,此时可以生成提示或者报警信息。或者,也可以分别计算相邻比例位置的周期之间的波动值或者波动比例,根据波动值或者波动比例的变化趋势确定数据波动特征。例如,采样数据为药品消耗值,根据第6个、第12个、第18个和第24个周期产生的药品消耗值,计算相邻两个数据的波动比例,若波动比例连续变高说明健康程度在下降,此时可以生成提示或者报警信息。The standard deviation of the sampling data of the period corresponding to the at least three proportional positions may be used as the data fluctuation characteristic. For example, the standard deviation is calculated based on the total number of pieces of data generated at the sixth, twelfth, eighteenth, and twenty-fourth cycles. The calculated standard deviation can be compared with a preset fluctuation threshold. If the calculated standard deviation is greater than the preset fluctuation threshold, the fluctuation is relatively large, and a prompt or alarm information can be generated at this time. Alternatively, the fluctuation value or the fluctuation ratio between the periods of the adjacent proportional positions may be separately calculated, and the data fluctuation characteristics may be determined according to the fluctuation value or the variation trend of the fluctuation ratio. For example, the sampled data is the drug consumption value, and the fluctuation ratio of the adjacent two data is calculated according to the drug consumption value generated in the sixth, twelfth, 18th, and 24th cycles, and if the fluctuation ratio is continuously high, the health is indicated. The degree is decreasing, and a prompt or alarm message can be generated at this time.
下面通过一个具体的实施例对本申请进行说明。The present application is described below by way of a specific embodiment.
请参阅图2,本申请提供了数据的监控方法的一种方法实施例。本实施例的所述方法包括:Referring to FIG. 2, the present application provides an embodiment of a method for monitoring data. The method of this embodiment includes:
201:调用数据生产任务,产生连续数据。201: Call a data production task to generate continuous data.
202:产生连续数据的同时,触发稳定性监控模块,稳定性监控模块获取用户设置的数据采样配置。其中,所述数据采样配置指示出采样数据的比例位置。202: Simultaneously generating continuous data, triggering a stability monitoring module, and the stability monitoring module acquires a data sampling configuration set by a user. The data sampling configuration indicates a proportional position of the sampled data.
203:从产生的连续数据中获取所述比例位置对应的至少两个采样数据。203: Acquire at least two sampling data corresponding to the proportional position from the generated continuous data.
204:获取多个稳定性校验规则,按照预先定义的重要程度分类,对各个稳定性校验规则进行分类。204: Acquire multiple stability check rules, and classify each stability check rule according to a predefined degree of importance classification.
205:根据分类的结果,并利用各个稳定性校验规则获取所述至少两个采样数据的数据波动特征。205: Acquire data fluctuation characteristics of the at least two sampled data according to the result of the classification, and using each stability check rule.
206:根据所述数据波动特征,获得对所述待监控数据的监控结果。206: Obtain a monitoring result of the data to be monitored according to the data fluctuation feature.
对应上述方法实施例,本申请实施例还提供了相应的装置实施例,下面具体说明。Corresponding to the foregoing method embodiments, the embodiment of the present application further provides a corresponding device embodiment, which is specifically described below.
请参阅图3,本申请提供了数据的监控装置的一种装置实施例。本实施例的所述装 置包括:配置获取单元301、数据获取单元302、特征获取单元303和结果获取单元304。Referring to FIG. 3, the present application provides an apparatus embodiment of a data monitoring apparatus. The device of the embodiment The configuration includes: a configuration acquisition unit 301, a data acquisition unit 302, a feature acquisition unit 303, and a result acquisition unit 304.
配置获取单元301,用于获取数据采样配置,所述数据采样配置指示出采样数据的比例位置。The configuration obtaining unit 301 is configured to acquire a data sampling configuration, where the data sampling configuration indicates a proportional position of the sampled data.
在本申请实施例中,可以由用户预先配置出数据采样配置,从而确定出采样数据的比例位置,即按照(个数或者时间等)比例,采样数据所位于的位置。例如,采样数据的比例位置为m%,表示采样数据位于个数或者时间比例为m%所对应的位置。In the embodiment of the present application, the data sampling configuration may be pre-configured by the user to determine the proportional position of the sampled data, that is, the position at which the sampled data is located according to the ratio of (number or time, etc.). For example, the proportional position of the sampled data is m%, indicating that the sampled data is located at a position corresponding to the number or time ratio of m%.
数据获取单元302,用于从待监控数据中获取所述比例位置对应的至少两个采样数据。The data obtaining unit 302 is configured to acquire at least two sampling data corresponding to the proportional position from the data to be monitored.
其中,所述待监控数据中可以包括多个周期的采样数据;所述比例位置可以包括至少两个周期的相同比例位置、同一周期的至少两个比例位置、或者周期的总个数的至少两个比例位置。下面分别具体说明。The data to be monitored may include sampling data of a plurality of periods; the proportional position may include the same proportional position of at least two periods, at least two proportional positions of the same period, or at least two of the total number of periods Proportional position. The details are as follows.
第一种情况,所述比例位置包括至少两个周期的相同比例位置。例如,所述比例位置包括第一周期和第二周期的第一比例位置,则数据获取单元302获取第一周期的第一比例位置对应的采样数据以及第二周期的第一比例位置对应的采样数据。In the first case, the proportional position includes the same proportional position of at least two cycles. For example, the proportional position includes a first proportional position of the first period and the second period, and the data acquiring unit 302 acquires sampling data corresponding to the first proportional position of the first period and sampling corresponding to the first proportional position of the second period. data.
第二种情况,所述比例位置包括同一周期的至少两个比例位置。例如,所述比例位置包括当前周期的第一比例位置和第二比例位置,则数据获取单元302获取当前周期的第一比例位置对应的采样数据以及当前周期的第二比例位置对应的采样数据。In the second case, the proportional position includes at least two proportional positions of the same period. For example, the proportional position includes the first proportional position and the second proportional position of the current period, and the data acquiring unit 302 acquires the sampling data corresponding to the first proportional position of the current period and the sampling data corresponding to the second proportional position of the current period.
第三种情况,所述比例位置包括周期总个数的至少两个比例位置。例如,所述比例位置包括周期总个数的第一比例位置和第二比例位置,则数据获取单元302获取周期总个数中,所述第一比例位置对应的周期的采样数据,以及所述第二比例位置对应的周期的采样数据。In the third case, the proportional position includes at least two proportional positions of the total number of cycles. For example, the proportional position includes a first proportional position and a second proportional position of the total number of cycles, and the data acquiring unit 302 acquires sampling data of a period corresponding to the first proportional position, and the The sampling data of the period corresponding to the second proportional position.
特征获取单元303,用于获取所述至少两个采样数据的数据波动特征。The feature acquiring unit 303 is configured to acquire data fluctuation characteristics of the at least two pieces of sample data.
在本申请实施例中,所述数据波动特征可以包括以下数据特征中的至少一种:所述至少两个采样数据的波动量、波动比例、波动量或波动比例的属性(例如标准差或者方差等)、波动趋势、以及标准差等等。In the embodiment of the present application, the data fluctuation feature may include at least one of the following data characteristics: an attribute of the fluctuation amount, the fluctuation ratio, the fluctuation amount, or the fluctuation ratio of the at least two sampling data (for example, a standard deviation or a variance) Etc), fluctuation trends, and standard deviations, etc.
其中,当采样数据为累积的数据时,例如所述至少两个采样数据包括当天第5个小时对应的商品总量,以及当天第8个小时对应的商品总量,所述数据波动特征可以根据波动量、波动比例、波动量或波动比例的数据、或者波动趋势获取。Wherein, when the sampled data is accumulated data, for example, the at least two sampled data includes the total amount of commodities corresponding to the 5th hour of the day, and the total amount of commodities corresponding to the 8th hour of the day, the data fluctuation characteristic may be according to Data on fluctuations, volatility, volatility or volatility, or volatility acquisition.
当采样数据为独立的数据,例如所述至少两个采样数据包括当天和前一天分别生产的商品数量,所述数据波动特征可以根据标准差获取。 When the sampled data is independent data, for example, the at least two sampled data includes the number of commodities respectively produced on the current day and the previous day, the data fluctuation characteristics may be acquired according to the standard deviation.
结果获取单元304,用于根据所述数据波动特征,获得对所述待监控数据的监控结果。The result obtaining unit 304 is configured to obtain a monitoring result of the data to be monitored according to the data fluctuation feature.
由于所述数据波动特征,能够反映至少两个采样数据的波动特性,从而能够间接反映待监测数据的波动特性。因此,所述装置还可以包括生成单元,用于根据所述数据波动特征,能够确定出所述待监测数据的波动是否超出正常范围,如果是,则可以生成报警或者提示信息,用于提示用户。例如,所述数据波动特征大于预设的波动阈值,则可以生成报警或提示信息。Due to the data fluctuation characteristic, the fluctuation characteristics of at least two sampled data can be reflected, thereby being capable of indirectly reflecting the fluctuation characteristics of the data to be monitored. Therefore, the device may further include a generating unit, configured to determine, according to the data fluctuation feature, whether the fluctuation of the data to be monitored exceeds a normal range, and if yes, generate an alarm or prompt information for prompting the user . For example, if the data fluctuation characteristic is greater than a preset fluctuation threshold, an alarm or prompt information may be generated.
可见,本申请实施例中不再对待监控数据中的所有数据进行监控,而是利用数据采样配置从中抽样出至少两个采样数据,利用至少两个采样数据的数据波动特征进行数据监控,因此在实现数据监控的同时,能够减少工作量。It can be seen that, in the embodiment of the present application, all data in the monitoring data is no longer monitored, but at least two sampling data are sampled by using the data sampling configuration, and data fluctuation characteristics of at least two sampling data are used for data monitoring, so While realizing data monitoring, it can reduce the workload.
本申请实施例中,可以预置稳定性校验规则,根据稳定性校验规则计算数据波动特征,从而获取采样数据的波段特性。下面本申请实施例中将提供稳定性校验规则的四种可选的实现方式。In the embodiment of the present application, the stability check rule may be preset, and the data fluctuation feature is calculated according to the stability check rule, thereby obtaining the band characteristic of the sampled data. Four alternative implementations of the stability check rule will be provided in the following embodiments of the present application.
第一种稳定性校验规则中,根据至少两个周期的相同比例位置对应的采样数据,获取数据波动特征。In the first stability check rule, data fluctuation characteristics are acquired according to sampling data corresponding to the same proportional position of at least two periods.
具体地,所述比例位置包括第一周期和第二周期的第一比例位置。所述数据获取单元302具体用于,从所述待监控数据中获取第一周期的第一比例位置对应的采样数据和第二周期的第一比例位置对应的采样数据。特征获取单元303具体用于,将所述第二周期的第一比例位置对应的采样数据与第一周期的第一比例位置对应的采样数据进行比较,获得比较结果,以及根据所述比较结果获得所述数据波动特征。Specifically, the proportional position includes a first proportional position of the first period and the second period. The data obtaining unit 302 is configured to acquire, from the data to be monitored, sampling data corresponding to a first proportional position of a first period and sampling data corresponding to a first proportional position of a second period. The feature acquiring unit 303 is configured to compare sampling data corresponding to the first proportional position of the second period with sampling data corresponding to the first proportional position of the first period, obtain a comparison result, and obtain the comparison result according to the comparison result. The data fluctuation feature.
其中,该比较结果可以为波动量或者波动比例。可以将该比较结果与预设的波动阈值进行比较,若该比较结果大于预设的波动阈值,则说明波动比较大,此时可以生成提示或者报警信息。Wherein, the comparison result may be a fluctuation amount or a fluctuation ratio. The comparison result may be compared with a preset fluctuation threshold. If the comparison result is greater than the preset fluctuation threshold, the fluctuation is relatively large, and the prompt or alarm information may be generated at this time.
第二种稳定性校验规则中,根据至少两个周期的多个相同比例位置对应的采样数据,获取数据波动特征。In the second stability check rule, data fluctuation characteristics are acquired according to sampling data corresponding to a plurality of identical proportional positions of at least two periods.
具体地,所述比例位置包括第一周期和第二周期的第一比例位置,以及第一周期和第二周期的第二比例位置。数据获取单元302具体用于,从所述待监控数据中获取第一周期的第一比例位置对应的采样数据、第二周期的第一比例位置对应的采样数据、第一周期的第二比例位置对应的采样数据和第二周期的第二比例位置对应的采样数据。特征获取单元303具体用于,将所述第二周期的第一比例位置对应的采样数据与第一周期的 第一比例位置对应的采样数据进行比较,获得第一比较结果,将所述第二周期的第二比例位置对应的采样数据与第一周期的第二比例位置对应的采样数据进行比较,获得第二比较结果,以及根据所述第一比较结果和所述第二比较结果获得所述数据波动特征。Specifically, the proportional position includes a first proportional position of the first period and the second period, and a second proportional position of the first period and the second period. The data obtaining unit 302 is configured to: obtain, from the data to be monitored, sampling data corresponding to a first proportional position of a first period, sampling data corresponding to a first proportional position of a second period, and a second proportional position of the first period. Corresponding sample data and sample data corresponding to the second proportional position of the second period. The feature acquiring unit 303 is specifically configured to: sample data corresponding to the first proportional position of the second period and the first period Comparing the sampling data corresponding to the first proportional position, obtaining a first comparison result, comparing the sampling data corresponding to the second proportional position of the second period with the sampling data corresponding to the second proportional position of the first period, to obtain the first And comparing the results, and obtaining the data fluctuation characteristic according to the first comparison result and the second comparison result.
其中,第一比较结果可以为波动量或者波动比例,第二比较结果可以为波动量或者波动比例。可以将第一比较结果和第二比较结果的属性,例如标准差、方差或者变化趋势等,作为所述数据波动特征。将所述数据波动特征与预设的波动阈值进行比较,若所述数据波动特征大于预设的波动阈值,则说明波动比较大,此时可以生成提示或者报警信息。The first comparison result may be a fluctuation amount or a fluctuation ratio, and the second comparison result may be a fluctuation amount or a fluctuation ratio. The attributes of the first comparison result and the second comparison result, such as standard deviation, variance, or change trend, etc., may be used as the data fluctuation feature. The data fluctuation characteristic is compared with a preset fluctuation threshold. If the data fluctuation characteristic is greater than a preset fluctuation threshold, the fluctuation is relatively large, and the prompt or alarm information may be generated at this time.
第三种稳定性校验规则中,根据同一周期的不同比例位置对应的采样数据,获取数据波动特征。In the third stability check rule, data fluctuation characteristics are acquired according to sampling data corresponding to different proportional positions of the same period.
具体地,所述比例位置包括当前周期的至少三个比例位置。数据获取单元302具体用于,从所述待监控数据中获取当前周期的至少三个比例位置分别对应的采样数据;特征获取单元303具体用于,根据当前周期的至少三个比例位置分别对应的采样数据,获取相邻比例位置对应的采样数据的变化趋势;根据所述变化趋势,获取所述数据波动特征。Specifically, the proportional position includes at least three proportional positions of the current period. The data obtaining unit 302 is configured to: obtain, from the data to be monitored, sampling data corresponding to at least three proportional positions of the current period respectively; the feature acquiring unit 303 is specifically configured to: respectively, according to at least three proportional positions of the current period Sampling data, obtaining a trend of the sampling data corresponding to the adjacent proportional position; and acquiring the data fluctuation characteristic according to the changing trend.
在这种规则中,主要根据采样数据的变化趋势判断数据波动特征,例如,在一些情况下,采样数据是不断增加的,例如当采样数据具体为用户的年龄,此时若判断出变化趋势一直为增加,则说明数据波动特征较好;反之,若变化趋势有增有减,则说明数据波动特征较差,此时可以生成提示或者报警信息。在另外一些情况下,采样数据是不断减少的,例如采样数据具体为商品的剩余个数,此时可以根据变化趋势是否一直减少,判断数据波动特征。In this rule, the data fluctuation characteristics are mainly determined according to the trend of the sampled data. For example, in some cases, the sampled data is continuously increased, for example, when the sampled data is specifically the age of the user, and if the change trend is judged at this time In order to increase, it indicates that the data fluctuation characteristics are better; on the contrary, if the change trend is increased or decreased, the data fluctuation characteristics are poor, and prompt or alarm information can be generated at this time. In other cases, the sampled data is continuously reduced. For example, the sampled data is specifically the remaining number of commodities, and at this time, the data fluctuation characteristics can be judged according to whether the change trend is always reduced.
第四种稳定性校验规则中,根据时间的比例位置对应的采样数据,获取数据波动特征。In the fourth stability check rule, the data fluctuation characteristics are acquired according to the sampling data corresponding to the proportional position of the time.
具体地,所述比例位置包括周期总个数的至少三个比例位置;数据获取单元302具体用于,从所述待监控数据中获取所有周期中,所述至少三个比例位置分别对应的周期的采样数据;特征获取单元303具体用于,根据所述至少三个比例位置分别对应的周期的采样数据,获得所述数据波动特征。Specifically, the proportional position includes at least three proportional positions of the total number of cycles; the data obtaining unit 302 is specifically configured to: acquire, from the data to be monitored, a period corresponding to the at least three proportional positions in all the periods And the feature acquiring unit 303 is configured to obtain the data fluctuation feature according to the sampling data of the period corresponding to the at least three proportional positions.
其中,可以将所述至少三个比例位置分别对应的周期的采样数据的标准差,作为所述数据波动特征。或者,也可以分别计算相邻比例位置的周期之间的波动值或者波动比例,根据波动值或者波动比例的变化趋势确定数据波动特征。 The standard deviation of the sampling data of the period corresponding to the at least three proportional positions may be used as the data fluctuation feature. Alternatively, the fluctuation value or the fluctuation ratio between the periods of the adjacent proportional positions may be separately calculated, and the data fluctuation characteristics may be determined according to the fluctuation value or the variation trend of the fluctuation ratio.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application, in essence or the contribution to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。 The above embodiments are only used to explain the technical solutions of the present application, and are not limited thereto; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still The technical solutions described in the embodiments are modified, or the equivalents of the technical features are replaced by the equivalents. The modifications and substitutions of the embodiments do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (14)

  1. 一种数据的监控方法,其特征在于,包括:A method for monitoring data, characterized in that it comprises:
    获取数据采样配置,所述数据采样配置指示出采样数据的比例位置;Acquiring a data sampling configuration, the data sampling configuration indicating a proportional position of the sampled data;
    从待监控数据中获取所述比例位置对应的至少两个采样数据;Acquiring at least two sampling data corresponding to the proportional position from the data to be monitored;
    获取所述至少两个采样数据的数据波动特征;Obtaining data fluctuation characteristics of the at least two sampled data;
    根据所述数据波动特征,获得对所述待监控数据的监控结果。Obtaining a monitoring result of the data to be monitored according to the data fluctuation feature.
  2. 根据权利要求1所述的方法,其特征在于,所述待监控数据中包括多个周期的采样数据;所述比例位置包括至少两个周期的相同比例位置、同一周期的至少两个比例位置、或者周期总个数的至少两个比例位置。The method according to claim 1, wherein the data to be monitored includes sampling data of a plurality of cycles; the proportional position includes the same proportional position of at least two periods, at least two proportional positions of the same period, Or at least two proportional positions of the total number of cycles.
  3. 根据权利要求1或2所述的方法,其特征在于,所述比例位置包括第一周期和第二周期的第一比例位置;The method according to claim 1 or 2, wherein the proportional position comprises a first proportional position of the first period and the second period;
    从待监控数据中获取所述比例位置对应的至少两个采样数据,包括:Acquiring at least two sampling data corresponding to the proportional position from the data to be monitored, including:
    从所述待监控数据中获取第一周期的第一比例位置对应的采样数据和第二周期的第一比例位置对应的采样数据;Obtaining sampling data corresponding to the first proportional position of the first period and sampling data corresponding to the first proportional position of the second period from the data to be monitored;
    获取所述至少两个采样数据的数据波动特征,包括:Obtaining data fluctuation characteristics of the at least two sampled data, including:
    将所述第二周期的第一比例位置对应的采样数据与第一周期的第一比例位置对应的采样数据进行比较,获得比较结果;Comparing the sampling data corresponding to the first proportional position of the second period with the sampling data corresponding to the first proportional position of the first period to obtain a comparison result;
    根据所述比较结果获得所述数据波动特征。The data fluctuation feature is obtained based on the comparison result.
  4. 根据权利要求1或2所述的方法,其特征在于,包括:所述比例位置包括第一周期和第二周期的第一比例位置,以及第一周期和第二周期的第二比例位置;The method according to claim 1 or 2, comprising: said proportional position comprising a first proportional position of the first period and the second period, and a second proportional position of the first period and the second period;
    从待监控数据中获取至少两个采样数据,包括:Obtain at least two sample data from the data to be monitored, including:
    从所述待监控数据中获取第一周期的第一比例位置对应的采样数据、第二周期的第一比例位置对应的采样数据、第一周期的第二比例位置对应的采样数据和第二周期的第二比例位置对应的采样数据;Obtaining, from the data to be monitored, sampling data corresponding to a first proportional position of the first period, sampling data corresponding to a first proportional position of the second period, sampling data corresponding to a second proportional position of the first period, and a second period The sampling data corresponding to the second proportional position;
    获取所述至少两个采样数据的数据波动特征,包括:Obtaining data fluctuation characteristics of the at least two sampled data, including:
    将所述第二周期的第一比例位置对应的采样数据与第一周期的第一比例位置对应的采样数据进行比较,获得第一比较结果;Comparing the sampling data corresponding to the first proportional position of the second period with the sampling data corresponding to the first proportional position of the first period to obtain a first comparison result;
    将所述第二周期的第二比例位置对应的采样数据与第一周期的第二比例位置对应的采样数据进行比较,获得第二比较结果;Comparing the sampling data corresponding to the second proportional position of the second period with the sampling data corresponding to the second proportional position of the first period to obtain a second comparison result;
    根据所述第一比较结果和所述第二比较结果获得所述数据波动特征。 The data fluctuation feature is obtained according to the first comparison result and the second comparison result.
  5. 根据权利要求1或2所述的方法,其特征在于,所述比例位置包括当前周期的至少三个比例位置;The method according to claim 1 or 2, wherein said proportional position comprises at least three proportional positions of a current period;
    从待监控数据中获取所述比例位置对应的至少两个采样数据,包括:Acquiring at least two sampling data corresponding to the proportional position from the data to be monitored, including:
    从所述待监控数据中获取当前周期的至少三个比例位置分别对应的采样数据;Obtaining sampling data corresponding to at least three proportional positions of the current period from the data to be monitored;
    获取所述至少两个采样数据的数据波动特征,包括:Obtaining data fluctuation characteristics of the at least two sampled data, including:
    根据当前周期的至少三个比例位置分别对应的采样数据,获取相邻比例位置对应的采样数据的变化趋势;Obtaining a change trend of sampling data corresponding to the adjacent proportional position according to sampling data corresponding to at least three proportional positions of the current period;
    根据所述变化趋势,获取所述数据波动特征。The data fluctuation feature is acquired according to the change trend.
  6. 根据权利要求1或2所述的方法,其特征在于,所述比例位置包括周期总个数的至少三个比例位置;The method according to claim 1 or 2, wherein the proportional position comprises at least three proportional positions of the total number of cycles;
    从待监控数据中获取所述比例位置对应的至少两个采样数据,包括:Acquiring at least two sampling data corresponding to the proportional position from the data to be monitored, including:
    从所述待监控数据中获取所有周期中,所述至少三个比例位置分别对应的周期的采样数据;Obtaining, from the data to be monitored, sampling data of a period corresponding to the at least three proportional positions in all periods;
    获取所述至少两个采样数据的数据波动特征,包括:Obtaining data fluctuation characteristics of the at least two sampled data, including:
    根据所述至少三个比例位置分别对应的周期的采样数据,获得所述数据波动特征。And obtaining the data fluctuation feature according to the sampling data of the period corresponding to the at least three proportional positions respectively.
  7. 根据权利要求1或2所述方法,其特征在于,所述数据波动特征包括以下数据特征中的至少一种:The method of claim 1 or 2 wherein said data fluctuation characteristic comprises at least one of the following data characteristics:
    所述至少两个采样数据的波动量、波动比例、波动量或波动比例的属性、波动趋势、以及标准差。The fluctuation amount, the fluctuation ratio, the fluctuation amount or the fluctuation ratio attribute, the fluctuation tendency, and the standard deviation of the at least two sampled data.
  8. 一种数据的监控装置,其特征在于,包括:A data monitoring device, comprising:
    配置获取单元,用于获取数据采样配置,所述数据采样配置指示出采样数据的比例位置;a configuration acquiring unit, configured to acquire a data sampling configuration, where the data sampling configuration indicates a proportional position of the sampled data;
    数据获取单元,用于从待监控数据中获取所述比例位置对应的至少两个采样数据;a data acquiring unit, configured to acquire at least two sampling data corresponding to the proportional position from data to be monitored;
    特征获取单元,用于获取所述至少两个采样数据的数据波动特征;a feature acquiring unit, configured to acquire data fluctuation characteristics of the at least two sampled data;
    结果获取单元,用于根据所述数据波动特征,获得对所述待监控数据的监控结果。And a result obtaining unit, configured to obtain, according to the data fluctuation feature, a monitoring result of the data to be monitored.
  9. 根据权利要求8所述的装置,其特征在于,所述待监控数据中包括多个周期的采样数据;所述比例位置包括至少两个周期的相同比例位置、同一周期的至少两个比例位置、或者周期总个数的至少两个比例位置。The apparatus according to claim 8, wherein the data to be monitored includes sampling data of a plurality of cycles; the proportional position includes the same proportional position of at least two periods, at least two proportional positions of the same period, Or at least two proportional positions of the total number of cycles.
  10. 根据权利要求8或9所述的装置,其特征在于,所述比例位置包括第一周期和第二周期的第一比例位置; The apparatus according to claim 8 or 9, wherein said proportional position comprises a first proportional position of the first period and the second period;
    所述数据获取单元具体用于,从所述待监控数据中获取第一周期的第一比例位置对应的采样数据和第二周期的第一比例位置对应的采样数据;The data acquiring unit is configured to: obtain, from the data to be monitored, sampling data corresponding to a first proportional position of a first period and sampling data corresponding to a first proportional position of a second period;
    所述特征获取单元具体用于,将所述第二周期的第一比例位置对应的采样数据与第一周期的第一比例位置对应的采样数据进行比较,获得比较结果,以及根据所述比较结果获得所述数据波动特征。The feature acquiring unit is configured to compare sampling data corresponding to the first proportional position of the second period with sampling data corresponding to the first proportional position of the first period, to obtain a comparison result, and according to the comparison result The data fluctuation characteristics are obtained.
  11. 根据权利要求8或9所述的装置,其特征在于,所述比例位置包括第一周期和第二周期的第一比例位置,以及第一周期和第二周期的第二比例位置;The apparatus according to claim 8 or 9, wherein said proportional position comprises a first proportional position of the first period and the second period, and a second proportional position of the first period and the second period;
    所述数据获取单元具体用于,从所述待监控数据中获取第一周期的第一比例位置对应的采样数据、第二周期的第一比例位置对应的采样数据、第一周期的第二比例位置对应的采样数据和第二周期的第二比例位置对应的采样数据;The data acquiring unit is configured to: obtain, from the data to be monitored, sampling data corresponding to a first proportional position of a first period, sampling data corresponding to a first proportional position of a second period, and a second ratio of the first period Sampling data corresponding to the location and sampling data corresponding to the second proportional position of the second period;
    所述特征获取单元具体用于,将所述第二周期的第一比例位置对应的采样数据与第一周期的第一比例位置对应的采样数据进行比较,获得第一比较结果,将所述第二周期的第二比例位置对应的采样数据与第一周期的第二比例位置对应的采样数据进行比较,获得第二比较结果,以及根据所述第一比较结果和所述第二比较结果获得所述数据波动特征。The feature acquiring unit is configured to compare sampling data corresponding to the first proportional position of the second period with sampling data corresponding to the first proportional position of the first period, to obtain a first comparison result, where the first Comparing the sampling data corresponding to the second proportional position of the two periods with the sampling data corresponding to the second proportional position of the first period, obtaining a second comparison result, and obtaining the basis according to the first comparison result and the second comparison result The characteristics of data fluctuations.
  12. 根据权利要求8或9所述的装置,其特征在于,所述比例位置包括当前周期的至少三个比例位置;The apparatus according to claim 8 or 9, wherein said proportional position comprises at least three proportional positions of a current period;
    所述数据获取单元具体用于,从所述待监控数据中获取当前周期的至少三个比例位置分别对应的采样数据;The data acquiring unit is configured to: obtain, from the data to be monitored, sampling data corresponding to at least three proportional positions of a current period;
    所述特征获取单元具体用于,根据当前周期的至少三个比例位置分别对应的采样数据,获取相邻比例位置对应的采样数据的变化趋势;根据所述变化趋势,获取所述数据波动特征。The feature acquiring unit is configured to acquire a trend of the sampling data corresponding to the adjacent proportional position according to the sampling data corresponding to the at least three proportional positions of the current period, and acquire the data fluctuation feature according to the changing trend.
  13. 根据权利要求8或9所述的装置,其特征在于,所述比例位置包括周期总个数的至少三个比例位置;The apparatus according to claim 8 or 9, wherein said proportional position comprises at least three proportional positions of a total number of cycles;
    所述数据获取单元具体用于,从所述待监控数据中获取所有周期中,所述至少三个比例位置分别对应的周期的采样数据;The data acquiring unit is configured to: acquire, from the data to be monitored, sampling data of a period corresponding to the at least three proportional positions in all periods;
    所述特征获取单元具体用于,根据所述至少三个比例位置分别对应的周期的采样数据,获得所述数据波动特征。The feature acquiring unit is configured to obtain the data fluctuation feature according to the sampling data of the period corresponding to the at least three proportional positions.
  14. 根据权利要求8或9所述的装置,其特征在于,所述数据波动特征包括以下数据特征中的至少一种: The apparatus of claim 8 or 9, wherein the data fluctuation characteristic comprises at least one of the following data characteristics:
    所述至少两个采样数据的波动量、波动比例、波动量或波动比例的属性、波动趋势、以及标准差。 The fluctuation amount, the fluctuation ratio, the fluctuation amount or the fluctuation ratio attribute, the fluctuation tendency, and the standard deviation of the at least two sampled data.
PCT/CN2016/113454 2016-01-06 2016-12-30 Data monitoring method and apparatus WO2017118341A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610007303.5A CN106952106A (en) 2016-01-06 2016-01-06 The monitoring method and device of a kind of data
CN201610007303.5 2016-01-06

Publications (1)

Publication Number Publication Date
WO2017118341A1 true WO2017118341A1 (en) 2017-07-13

Family

ID=59273380

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/113454 WO2017118341A1 (en) 2016-01-06 2016-12-30 Data monitoring method and apparatus

Country Status (2)

Country Link
CN (1) CN106952106A (en)
WO (1) WO2017118341A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110764975B (en) * 2018-07-27 2021-10-22 华为技术有限公司 Early warning method and device for equipment performance and monitoring equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101770419A (en) * 2008-12-31 2010-07-07 中国银联股份有限公司 System robustness analyzer and analysis method
US20150095719A1 (en) * 2013-10-01 2015-04-02 Samsung Sds Co., Ltd. Data preprocessing device and method thereof
CN104698937A (en) * 2015-03-06 2015-06-10 南京欧泰物联网科技有限公司 Three-dimensional impact recorder and recording method thereof

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101399883B (en) * 2008-10-10 2013-02-27 中兴通讯股份有限公司 Exception monitoring management method and device
CN102608286B (en) * 2012-03-01 2015-07-08 煤炭科学技术研究院有限公司 Method for monitoring abnormality of gas monitored value of coal mine in real time

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101770419A (en) * 2008-12-31 2010-07-07 中国银联股份有限公司 System robustness analyzer and analysis method
US20150095719A1 (en) * 2013-10-01 2015-04-02 Samsung Sds Co., Ltd. Data preprocessing device and method thereof
CN104698937A (en) * 2015-03-06 2015-06-10 南京欧泰物联网科技有限公司 Three-dimensional impact recorder and recording method thereof

Also Published As

Publication number Publication date
CN106952106A (en) 2017-07-14

Similar Documents

Publication Publication Date Title
US9645916B2 (en) Performance testing for blocks of code
US10884891B2 (en) Interactive detection of system anomalies
EP3537325B1 (en) Interactive user interfaces
US9183561B2 (en) Automatic generation of trend charts
JP5706877B2 (en) Metric-based events for social networks
US20080162210A1 (en) Configurable goals in a dashborad application
US9514461B2 (en) Systems and methods for analysis of content items
US11152087B2 (en) Ensuring quality in electronic health data
US20180121856A1 (en) Factor-based processing of performance metrics
WO2019080417A1 (en) Knowledge base construction method based on huge number of questions, electronic apparatus and storage medium
US11626009B2 (en) Enhanced alert generation system based on real-time manipulation of datasets
US20210125272A1 (en) Using Inferred Attributes as an Insight into Banking Customer Behavior
WO2018210267A1 (en) Mechanism and instrumentation for metering conversations
US11947613B2 (en) System and method for efficiently querying data using temporal granularities
US8543552B2 (en) Detecting statistical variation from unclassified process log
US20220222369A1 (en) Information processing apparatus, information processing method and program
AU2021201917B2 (en) Systems and methods for visualizing patient population disease symptom comparison
WO2017118341A1 (en) Data monitoring method and apparatus
US10009246B1 (en) Monitoring service
CN104331405B (en) Data report processing method and device
CN106796604A (en) Method and report server for providing interactive form
TWI739794B (en) Data monitoring method and device
WO2017134800A1 (en) Tabular data analysis method, tabular data analysis program, and information processing device
CN109241381B (en) Information matching method and device
WO2016177047A1 (en) Log display method and device

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: 16883466

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16883466

Country of ref document: EP

Kind code of ref document: A1