Skip to content

Commit

Permalink
[Detection Rules] Remove empty values in threshold.field array for th…
Browse files Browse the repository at this point in the history
…reshold rules (#97111)

## Issues
related to elastic/detection-rules#1097
related to elastic/detection-rules#1099

## Summary

`threshold.field` is an array that currently requires at least one value. An empty string `""` was required if no value was supplied. Instead, this needs to be replaced with no string and just an empty array.
### Checklist

Delete any items that are not applicable to this PR.

- [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md)
  • Loading branch information
brokensound77 committed Apr 15, 2021
1 parent 83831ce commit 069b04b
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,9 @@
}
],
"threshold": {
"field": [
""
],
"field": [],
"value": 25
},
"type": "threshold",
"version": 3
"version": 4
}

0 comments on commit 069b04b

Please sign in to comment.