DataQueryRequest

Prev Next

설명

데이터 조회 요청

구문

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;

필드

항목 필수 여부 타입 제약 사항 설명
timeStart Y long Millisecond 단위로 입력 조회 시작 시간
timeEnd Y long Millisecond 단위로 입력 조회 종료 시간
productName N String 상품의 이름
cw_key Y String 상품의 cw_key
metric Y String 조회하려는 Metric 명
interval Y Interval Min1, Min5, Min30, Hour2, Day1 조회하려는 데이터의 집계주기
aggregation N Calculation COUNT,SUM,MAX,MIN,AVG, default : AVG 조회하려는 데이터의 집계함수
queryAggregation N QueryAggregation COUNT,SUM,MAX,MIN,AVG, default : AVG 쿼리 기준이 충분하지 않을 때, 쿼리 결과를 처리하는 방법
dimensions Y Map<Strsing, String> 조회하려는 Dimension을 json 형태로 명시

참조:

  • 쿼리 기준이 충분하지 않을 때는 조회하려는 Metric에 대한 Dimension 조건이 명확하지 않아 실제 조회결과 여러개의 데이터가 존재하는 경우입니다. 이러한 경우 queryAggregation에 명시된 메소드로 aggregation된 값이 리턴됩니다.