Skip to content

Rule administration #63

Description

@effibennekers

As an administrator I would sometimes like to administer some alerting rules.
This includes getting a listing of registered alerting rules and being able to clear them.

Given the server is running and I registered component "logsObtainableComp" with a metric with metric-key "a-numerical-metric"
And an alerting rule has been registered to /components/logsObtainableComp/metrics/a-numerical-metric/alerting-rules with payload {"threshold": {"max": "2000 ms"}, "action": {"url": "dummy-action"}}
When I do a GET to /components/logsObtainableComp/metrics/a-numerical-metric/alerting-rules
Then the result should have statuscode 200
And the content should contain "{"threshold": {"max": "2000 ms"}, "action": {"url": "dummy-action"}}"

Given the server is running and I registered component "logsObtainableComp" with a metric with metric-key "a-numerical-metric"
And an alerting rule has been registered to /components/logsObtainableComp/metrics/a-numerical-metric/alerting-rules
When I do a DELETE to /components/logsObtainableComp/metrics/a-numerical-metric/alerting-rules
Then the result should have statuscode 204

Given the server is running and I registered component "logsObtainableComp" with a metric with metric-key "a-numerical-metric"
And an alerting rule has been registered to /components/logsObtainableComp/metrics/a-numerical-metric/alerting-rules
When I do a DELETE to /components/logsObtainableComp/metrics/a-numerical-metric/alerting-rules
And I do a GET to /components/logsObtainableComp/metrics/a-numerical-metric/alerting-rules
Then the result should have statuscode 404

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions