Skip to content
Open
Show file tree
Hide file tree
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
47 changes: 31 additions & 16 deletions docs/resources/oncall_integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ description: |-

# grafana_oncall_integration (Resource)

* [Official documentation](https://grafana.com/docs/oncall/latest/configure/integrations/)
* [HTTP API](https://grafana.com/docs/oncall/latest/oncall-api-reference/)
- [Official documentation](https://grafana.com/docs/oncall/latest/configure/integrations/)
- [HTTP API](https://grafana.com/docs/oncall/latest/oncall-api-reference/)

## Example Usage

Expand Down Expand Up @@ -59,7 +59,7 @@ resource "grafana_oncall_integration" "integration_with_templates" {
}
}

# You can add static labels and dynamic labels to an integration with 'labels' and 'dynamic_labels
# You can add static labels and dynamic labels to an integration with 'labels' and 'dynamic_labels'
# using the 'grafana_oncall_label' datasource
data "grafana_oncall_label" "test-label" {
provider = grafana.oncall
Expand All @@ -78,12 +78,25 @@ resource "grafana_oncall_integration" "test-acc-integration" {
name = "my integration"
type = "webhook"
default_route {}
labels = [data.grafana_oncall_label.test-label]
dynamic_labels = [data.grafana_oncall_label.test-dynamic-label]

labels = [
{
key = data.grafana_oncall_label.test-label.key
value = data.grafana_oncall_label.test-label.value
}
]

dynamic_labels = [
{
key = data.grafana_oncall_label.test-dynamic-label.key
value = data.grafana_oncall_label.test-dynamic-label.value
}
]
}
```

<!-- schema generated by tfplugindocs -->

## Schema

### Required
Expand All @@ -105,6 +118,7 @@ resource "grafana_oncall_integration" "test-acc-integration" {
- `link` (String) The link for using in an integrated tool.

<a id="nestedblock--default_route"></a>

### Nested Schema for `default_route`

Optional:
Expand All @@ -119,34 +133,34 @@ Read-Only:
- `id` (String)

<a id="nestedblock--default_route--msteams"></a>

### Nested Schema for `default_route.msteams`

Optional:

- `enabled` (Boolean) Enable notification in MS teams. Defaults to `true`.
- `id` (String) MS teams channel id. Alerts will be directed to this channel in Microsoft teams.


<a id="nestedblock--default_route--slack"></a>

### Nested Schema for `default_route.slack`

Optional:

- `channel_id` (String) Slack channel id. Alerts will be directed to this channel in Slack.
- `enabled` (Boolean) Enable notification in Slack. Defaults to `true`.


<a id="nestedblock--default_route--telegram"></a>

### Nested Schema for `default_route.telegram`

Optional:

- `enabled` (Boolean) Enable notification in Telegram. Defaults to `true`.
- `id` (String) Telegram channel id. Alerts will be directed to this channel in Telegram.



<a id="nestedblock--templates"></a>

### Nested Schema for `templates`

Optional:
Expand All @@ -165,15 +179,16 @@ Optional:
- `web` (Block List, Max: 1) Templates for Web. (see [below for nested schema](#nestedblock--templates--web))

<a id="nestedblock--templates--email"></a>

### Nested Schema for `templates.email`

Optional:

- `message` (String) Template for Alert message.
- `title` (String) Template for Alert title.


<a id="nestedblock--templates--microsoft_teams"></a>

### Nested Schema for `templates.microsoft_teams`

Optional:
Expand All @@ -182,25 +197,25 @@ Optional:
- `message` (String) Template for Alert message.
- `title` (String) Template for Alert title.


<a id="nestedblock--templates--mobile_app"></a>

### Nested Schema for `templates.mobile_app`

Optional:

- `message` (String) Template for Alert message.
- `title` (String) Template for Alert title.


<a id="nestedblock--templates--phone_call"></a>

### Nested Schema for `templates.phone_call`

Optional:

- `title` (String) Template for Alert title.


<a id="nestedblock--templates--slack"></a>

### Nested Schema for `templates.slack`

Optional:
Expand All @@ -209,16 +224,16 @@ Optional:
- `message` (String) Template for Alert message.
- `title` (String) Template for Alert title.


<a id="nestedblock--templates--sms"></a>

### Nested Schema for `templates.sms`

Optional:

- `title` (String) Template for Alert title.


<a id="nestedblock--templates--telegram"></a>

### Nested Schema for `templates.telegram`

Optional:
Expand All @@ -227,8 +242,8 @@ Optional:
- `message` (String) Template for Alert message.
- `title` (String) Template for Alert title.


<a id="nestedblock--templates--web"></a>

### Nested Schema for `templates.web`

Optional:
Expand Down
Loading
Loading