Skip to main content

Create an Alert

Select

SaaS
Customer Managed

This operation creates an alert.

More Details

Request Body
  • alertDetail object
  • alertType integer
  • notifTypeListOperationType integer
  • alertSeverity integer
  • notifType integer[]
  • criteria object
  • criteria integer
  • EntityList object
  • associationsOperationType integer
  • associations object[]
  • clientId integer
  • _type_ integer
  • userList object
  • userListOperationType integer
  • userList object[]
  • _type_ integer
  • userId integer
  • alertrule object
  • alertName string
Responses

OK


Schema
  • alertEntity object
  • alertId integer
  • errorResp object
  • errorCode integer
POST /alertrule    

Authorization

type: apiKeyname: Authtokenin: header

Request

Click Edit to configure Base URL
https://CommandCenterHostName/commandcenter/api
Security Scheme
token
Body

{
"alertDetail": {
"alertType": 0,
"notifTypeListOperationType": 0,
"alertSeverity": 0,
"notifType": [
0
],
"criteria": {
"criteria": 0
},
"EntityList": {
"associationsOperationType": 0,
"associations": [
{
"clientId": 0,
"_type_": 0
}
]
},
"userList": {
"userListOperationType": 0,
"userList": [
{
"_type_": 0,
"userId": 0
}
]
},
"alertrule": {
"alertName": "string"
}
}
}
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/AlertRule' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"alertDetail": {
"alertType": 0,
"notifTypeListOperationType": 0,
"alertSeverity": 0,
"notifType": [
0
],
"criteria": {
"criteria": 0
},
"EntityList": {
"associationsOperationType": 0,
"associations": [
{
"clientId": 0,
"_type_": 0
}
]
},
"userList": {
"userListOperationType": 0,
"userList": [
{
"_type_": 0,
"userId": 0
}
]
},
"alertrule": {
"alertName": "string"
}
}
}'