uchiwa icon indicating copy to clipboard operation
uchiwa copied to clipboard

Option to hide events based on the "subdue" check parameter

Open rmc3 opened this issue 10 years ago • 3 comments

Note: This issue might need to go in sensu/uchiwa-web instead. Happy to move it there if that's desired.

It would be useful to us be able to hide events based on the "subdue" check parameter (as documented on http://sensuapp.org/docs/0.16/checks). This would entail checking whether an event's issued timestamp is between the begin and end parameters of the subdue hash in the check's configuration and hiding it if so. One potential complicating factor is that the Sensu documentation specifies that the values of begin and end can be anything which Ruby's Time.parse() will accept. I'm not presently certain how easy it would be to replicate that in JavaScript.

If there's interest in implementing this filter, I'm happy to take a look at it.

rmc3 avatar Feb 10 '15 19:02 rmc3

@rmc3 You could look at http://momentjs.com/, we are already using this library, however I'm not sure it can parse something like '5PM PST'!

palourde avatar Feb 13 '15 01:02 palourde

Tagging this in the Subdue 2.0 conversation, here: https://github.com/sensu/sensu/issues/1219

calebhailey avatar May 24 '16 22:05 calebhailey

+1

ipeacocks avatar Jun 10 '16 09:06 ipeacocks