Create Notification Plugin Rule Using POST
The Notification Plugin with which the Rule needs to be associated must be specified as part of the request.
The notification rule that needs to be created
Show optional properties
{
"name": "string"
}
{
"alertControlStates": [
"string"
],
"alertDefinitionIdFilters": {
"values": [
"string"
]
},
"alertImpactFilters": {
"values": [
"string"
]
},
"alertStatuses": [
"string"
],
"alertTypeFilters": [
{
"alertSubTypes": [
0
],
"alertType": 0
}
],
"collectorGroupId": "string",
"collectorUUId": "string",
"criticalities": [
"string"
],
"id": "string",
"links": [
{
"description": "string",
"href": "string",
"name": "string",
"rel": "string"
}
],
"name": "string",
"pluginId": "string",
"properties": [
{
"name": "string",
"value": "string"
}
],
"resourceFilter": {
"childrenResourceKindFilters": [
"string"
],
"childrenResourceKindKeyFilters": [
{
"adapterKind": "string",
"resourceKind": "string"
}
],
"matchResourceIdOnly": false,
"relationship": "string",
"resourceId": "string"
},
"resourceFilters": [
{
"childrenResourceKindFilters": [
"string"
],
"childrenResourceKindKeyFilters": [
{
"adapterKind": "string",
"resourceKind": "string"
}
],
"matchResourceIdOnly": false,
"relationship": "string",
"resourceId": "string"
}
],
"resourceKindFilter": {
"adapterKind": "string",
"resourceKind": "string"
},
"resourceKindFilters": [
{
"adapterKind": "string",
"resourceKind": "string"
}
],
"templateId": "string"
}
Set of Alert control states that the alert is expected to be in
Set of Alert states that the alert is expected to be in
Filter for the rule to match Alerts which are of the specified Alert type & Alert Subtypes
Filter for the rule to match Alerts triggered on resources belonging to given collector group
Filter for the rule to match Alerts triggered on resources belonging to given collector
Set of Alert criticalities that the alert is expected to be in
Identifier of this rule, automatically assigned by the system on create
Name of this rule
Identifier of the plugin for which this rule applies
Properties associated with the given rule. This may include information such as the email addresses of receivers/etc...
Filter for resources. If matchResourceIdOnly is specified, alerts are selected if their resource ids match with the 'resourceId' specified in the filter. Otherwise, the system looks at all the resource's children. The possible set of children can be further filtered based on the childrenResourceKindKeyFilters
.
Filters for the rule to be matched based on the "Resource and its Children" for which the Alerts were generated. This collection takes precedence over resourceFilter field.
Filter for the rule to be matched based on the Resource Kind for which the alert was generated
Identifier of the template. NOTE: For deprecated plugin types this field will be ignored. For all other plugin types, default templates will be used if this value is not specified.
The Notification Rule was created successfully in the system
{
"alertControlStates": [
"string"
],
"alertDefinitionIdFilters": {
"values": [
"string"
]
},
"alertImpactFilters": {
"values": [
"string"
]
},
"alertStatuses": [
"string"
],
"alertTypeFilters": [
{
"alertSubTypes": [
0
],
"alertType": 0
}
],
"collectorGroupId": "string",
"collectorUUId": "string",
"criticalities": [
"string"
],
"id": "string",
"links": [
{
"description": "string",
"href": "string",
"name": "string",
"rel": "string"
}
],
"name": "string",
"pluginId": "string",
"properties": [
{
"name": "string",
"value": "string"
}
],
"resourceFilter": {
"childrenResourceKindFilters": [
"string"
],
"childrenResourceKindKeyFilters": [
{
"adapterKind": "string",
"resourceKind": "string"
}
],
"matchResourceIdOnly": false,
"relationship": "string",
"resourceId": "string"
},
"resourceFilters": [
{
"childrenResourceKindFilters": [
"string"
],
"childrenResourceKindKeyFilters": [
{
"adapterKind": "string",
"resourceKind": "string"
}
],
"matchResourceIdOnly": false,
"relationship": "string",
"resourceId": "string"
}
],
"resourceKindFilter": {
"adapterKind": "string",
"resourceKind": "string"
},
"resourceKindFilters": [
{
"adapterKind": "string",
"resourceKind": "string"
}
],
"templateId": "string"
}
Set of Alert control states that the alert is expected to be in
Set of Alert states that the alert is expected to be in
Filter for the rule to match Alerts which are of the specified Alert type & Alert Subtypes
Filter for the rule to match Alerts triggered on resources belonging to given collector group
Filter for the rule to match Alerts triggered on resources belonging to given collector
Set of Alert criticalities that the alert is expected to be in
Identifier of this rule, automatically assigned by the system on create
Name of this rule
Identifier of the plugin for which this rule applies
Properties associated with the given rule. This may include information such as the email addresses of receivers/etc...
Filter for resources. If matchResourceIdOnly is specified, alerts are selected if their resource ids match with the 'resourceId' specified in the filter. Otherwise, the system looks at all the resource's children. The possible set of children can be further filtered based on the childrenResourceKindKeyFilters
.
Filters for the rule to be matched based on the "Resource and its Children" for which the Alerts were generated. This collection takes precedence over resourceFilter field.
Filter for the rule to be matched based on the Resource Kind for which the alert was generated
Identifier of the template. NOTE: For deprecated plugin types this field will be ignored. For all other plugin types, default templates will be used if this value is not specified.
An invalid Alert Definition identifier was specified as part of Alert Definition Filter
An invalid request body was specified or any constraints were violated
There was an error during the creation of the Notification Rule