[Enhancement] Add flag to export rules via KQL search on name (#4594)
* Add flag to export rules via KQL search on name * Add KQL to help text Co-authored-by: Eric Forte <119343520+eric-forte-elastic@users.noreply.github.com> * version patch bump * flake8 trimming * pyproject bump * Bump version --------- Co-authored-by: Mika Ayenson, PhD <Mikaayenson@users.noreply.github.com> Co-authored-by: Eric Forte <119343520+eric-forte-elastic@users.noreply.github.com> Co-authored-by: eric-forte-elastic <eric.forte@elastic.co>
This commit is contained in:
@@ -42,7 +42,8 @@ class BaseResource(dict):
|
||||
if per_page is None:
|
||||
per_page = DEFAULT_PAGE_SIZE
|
||||
|
||||
params.setdefault("sort_field", "_id")
|
||||
# _id is no valid sort field so we sort by name by default
|
||||
params.setdefault("sort_field", "name")
|
||||
params.setdefault("sort_order", "asc")
|
||||
|
||||
return ResourceIterator(cls, cls.BASE_URI + "/_find", per_page=per_page, **params)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "detection-rules-kibana"
|
||||
version = "0.4.2"
|
||||
version = "0.4.3"
|
||||
description = "Kibana API utilities for Elastic Detection Rules"
|
||||
license = {text = "Elastic License v2"}
|
||||
keywords = ["Elastic", "Kibana", "Detection Rules", "Security", "Elasticsearch"]
|
||||
|
||||
Reference in New Issue
Block a user