From e5bd5cbffd4000b2aae8df193ba0be9f4866cbbf Mon Sep 17 00:00:00 2001
From: Stephen C Phillips <steve@scphillips.com>
Date: Fri, 25 May 2018 12:41:55 +0100
Subject: [PATCH] Changes "e2e_delay" and "delay" to "latency". Fixes spelling
 of "response"

---
 clmctest/monitoring/LineProtocolGenerator.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/clmctest/monitoring/LineProtocolGenerator.py b/clmctest/monitoring/LineProtocolGenerator.py
index 032d027..30e37a4 100644
--- a/clmctest/monitoring/LineProtocolGenerator.py
+++ b/clmctest/monitoring/LineProtocolGenerator.py
@@ -64,14 +64,14 @@ def generate_e2e_delay_report(path_id, source_sfr, target_sfr, endpoint, sf_inst
     return result
 
 
-def generate_network_delay_report(path_id, source_sfr, target_sfr, e2e_delay, time):
+def generate_network_delay_report(path_id, source_sfr, target_sfr, latency, time):
     """
     Generates a platform measurement about the network delay between two specific service routers.
 
     :param path_id: the identifier of the path between the two service routers
     :param source_sfr: the source service router
     :param target_sfr: the target service router
-    :param e2e_delay: the e2e network delay for traversing the path between the two service routers
+    :param latency: the e2e network delay for traversing the path between the two service routers
     :param time: the measurement timestamp
     :return: a list of dict-formatted reports to post on influx
     """
@@ -83,7 +83,7 @@ def generate_network_delay_report(path_id, source_sfr, target_sfr, e2e_delay, ti
                    "target": target_sfr
                },
                "fields": {
-                   "delay": e2e_delay
+                   "latency": latency
                },
                "time": _getNSTime(time)
                }]
@@ -114,7 +114,7 @@ def generate_service_delay_report(endpoint, sf_instance, sfr, response_time, req
                "fields": {
                    "response_time": response_time,
                    "request_size": request_size,
-                   "respose_size": response_size
+                   "response_size": response_size
                },
                "time": _getNSTime(time)
                }]
-- 
GitLab