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


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes CreateDiagnosticMetricSet

The operation that you want to perform. Set the value to CreateDiagnosticMetricSet.

RegionId String Yes cn-hangzhou

The ID of the region in which to create the diagnostic metric set. You can call the DescribeRegions operation to query the most recent region list.

ResourceType String Yes instance

The type of the resource.

Default value: instance.

MetricSetName String No connection issue diagnostics

The name of the diagnostic metric set.

MetricIds.N String Yes Instance.DiskLoadFailure

The ID of diagnostic metric N. You can specify up to 100 diagnostic metric IDs.

Description String No connection issue diagnostics

The description of the diagnostic metric set.

Response parameters

Parameter Type Example Description
RequestId String 473469C7-AA6F-4DC5-B3DB-A3DC0DE*****

The ID of the request.

MetricSetId String dms-o7ymuutup5l*****

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


Sample requests

&MetricSetName=connection issue diagnostics
&Description=connection issue diagnostics
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK


JSON format

HTTP/1.1 200 OK

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

Error codes

For a list of error codes, visit the API Error Center.