Skip to content

Commit

Permalink
update type documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyorlando committed Jul 8, 2024
1 parent be99d72 commit bdc35ec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/resources/oncall/resource_user_notification_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ var (
userNotificationRuleTypeOptions = []string{
"wait",
"notify_by_slack",
"notify_by_msteams",
"notify_by_sms",
"notify_by_phone_call",
"notify_by_telegram",
Expand Down Expand Up @@ -94,7 +95,7 @@ func (r *userNotificationRuleResource) Schema(ctx context.Context, req resource.
},
},
"position": schema.Int64Attribute{
MarkdownDescription: "Personal notification rules execute one after another starting from position=0. Position=-1 will put the escalation policy to the end of the list. A new escalation policy created with a position of an existing escalation policy will move the old one (and all following) down on the list.",
MarkdownDescription: "Personal notification rules execute one after another starting from position=0. A new escalation policy created with a position of an existing escalation policy will move the old one (and all following) down on the list.",
Optional: true,
},
"duration": schema.Int64Attribute{
Expand All @@ -114,7 +115,7 @@ func (r *userNotificationRuleResource) Schema(ctx context.Context, req resource.
},
},
"type": schema.StringAttribute{
MarkdownDescription: fmt.Sprintf("The type of notification rule. Can be %s", userNotificationRuleTypeOptionsVerbal),
MarkdownDescription: fmt.Sprintf("The type of notification rule. Can be %s. NOTE: `notify_by_msteams` is only available for Grafana Cloud customers.", userNotificationRuleTypeOptionsVerbal),
Required: true,
Validators: []validator.String{
stringvalidator.OneOf(userNotificationRuleTypeOptions...),
Expand Down

0 comments on commit bdc35ec

Please sign in to comment.