All Products
Search
Document Center

Application Real-Time Monitoring Service:CreateEnvCustomJob

Last Updated:Aug 28, 2026

Creates a custom Prometheus monitoring job for a specified environment.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

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:

  • en :

    en

  • zh :

    zh

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.