Create a filter
Added in 5.4.0
A filter contains a list of strings. It can be used by one or more anomaly detection jobs.
Specifically, filters are referenced in the custom_rules
property of detector configuration objects.
Path parameters
-
filter_id
string Required A string that uniquely identifies a filter.
Body
Required
-
description
string A description of the filter.
-
items
array[string] The items of the filter. A wildcard
*
can be used at the beginning or the end of an item. Up to 10000 items are allowed in each filter.
PUT
/_ml/filters/{filter_id}
curl \
--request PUT 'http://api.example.com/_ml/filters/{filter_id}' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"description":"string","items":["string"]}'
Request examples
{
"description": "string",
"items": [
"string"
]
}
Response examples (200)
{
"description": "string",
"filter_id": "string",
"items": [
"string"
]
}