From 304ab84192ddb83c5123783d91c698173b948e56 Mon Sep 17 00:00:00 2001 From: Marc Pilon Date: Mon, 10 Feb 2014 16:26:20 -0500 Subject: [PATCH] [ADMIN_API] Fixed MnB metrics to be an array Change-Id: I5886f2e5feedc66b2635e6f0235aa2f237c32f13 --- libra/common/api/mnb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libra/common/api/mnb.py b/libra/common/api/mnb.py index 1856f759..089a4329 100644 --- a/libra/common/api/mnb.py +++ b/libra/common/api/mnb.py @@ -333,12 +333,12 @@ def _build_payload(begin, end, name, id, tenant, status): def _build_metrics(bytes): - return { + return [{ "metric_name": "lbaas.network.outgoing.bytes", "metric_type": "gauge", "metric_units": "BYTES", "metric_value": bytes - } + }] def _rounded_down_min(ts, N):