Open rmc3 opened 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'!
Tagging this in the Subdue 2.0 conversation, here: https://github.com/sensu/sensu/issues/1219
+1
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 thebegin
andend
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 ofbegin
andend
can be anything which Ruby'sTime.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.