diff --git a/checkly_test.go b/checkly_test.go index e1b5acf..efb945e 100644 --- a/checkly_test.go +++ b/checkly_test.go @@ -60,6 +60,7 @@ var wantCheck = checkly.Check{ Username: "", Password: "", }, + IPFamily: "IPv4", }, Script: "foo", EnvironmentVariables: []checkly.EnvironmentVariable{ @@ -86,6 +87,10 @@ var wantCheck = checkly.Check{ Reminders: checkly.Reminders{ Interval: 5, }, + ParallelRunFailureThreshold: checkly.ParallelRunFailureThreshold{ + Enabled: false, + Percentage: 10, + }, }, UseGlobalAlertSettings: false, DegradedResponseTime: 15000, @@ -378,6 +383,10 @@ var wantGroup = checkly.Group{ Amount: 0, Interval: 5, }, + ParallelRunFailureThreshold: checkly.ParallelRunFailureThreshold{ + Enabled: false, + Percentage: 10, + }, }, AlertChannelSubscriptions: []checkly.AlertChannelSubscription{ { diff --git a/fixtures/CreateCheck.json b/fixtures/CreateCheck.json index 275c952..1235116 100644 --- a/fixtures/CreateCheck.json +++ b/fixtures/CreateCheck.json @@ -33,7 +33,8 @@ "basicAuth": { "password": "", "username": "" - } + }, + "ipFamily": "IPv4" }, "frequency": 10, "muted": false, @@ -62,6 +63,10 @@ "reminders": { "amount": 0, "interval": 5 + }, + "parallelRunFailureThreshold": { + "enabled": false, + "percentage": 10 } }, "script": "foo", diff --git a/fixtures/CreateGroup.json b/fixtures/CreateGroup.json index cd647a1..f3250d6 100644 --- a/fixtures/CreateGroup.json +++ b/fixtures/CreateGroup.json @@ -58,6 +58,10 @@ "reminders": { "amount": 0, "interval": 5 + }, + "parallelRunFailureThreshold": { + "enabled": false, + "percentage": 10 } }, "alertChannelSubscriptions": [ diff --git a/fixtures/GetCheck.json b/fixtures/GetCheck.json index 275c952..1235116 100644 --- a/fixtures/GetCheck.json +++ b/fixtures/GetCheck.json @@ -33,7 +33,8 @@ "basicAuth": { "password": "", "username": "" - } + }, + "ipFamily": "IPv4" }, "frequency": 10, "muted": false, @@ -62,6 +63,10 @@ "reminders": { "amount": 0, "interval": 5 + }, + "parallelRunFailureThreshold": { + "enabled": false, + "percentage": 10 } }, "script": "foo", diff --git a/fixtures/UpdateCheck.json b/fixtures/UpdateCheck.json index 275c952..1235116 100644 --- a/fixtures/UpdateCheck.json +++ b/fixtures/UpdateCheck.json @@ -33,7 +33,8 @@ "basicAuth": { "password": "", "username": "" - } + }, + "ipFamily": "IPv4" }, "frequency": 10, "muted": false, @@ -62,6 +63,10 @@ "reminders": { "amount": 0, "interval": 5 + }, + "parallelRunFailureThreshold": { + "enabled": false, + "percentage": 10 } }, "script": "foo", diff --git a/fixtures/UpdateGroup.json b/fixtures/UpdateGroup.json index 146dab2..078f6ba 100644 --- a/fixtures/UpdateGroup.json +++ b/fixtures/UpdateGroup.json @@ -36,6 +36,10 @@ "amount": 0, "interval": 5 }, + "parallelRunFailureThreshold": { + "enabled": false, + "percentage": 10 + }, "escalationType": "RUN_BASED", "runBasedEscalation": { "failedRunThreshold": 1 diff --git a/types.go b/types.go index 12160b3..b618c00 100644 --- a/types.go +++ b/types.go @@ -542,6 +542,7 @@ type Request struct { QueryParameters []KeyValue `json:"queryParameters"` Assertions []Assertion `json:"assertions"` BasicAuth *BasicAuth `json:"basicAuth,omitempty"` + IPFamily string `json:"ipFamily,omitempty"` } // Assertion represents an assertion about an API response, which will be @@ -605,14 +606,14 @@ type AlertSettings struct { Reminders Reminders `json:"reminders,omitempty"` ParallelRunFailureThreshold ParallelRunFailureThreshold `json:"parallelRunFailureThreshold,omitempty"` // Deprecated: this property will be removed in future versions. - SSLCertificates SSLCertificates `json:"sslCertificates,omitempty"` + SSLCertificates SSLCertificates `json:"sslCertificates,omitempty"` } // ParallelRunFailureThreshold represent an alert escalation based on the number // of failing regions, only applicable for parallel checks type ParallelRunFailureThreshold struct { - Enabled bool `json:"enabled,omitempty"` - Percentage int `json:"percentage,omitempty"` + Enabled bool `json:"enabled,omitempty"` + Percentage int `json:"percentage,omitempty"` } // RunBasedEscalation represents an alert escalation based on a number of failed