Add Stats Using Push Adapter Kind Using POST

Add Stats Using Push Adapter Kind Using POST

If the adapter kind specified is not present in the system, it will be created dynamically. However if the adapter kind specified already exists, then it must be of OPENAPI adapter kind type.

Request
URI
POST
https://{api_host}/api/resources/{id}/stats/adapterkinds/{adapterKind}
COPY
Path Parameters
string
adapterKind
Required

The ID of the adapter kind that will push the stats

string
id
Required

The Identifier of the resource object

Query Parameters
boolean
disableAnalyticsProcessing
Optional

Whether the current data set goes through Analytics processing (Threshold checking, Alert generation) or not. Defaults to false. But when set to true will result in no evaluation of Alerts but the data gets stored.


Request Body
stat-contents of type(s) application/json
Optional

Show optional properties

{
    "stat-content": [
        {
            "statKey": "string",
            "timestamps": [
                {}
            ]
        }
    ]
}
{
    "stat-content": [
        {
            "data": [
                "number"
            ],
            "statKey": "string",
            "timestamps": [
                0
            ],
            "values": [
                "string"
            ]
        }
    ]
}
stat-content
Required

Collection of stat contents

Authentication
This operation uses the following authentication methods.
Responses
200

The stats are added successfully

Operation doesn't return any data structure