Modifies a diagnostic metric set.
Debugging
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| Action | String | Yes | ModifyDiagnosticMetricSet |
The operation that you want to perform. Set the value to ModifyDiagnosticMetricSet. |
| RegionId | String | Yes | cn-hangzhou |
The region ID of the diagnostic metric set. You can call the DescribeRegions operation to query the most recent region list. |
| MetricSetId | String | Yes | dms-uf6i0tv2refv8wz***** |
The ID of the diagnostic metric set. |
| MetricIds.N | String | No | Instance.DiskLoadFailure |
The ID of diagnostic metric N. |
| ResourceType | String | No | instance |
The type of the resource. |
| MetricSetName | String | No | remoteConnectError |
The new name of the diagnostic metric set. |
| Description | String | No | connection diagnostics |
The new description of the diagnostic metric set. |
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| RequestId | String | 473469C7-AA6F-4DC5-B3DB-A3DC0DE***** |
The ID of the request. |
Examples
Sample requests
http(s)://ecs.aliyuncs.com/?Action=ModifyDiagnosticMetricSet
&RegionId=cn-hangzhou
&MetricSetId=dms-uf6i0tv2refv8wz*****
&MetricIds=["Instance.DiskLoadFailure"]
&ResourceType=instance
&MetricSetName=remoteConnectError
&Description=connection error diagnostics
&<Common request parameters>
Sample success responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<ModifyDiagnosticMetricSetResponse>
<RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE*****</RequestId>
</ModifyDiagnosticMetricSetResponse>
JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "473469C7-AA6F-4DC5-B3DB-A3DC0DE*****"
}
Error codes
For a list of error codes, visit the API Error Center.