All Products
Search
Document Center

Managed Service for Prometheus:DescribeEnvPodMonitor

Last Updated:May 09, 2024

Queries the PodMonitor details of an environment.

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
EnvironmentIdstringYes

The ID of the environment instance.

env-xxxxx
NamespacestringYes

The namespace where the PodMonitor is located.

arms-prom
PodMonitorNamestringYes

The name of the PodMonitor.

arms-admin-pm1

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The request ID.

1A9C645C-C83F-4C9D-8CCB-29BEC9E1****
Codeinteger

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

200
Dataobject

The returned struct.

EnvironmentIdstring

The ID of the environment instance.

env-xxxxx
RegionIdstring

The region ID.

cn-hangzhou
Namespacestring

The namespace.

arms-prom
PodMonitorNamestring

The name of the PodMonitor.

podMonitor1
ConfigYamlstring

The YAML configuration string of the PodMonitor.

Refer to supplementary instructions.
Statusstring

The status of the PodMonitor. Valid values: run and stop.

run
Messagestring

The returned message.

success

Examples

Sample success responses

JSONformat

{
  "RequestId": "1A9C645C-C83F-4C9D-8CCB-29BEC9E1****",
  "Code": 200,
  "Data": {
    "EnvironmentId": "env-xxxxx",
    "RegionId": "cn-hangzhou",
    "Namespace": "arms-prom",
    "PodMonitorName": "podMonitor1",
    "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 timeSummary of changesOperation
No change history