Deletes a metric import task for Alibaba Cloud services or a metric for the logs that are imported from Log Service.
This topic provides an example on how to delete a metric import task whose ID is 36****
. The returned result indicates that the metric import task is deleted.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DeleteHybridMonitorTask |
The operation that you want to perform. Set the value to DeleteHybridMonitorTask. |
TaskId | String | No | 36**** |
The ID of the metric import task. For information about how to obtain the ID of a metric import task, see DescribeHybridMonitorTaskList. Note This parameter is required only if you call this operation to delete metrics for the
logs that are imported from Log Service. In this case, the
TaskType parameter is set to aliyun_sls .
|
Namespace | String | No | aliyun |
The name of the namespace. The name can contain letters, digits, and hyphens (-). Note This parameter is required only if you call this operation to delete metric import
tasks for Alibaba Cloud services. In this case, the
TaskType parameter is set to aliyun_fc .
|
TargetUserId | String | No | 120886317861**** |
The ID of the member account. Note This parameter is required only if you call this operation to delete metric import
tasks that belong to a member in a resource directory. In this case, the
TaskType parameter is set to aliyun_fc .
|
For more information about common request parameters, see Common parameters.
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Code | String | 200 |
The HTTP status code. Note The status code 200 indicates that the call was successful.
|
Message | String | null |
The error message. |
RequestId | String | D6B8103F-7BAD-5FEB-945F-71D991AB8834 |
The ID of the request. |
Success | String | true |
Indicates whether the call was successful. Valid values:
|
Examples
Sample requests
http(s)://[Endpoint]/?Action=DeleteHybridMonitorTask
&TaskId=36****
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DeleteHybridMonitorTaskResponse>
<RequestId>D6B8103F-7BAD-5FEB-945F-71D991AB8834</RequestId>
<Code>200</Code>
<Success>true</Success>
</DeleteHybridMonitorTaskResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "D6B8103F-7BAD-5FEB-945F-71D991AB8834",
"Code" : 200,
"Success" : true
}
Error codes
For a list of error codes, visit the API Error Center.