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

Alert update not working  #177

Description

@shdshd01

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions