DataQueryRequest
- Print
- PDF
DataQueryRequest
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
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
Field | Required | Type | Limitations | Description |
---|---|---|---|---|
timeStart | N | long | Millisecond | Start Time |
timeEnd | N | long | Millisecond | End Time |
productName | N | String | Product Name | |
cw_key | Y | String | Product's cw_key | |
metric | Y | String | Metric you want to query | |
interval | N | Interval | Min1 , Min5 , Min30 , Hour2 , Day1 , default: Min1 | Interval you want to query |
aggregation | N | Calculation | COUNT ,SUM ,MAX ,MIN ,AVG , default : AVG | Aggregation you want to query |
queryAggregation | N | QueryAggregation | COUNT ,SUM ,MAX ,MIN ,AVG , default : AVG | How to process query results when query criteria are not sufficient |
dimensions | Y | Map<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?