Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

ServiceDescription
Get all agents/platformsThis service returns information of all existing agents
Get status of one agentThis service returns information on existing agents status (connected, not-connected, etc)
Get instrumented methodsThis service returns a list of instrumented methods for an agent
Get used methodssensorsThis service returns a list of used methods sensors for an agent

1. Get all agents/platforms

Path:/rest/data/platform/all
Example URI:/rest/data/platform/all
Example output:
Code Block
languagejs
[
 {
  "id": 6352,
  "timeStamp": 1461333224740,
  "definedIPs": [
   "fe80:0:0:0:bc8a:e7ff:feab:a02%awdl0",
   "192.168.99.1",
   "fe80:0:0:0:a65e:60ff:fee5:b8db%en0",
   "192.168.1.140",
   "fe80:0:0:0:0:0:0:1%lo0",
   "0:0:0:0:0:0:0:1",
   "127.0.0.1"
 ],
  "agentName": "Agent1",
  "version": "1.6.9"
 },
 {
  "id": 23952,
  "timeStamp": 1464360543860,
  "definedIPs": [
   "fe80:0:0:0:b0bd:96ff:fe70:7cf0%awdl0",
   "2003:49:ab7b:9fad:d0e1:d4c3:96f6:1b4a",
   "2003:49:ab7b:9fad:a65e:60ff:fee5:b8db",
   "fe80:0:0:0:a65e:60ff:fee5:b8db%en0",
   "192.168.2.104",
   "fe80:0:0:0:0:0:0:1%lo0",
   "0:0:0:0:0:0:0:1",
   "127.0.0.1"
 ],
  "agentName": "Agent2",
  "version": "1.6.9"
 }
]

 

2. Get status of one agent

Path:/rest/data/platform/status
Example URI:/rest/data/platform/status?platformId=5
Example output: 

3. Get instrumented methods

Path:/rest/data/platform/methods
Example URI:/rest/data/platform/methods/platformId=5
Example output: 

4. Get used sensors

Path:/rest/data/platform/sensors
Example URI:/rest/data/platform/sensors?platformId=5
Example output: 

...