Unlock the Power of AI

1 million free tokens

88% Price Reduction

Activate Now

CreateAlert

Updated at: 2025-02-12 10:04

Creates an alert rule in a project.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

POST /alerts HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
ParameterTypeRequiredDescriptionExample
projectstringYes

The name of the project.

ali-test-project
bodyobjectNo

The configurations of the alert rule.

namestringYes

The name of the alert rule. Make sure that the name is unique in a project.

alert-123456
displayNamestringYes

The display name of the alert rule.

test-alert
descriptionstringNo

The description of the alert rule.

An alert rule
configurationAlertConfigurationYes

The detailed configurations of the alert rule.

scheduleScheduleYes

The scheduling configurations of the alert rule.

Response parameters

ParameterTypeDescriptionExample
ParameterTypeDescriptionExample
headersobject
Serverstring
nginx
Content-Typestring
application/json
Content-Lengthstring
0
Connectionstring
close
Datestring
Sun, 27 May 2018 08:25:04 GMT
x-log-requestidstring
5B0A6B60BB6EE39764D458B5

Examples

Sample success responses

JSONformat

{}

Error codes

For a list of error codes, visit the Service error codes.

  • On this page (1)
  • Debugging
  • Authorization information
  • Request syntax
  • Request parameters
  • Response parameters
  • Examples
  • Error codes
Feedback
phone Contact Us

Chat now with Alibaba Cloud Customer Service to assist you in finding the right products and services to meet your needs.

alicare alicarealicarealicare