All URLs referenced in the document have the following base:

Base URL
http://wdc.dotcom-monitor.com/apiv1/

JSON request and response objects for all type of operations, detailed fields description and explanatory notes


Get Registered Counter Information

GET URI:

/counterinfo/get/{collector UID}

Returns JSON (META about categories…) that was saved:

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

POST URI:

/counterinfo/post/{Collector UID}
Custom Counter

{
    "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"
            ]
        }
    ]
}

SNMP Counter

{
    "results":
    {
        "OIDs":[
            "Sample OID 1",
            "Sample OID 2"
        ]
    }
}


Get Tasks List

GET URI:

/tasks/get/{collector UID}

Returns JSON with task list:

{
    "Sample Task UID 1": "Sample Counter Path 1",
    "Sample Task UID 2": "Sample Counter Path 2"
}

Send collected Counter Values

POST URI:

/tasks/post/{Collector UID}

POST Content:

{
    "Sample Task UID 1": 2343.44,
    "Sample Task UID 2": 8292
}