Closed brettswift closed 4 years ago
I actually wasn't aware the custom fields could exist on the client as well as a check. So lines were blurred here.
There isn't support for check fields here... however I think it should be fairly simple to implement.
https://github.com/sensu-plugins/sensu-plugins-slack/blob/master/bin/handler-slack.rb#L163
Are you achieving this currently by just supplying a template? Would that be enough?
yes you could supply your own template to very granularly control what is (not) sent.
I'm trying to pass some metadata from the check into the slack message. Both a custom param "owner" as well as the # of occurrences it's had. In both cases (see the bottom screenshot) the field name appears in the check, but not the value.
I'm not sure the best way to test handlers as I haven't written one yet, but just blasting out the
@event
variable to system logs seems to justMaybe this feature is known to not be working, or I'm doing it wrong?
Client check:
Handler config
This is the slack message: