python-librato
python-librato copied to clipboard
Alert update not working
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()