feat(monitor-alert): support dashboardTemplate link type in alert v2 resources#702
Merged
tembleking merged 1 commit intomasterfrom Feb 11, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds support for Sysdig Monitor API alert links with type = "dashboardTemplate" to eliminate persistent Terraform plan drift for alert v2 resources that reference dashboard templates.
Changes:
- Extend accepted alert link
typevalues to includedashboardTemplate. - Add an acceptance test configuration snippet exercising
dashboardTemplatelink type. - Update multiple alert v2 resource docs to document
dashboardTemplateand howidis used.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| website/docs/r/monitor_alert_v2_prometheus.md | Document dashboardTemplate as a valid link type and clarify id semantics. |
| website/docs/r/monitor_alert_v2_metric.md | Document dashboardTemplate as a valid link type and clarify id semantics. |
| website/docs/r/monitor_alert_v2_group_outlier.md | Document dashboardTemplate as a valid link type and clarify id semantics. |
| website/docs/r/monitor_alert_v2_form_based_prometheus.md | Document dashboardTemplate as a valid link type and clarify id semantics. |
| website/docs/r/monitor_alert_v2_event.md | Document dashboardTemplate as a valid link type and clarify id semantics. |
| website/docs/r/monitor_alert_v2_downtime.md | Document dashboardTemplate as a valid link type and clarify id semantics. |
| website/docs/r/monitor_alert_v2_change.md | Document dashboardTemplate as a valid link type and clarify id semantics. |
| sysdig/resource_sysdig_monitor_alert_v2_metric_test.go | Add test config including a dashboardTemplate link. |
| sysdig/resource_sysdig_monitor_alert_v2_common.go | Include dashboardTemplate in the provider’s allowed link-type values. |
| sysdig/internal/client/v2/alerts_v2.go | Add AlertLinkV2TypeDashboardTemplate constant matching API output. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
alecron
approved these changes
Feb 11, 2026
fcracker79
pushed a commit
that referenced
this pull request
Mar 5, 2026
…resources (#702) The Sysdig Monitor API returns `type = "dashboardTemplate"` for alert links referencing dashboard templates, but the provider only validates `dashboard` and `runbook` as accepted values. This causes permanent drift on every `terraform plan` for any alert with dashboard template links, forcing users to add `lifecycle { ignore_changes }` workarounds. This PR adds `dashboardTemplate` as an accepted link type alongside the existing `dashboard` and `runbook` types, eliminating the state drift. Closes #700
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Sysdig Monitor API returns
type = "dashboardTemplate"for alert links referencing dashboard templates, but the provider only validatesdashboardandrunbookas accepted values. This causes permanent drift on everyterraform planfor any alert with dashboard template links, forcing users to addlifecycle { ignore_changes }workarounds.This PR adds
dashboardTemplateas an accepted link type alongside the existingdashboardandrunbooktypes, eliminating the state drift.Closes #700