Skip to content

Commit

Permalink
New Resource: Alert Policy (#128)
Browse files Browse the repository at this point in the history
* Added data source for Service API

* Updated with latest go-sdk-bv2 after fixing the UpdateAlertPolicyRequest issue
  • Loading branch information
msg4sunny authored Jul 13, 2020
1 parent cd7b233 commit 2bfc595
Show file tree
Hide file tree
Showing 9 changed files with 1,312 additions and 114 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ go 1.12
require (
github.com/hashicorp/go-retryablehttp v0.5.2
github.com/hashicorp/terraform-plugin-sdk v1.0.0
github.com/opsgenie/opsgenie-go-sdk-v2 v1.1.2-0.20200629074417-0567d19c5adb
github.com/opsgenie/opsgenie-go-sdk-v2 v1.1.2-0.20200713133143-9a54f60eab8d
github.com/pkg/errors v0.8.1
)
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ github.com/opsgenie/opsgenie-go-sdk-v2 v1.0.7-0.20200406122459-ce3f70f22ab7/go.m
github.com/opsgenie/opsgenie-go-sdk-v2 v1.1.1 h1:0y6RTB5SNcf0lhdVyJFPU/bTagUlToKpW4AGWMB7ZBw=
github.com/opsgenie/opsgenie-go-sdk-v2 v1.1.2-0.20200629074417-0567d19c5adb h1:XhJdPBhWWn/+91KS4eZhPM031oV3kyfYvaIOnx8W/X0=
github.com/opsgenie/opsgenie-go-sdk-v2 v1.1.2-0.20200629074417-0567d19c5adb/go.mod h1:VOkJ7STzYj+nXRhMcBTcmt8uZZ17KZKJdZtJpgHLbT8=
github.com/opsgenie/opsgenie-go-sdk-v2 v1.1.2-0.20200713133143-9a54f60eab8d h1:i9avt8C9OBwkaTR10PQaEK8Kt5baQ6XJiR1b7/jJ+IU=
github.com/opsgenie/opsgenie-go-sdk-v2 v1.1.2-0.20200713133143-9a54f60eab8d/go.mod h1:VOkJ7STzYj+nXRhMcBTcmt8uZZ17KZKJdZtJpgHLbT8=
github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY=
github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
Expand Down
1 change: 1 addition & 0 deletions opsgenie/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ func Provider() terraform.ResourceProvider {
"opsgenie_schedule_rotation": resourceOpsgenieScheduleRotation(),
"opsgenie_maintenance": resourceOpsgenieMaintenance(),
"opsgenie_heartbeat": resourceOpsgenieHeartbeat(),
"opsgenie_alert_policy": resourceOpsGenieAlertPolicy(),
},

DataSourcesMap: map[string]*schema.Resource{
Expand Down
Loading

0 comments on commit 2bfc595

Please sign in to comment.