kibana/x-pack/plugins/event_log/scripts
Garrett Spong ef64acf405
[RAM] Adds revision to event-log (#153716)
## Summary

Follow on from https://github.com/elastic/kibana/pull/151388 &
https://github.com/elastic/kibana/pull/147398, which includes the rule's
current `revision` when writing to the kibana event-log.

Note: Added as `kibana.alert.rule.revision` instead of as ECS field
`rule.version` as the [ECS
docs](https://www.elastic.co/guide/en/ecs/current/ecs-rule.html#field-rule-version)
conflate `version` & `revision` and figured it was best to be explicit.
If we do indeed want to use `rule.version` I'll make the change.


<p align="center">
<img width="500"
src="https://user-images.githubusercontent.com/2946766/233216775-f371f412-dcf6-4ef7-a396-84ec853eebbb.png"
/>
</p> 



### Checklist

Delete any items that are not applicable to this PR.

- [X] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
2023-04-21 17:20:26 -07:00
..
lib Elastic License 2.0 (#90099) 2021-02-03 18:12:39 -08:00
create_schemas.js Add flapping state object and interface in AAD index and Event Log (#143920) 2022-11-07 18:15:30 +01:00
mappings.js [RAM] Adds revision to event-log (#153716) 2023-04-21 17:20:26 -07:00