sensu / uchiwa

Uchiwa is a simple yet effective open-source dashboard for the Sensu monitoring framework.
https://uchiwa.io
MIT License
920 stars 174 forks source link

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

Open rmc3 opened 9 years ago

rmc3 commented 9 years ago

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.

palourde commented 9 years ago

@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'!

calebhailey commented 8 years ago

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

ipeacocks commented 8 years ago

+1