Commit 78c6ce84 by carl bergquist

revert elastic response parser

parent ad79df9b
......@@ -76,12 +76,8 @@ function (_, queryDef) {
newSeries = { datapoints: [], metric: metric.type, field: metric.field, props: props};
for (i = 0; i < esAgg.buckets.length; i++) {
bucket = esAgg.buckets[i];
value = bucket[metric.id];
if (value !== undefined) {
newSeries.datapoints.push([value.value, bucket.key]);
}
value = bucket[metric.id].value;
newSeries.datapoints.push([value, bucket.key]);
}
seriesList.push(newSeries);
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment