Add Stats For Resources Using Push Adapter Kind

Add Stats For Resources Using Push Adapter Kind

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}/suite-api/api/resources/stats/adapterkinds/{adapterKind}
COPY
Path Parameters
string
adapterKind
Required

The ID of the adapter kind that will push the stats

Query Parameters
boolean
disableAnalyticsProcessing
Optional
Constraints: default: false

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

The Resources and their Stats

resources-stat-contents of type(s) application/json
Required
"{\n  \"resource-stat-content\" : [ {\n    \"id\" : \"f165600e-b692-4098-b47a-e5a1dd0799e9\",\n    \"stat-contents\" : [ {\n      \"statKey\" : \"cpu|demandGhz\",\n      \"timestamps\" : [ 1119844280663, 1119844280693, 1119844280713 ],\n      \"data\" : [ 0.2, 0.3, 0.4 ]\n    }, {\n      \"statKey\" : \"mem|overload\",\n      \"timestamps\" : [ 1119844280663, 1119844280693, 1119844280713, 1119844280718 ],\n      \"data\" : [ 93.0, 95.0, 97.0, 99.0 ]\n    } ]\n  }, {\n    \"id\" : \"d048d473-9c35-4f02-a374-46a6085e547b\",\n    \"stat-contents\" : [ {\n      \"statKey\" : \"cpu|demandGhz\",\n      \"timestamps\" : [ 1119844280663, 1119844280693, 1119844280713 ],\n      \"data\" : [ 0.2, 0.3, 0.4 ]\n    }, {\n      \"statKey\" : \"mem|overload\",\n      \"timestamps\" : [ 1119844280663, 1119844280693, 1119844280713, 1119844280718 ],\n      \"data\" : [ 93.0, 95.0, 97.0, 99.0 ]\n    } ]\n  } ]\n}"
array of object
resource-stat-content
Optional

Collection of Resources and the associated Stats

Authentication
This operation uses the following authentication methods.
Responses
200

The stats are added successfully

Operation doesn't return any data structure

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/suite-api/api/resources/stats/adapterkinds/{adapterKind}