Skip to content

Commit

Permalink
honeycombio_burn_alert - migrate resource to Plugin Framework (#346)
Browse files Browse the repository at this point in the history
In a similar fashion to the work done for v0.15.0 for
`honeycombio_trigger`, this migrates `honeycombio_burn_alert` to the
~new Plugin Framework to squash the similar set of bugs and annoyances
around `recipient` blocks.

Closes #263, #322
  • Loading branch information
jharley authored Aug 23, 2023
1 parent df2f897 commit b4269f8
Show file tree
Hide file tree
Showing 12 changed files with 544 additions and 487 deletions.
1 change: 0 additions & 1 deletion honeycombio/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ func Provider(version string) *schema.Provider {
},
ResourcesMap: map[string]*schema.Resource{
"honeycombio_board": newBoard(),
"honeycombio_burn_alert": newBurnAlert(),
"honeycombio_column": newColumn(),
"honeycombio_dataset": newDataset(),
"honeycombio_dataset_definition": newDatasetDefinition(),
Expand Down
198 changes: 0 additions & 198 deletions honeycombio/resource_burn_alert.go

This file was deleted.

169 changes: 0 additions & 169 deletions honeycombio/resource_burn_alert_test.go

This file was deleted.

11 changes: 11 additions & 0 deletions internal/models/burn_alerts.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package models

import "github.com/hashicorp/terraform-plugin-framework/types"

type BurnAlertResourceModel struct {
ID types.String `tfsdk:"id"`
Dataset types.String `tfsdk:"dataset"`
SLOID types.String `tfsdk:"slo_id"`
ExhaustionMinutes types.Int64 `tfsdk:"exhaustion_minutes"`
Recipients []NotificationRecipientModel `tfsdk:"recipient"`
}
Loading

0 comments on commit b4269f8

Please sign in to comment.