Update Rule
POST
/alert/pipeline/upsertRequest
Header Params
Content-Type
string
optional
Example:
application/json
Body Params application/json
integration_id
integer
Integration ID
rules
array [object {3}]
Rule list
kind
enum<string>
Rule type
Rules will be executed in order
Allowed values:
title_resetdescription_resetseverity_resetalert_dropalert_inhibit
if
array[object (Filter) {3}]
Matching conditions
Outer conditions, AND relationship between conditions
settings
Rule configuration
Different configurations for different rule types
Example
{
"integration_id": 0,
"rules": [
{
"kind": "title_reset",
"if": [
{
"key": "title",
"oper": "IN",
"vals": [
"string"
]
}
],
"settings": {
"title": "string"
}
}
]
}
Request samples
Responses
成功(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
error
object (DutyError)
optional
code
enum<string>
Error code
Allowed values:
InvalidParameterInvalidContentTypeUnauthorizedAccessDeniedMethodNotAllowedRequestTooFrequentlyRequestVerifyRequiredDangerousOperationRequestLockedRouteNotFoundBalanceNotEnoughUndonedOrderExistResourceNotFoundInternalErrorReferenceExist
message
string
Error description
Example
Not configured
Last modified: 2 个月前