-
Incident report
-
Resolution: Unresolved
-
Trivial
-
None
-
4.2.4
-
None
Mysql result set is:
Array ( [0] => Array ( [itemid] => 43081 [clock] => 1563742800 [num] => 60 [value_min] => 1.1575 [value_avg] => 5.9419 [value_max] => 14.7072 ) [1] => Array ( [itemid] => 43081 [clock] => 1563746400 [num] => 60 [value_min] => 2.0631 [value_avg] => 4.2845 [value_max] => 13.9891 )
but elasticsearch result is:
// Array
(
[0] => Array
(
[itemid] => 43081
[clock] => 1563742800
[num] => 60
[min_value] => 1.1575
[avg_value] => 5.9419
[max_value] => 14.7072
)
...
[1] => Array
(
[itemid] => 43081
[clock] => 1563746400
[num] => 60
[min_value] => 2.0631
[avg_value] => 4.2845
[max_value] => 13.9891
)
Fast fix min_value -> value_min solves the issue.
'value_min' => $histogram['min_value']['value'], 'value_avg' => $histogram['avg_value']['value'], 'value_max' => $histogram['max_value']['value']