Update Super Metric

Update Super Metric

Update a SuperMetric with the given name, formula and description

Request
URI
PUT
https://{api_host}/suite-api/api/supermetrics
COPY
Request Body

The updated SuperMetric

supermetric of type(s) application/json
Required

Show optional properties

{
    "name": "string",
    "formula": "string"
}
"{\n  \"id\" : \"be9e1b69-2646-4ca4-b246-76a97b4a7e63\",\n  \"name\" : \"Example SuperMetric for DataCenter\",\n  \"formula\" : \"sumN(\\\\$This:cpu|demandmhz,2)\",\n  \"description\" : \"Sum the CPU usage in MHZ on the assigned resource and its children\"\n}"
string As uuid As uuid
id
Optional

The unique ID of the SuperMetric. This will be null when creating a
SuperMetric, but it is required when updating an existing SuperMetric.

string As .+
name
Required

The name of the SuperMetric

string As .+
formula
Required

The formula expression of the SuperMetric

string
description
Optional

The description of the SuperMetric

integer As int64 As int64
modificationTime
Optional

Last modification time of the SuperMetric

Authentication
This operation uses the following authentication methods.
Responses
200

The updated SuperMetric object

Returns supermetric of type(s) application/json
"{\n  \"id\" : \"648e4592-e960-41f8-bc3b-683ed5133e55\",\n  \"name\" : \"Example SuperMetric for DataCenter\",\n  \"formula\" : \"sumN(\\\\$This:cpu|demandmhz,2)\",\n  \"description\" : \"Sum the CPU usage in MHZ on the assigned resource and its children\"\n}"
string As uuid As uuid
id
Optional

The unique ID of the SuperMetric. This will be null when creating a
SuperMetric, but it is required when updating an existing SuperMetric.

string As .+
name
Required

The name of the SuperMetric

string As .+
formula
Required

The formula expression of the SuperMetric

string
description
Optional

The description of the SuperMetric

integer As int64 As int64
modificationTime
Optional

Last modification time of the SuperMetric


Code Samples
COPY
                    curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"formula:"string","name:"string"}' https://{api_host}/suite-api/api/supermetrics