Updates the PodMonitor 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 |
AliyunLang | string | No | The language. Valid values: zh and en. Default value: zh. | zh |
EnvironmentId | string | Yes | The environment ID. | env-xxxxx |
Namespace | string | Yes | The namespace where the PodMonitor is located. | arms-prom |
PodMonitorName | string | Yes | The name of the PodMonitor. | arms-admin-pm1 |
DryRun | boolean | No | Specifies whether to perform only a dry run, without performing the actual request. | true |
ConfigYaml | string | Yes | The YAML configuration string. | Refer to supplementary instructions. |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "C21AB7CF-B7AF-410F-BD61-82D1567F****",
"Code": 200,
"Data": {
"MatchedMsg": "Match successful.\n",
"MatchedTargetCount": "1"
},
"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