Commit ce159be
feat(monitor): expose
The provider previously did not expose the monitor `disabled` flag. Since
axiom-go marshals `disabled` with no `omitempty`, every create/update sent
`"disabled": false`, re-enabling monitors that had been disabled in the UI on
each `terraform apply`.
Add `disabled` as an Optional+Computed boolean attribute (default false),
wired through extractMonitorResourceModel and flattenMonitor, and regenerate
the resource/data-source docs. Users can now set `disabled = true` to manage
the state in Terraform, or use `lifecycle { ignore_changes = [disabled] }` to
let the UI own it.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>disabled attribute on axiom_monitor1 parent 191d514 commit ce159be
3 files changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
122 | 129 | | |
123 | 130 | | |
124 | 131 | | |
| |||
413 | 420 | | |
414 | 421 | | |
415 | 422 | | |
| 423 | + | |
416 | 424 | | |
417 | 425 | | |
418 | 426 | | |
| |||
477 | 485 | | |
478 | 486 | | |
479 | 487 | | |
| 488 | + | |
480 | 489 | | |
481 | 490 | | |
482 | 491 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
0 commit comments