aboutsummaryrefslogtreecommitdiffhomepage
path: root/resource_statuscaketest.go
diff options
context:
space:
mode:
Diffstat (limited to 'resource_statuscaketest.go')
-rw-r--r--resource_statuscaketest.go12
1 files changed, 8 insertions, 4 deletions
diff --git a/resource_statuscaketest.go b/resource_statuscaketest.go
index 6c340d8..0cdc76d 100644
--- a/resource_statuscaketest.go
+++ b/resource_statuscaketest.go
@@ -33,6 +33,11 @@ func resourceStatusCakeTest() *schema.Resource {
33 Required: true, 33 Required: true,
34 }, 34 },
35 35
36 "contact_id": &schema.Schema{
37 Type: schema.TypeInt,
38 Optional: true,
39 },
40
36 "check_rate": &schema.Schema{ 41 "check_rate": &schema.Schema{
37 Type: schema.TypeInt, 42 Type: schema.TypeInt,
38 Optional: true, 43 Optional: true,
@@ -53,10 +58,6 @@ func resourceStatusCakeTest() *schema.Resource {
53 Type: schema.TypeInt, 58 Type: schema.TypeInt,
54 Computed: true, 59 Computed: true,
55 }, 60 },
56 "contact_id": &schema.Schema{
57 Type: schema.TypeInt,
58 Optional: true,
59 },
60 "confirmations": &schema.Schema{ 61 "confirmations": &schema.Schema{
61 Type: schema.TypeInt, 62 Type: schema.TypeInt,
62 Optional: true, 63 Optional: true,
@@ -161,6 +162,9 @@ func getStatusCakeTestInput(d *schema.ResourceData) *statuscake.Test {
161 if v, ok := d.GetOk("check_rate"); ok { 162 if v, ok := d.GetOk("check_rate"); ok {
162 test.CheckRate = v.(int) 163 test.CheckRate = v.(int)
163 } 164 }
165 if v, ok := d.GetOk("contact_id"); ok {
166 test.ContactID = v.(int)
167 }
164 if v, ok := d.GetOk("test_type"); ok { 168 if v, ok := d.GetOk("test_type"); ok {
165 test.TestType = v.(string) 169 test.TestType = v.(string)
166 } 170 }