Updates the status of the monitoring configuration of a Prometheus instance.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID. | cn-hangzhou |
ClusterId | string | Yes | The ID of the Prometheus instance. | cc7a37ee31aea4ed1a059eff8034b**** |
MonitoringName | string | Yes | The name of the monitoring configuration. | customJob1 |
Type | string | Yes | 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 |
Status | string | Yes | The status of the monitoring configuration. Valid values: run and stop. | run |
Response parameters
Examples
Sample success responses
JSON
format
{
"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 time | Summary of changes | Operation |
---|
No change history