You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sensu Handler shim for Sensu 2.0 event data. (#190)
* Added event_2to1 method to Utils and --enable-2.0-event option to base Handler class. New option makes it possible to use sensu-plugin based handlers with Sensu 2.0 events until handlers provide native 2.0 event support.
* handle case when event['client'] is nil
* Refactor event_2to1 utility function to take optional event argument
* fix bad conditional for expected integer attribute
* add test for --enable-2to1-mapping handler argument
* fix unreleased changelog entry format
* remove unneeded cornercase mapping due to now resolved attribute naming issue
* fix for handle 2to1 test
* Refactor function name from awkward 2to1 as per pr review
* return orig_event if already mapped
* fix argument to match refactor
* make it possible to set env variable to attempt v2 into v1 mapping automatically
* update changelog with more detail on added v2 -> v1 mapping support
* add support for v2 -> v1 event mapping to mutator class, and update changelog
* remove unneeded confusing unless conditional
* fix for stray comma
* refactor state to action mapping to a use a 1:1 hash lookup with a fallback if state is not in understood mapping
* refactor history handling, save original history as history_v2.
* extend 2to1 test coverage to include history
0 commit comments