uchiwa
uchiwa copied to clipboard
Option to hide events based on the "subdue" check parameter
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 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'!
Tagging this in the Subdue 2.0 conversation, here: https://github.com/sensu/sensu/issues/1219
+1