Refactor the Sensu Go enablement to account for GA changes.
Description
Check and Entity metadata was reorganized in beta8.
beta8 also introduced new annotation concept to replace custom attributes. New mapping logic will treat env defined annotation as json string and will map into Sensu Core 1.x compatible Ruby hash representation of event data.
Sensu Go versioning jumped to 5 from 2 in refactor. Enablement logic refactored to indicate "Sensu Go" event mapping instead of specific event version. Function names were updated accordingly to reduce confusion.
Added simple enablement mutator command that should help users start to migrate workloads. Provided mutator should help any workload that doesn't already require a mutator.
Motivation and Context
Sensu Go beta8 refactor of Event model broke mapping to 1.x event.
How Has This Been Tested?
Using updated handle-logevent.rb for manually updated sensu-plugins-logs plugin
Also updated the testing fixtures in the plugin to include changes
Types of changes
[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[x] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.
[x] I have updated the Changelog following the conventions laid out on Keep A Changelog
Refactor the Sensu Go enablement to account for GA changes.
Description
Check and Entity metadata was reorganized in beta8.
beta8 also introduced new annotation concept to replace custom attributes. New mapping logic will treat env defined annotation as json string and will map into Sensu Core 1.x compatible Ruby hash representation of event data.
Sensu Go versioning jumped to 5 from 2 in refactor. Enablement logic refactored to indicate "Sensu Go" event mapping instead of specific event version. Function names were updated accordingly to reduce confusion.
Added simple enablement mutator command that should help users start to migrate workloads. Provided mutator should help any workload that doesn't already require a mutator.
Motivation and Context
Sensu Go beta8 refactor of Event model broke mapping to 1.x event.
How Has This Been Tested?
Using updated handle-logevent.rb for manually updated sensu-plugins-logs plugin
Also updated the testing fixtures in the plugin to include changes
Types of changes
Checklist:
Known Caveats