-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feat.] added possibility to trigger alarm immediately in `openteleko…
…mcloud_ces_alarmrule` (#2818) [Feat.] added possibility to trigger alarm immediately in `opentelekomcloud_ces_alarmrule` Summary of the Pull Request To trigger an event immediately, simply set the "period" parameter to 0 in your API request. Example API request to create an alarm rule with immediate triggering: URL: https://ces.eu-de.otc.t-systems.com/V1.0/bdcc63e2876b454bb0f625c9153d3a3e/alarms Body: { "alarm_name": "alarm-APIMON", "metric": { "namespace": "SYS.ECS", "metric_name": "deleteServer", "dimensions": [] }, "condition": { "comparison_operator": ">=", "count": 1, "filter": "average", "period": 0, "unit": "count", "value": 1 }, "alarm_enabled": true, "alarm_action_enabled": false, "alarm_level": 2, "alarm_type": "EVENT.SYS" } Related documentation: Creating an Alarm Rule Please note that this information is currently missing from the documentation but will be included in the next update. PR Checklist Refers to: #2817 Tests added/passed. Documentation updated. Schema updated. Release notes added. Acceptance Steps Performed === RUN TestCESAlarmRule_basic === PAUSE TestCESAlarmRule_basic === CONT TestCESAlarmRule_basic --- PASS: TestCESAlarmRule_basic (171.22s) === RUN TestCESAlarmRule_systemEvents === PAUSE TestCESAlarmRule_systemEvents === CONT TestCESAlarmRule_systemEvents --- PASS: TestCESAlarmRule_systemEvents (39.18s) === RUN TestAccCheckCESV1AlarmValidation --- PASS: TestAccCheckCESV1AlarmValidation (5.69s) === RUN TestCESAlarmRule_slashes === PAUSE TestCESAlarmRule_slashes === CONT TestCESAlarmRule_slashes --- PASS: TestCESAlarmRule_slashes (86.65s) PASS Process finished with exit code 0 Reviewed-by: Artem Lifshits Reviewed-by: Aloento Reviewed-by: Muneeb H. Jan <[email protected]>
- Loading branch information
1 parent
3329063
commit e9a2b5f
Showing
4 changed files
with
67 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
releasenotes/notes/ces-alarmrule-period-8f5bed58bf5d8fea.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
enhancements: | ||
- | | ||
**[CES]** Update ``period`` validation in ``resource/opentelekomcloud_ces_alarmrule`` to trigger alarm immediately (`#2818 <https://github.com/opentelekomcloud/terraform-provider-opentelekomcloud/pull/2818>`_) |