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):
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):
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):
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):