Queries the ServiceMonitor details of an environment.
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 |
EnvironmentId | string | Yes | The ID of the environment instance. | env-xxxxx |
Namespace | string | Yes | The namespace where the ServiceMonitor is located. | arms-prom |
ServiceMonitorName | string | Yes | The name of the ServiceMonitor. | arms-admin1 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "40B10E04-81E8-4643-970D-F1B38F2E****",
"Code": 200,
"Data": {
"EnvironmentId": "env-xxxxx",
"Namespace": "arms-prom",
"RegionId": "cn-hangzhou",
"ServiceMonitorName": "serviceMonitor1",
"ConfigYaml": "Refer to supplementary instructions.",
"Status": "run"
},
"Message": "success"
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history