aboutsummaryrefslogtreecommitdiffstats
path: root/conf.d/project/etc/xds-supervisor-config.json
blob: 654b4b2361dedf0be783f3648ebec40722dac7ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
  "$schema": "http://iot.bzh/download/public/schema/json/ctl-schema.json",
  "metadata": {
    "uid": "XDS",
    "version": "1.0",
    "api": "xds",
    "info": "XDS Data collection binding"
  },
  "plugins": [{
    "uid": "supervisor",
    "info": "Plugin to handle interface with supervisor",
    "spath": "./lib/plugins:./var",
    "libs": [
      "supervisor.ctlso",
      "xds-supervisor.lua"
    ]
  }],

  "onload": [],

  "controls": [{
      "uid": "list",
      "privileges": "urn:AGL:permission::platform:can:list ",
      "action": "plugin://supervisor#list"
    },
    {
      "uid": "trace/start",
      "privileges": "urn:AGL:permission::platform:can:trace ",
      "action": "plugin://supervisor#trace_start"
    },
    {
      "uid": "trace/stop",
      "privileges": "urn:AGL:permission::platform:can:trace ",
      "action": "plugin://supervisor#trace_stop"
    }
  ],

  "events": [{
      "uid": "supervisor/xds-trace",
      "action": "lua://supervisor#_trace_events_"
    }
  ]

}