A newer release of this product is available.
Create or retrieve filter rules
Manage the rules associated with specific filters to evaluate events and determine matches effectively. Use these endpoints to create or retrieve rules within a filter, facilitating precise event filtering and handling.
Overview
Manages the list of rules associated with a specific filter. A filter contains a list of rules that are evaluated to determine whether an event matches the filter. When a rule matches an event, the filter is considered a match. See the documentation for /support/ems/filters for details on the various properties in a rule.
Examples
Retrieving the collection of rules connected to a filter
# API
GET /api/support/ems/filters/no-info-debug-events/rules
# Response
200 OK
# JSON Body
{
"records": [
{
"index": 1,
"_links": {
"self": {
"href": "/api/support/ems/filters/no-info-debug-events/rules/1"
}
}
},
{
"index": 2,
"_links": {
"self": {
"href": "/api/support/ems/filters/no-info-debug-events/rules/2"
}
}
}
],
"num_records": 2,
"_links": {
"self": {
"href": "/api/support/ems/filters/no-info-debug-events/rules"
}
}
}
Creating a new rule under an existing filter
|
|
The absence of a position index appends the rule to the end of the list. |
# API
POST /api/support/ems/filters/test-filter/rules
# JSON Body
{
"type": "include",
"message_criteria": {
"name_pattern": "wafl.*",
"severities": "error,informational"
}
}
# Response
201 Created