Add Monitors Terraform resources - #12
Draft
pijiang3 wants to merge 3 commits into
Draft
Conversation
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.
Summary
flashduty_monitor_datasourceplus single/list data sourcesflashduty_monitor_alert_ruleplus single/list data sourcespayload,rule_configs, labels, annotations, and enabled time windowsNotes
flashduty_monitor_datasource.enabledis read-only because the Monitors update API does not update this field.flashduty_monitor_alert_rule.folder_idis ForceNew/RequiresReplace because the Monitors update API does not move rules across folders.Validation
terraform fmt -recursive examplesGOCACHE=/private/tmp/terraform-provider-flashduty-gocache go test ./...GOCACHE=/private/tmp/terraform-provider-flashduty-gocache go build ./...PATH=/opt/homebrew/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Library/Frameworks/Python.framework/Versions/3.12/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/corplink/mdm/opt/corplink-mdm/bin:/usr/local/go/bin:/Users/a1/.codex/tmp/arg0/codex-arg0e6BqYi:/Users/a1/.cache/codex-runtimes/codex-primary-runtime/dependencies/bin/override:/Users/a1/.local/bin:/Users/a1/Library/pnpm:/Users/a1/.nvm/versions/node/v24.12.0/bin:/Users/a1/go/bin:/Users/a1/.cache/codex-runtimes/codex-primary-runtime/dependencies/bin/fallback:/Applications/ChatGPT.app/Contents/Resources GOTOOLCHAIN=go1.25.5 GOCACHE=/private/tmp/terraform-provider-flashduty-gocache make lintTF_ACC=1 GOCACHE=/private/tmp/terraform-provider-flashduty-gocache go test -v -run 'TestAccMonitor' ./internal/provider(skips without Monitors test env vars)