diff options
author | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2019-07-13 10:21:53 +0200 |
---|---|---|
committer | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2019-07-14 14:06:14 +0200 |
commit | 701548c5b25efba70c3818e96a4394701cfb913e (patch) | |
tree | 347881ae607acda17f2014a5e7ed1aadee055145 /lib/agent/apiv1.go | |
parent | 247bb7c2db5f0d48178398599348249bf886ebbc (diff) |
Add LowCollector & rename Supervisor to Monitoringsandbox/SebD/dev_supervisor_als_2019
Change-Id: Ibd78f1200ed71b0100ebd48dddb9236377e2fb36
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'lib/agent/apiv1.go')
-rw-r--r-- | lib/agent/apiv1.go | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/agent/apiv1.go b/lib/agent/apiv1.go index 4637bc4..ef9704c 100644 --- a/lib/agent/apiv1.go +++ b/lib/agent/apiv1.go @@ -1,5 +1,5 @@ /* - * Copyright (C) 2017-2018 "IoT.bzh" + * Copyright (C) 2017-2019 "IoT.bzh" * Author Sebastien Douheret <sebastien@iot.bzh> * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -67,9 +67,13 @@ func NewAPIV1(ctx *Context) *APIService { s.apiRouter.POST("/events/register", s.eventsRegister) s.apiRouter.POST("/events/unregister", s.eventsUnRegister) - s.apiRouter.GET("/supervisor/topo", s.getSupervisorTopo) - s.apiRouter.POST("/supervisor/trace/start", s.startSupervisor) - s.apiRouter.POST("/supervisor/trace/stop", s.stopSupervisor) + s.apiRouter.GET("/monitoring/topo", s.getMonitoringTopo) + s.apiRouter.POST("/monitoring/trace/start", s.startMonitoring) + s.apiRouter.POST("/monitoring/trace/stop", s.stopMonitoring) + s.apiRouter.POST("/monitoring/alc/start", s.StartLowCollector) + s.apiRouter.POST("/monitoring/alc/stop", s.StopLowCollector) + s.apiRouter.GET("/monitoring/alc/read", s.ReadLowCollector) + s.apiRouter.POST("/monitoring/alc/reset", s.ResetLowCollector) return s } |