File tree 5 files changed +10
-7
lines changed
5 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ func resourceAlertChannel() *schema.Resource {
113
113
},
114
114
AcFieldWebhookMethod : {
115
115
Type : schema .TypeString ,
116
- Required : true ,
116
+ Optional : true ,
117
117
},
118
118
AcFieldWebhookHeaders : {
119
119
Type : schema .TypeMap ,
@@ -137,7 +137,7 @@ func resourceAlertChannel() *schema.Resource {
137
137
},
138
138
AcFieldWebhookURL : {
139
139
Type : schema .TypeString ,
140
- Optional : true ,
140
+ Required : true ,
141
141
},
142
142
AcFieldWebhookSecret : {
143
143
Type : schema .TypeString ,
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ func TestAccFail(t *testing.T) {
158
158
webhook {
159
159
}
160
160
}` ,
161
- Error : `The argument "method " is required` ,
161
+ Error : `The argument "url " is required` ,
162
162
},
163
163
{
164
164
Config : `resource "checkly_alert_channel" "t1" {
Original file line number Diff line number Diff line change @@ -143,9 +143,9 @@ resource "checkly_check_group" "test-group1" {
143
143
### Argument Reference for Webhook Alert Channel
144
144
* ` webhook ` (Optional)
145
145
* ` name ` (Required) Webhook's channel name.
146
- * ` method ` (Required).
146
+ * ` url ` (Required).
147
+ * ` method ` (Optional) Default is ` POST ` .
147
148
* ` headers ` (Optional).
148
- * ` query_parameters ` (Optional).
149
149
* ` template ` (Optional).
150
- * ` url ` (Required ).
150
+ * ` query_parameters ` (Optional ).
151
151
* ` webhook_secret ` (Optional).
Original file line number Diff line number Diff line change 5
5
require (
6
6
github.com/agext/levenshtein v1.2.3 // indirect
7
7
github.com/aws/aws-sdk-go v1.31.11 // indirect
8
- github.com/checkly/checkly-go-sdk v1.3.0
8
+ github.com/checkly/checkly-go-sdk v1.3.1
9
9
github.com/fatih/color v1.9.0 // indirect
10
10
github.com/google/go-cmp v0.5.0
11
11
github.com/gruntwork-io/terratest v0.18.3
@@ -24,3 +24,4 @@ require (
24
24
github.com/zclconf/go-cty v1.4.2 // indirect
25
25
golang.org/x/sys v0.0.0-20200602225109-6fdc65e7d980 // indirect
26
26
)
27
+
Original file line number Diff line number Diff line change @@ -60,6 +60,8 @@ github.com/checkly/checkly-go-sdk v1.1.0 h1:a28JXarOuR6wQ8OO9I3p6puAnIvxjM+2XKsZ
60
60
github.com/checkly/checkly-go-sdk v1.1.0 /go.mod h1:wkAoXD2cVCNQEXi9lHZqy/zONIAZc5D9frih6Gas3Rs =
61
61
github.com/checkly/checkly-go-sdk v1.3.0 h1:eDaohYTyrjkPEWRmf3vDmzYseRE5Vek2i2r5yBzup7w =
62
62
github.com/checkly/checkly-go-sdk v1.3.0 /go.mod h1:wkAoXD2cVCNQEXi9lHZqy/zONIAZc5D9frih6Gas3Rs =
63
+ github.com/checkly/checkly-go-sdk v1.3.1 h1:0ltTCmo3qGqbh457XcA8vhuSOLdzQ3vOpznz00A7SlY =
64
+ github.com/checkly/checkly-go-sdk v1.3.1 /go.mod h1:wkAoXD2cVCNQEXi9lHZqy/zONIAZc5D9frih6Gas3Rs =
63
65
github.com/cheggaaa/pb v1.0.27 /go.mod h1:pQciLPpbU0oxA0h+VJYYLxO+XeDQb5pZijXscXHm81s =
64
66
github.com/chzyer/logex v1.1.10 /go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI =
65
67
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e /go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI =
You can’t perform that action at this time.
0 commit comments