python-librato icon indicating copy to clipboard operation
python-librato copied to clipboard

Alert update not working

Open shdshd01 opened this issue 3 years ago • 0 comments

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()

shdshd01 avatar Jul 26 '21 14:07 shdshd01