UpdateDeliveryTask
Updates a data delivery task.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:UpdateDeliveryTask |
update |
*DeliveryTask
|
None | None |
Request syntax
PUT /delivery-task/{taskId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| taskId |
string |
Yes |
The task ID. |
6afe16bece7996a3 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. All fields are optional. Specify only the fields that you want to update. |
|
| dataSourceId |
string |
No |
The data source ID (Prometheus instance ID). |
rw-5f2b4sc7es4d66 |
| externalLabels |
object |
No |
The additional labels appended to all delivered metrics. The key is the label name, and the value is the label value. |
{"region":"cn-hangzhou"} |
|
string |
No |
externalLabelsKey → externalLabelsValue, such as region → cn-hangzhou. |
region: cn-hangzhou |
|
| labelFilters |
object |
No |
The metric filtering conditions. The existing conditions are entirely replaced without incremental merging. |
{"__name__":"up"} |
|
string |
No |
filterKey → filterValue, such as job → my_job. |
__name__: up |
|
| labelFiltersType |
string |
No |
The metric filtering mode. Valid values:
|
Deny |
| resourceGroupId |
string |
No |
The resource group ID. |
rg-aekzoiafjtr7zyq |
| sinkList |
array<object> |
No |
The list of delivery destinations. |
|
|
array<object> |
No |
The delivery destination. |
||
| sinkConfigs |
object |
No |
The detailed configuration of the delivery destination. The meanings of keys and values vary based on the sinkType. |
{"Url":"https://example.com/api/v1/write","Network":"PublicNetwork","AuthType":"None"} |
|
string |
No |
The configuration items supported by each sinkType. |
Url: http://xxxx/api/v1/write |
|
| sinkType |
string |
No |
The type of the delivery destination. Valid values:
|
Prometheus |
| status |
string |
No |
The task status, which is used to start or stop the task. Valid values: Enable: Starts the task. Disable: Stops the task. Running: The task is running. Valid values:
|
Running |
| taskDescription |
string |
No |
The task description. |
updated desc |
| taskName |
string |
No |
The task name. Chinese characters, English letters, underscores (_), and hyphens (-) are supported. |
new-task-name |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| requestId |
string |
Id of the request |
9335D7CB-2725-53DD-A2B3-187821C8F1B8 |
Examples
Success response
JSON format
{
"requestId": "9335D7CB-2725-53DD-A2B3-187821C8F1B8"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.