Creates a diagnostic metric set. You can group diagnostic metrics into diagnostic metric sets.
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 the DescribeRegions operation to query the most recent region list. |
cn-hangzhou |
| ResourceType |
string |
Yes |
The type of the resource. Default value: instance. |
instance |
| MetricSetName |
string |
No |
The name of the diagnostic metric set. |
远程连接问题诊断 |
| MetricIds |
array |
Yes |
The IDs of diagnostic metrics. You can specify up to 100 diagnostic metric IDs. |
|
|
string |
No |
The ID of diagnostic metric N. You can specify up to 100 diagnostic metric IDs. |
Instance.DiskLoadFailure |
|
| Description |
string |
No |
The description of the diagnostic metric set. |
远程连接问题诊断 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE***** |
| MetricSetId |
string |
The ID of the diagnostic metric set, which is the unique identifier of the 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.