All Products
Search
Document Center

Managed Service for Prometheus:UpdateEnvDropMetricsRule

Last Updated:Dec 26, 2025

Updates a discarded metric rule in the environment.

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

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID.

cn-hangzhou
AliyunLangstringNo

The language. Valid values:

  • zh (default)
  • en
zh
EnvironmentIdstringYes

The environment ID.

env-xxx
DropMetricsstringYes

The metric to be discarded. Separate multiple metrics with line feeds.

metric_1 metric_2 metric_3

Response parameters

ParameterTypeDescriptionExample
object

The response schema.

RequestIdstring

The request ID.

6A9AEA84-7186-4D8D-B498-4585C6A2****
Codeinteger

The status code. 200 indicates that the request was successful.

200
Datastring

The returned data.

success
Messagestring

The error message returned if the call failed.

success

Examples

Sample success responses

JSONformat

{
  "RequestId": "6A9AEA84-7186-4D8D-B498-4585C6A2****",
  "Code": 200,
  "Data": "success",
  "Message": "success"
}

Error codes

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