Versions Compared
Version | Old Version 1 | New Version 2 |
---|---|---|
Changes made by | ||
Saved on |
Key
- This line was added.
- This line was removed.
- Formatting was changed.
GET device_agents/statistics
Resource Information
Requires Authentication? | |
Response Formats | json |
HTTP Methods | GET |
Returns a list of all available Device Agents brief information.
Resource URL
http://{host}/api/2.0/device_agents/statistics/.format
Example Request
GET
Code Block | ||
---|---|---|
| ||
[ { "DeviceAgent": { "id": 2002, "title": "enc2 (Encoder)", "application_type": 2, "application_id": 2 } }, { "DeviceAgent": { "id": 1003, "title": "Manager", "application_type": 3, "application_id": 1 } }, { "DeviceAgent": { "id": 1004, "title": "Default (Snmp Agent)", "application_type": 4, "application_id": 1 } } ] |
GET /device_agents/statistics/{app_id}/{app_type}
Resource Information
Requires Authentication? | |
Response Formats | json |
HTTP Methods | GET |
Returns a detailed single specific Device Agent information.
Resource URL
http://{host}/api/2.0//device_agents/statistics/{app_id}/{app_type}/.format
Parameters
Parameter | Data Type | Description |
---|---|---|
app_id | integer | The ID of the specific agent, according to app_type parameter. |
app_type | integer | The ID representation of the type of agent to be viewed. |
Example Request
GET
Code Block | ||
---|---|---|
| ||
{ "DeviceAgent": { "id": 1011, "title": "Web Server", "application_type": 11, "application_id": 1, "cpu": 0.62, "alocMem": 217096, "nonAlocMem": 932036, "modified": "1617954837327" } } |