Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Alert update not working #177

Open
shdshd01 opened this issue Jul 26, 2021 · 0 comments
Open

Alert update not working #177

shdshd01 opened this issue Jul 26, 2021 · 0 comments

Comments

@shdshd01
Copy link

Tested only on 3.1.0 using https://www.librato.com/docs/api/?python#update-an-alert
error received:

librato.exceptions.BadRequest: [400] params: conditions: tags: must be an array

Workaround:

alert_to_enable = api.get_alert("alert.name")
alert_to_enable.active = "true"
for condition in alert_to_enable.conditions:
     condition.tags = []
alert_to_enable.save()
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant