Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Chinmay found the following issue
When settings a DimensionsScheme App Data Tracker doesn't pickup the timebuckets or aggregators. The DimensionsScheme is as follows
public static class IngestionDimensionsSchema implements AutoMetric.DimensionsScheme, Serializable
{
private static final long serialVersionUID = 20150910103301L;
public String[] getTimeBuckets()
{
return new String[]
;
}
public String[] getDimensionAggregationsFor(String logicalMetricName)
{
return new String[]
;
}
}
chinmay [9:21 PM]
And then dag.setAttribute(tracker, Context.OperatorContext.METRICS_DIMENSIONS_SCHEME, new IngestionDimensionsSchema());
I saw that the Schema being sent out was as follows
"data":{
"type":"metricsSchema",
"version":"1.0",
"appUser":"chinmay",
"appName":"Ingestion",
"logicalOperatorName":"Tracker",
"values":[
],
"timeBuckets":"[Ljava.lang.String;@657f87ea"
Chinmay saw in AppDataPushAgent line 271
String[] timeBuckets = metricAggregatorMeta.getTimeBuckets();
if (timeBuckets != null)
result is a JSONObject... It should have created a JSONArray of it and then done result.put