All Products
Search
Document Center

Managed Service for Prometheus:UpdateMetricDrop

Last Updated:Nov 05, 2024

Updates the list of discarded metrics.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
arms:UpdateMetricDropnone
  • Prometheus
    acs:arms:{#regionId}:{#accountId}:Prometheus/{#ClusterId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringNo

The region ID.

cn-hangzhou
ClusterIdstringNo

The ID of the Prometheus instance.

c3ca36c8e2693403d85c0d9f8bb1d7b6c
MetricDropstringNo

The list of discarded metrics. Specify one metric name in each line.

apiserver_request_duration_seconds_bucket etcd_request_duration_seconds_bucket apiserver_request_total container_tasks_state

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The ID of the request.

CCCA4B88-BD7B-5A38-89AF-C09293BD4187
Datastring

Indicates whether the request was successful.

true
Codelong

The response status. Valid values: 2XX: The request is successful. 3XX: A redirection message is returned. 4XX: The request is invalid. 5XX: A server error occurs.

200
Messagestring

The returned message.

success
Successboolean

Indicates whether the request was successful. Valid values:

  • true
  • false
true

Examples

Sample success responses

JSONformat

{
  "RequestId": "CCCA4B88-BD7B-5A38-89AF-C09293BD4187",
  "Data": "true",
  "Code": 200,
  "Message": "success",
  "Success": true
}

Error codes

For a list of error codes, visit the Service error codes.