Skip to content

Commit 63b4a76

Browse files
authored
Merge pull request #249 from shimon-armis/shimon.store_variance_op_reuslt_with_the_correct_key
prometheus_connect: Store "variance" operation result with the correc…
2 parents d0c43a0 + f33e04e commit 63b4a76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prometheus_api_client/prometheus_connect.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ def get_metric_aggregation(
485485
elif operation == "deviation":
486486
aggregated_values["deviation"] = numpy.std(np_array)
487487
elif operation == "variance":
488-
aggregated_values["deviation"] = numpy.var(np_array)
488+
aggregated_values["variance"] = numpy.var(np_array)
489489
else:
490490
raise TypeError("Invalid operation: " + operation)
491491
return aggregated_values

0 commit comments

Comments
 (0)