A list of recipient email ids to notify the alert. This is required for state 'present'
The alias of your CLC Account
The length of time in minutes that the condition must exceed the threshold. This is required for state 'present'
The alert policy id. This is mutually exclusive with name
The metric on which to measure the condition that will trigger the alert. This is required for state 'present'
The name of the alert policy. This is mutually exclusive with id
Whether to create or delete the policy.
The threshold that will trigger the alert when the metric equals or exceeds it. This is required for state 'present' This number represents a percentage and must be a value between 5.0 - 95.0 that is a multiple of 5.0
To use this module, it is required to set the below environment variables which enables access to the Centurylink Cloud - CLC_V2_API_USERNAME, the account login id for the centurylink cloud - CLC_V2_API_PASSWORD, the account password for the centurylink cloud
# Note - You must set the CLC_V2_API_USERNAME And CLC_V2_API_PASSWD Environment variables before running these examples----name:Create Alert Policy Examplehosts:localhostgather_facts:Falseconnection:localtasks:-name:Create an Alert Policy for disk above 80% for 5 minutescommunity.general.clc_alert_policy:alias:wfadname:'alertfordisk>80%'alert_recipients:-[email protected]-[email protected]metric:'disk'duration:'00:05:00'threshold:80state:presentregister:policy-name:Debugansible.builtin.debug:var=policy-name:Delete Alert Policy Examplehosts:localhostgather_facts:Falseconnection:localtasks:-name:Delete an Alert Policycommunity.general.clc_alert_policy:alias:wfadname:'alertfordisk>80%'state:absentregister:policy-name:Debugansible.builtin.debug:var=policy