X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Femuvim%2Fcli%2Frest%2Fmonitor.py;h=8be1e7f2f0bd57b09d8a018c009de34feea6fbc1;hb=c62be48ec66570a0aba61cd680a37698d1e2626a;hp=3f95884fc611fc79c6746e26335ac9afa366aae1;hpb=284ba2b074eecf9cc46867b317d46ab95445b18e;p=osm%2Fvim-emu.git diff --git a/src/emuvim/cli/rest/monitor.py b/src/emuvim/cli/rest/monitor.py index 3f95884..8be1e7f 100755 --- a/src/emuvim/cli/rest/monitor.py +++ b/src/emuvim/cli/rest/monitor.py @@ -53,7 +53,7 @@ class RestApiClient(): metric = args.get("metric")) url = "{0}/restapi/monitor/interface".format(args.get("endpoint")) - response = put(url, json=params) + response = put(url, params=params) pp.pprint(response.text) def stop_metric(self, args): @@ -63,7 +63,7 @@ class RestApiClient(): metric=args.get("metric")) url = "{0}/restapi/monitor/interface".format(args.get("endpoint")) - response = put(url, json=params) + response = put(url, params=params) pp.pprint(response.text) def setup_flow(self, args): @@ -74,7 +74,7 @@ class RestApiClient(): cookie=args.get("cookie")) url = "{0}/restapi/monitor/flow".format(args.get("endpoint")) - response = put(url, json=params) + response = put(url, params=params) pp.pprint(response.text) def stop_flow(self, args): @@ -85,7 +85,7 @@ class RestApiClient(): cookie=args.get("cookie")) url = "{0}/restapi/monitor/flow".format(args.get("endpoint")) - response = put(url, json=params) + response = put(url, params=params) pp.pprint(response.text) def prometheus(self, args):