sensu-cli icon indicating copy to clipboard operation
sensu-cli copied to clipboard

Displaying custom event field in output

Open Akshaykapoor opened this issue 10 years ago • 1 comments

Hi,

I have some custom values in my event-data on which i would like to do some filtering. Looking at the code, i figured that i would need to add my custom field to templates/event.erb file for it to display in the output. Shouldn't it by default display all the fields which are part of the event ? or maybe its possible to print in the output and i'm missing something.

Thanks

Akshaykapoor avatar Apr 06 '15 19:04 Akshaykapoor

The goal is to actually expose templates to allow the user to place them in their settings directory. I just never got around to exposing that.

The reason for the template is really around formatting and the template could have the ability to iterate over the hash objects.

I think the solution here is to expose the templating as well as clean up the logic in the default template.

agent462 avatar Apr 07 '15 02:04 agent462