Updates the status of the monitoring configuration of a Prometheus instance.
This API has been deprecated with no replacement. While temporary access is maintained, no further updates or bug fixes will be provided. To ensure continued functionality, plan your migration and contact your account manager for support.
Try it now
Test
RAM authorization
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 values for a Prometheus instance for ECS: customJob. Probe status cannot be modified. |
customJob |
| Status |
string |
Yes |
The status of the monitoring configuration. Valid values: run and stop. Probe status cannot be modified. |
run |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
21E85B16-75A6-429A-9F65-8AAC9A54**** |
| Code |
integer |
The status code. A value of 200 indicates a successful request. |
200 |
| Data |
string |
The result of the operation. |
success |
| Message |
string |
The returned message. |
message |
Examples
Success response
JSON format
{
"RequestId": "21E85B16-75A6-429A-9F65-8AAC9A54****",
"Code": 200,
"Data": "success",
"Message": "message"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.