Skip to content

Commit

Permalink
Merge pull request #30 from catchpoint/notification_group_required
Browse files Browse the repository at this point in the history
required added
  • Loading branch information
vikashkuma authored Mar 12, 2024
2 parents da7b2e7 + 13430fc commit 48638e7
Show file tree
Hide file tree
Showing 20 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion catchpoint/resource_api_test_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ func resourceApiTestType() *schema.Resource {
},
"notification_group": {
Type: schema.TypeSet,
Optional: true,
Required: true,
MaxItems: 1,
Description: "Notification group for configuring alert notifications, including recipients' email addresses and alert settings. To ensure either recipient_email_ids or contact_groups is provided",
Elem: &schema.Resource{
Expand Down
2 changes: 1 addition & 1 deletion catchpoint/resource_bgp_test_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func resourceBgpTestType() *schema.Resource {
},
"notification_group": {
Type: schema.TypeSet,
Optional: true,
Required: true,
MaxItems: 1,
Description: "Notification group for configuring alert notifications, including recipients' email addresses and alert settings. To ensure either recipient_email_ids or contact_groups is provided",
Elem: &schema.Resource{
Expand Down
2 changes: 1 addition & 1 deletion catchpoint/resource_dns_test_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ func resourceDnsTestType() *schema.Resource {
},
"notification_group": {
Type: schema.TypeSet,
Optional: true,
Required: true,
MaxItems: 1,
Description: "Notification group for configuring alert notifications, including recipients' email addresses and alert settings. To ensure either recipient_email_ids or contact_groups is provided",
Elem: &schema.Resource{
Expand Down
2 changes: 1 addition & 1 deletion catchpoint/resource_ping_test_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ func resourcePingTestType() *schema.Resource {
},
"notification_group": {
Type: schema.TypeSet,
Optional: true,
Required: true,
MaxItems: 1,
Description: "Notification group for configuring alert notifications, including recipients' email addresses and alert settings. To ensure either recipient_email_ids or contact_groups is provided",
Elem: &schema.Resource{
Expand Down
2 changes: 1 addition & 1 deletion catchpoint/resource_playwright_test_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ func resourcePlaywrightTestType() *schema.Resource {
},
"notification_group": {
Type: schema.TypeSet,
Optional: true,
Required: true,
MaxItems: 1,
Description: "Notification group for configuring alert notifications, including recipients' email addresses and alert settings. To ensure either recipient_email_ids or contact_groups is provided ",
Elem: &schema.Resource{
Expand Down
2 changes: 1 addition & 1 deletion catchpoint/resource_puppeteer_test_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ func resourcePuppeteerTestType() *schema.Resource {
},
"notification_group": {
Type: schema.TypeSet,
Optional: true,
Required: true,
MaxItems: 1,
Description: "Notification group for configuring alert notifications, including recipients' email addresses and alert settings. To ensure either recipient_email_ids or contact_groups is provided",
Elem: &schema.Resource{
Expand Down
2 changes: 1 addition & 1 deletion catchpoint/resource_ssl_test_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ func resourceSslTestType() *schema.Resource {
},
"notification_group": {
Type: schema.TypeSet,
Optional: true,
Required: true,
MaxItems: 1,
Description: "Notification group for configuring alert notifications, including recipients' email addresses and alert settings. To ensure either recipient_email_ids or contact_groups is provided",
Elem: &schema.Resource{
Expand Down
2 changes: 1 addition & 1 deletion catchpoint/resource_traceroute_test_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ func resourceTracerouteTestType() *schema.Resource {
},
"notification_group": {
Type: schema.TypeSet,
Optional: true,
Required: true,
MaxItems: 1,
Description: "Notification group for configuring alert notifications, including recipients' email addresses and alert settings. To ensure either recipient_email_ids or contact_groups is provided",
Elem: &schema.Resource{
Expand Down
2 changes: 1 addition & 1 deletion catchpoint/resource_transaction_test_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ func resourceTransactionTestType() *schema.Resource {
},
"notification_group": {
Type: schema.TypeSet,
Optional: true,
Required: true,
MaxItems: 1,
Description: "Notification group for configuring alert notifications, including recipients' email addresses and alert settings. To ensure either recipient_email_ids or contact_groups is provided",
Elem: &schema.Resource{
Expand Down
2 changes: 1 addition & 1 deletion catchpoint/resource_web_test_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ func resourceWebTestType() *schema.Resource {
},
"notification_group": {
Type: schema.TypeSet,
Optional: true,
Required: true,
MaxItems: 1,
Description: "Notification group for configuring alert notifications, including recipients' email addresses and alert settings. To ensure either recipient_email_ids or contact_groups is provided",
Elem: &schema.Resource{
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/api_test.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ Required:

- `alert_type` (String) Sets the alert type: 'test failure', 'timing', 'availability', 'host failure'
- `node_threshold_type` (String) Sets the node threshold type for alert: 'runs', 'average across node' or 'node'
- `notification_group` (Block Set, Min: 1, Max: 1) Notification group for configuring alert notifications, including recipients' email addresses and alert settings. To ensure either recipient_email_ids or contact_groups is provided (see [below for nested schema](#nestedblock--alert_settings--alert_rule--notification_group))

Optional:

Expand All @@ -121,7 +122,6 @@ Optional:
- `enforce_test_failure` (Boolean) Optional. Sets enforce test failure property for an alert
- `expression` (String) Optional. Sets trigger expression for content match alert type
- `historical_interval` (String) Optional. Sets the historical interval for 'trailing value' trigger type: '5 minutes', '10 minutes', '15 minutes', '30 minutes', '1 hour', '2 hours', '6 hours', '12 hours', '1 day', '1 week'
- `notification_group` (Block Set, Max: 1) Notification group for configuring alert notifications, including recipients' email addresses and alert settings. To ensure either recipient_email_ids or contact_groups is provided (see [below for nested schema](#nestedblock--alert_settings--alert_rule--notification_group))
- `notification_type` (String) Optional. Notification group type to alert. Supports only default contacts for now.
- `number_of_failing_nodes` (Number) Optional. Sets the number of failed nodes the alert should trigger if node_threshold_type is 'average across nodes'
- `omit_scatterplot` (Boolean) Optional. Omits scatterplot image from alert emails if set to true
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/bgp_test.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ Required:

- `alert_type` (String) Sets the alert type
- `node_threshold_type` (String) Sets the node threshold type for alert: 'runs', 'average across node' or 'node'
- `notification_group` (Block Set, Min: 1, Max: 1) Notification group for configuring alert notifications, including recipients' email addresses and alert settings. To ensure either recipient_email_ids or contact_groups is provided (see [below for nested schema](#nestedblock--alert_settings--alert_rule--notification_group))

Optional:

Expand All @@ -82,7 +83,6 @@ Optional:
- `enforce_test_failure` (Boolean) Optional. Sets enforce test failure property for an alert
- `expression` (String) Optional. Sets trigger expression for ASN alert type
- `historical_interval` (String) Optional. Sets the historical interval for 'trailing value' trigger type: '5 minutes', '10 minutes', '15 minutes', '30 minutes', '1 hour', '2 hours', '6 hours', '12 hours', '1 day', '1 week'
- `notification_group` (Block Set, Max: 1) Notification group for configuring alert notifications, including recipients' email addresses and alert settings. To ensure either recipient_email_ids or contact_groups is provided (see [below for nested schema](#nestedblock--alert_settings--alert_rule--notification_group))
- `notification_type` (String) Optional. Notification group type to alert. Supports only default contacts for now.
- `number_of_failing_nodes` (Number) Optional. Sets the number of failed nodes the alert should trigger if node_threshold_type is 'average across nodes'
- `omit_scatterplot` (Boolean) Optional. Omits scatterplot image from alert emails if set to true
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/dns_test.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ Required:

- `alert_type` (String) Sets the alert type
- `node_threshold_type` (String) Sets the node threshold type for alert: 'runs', 'average across node' or 'node'
- `notification_group` (Block Set, Min: 1, Max: 1) Notification group for configuring alert notifications, including recipients' email addresses and alert settings. To ensure either recipient_email_ids or contact_groups is provided (see [below for nested schema](#nestedblock--alert_settings--alert_rule--notification_group))

Optional:

Expand All @@ -106,7 +107,6 @@ Optional:
- `enable_consecutive` (Boolean) Optional. Checks consecutive number of runs or nodes for triggering alerts.
- `enforce_test_failure` (Boolean) Optional. Sets enforce test failure property for an alert
- `historical_interval` (String) Optional. Sets the historical interval for 'trailing value' trigger type: '5 minutes', '10 minutes', '15 minutes', '30 minutes', '1 hour', '2 hours', '6 hours', '12 hours', '1 day', '1 week'
- `notification_group` (Block Set, Max: 1) Notification group for configuring alert notifications, including recipients' email addresses and alert settings. To ensure either recipient_email_ids or contact_groups is provided (see [below for nested schema](#nestedblock--alert_settings--alert_rule--notification_group))
- `notification_type` (String) Optional. Notification group type to alert. Supports only default contacts for now.
- `number_of_failing_nodes` (Number) Optional. Sets the number of failed nodes the alert should trigger if node_threshold_type is 'average across nodes'
- `omit_scatterplot` (Boolean) Optional. Omits scatterplot image from alert emails if set to true
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/ping_test.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ Required:

- `alert_type` (String) Sets the alert type
- `node_threshold_type` (String) Sets the node threshold type for alert: 'runs', 'average across node' or 'node'
- `notification_group` (Block Set, Min: 1, Max: 1) Notification group for configuring alert notifications, including recipients' email addresses and alert settings. To ensure either recipient_email_ids or contact_groups is provided (see [below for nested schema](#nestedblock--alert_settings--alert_rule--notification_group))

Optional:

Expand All @@ -96,7 +97,6 @@ Optional:
- `enable_consecutive` (Boolean) Optional. Checks consecutive number of runs or nodes for triggering alerts.
- `enforce_test_failure` (Boolean) Optional. Sets enforce test failure property for an alert
- `historical_interval` (String) Optional. Sets the historical interval for 'trailing value' trigger type: '5 minutes', '10 minutes', '15 minutes', '30 minutes', '1 hour', '2 hours', '6 hours', '12 hours', '1 day', '1 week'
- `notification_group` (Block Set, Max: 1) Notification group for configuring alert notifications, including recipients' email addresses and alert settings. To ensure either recipient_email_ids or contact_groups is provided (see [below for nested schema](#nestedblock--alert_settings--alert_rule--notification_group))
- `notification_type` (String) Optional. Notification group type to alert. Supports only default contacts for now.
- `number_of_failing_nodes` (Number) Optional. Sets the number of failed nodes the alert should trigger if node_threshold_type is 'average across nodes'
- `omit_scatterplot` (Boolean) Optional. Omits scatterplot image from alert emails if set to true
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/playwright_test.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ Required:

- `alert_type` (String) Sets the alert type: 'test failure', 'timing', 'availability'
- `node_threshold_type` (String) Sets the node threshold type for alert: 'runs', 'average across node' or 'node'
- `notification_group` (Block Set, Min: 1, Max: 1) Notification group for configuring alert notifications, including recipients' email addresses and alert settings. To ensure either recipient_email_ids or contact_groups is provided (see [below for nested schema](#nestedblock--alert_settings--alert_rule--notification_group))

Optional:

Expand All @@ -122,7 +123,6 @@ Optional:
- `enforce_test_failure` (Boolean) Optional. Sets enforce test failure property for an alert
- `expression` (String) Optional. Sets trigger expression for content match alert type
- `historical_interval` (String) Optional. Sets the historical interval for 'trailing value' trigger type: '5 minutes', '10 minutes', '15 minutes', '30 minutes', '1 hour', '2 hours', '6 hours', '12 hours', '1 day', '1 week'
- `notification_group` (Block Set, Max: 1) Notification group for configuring alert notifications, including recipients' email addresses and alert settings. To ensure either recipient_email_ids or contact_groups is provided (see [below for nested schema](#nestedblock--alert_settings--alert_rule--notification_group))
- `notification_type` (String) Optional. Notification group type to alert. Supports only default contacts for now.
- `number_of_failing_nodes` (Number) Optional. Sets the number of failed nodes the alert should trigger if node_threshold_type is 'average across nodes'
- `omit_scatterplot` (Boolean) Optional. Omits scatterplot image from alert emails if set to true
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/puppeteer_test.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ Required:

- `alert_type` (String) Sets the alert type: 'test failure', 'timing', 'availability'
- `node_threshold_type` (String) Sets the node threshold type for alert: 'runs', 'average across node' or 'node'
- `notification_group` (Block Set, Min: 1, Max: 1) Notification group for configuring alert notifications, including recipients' email addresses and alert settings. To ensure either recipient_email_ids or contact_groups is provided (see [below for nested schema](#nestedblock--alert_settings--alert_rule--notification_group))

Optional:

Expand All @@ -122,7 +123,6 @@ Optional:
- `enforce_test_failure` (Boolean) Optional. Sets enforce test failure property for an alert
- `expression` (String) Optional. Sets trigger expression for content match alert type
- `historical_interval` (String) Optional. Sets the historical interval for 'trailing value' trigger type: '5 minutes', '10 minutes', '15 minutes', '30 minutes', '1 hour', '2 hours', '6 hours', '12 hours', '1 day', '1 week'
- `notification_group` (Block Set, Max: 1) Notification group for configuring alert notifications, including recipients' email addresses and alert settings. To ensure either recipient_email_ids or contact_groups is provided (see [below for nested schema](#nestedblock--alert_settings--alert_rule--notification_group))
- `notification_type` (String) Optional. Notification group type to alert. Supports only default contacts for now.
- `number_of_failing_nodes` (Number) Optional. Sets the number of failed nodes the alert should trigger if node_threshold_type is 'average across nodes'
- `omit_scatterplot` (Boolean) Optional. Omits scatterplot image from alert emails if set to true
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/ssl_test.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ Required:

- `alert_type` (String) Sets the alert type
- `node_threshold_type` (String) Sets the node threshold type for alert: 'runs', 'average across node' or 'node'
- `notification_group` (Block Set, Min: 1, Max: 1) Notification group for configuring alert notifications, including recipients' email addresses and alert settings. To ensure either recipient_email_ids or contact_groups is provided (see [below for nested schema](#nestedblock--alert_settings--alert_rule--notification_group))

Optional:

Expand All @@ -98,7 +99,6 @@ Optional:
- `enable_consecutive` (Boolean) Optional. Checks consecutive number of runs or nodes for triggering alerts.
- `enforce_test_failure` (Boolean) Optional. Sets enforce test failure property for an alert
- `historical_interval` (String) Optional. Sets the historical interval for 'trailing value' trigger type: '5 minutes', '10 minutes', '15 minutes', '30 minutes', '1 hour', '2 hours', '6 hours', '12 hours', '1 day', '1 week'
- `notification_group` (Block Set, Max: 1) Notification group for configuring alert notifications, including recipients' email addresses and alert settings. To ensure either recipient_email_ids or contact_groups is provided (see [below for nested schema](#nestedblock--alert_settings--alert_rule--notification_group))
- `notification_type` (String) Optional. Notification group type to alert. Supports only default contacts for now.
- `number_of_failing_nodes` (Number) Optional. Sets the number of failed nodes the alert should trigger if node_threshold_type is 'average across nodes'
- `omit_scatterplot` (Boolean) Optional. Omits scatterplot image from alert emails if set to true
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/traceroute_test.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ Required:

- `alert_type` (String) Sets the alert type
- `node_threshold_type` (String) Sets the node threshold type for alert: 'runs', 'average across node' or 'node'
- `notification_group` (Block Set, Min: 1, Max: 1) Notification group for configuring alert notifications, including recipients' email addresses and alert settings. To ensure either recipient_email_ids or contact_groups is provided (see [below for nested schema](#nestedblock--alert_settings--alert_rule--notification_group))

Optional:

Expand All @@ -97,7 +98,6 @@ Optional:
- `enforce_test_failure` (Boolean) Optional. Sets enforce test failure property for an alert
- `expression` (String) Optional. Sets trigger expression for ASN alert type
- `historical_interval` (String) Optional. Sets the historical interval for 'trailing value' trigger type: '5 minutes', '10 minutes', '15 minutes', '30 minutes', '1 hour', '2 hours', '6 hours', '12 hours', '1 day', '1 week'
- `notification_group` (Block Set, Max: 1) Notification group for configuring alert notifications, including recipients' email addresses and alert settings. To ensure either recipient_email_ids or contact_groups is provided (see [below for nested schema](#nestedblock--alert_settings--alert_rule--notification_group))
- `notification_type` (String) Optional. Notification group type to alert. Supports only default contacts for now.
- `number_of_failing_nodes` (Number) Optional. Sets the number of failed nodes the alert should trigger if node_threshold_type is 'average across nodes'
- `omit_scatterplot` (Boolean) Optional. Omits scatterplot image from alert emails if set to true
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/transaction_test.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ Required:

- `alert_type` (String) Sets the alert type: 'test failure', 'timing', 'availability'
- `node_threshold_type` (String) Sets the node threshold type for alert: 'runs', 'average across node' or 'node'
- `notification_group` (Block Set, Min: 1, Max: 1) Notification group for configuring alert notifications, including recipients' email addresses and alert settings. To ensure either recipient_email_ids or contact_groups is provided (see [below for nested schema](#nestedblock--alert_settings--alert_rule--notification_group))

Optional:

Expand All @@ -122,7 +123,6 @@ Optional:
- `enforce_test_failure` (Boolean) Optional. Sets enforce test failure property for an alert
- `expression` (String) Optional. Sets trigger expression for content match alert type
- `historical_interval` (String) Optional. Sets the historical interval for 'trailing value' trigger type: '5 minutes', '10 minutes', '15 minutes', '30 minutes', '1 hour', '2 hours', '6 hours', '12 hours', '1 day', '1 week'
- `notification_group` (Block Set, Max: 1) Notification group for configuring alert notifications, including recipients' email addresses and alert settings. To ensure either recipient_email_ids or contact_groups is provided (see [below for nested schema](#nestedblock--alert_settings--alert_rule--notification_group))
- `notification_type` (String) Optional. Notification group type to alert. Supports only default contacts for now.
- `number_of_failing_nodes` (Number) Optional. Sets the number of failed nodes the alert should trigger if node_threshold_type is 'average across nodes'
- `omit_scatterplot` (Boolean) Optional. Omits scatterplot image from alert emails if set to true
Expand Down
Loading

0 comments on commit 48638e7

Please sign in to comment.