Skip to content
Merged
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
5 changes: 3 additions & 2 deletions sysdig/internal/client/v2/alerts_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ const (
)

const (
AlertLinkV2TypeDashboard AlertLinkV2Type = "dashboard"
AlertLinkV2TypeRunbook AlertLinkV2Type = "runbook"
AlertLinkV2TypeDashboard AlertLinkV2Type = "dashboard"
AlertLinkV2TypeDashboardTemplate AlertLinkV2Type = "dashboardTemplate"
AlertLinkV2TypeRunbook AlertLinkV2Type = "runbook"
)

var labelCache struct {
Expand Down
1 change: 1 addition & 0 deletions sysdig/resource_sysdig_monitor_alert_v2_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ func AlertV2SeverityValues() []string {
func AlertLinkV2TypeValues() []string {
return []string{
string(v2.AlertLinkV2TypeDashboard),
string(v2.AlertLinkV2TypeDashboardTemplate),
string(v2.AlertLinkV2TypeRunbook),
}
}
Expand Down
4 changes: 4 additions & 0 deletions sysdig/resource_sysdig_monitor_alert_v2_metric_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,10 @@ resource "sysdig_monitor_alert_v2_metric" "sample" {
type = "dashboard"
id = sysdig_monitor_dashboard.dashboard.id
}
link {
type = "dashboardTemplate"
id = "view.promcat.mysql"
}
}
`, name, name, name)
}
Expand Down
4 changes: 2 additions & 2 deletions website/docs/r/monitor_alert_v2_change.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ By defining this field, the user can modify the title and the body of the messag

By defining this field, the user can add link to notifications.

* `type` - (Required) Type of link. Must be `runbook`, for generic links, or `dashboard`, for internal links to existing dashboards.
* `type` - (Required) Type of link. Must be `runbook` for generic links, `dashboard` for internal links to existing dashboards, or `dashboardTemplate` for links to dashboard templates.
* `href` - (Optional) When using `runbook` type, url of the external resource.
* `id` - (Optional) When using `dashboard` type, dashboard id.
* `id` - (Optional) When using `dashboard` type, dashboard id. When using `dashboardTemplate` type, the dashboard template id (e.g. `view.promcat.mysql`).

### Percentage of Change alert arguments

Expand Down
4 changes: 2 additions & 2 deletions website/docs/r/monitor_alert_v2_downtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ By defining this field, the user can modify the title and the body of the messag

By defining this field, the user can add link to notifications.

* `type` - (Required) Type of link. Must be `runbook`, for generic links, or `dashboard`, for internal links to existing dashboards.
* `type` - (Required) Type of link. Must be `runbook` for generic links, `dashboard` for internal links to existing dashboards, or `dashboardTemplate` for links to dashboard templates.
* `href` - (Optional) When using `runbook` type, url of the external resource.
* `id` - (Optional) When using `dashboard` type, dashboard id.
* `id` - (Optional) When using `dashboard` type, dashboard id. When using `dashboardTemplate` type, the dashboard template id (e.g. `view.promcat.mysql`).

### `capture`

Expand Down
4 changes: 2 additions & 2 deletions website/docs/r/monitor_alert_v2_event.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ By defining this field, the user can modify the title and the body of the messag

By defining this field, the user can add link to notifications.

* `type` - (Required) Type of link. Must be `runbook`, for generic links, or `dashboard`, for internal links to existing dashboards.
* `type` - (Required) Type of link. Must be `runbook` for generic links, `dashboard` for internal links to existing dashboards, or `dashboardTemplate` for links to dashboard templates.
* `href` - (Optional) When using `runbook` type, url of the external resource.
* `id` - (Optional) When using `dashboard` type, dashboard id.
* `id` - (Optional) When using `dashboard` type, dashboard id. When using `dashboardTemplate` type, the dashboard template id (e.g. `view.promcat.mysql`).

### `capture`

Expand Down
4 changes: 2 additions & 2 deletions website/docs/r/monitor_alert_v2_form_based_prometheus.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ By defining this field, the user can modify the title and the body of the messag

By defining this field, the user can add link to notifications.

* `type` - (Required) Type of link. Must be `runbook`, for generic links, or `dashboard`, for internal links to existing dashboards.
* `type` - (Required) Type of link. Must be `runbook` for generic links, `dashboard` for internal links to existing dashboards, or `dashboardTemplate` for links to dashboard templates.
* `href` - (Optional) When using `runbook` type, url of the external resource.
* `id` - (Optional) When using `dashboard` type, dashboard id.
* `id` - (Optional) When using `dashboard` type, dashboard id. When using `dashboardTemplate` type, the dashboard template id (e.g. `view.promcat.mysql`).

### Threshold Prometheus alert arguments

Expand Down
4 changes: 2 additions & 2 deletions website/docs/r/monitor_alert_v2_group_outlier.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ By defining this field, the user can modify the title and the body of the messag

By defining this field, the user can add link to notifications.

* `type` - (Required) Type of link. Must be `runbook`, for generic links, or `dashboard`, for internal links to existing dashboards.
* `type` - (Required) Type of link. Must be `runbook` for generic links, `dashboard` for internal links to existing dashboards, or `dashboardTemplate` for links to dashboard templates.
* `href` - (Optional) When using `runbook` type, url of the external resource.
* `id` - (Optional) When using `dashboard` type, dashboard id.
* `id` - (Optional) When using `dashboard` type, dashboard id. When using `dashboardTemplate` type, the dashboard template id (e.g. `view.promcat.mysql`).

### `capture`

Expand Down
4 changes: 2 additions & 2 deletions website/docs/r/monitor_alert_v2_metric.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ By defining this field, the user can modify the title and the body of the messag

By defining this field, the user can add link to notifications.

* `type` - (Required) Type of link. Must be `runbook`, for generic links, or `dashboard`, for internal links to existing dashboards.
* `type` - (Required) Type of link. Must be `runbook` for generic links, `dashboard` for internal links to existing dashboards, or `dashboardTemplate` for links to dashboard templates.
* `href` - (Optional) When using `runbook` type, url of the external resource.
* `id` - (Optional) When using `dashboard` type, dashboard id.
* `id` - (Optional) When using `dashboard` type, dashboard id. When using `dashboardTemplate` type, the dashboard template id (e.g. `view.promcat.mysql`).

### `capture`

Expand Down
4 changes: 2 additions & 2 deletions website/docs/r/monitor_alert_v2_prometheus.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ By defining this field, the user can modify the title and the body of the messag

By defining this field, the user can add link to notifications.

* `type` - (Required) Type of link. Must be `runbook`, for generic links, or `dashboard`, for internal links to existing dashboards.
* `type` - (Required) Type of link. Must be `runbook` for generic links, `dashboard` for internal links to existing dashboards, or `dashboardTemplate` for links to dashboard templates.
* `href` - (Optional) When using `runbook` type, url of the external resource.
* `id` - (Optional) When using `dashboard` type, dashboard id.
* `id` - (Optional) When using `dashboard` type, dashboard id. When using `dashboardTemplate` type, the dashboard template id (e.g. `view.promcat.mysql`).

### Prometheus alert arguments

Expand Down
Loading