-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…65031) # Backport This will backport the following commits from `main` to `8.10`: - [[OAS] Add more Elasticsearch query rule examples (#164386)](#164386) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Lisa Cawley","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-08-28T18:25:53Z","message":"[OAS] Add more Elasticsearch query rule examples (#164386)","sha":"eaf9269667db66a5b69eb137e3444830b8b33cb6","branchLabelMapping":{"^v8.11.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Alerting","release_note:skip","Team:ResponseOps","docs","v8.10.0","v8.11.0"],"number":164386,"url":"https://github.com/elastic/kibana/pull/164386","mergeCommit":{"message":"[OAS] Add more Elasticsearch query rule examples (#164386)","sha":"eaf9269667db66a5b69eb137e3444830b8b33cb6"}},"sourceBranch":"main","suggestedTargetBranches":["8.10"],"targetPullRequestStates":[{"branch":"8.10","label":"v8.10.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.11.0","labelRegex":"^v8.11.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/164386","number":164386,"mergeCommit":{"message":"[OAS] Add more Elasticsearch query rule examples (#164386)","sha":"eaf9269667db66a5b69eb137e3444830b8b33cb6"}}]}] BACKPORT--> Co-authored-by: Lisa Cawley <[email protected]>
- Loading branch information
1 parent
d2b0ff2
commit ee5c73d
Showing
8 changed files
with
404 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...k/plugins/alerting/docs/openapi/components/examples/create_es_query_kql_rule_request.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
summary: Create an Elasticsearch query rule that uses Kibana query language (KQL). | ||
value: | ||
consumer: alerts | ||
name: my Elasticsearch query KQL rule | ||
params: | ||
aggType: count | ||
excludeHitsFromPreviousRun: true | ||
groupBy: all | ||
searchConfiguration: | ||
query: | ||
query: '""geo.src : "US" ""' | ||
language: kuery | ||
index: 90943e30-9a47-11e8-b64d-95841ca0b247 | ||
searchType: searchSource | ||
size: 100 | ||
threshold: | ||
- 1000 | ||
thresholdComparator: ">" | ||
timeWindowSize: 5 | ||
timeWindowUnit: m | ||
rule_type_id: .es-query | ||
schedule: | ||
interval: 1m |
Oops, something went wrong.