Creates a custom Prometheus monitoring job for a specified environment.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The ID of the region in which the environment resides. |
cn-hangzhou |
| AliyunLang |
string |
No |
The language of the response. Valid values: zh and en. Default value: zh. Valid values:
|
zh |
| EnvironmentId |
string |
Yes |
The ID of the environment instance. |
env-xxxxxx |
| CustomJobName |
string |
Yes |
The name of the custom job. |
customJob1 |
| ConfigYaml |
string |
Yes |
The YAML configuration string of the custom job. |
See Additional information. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
4C518054-852F-4023-ABC1-4AF95FF7**** |
| Code |
integer |
The HTTP status code. A value of 200 indicates success. Other values indicate failure. |
200 |
| Data |
string |
The name of the custom job if the request succeeded, or error information if the request failed. |
cutomJob1 |
| Message |
string |
The response message. |
success |
Examples
Success response
JSON format
{
"RequestId": "4C518054-852F-4023-ABC1-4AF95FF7****",
"Code": 200,
"Data": "cutomJob1",
"Message": "success"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.