fix son-emu-cli monitor CLI
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 @@
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 @@
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 @@
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 @@
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):