Creates a diagnostic metric set for resources. You can flexibly combine diagnostic metrics as needed.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:CreateDiagnosticMetricSet |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. You can call DescribeRegions to query the most recent region list. |
cn-hangzhou |
| ResourceType |
string |
Yes |
The diagnostic resource type. Default value: instance. Valid values:
|
instance |
| MetricSetName |
string |
No |
The name of the diagnostic metric set. |
RemoteConnectionDiagnostics |
| MetricIds |
array |
Yes |
The list of diagnostic metrics. A maximum of 100 metrics are supported. |
|
|
string |
No |
The list of diagnostic metrics. A maximum of 100 metrics are supported. |
Instance.DiskLoadFailure |
|
| Description |
string |
No |
The description of the diagnostic metric set. |
RemoteConnectionDiagnostics |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE***** |
| MetricSetId |
string |
The unique ID of the diagnostic metric set. |
dms-o7ymuutup5l***** |
Examples
Success response
JSON format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE*****",
"MetricSetId": "dms-o7ymuutup5l*****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter.MetricId | %s |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.