DataQueryRequest
    • PDF

    DataQueryRequest

    • PDF

    Article Summary

    Description

    Data Query Request

    Syntax

    private long timeStart;
    private long timeEnd;
    private String productName;
    private String cw_key;
    private String metric;
    private Interval interval;
    private Calculation aggregation;
    private QueryAggregation queryAggregation;
    private Map<String, String> dimensions;
    

    Field

    FieldRequiredTypeLimitationsDescription
    timeStartNlongMillisecondStart Time
    timeEndNlongMillisecondEnd Time
    productNameNStringProduct Name
    cw_keyYStringProduct's cw_key
    metricYStringMetric you want to query
    intervalNIntervalMin1, Min5, Min30, Hour2, Day1, default: Min1Interval you want to query
    aggregationNCalculationCOUNT,SUM,MAX,MIN,AVG, default : AVGAggregation you want to query
    queryAggregationNQueryAggregationCOUNT,SUM,MAX,MIN,AVG, default : AVGHow to process query results when query criteria are not sufficient
    dimensionsYMap<String, String>Specify the Dimension in json format

    Reference:

    • When the query criteria are not sufficient, the Dimension condition for the Metric you are looking for is not clear, and multiple data exist as a result of the actual query. In this case, the aggregated value is returned to the method specified in QueryAggregation.

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.