A newer release of this product is available.
Support EMS filters name rules endpoint overview
Contributors
Suggest changes
- PDF of this doc site
Collection of separate PDF docs
Creating your file...
This may take a few minutes. Thanks for your patience.
Your file is ready
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