RangeQueryBuilder rangeQueryBuilder = QueryBuilderType.RangeQuery.newInstance(TARGET_SERVER);
URI targetUri = rangeQueryBuilder.withQuery("irate(received_api_call_total[60s])")
.withStartEpochTime(System.currentTimeMillis() / 1000 - 60*10)
.withEndEpochTime(System.currentTimeMillis() / 1000)
.withStepTime("60s")
.build();
InstantQueryBuilder iqb = QueryBuilderType.InstantQuery.newInstance(TARGET_SERVER);
URI targetUri = iqb.withQuery("irate(received_api_call_total[60s])").build();
LabelMetaQueryBuilder lmqb = QueryBuilderType.LabelMetadaQuery.newInstance(TARGET_SERVER);
URI targetUri = lmqb.withLabel("pod").build();
StatusMetaQueryBuilder smqb = QueryBuilderType.StatusMetadaQuery.newInstance(TARGET_SERVER);
URI targetUri = smqb.build();
TargetMetaQueryBuilder tmqb = QueryBuilderType.TargetMetadaQuery.newInstance(TARGET_SERVER);
URI targetUri = tmqb.build();
AlertManagerMetaQueryBuilder ammqb = QueryBuilderType.AlertManagerMetadaQuery.newInstance(TARGET_SERVER);
URI targetUri = ammqb.build();
DefaultQueryResult<MatrixData> result = ConvertUtil.convertQueryResultString(rtVal);
DefaultQueryResult<VectorData> result = ConvertUtil.convertQueryResultString(rtVal);
DefaultQueryResult<ScalaData> result = ConvertUtil.convertQueryResultString(rtVal);
DefaultLabelResult result = ConvertUtil.convertLabelResultString(rtVal);
DefaultConfigResult result = ConvertUtil.convertConfigResultString(rtVal);
DefaultTargetResult result = ConvertUtil.convertTargetResultString(rtVal);
DefaultAlertManagerResult result = ConvertUtil.convertAlertManagerResultString(rtVal);