All Products
Search
Document Center

Elastic Compute Service:CreateDiagnosticMetricSet

Last Updated:Apr 11, 2024

Creates a diagnostic metric set. You can group diagnostic metrics into diagnostic metric sets.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The type of the resource.

Default value: instance.

cn-hangzhou
ResourceTypestringYes

The name of the diagnostic metric set.

Enumeration Value:
  • instance
  • account
instance
MetricSetNamestringNo

my_dms

The IDs of diagnostic metrics. You can specify up to 100 diagnostic metric IDs.
MetricIdsarrayYes

The ID of diagnostic metric.

stringYes

The description of the diagnostic metric set.

Instance.DiskLoadFailure
DescriptionstringNo

testDescription

The ID of the request.

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The ID of the diagnostic metric set, which is the unique identifier of the set.

473469C7-AA6F-4DC5-B3DB-A3DC0DE*****

Examples

Sample success responses

JSONformat

{
  "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE*****",
  "MetricSetId": "dms-o7ymuutup5l*****"
}

Error codes

HTTP status codeError codeError message
400InvalidParameter.MetricId%s

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history