},
"contact_id": {
- Type: schema.TypeString,
+ Type: schema.TypeInt,
Optional: true,
},
TestType: d.Get("test_type").(string),
Paused: d.Get("paused").(bool),
Timeout: d.Get("timeout").(int),
- ContactID: d.Get("contact_id").(string),
+ ContactID: d.Get("contact_id").(int),
Confirmation: d.Get("confirmations").(int),
Port: d.Get("port").(int),
TriggerRate: d.Get("trigger_rate").(int),
test.CheckRate = v.(int)
}
if v, ok := d.GetOk("contact_id"); ok {
- test.ContactID = v.(string)
+ test.ContactID = v.(int)
}
if v, ok := d.GetOk("test_type"); ok {
test.TestType = v.(string)
case "timeout":
err = check(key, value, strconv.Itoa(test.Timeout))
case "contact_id":
- err = check(key, value, test.ContactID)
+ err = check(key, value, strconv.Itoa(test.ContactID))
case "confirmations":
err = check(key, value, strconv.Itoa(test.Confirmation))
case "trigger_rate":
test_type = "HTTP"
check_rate = 300
timeout = 10
- contact_id = "43402"
+ contact_id = 43402
confirmations = 1
trigger_rate = 10
}
test_type = "TCP"
check_rate = 300
timeout = 10
- contact_id = "43402"
+ contact_id = 43402
confirmations = 1
port = 80
}
Paused bool `json:"Paused"`
WebsiteName string `json:"WebsiteName"`
URI string `json:"URI"`
- ContactID string `json:"ContactID"`
+ ContactID int `json:"ContactID"`
Status string `json:"Status"`
Uptime float64 `json:"Uptime"`
CustomHeader string `json:"CustomHeader"`
Port int `json:"Port" querystring:"Port"`
// Contact group ID - will return int of contact group used else 0
- ContactID string `json:"ContactID" querystring:"ContactGroup"`
+ ContactID int `json:"ContactID" querystring:"ContactGroup"`
// Current status at last test
Status string `json:"Status"`
"ignore": "appengine test github.com/hashicorp/nomad/ github.com/hashicorp/terraform/backend",
"package": [
{
- "checksumSHA1": "xjfJ6T+mQFmC9oMR+UKdGtbs/p4=",
+ "checksumSHA1": "6Fo7YzTT+MDviHOsqg6dNw8WrV4=",
+ "origin": "github.com/matschaffer/statuscake",
"path": "github.com/DreamItGetIT/statuscake",
- "revision": "2081e16dbe691bccf20b1901897d8f8245beefcd",
- "revisionTime": "2018-01-09T18:02:45Z"
+ "revision": "24c596002b80d84cf3bfb0f714e880c1b2e9af16",
+ "revisionTime": "2018-01-16T08:09:52Z"
},
{
"checksumSHA1": "FIL83loX9V9APvGQIjJpbxq53F0=",