Skip to content

Commit

Permalink
Remove TaskUUID from JSON output
Browse files Browse the repository at this point in the history
uuid field is causing TF drift and is not required in the JSON
output.
  • Loading branch information
Qantas94Heavy committed Apr 19, 2024
1 parent 163f36c commit 5c3e757
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sentry/issue_alerts.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type IssueAlert struct {
CreatedBy *IssueAlertCreatedBy `json:"createdBy,omitempty"`
Environment *string `json:"environment,omitempty"`
Projects []string `json:"projects,omitempty"`
TaskUUID *string `json:"uuid,omitempty"` // This is actually the UUID of the async task that can be spawned to create the rule
TaskUUID *string `json:"-"` // This is actually the UUID of the async task that can be spawned to create the rule
}

// IssueAlertCreatedBy for defining the rule creator.
Expand Down
2 changes: 1 addition & 1 deletion sentry/metric_alerts.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type MetricAlert struct {
Projects []string `json:"projects,omitempty"`
Owner *string `json:"owner,omitempty"`
DateCreated *time.Time `json:"dateCreated,omitempty"`
TaskUUID *string `json:"uuid,omitempty"` // This is actually the UUID of the async task that can be spawned to create the metric
TaskUUID *string `json:"-"` // This is actually the UUID of the async task that can be spawned to create the metric
// Don't `omitempty` because we want to set this to null to force Sentry to register this
// metric alert as a static alert when `ComparisonDelta` is empty.
// We type this as a float instead of an int because Sentry, server-side, returns a float for this value.
Expand Down

0 comments on commit 5c3e757

Please sign in to comment.