Unable to render embedded object: File (Dark logo transperant background.png) not found.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 2 Current »

GET device_agents/statistics

Resource Information

Requires Authentication?

Yes

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 

  1. http://44.235.52.211/api/2.0/device_agents/statistics/.json

[    
    {
        "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?

Yes

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
(required)

integer

The ID of the specific agent, according to app_type parameter.

app_type
(required)

integer

The ID representation of the type of agent to be viewed.

Example Request

GET 

  1. http://44.235.52.211/api/2.0/device_agents/statistics/1/11/.json

{
    "DeviceAgent": {
        "id": 1011,
        "title": "Web Server",
        "application_type": 11,
        "application_id": 1,
        "cpu": 0.62,
        "alocMem": 217096,
        "nonAlocMem": 932036,
        "modified": "1617954837327"
    }
}
  • No labels