You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@pietervogelaar so what changes need to be made? When I looked at this earlier, it seemed that they did still support /stashes - is that no longer the case? Can you submit a PR to make calls to a different Sensu API, if that is what is required?
@LindsayHill I hit the same issue, looks like stashes for silence does not work, i modified the action a bit and i can see the check silenced in sensu ui
`
class SilenceAction(SensuAction):
def run(self, check, client, expiration, message):
path = 'silence/{}'.format(client)
if check:
path = "{}/{}".format(path, check)
payload = {}
payload['message'] = message
if expiration:
payload['expire'] = expiration
if check:
payload['check'] = check
if client:
payload['subscription'] = client
#return self.api.create_stash(payload, path)
return self.api.post_silence_request(payload)
Activity
LindsayHill commentedon Aug 5, 2017
Their docs seem to indicate it is still supported? https://sensuapp.org/docs/latest/api/stashes-api.html
I can't quite figure it out though, as some older docs talk about migrating from stash-based silencing https://sensuapp.org/docs/0.26/reference/silencing.html#migrating-from-stash-based-silencing
Looks like it should be pretty straightforward to change the actions if we need to though. Don't even need to change the names.
pietervogelaar commentedon Nov 28, 2017
+1 Silence action doesn't work. I'm running Sensu version 1.0.2 and stackstorm-sensu pack v0.5.0
LindsayHill commentedon Nov 28, 2017
@pietervogelaar so what changes need to be made? When I looked at this earlier, it seemed that they did still support
/stashes- is that no longer the case? Can you submit a PR to make calls to a different Sensu API, if that is what is required?arunsr2015 commentedon May 6, 2019
@LindsayHill I hit the same issue, looks like stashes for silence does not work, i modified the action a bit and i can see the check silenced in sensu ui
`
class SilenceAction(SensuAction):
def run(self, check, client, expiration, message):
path = 'silence/{}'.format(client)
if check:
path = "{}/{}".format(path, check)
`
LindsayHill commentedon May 6, 2019
Please submit a PR with that change