Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Feature/maintenance window #98

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,18 @@ resource "pingdom_contact" "second_contact" {
}
```

**Maintenance Windows**

```hcl
resource "pingdom_maintenance_window" "maintenance_window_upgrade" {
description = "Test maintenance window"
from = 1610512252
to = 1610513452
uptimeids = [ "${pingdom_check.website.id}" ]
tmsids = [ ]
# }
```

## Resources ##

### Pingdom Check ###
Expand Down Expand Up @@ -259,6 +271,25 @@ The following attributes are exported:

* **severity**: Severity of this notification. One of HIGH|LOW


### Pingdom Maintenance Window ###

* **description**: (Required) Description for maintenance window

* **from**: (Required) Start time for maintenance window (Unic Epoch)

* **to**: (Required) Start time for maintenance window (Unic Epoch)

* **recurrence_type**: For recurring maintenance windows

* **repeat_every**: Frequency for recurring maintenance windows

* **effective_to**: End date for recurring maintenance windows

* **uptimeids**: (Required) List of IDs for the Uptime monitors affected by the maintenance window. You can use `[ ]` for an empty list

* **tmsids**: (Required) List of IDs for the Transaction monitors affected by the maintenance window. You can use `[ ]` for an empty list

## Develop The Provider ##

### Dependencies for building from source ###
Expand Down
15 changes: 15 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,23 @@ module github.com/russellcardullo/terraform-provider-pingdom
go 1.14

require (
github.com/apparentlymart/go-cidr v1.1.0 // indirect
github.com/apparentlymart/go-dump v0.0.0-20190214190832-042adf3cf4a0 // indirect
github.com/aws/aws-sdk-go v1.31.9 // indirect
github.com/hashicorp/go-getter v1.5.1 // indirect
github.com/hashicorp/go-plugin v1.3.0 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/hashicorp/hcl/v2 v2.8.2 // indirect
github.com/hashicorp/terraform-config-inspect v0.0.0-20191212124732-c6ae6269b9d7 // indirect
github.com/hashicorp/terraform-plugin-sdk v1.0.0
github.com/mattn/go-colorable v0.1.1 // indirect
github.com/mitchellh/cli v1.1.0 // indirect
github.com/mitchellh/mapstructure v1.1.2
github.com/russellcardullo/go-pingdom v1.3.0
github.com/zclconf/go-cty v1.7.1 // indirect
github.com/zclconf/go-cty-yaml v1.0.2 // indirect
golang.org/x/tools v0.0.0-20201028111035-eafbe7b904eb // indirect
google.golang.org/api v0.34.0 // indirect
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect
gopkg.in/yaml.v2 v2.2.8 // indirect
)
Loading