Todas as URLs mencionadas no documento têm a seguinte base:
Base URL
http://wdc.dotcom-monitor.com/apiv1/
Objetos de solicitação e resposta JSON para todos os tipos de operações, descrição detalhada de campos e notas explicativas
Get Registered Counter Information
OBTER URI:
/counterinfo/get/{collector UID}
Retorna JSON (META sobre categorias…) que foi salvo:
{ "GetCounterInfoResult":"{"results":[ { "CategoryName":"Sample Category 1", "InstanceList":[ "i-01","i-02", "_Total", "sdd" ], "CounterList":[ "c-01", "c-02" ] }, { "CategoryName":"Sample Category 2", "InstanceList":[ "b-01", "b-02", "_Total" ], "CounterList":[ "d-01", "d-02" ] }, { "CategoryName":"S001", "InstanceList":null, "CounterList":[ "var–1" ] } ] }" }
Register Counter Info
PÓS URI:
/counterinfo/post/{Collector UID}
Contador personalizado
{ "results": [ { "CategoryName": "Sample Category 1", "InstanceList": [ "i-01", "i-02", "_Total" ], "CounterList": [ "c-01", "c-02" ] }, { "CategoryName": "Sample Category 2", "InstanceList": [ "b-01", "b-02", "_Total" ], "CounterList": [ "d-01", "d-02" ] } ] }
Contador SNMP
{ "results": { "OIDs":[ "Sample OID 1", "Sample OID 2" ] } }
Get Tasks List
OBTER URI:
/tasks/get/{collector UID}
Retorna JSON com lista de tarefas:
{ "Sample Task UID 1": "Sample Counter Path 1", "Sample Task UID 2": "Sample Counter Path 2" }
Send collected Counter Values
PÓS URI:
/tasks/post/{Collector UID}
CONTEÚDO POST:
{ "Sample Task UID 1": 2343.44, "Sample Task UID 2": 8292 }