The Core APIs facilitate the creation, configuration, and management of WiFi Motion networks via RESTful APIs. It offers interfaces for accessing topologies, events, motion data, and more.
Cognitive Systems App Core API
Request
Note: You will have to urlencode the query string here, use the library provided by your runtime.
Example queries where 'val' is a partial string match (use % as wildcard char):
meta->>'guardian_env' (this will match the guardian_env key of the network meta blob)
meta->'dwm'->>'systemName' (this will match the systemName key of the dwm object in the network meta blob)
Example query checking for existence of a field (omit val to directly execute):
meta->'dwm' \\? 'systemName'
- Mock serverhttps://docs.cognitivesystems.com/_mock/assets/specs/api/core/network/find/meta/{query}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.cognitivesystems.com/_mock/assets/specs/api/core/network/find/meta/{query}?val=string&array=false&expandNodes=false' \
-H 'Authorization: YOUR_API_KEY_HERE'OK.
In a WiFi Motion network, guardian-status messages are transmitted in an approximate 5 minute intervals. Guardian-status messages contain the state information of a WiFi Motion node or network, such as current connected devices, software versions, various metrics, and more.
When expandNodes=true or in a configuration update context, the nodes part of this network are returned in this array.
[ { "last_guardian_status": { … }, "radar_config": { … }, "guardian_config": { … }, "created_at": 0.1, "updated_at": 0.1, "guardian_id": "string", "last_heard": 0.1, "meta": { … }, "master_node_id": 0, "shard_id": 0, "guardian_type": "string", "disconnected_at": 0.1, "nodes": [ … ], "id": 0, "connection_status": true, "connection_report": { … }, "device_info": { … } } ]
- Mock serverhttps://docs.cognitivesystems.com/_mock/assets/specs/api/core/network/find/device/{guardian_deviceid}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.cognitivesystems.com/_mock/assets/specs/api/core/network/find/device/{guardian_deviceid}?array=false&expandNodes=false' \
-H 'Authorization: YOUR_API_KEY_HERE'OK.
In a WiFi Motion network, guardian-status messages are transmitted in an approximate 5 minute intervals. Guardian-status messages contain the state information of a WiFi Motion node or network, such as current connected devices, software versions, various metrics, and more.
When expandNodes=true or in a configuration update context, the nodes part of this network are returned in this array.
[ { "last_guardian_status": { … }, "radar_config": { … }, "guardian_config": { … }, "created_at": 0.1, "updated_at": 0.1, "guardian_id": "string", "last_heard": 0.1, "meta": { … }, "master_node_id": 0, "shard_id": 0, "guardian_type": "string", "disconnected_at": 0.1, "nodes": [ … ], "id": 0, "connection_status": true, "connection_report": { … }, "device_info": { … } } ]