Commit 78c6ce84 by carl bergquist

revert elastic response parser

parent ad79df9b
...@@ -76,12 +76,8 @@ function (_, queryDef) { ...@@ -76,12 +76,8 @@ function (_, queryDef) {
newSeries = { datapoints: [], metric: metric.type, field: metric.field, props: props}; newSeries = { datapoints: [], metric: metric.type, field: metric.field, props: props};
for (i = 0; i < esAgg.buckets.length; i++) { for (i = 0; i < esAgg.buckets.length; i++) {
bucket = esAgg.buckets[i]; bucket = esAgg.buckets[i];
value = bucket[metric.id].value;
value = bucket[metric.id]; newSeries.datapoints.push([value, bucket.key]);
if (value !== undefined) {
newSeries.datapoints.push([value.value, bucket.key]);
}
} }
seriesList.push(newSeries); seriesList.push(newSeries);
break; 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