All Products
Search
Document Center

Managed Service for Prometheus:UpdatePrometheusMonitoringStatus

Last Updated:May 09, 2024

Updates the status of the monitoring configuration of a Prometheus instance.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID.

cn-hangzhou
ClusterIdstringYes

The ID of the Prometheus instance.

cc7a37ee31aea4ed1a059eff8034b****
MonitoringNamestringYes

The name of the monitoring configuration.

customJob1
TypestringYes

The type of the monitoring configuration. Valid values for a Prometheus instance for Container Service: serviceMonitor, podMonitor, and customJob. Valid value for a Prometheus instance for ECS: customJob. The status of probe cannot be modified.

customJob
StatusstringYes

The status of the monitoring configuration. Valid values: run and stop.

run

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

21E85B16-75A6-429A-9F65-8AAC9A54****
Codeinteger

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

200
Datastring

The result of the operation.

success
Messagestring

The returned message.

message

Examples

Sample success responses

JSONformat

{
  "RequestId": "21E85B16-75A6-429A-9F65-8AAC9A54****",
  "Code": 200,
  "Data": "success",
  "Message": "message"
}

Error codes

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

Change history

Change timeSummary of changesOperation
No change history