Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add time_restriction to opsgenie_notification_rule #462

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions website/docs/r/notification_rule.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ The following arguments are supported:

* `enabled` - (Optional) If policy should be enabled. Default: `true`

* `time_restriction` - (Optional)

The `steps` block supports:

* `enabled` - (Optional) Defined if this step is enabled. Default: `true`
Expand Down Expand Up @@ -83,7 +85,37 @@ The `conditions` block supports:

* `order` - (Optional) Order of the condition in conditions list

The `time_restriction` block supports:

* `type` - (Required) Defines if restriction should apply daily on given hours or on certain days and hours. Possible values are: `time-of-day`, `weekday-and-time-of-day`

* `restrictions` - (Optional) List of days and hours definitions for field type = `weekday-and-time-of-day`. This is a block, structure is documented below.

* `restriction` - (Optional) A definition of hourly definition applied daily, this has to be used with combination: type = `time-of-day`. This is a block, structure is documented below.

The `restrictions` block supports:

* `start_day` - (Required) Starting day of restriction (eg. `monday`)

* `end_day` - (Required) Ending day of restriction (eg. `wednesday`)

* `start_hour` - (Required) Starting hour of restriction on defined `start_day`

* `end_hour` - (Required) Ending hour of restriction on defined `end_day`

* `start_min` - (Required) Staring minute of restriction on defined `start_hour`

* `end_min` - (Required) Ending minute of restriction on defined `end_hour`

The `restriction` block supports:

* `start_hour` - (Required) Starting hour of restriction.

* `end_hour` - (Required) Ending hour of restriction.

* `start_min` - (Required) Staring minute of restriction on defined `start_hour`

* `end_min` - (Required) Ending minute of restriction on defined `end_hour`

## Attributes Reference

Expand Down