Skip to content

Provide alert metadata in the response body when creating an alert #3123

@sudhabindu-apm

Description

@sudhabindu-apm

What problem would you like to solve? Please describe:
Currently the alert creation genericapi returns 204 no-content response. This creates a problem in systems that use GoAlert API to create alerts as they don't get any handles to the alert for tracking.

Describe the solution you'd like:
The solution would be to return the created alert object as a response.

Additional context:
I can open a PR with the changes should we go ahead with this.

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