From ccc9fb69b8f1ebaaf871ad1561052d84a9ccd3a5 Mon Sep 17 00:00:00 2001 From: Mat Schaffer Date: Fri, 27 Jul 2018 17:15:39 +0900 Subject: Update github.com/DreamItGetIT/statuscake to PR-28 Will rebase this commit once the PR is merged --- vendor/github.com/DreamItGetIT/statuscake/tests.go | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'vendor/github.com/DreamItGetIT/statuscake/tests.go') diff --git a/vendor/github.com/DreamItGetIT/statuscake/tests.go b/vendor/github.com/DreamItGetIT/statuscake/tests.go index a41b0bd..b003d4c 100644 --- a/vendor/github.com/DreamItGetIT/statuscake/tests.go +++ b/vendor/github.com/DreamItGetIT/statuscake/tests.go @@ -12,7 +12,7 @@ const queryStringTag = "querystring" // Test represents a statuscake Test type Test struct { - // ThiTestID is an int, use this to get more details about this test. If not provided will insert a new check, else will update + // TestID is an int, use this to get more details about this test. If not provided will insert a new check, else will update TestID int `json:"TestID" querystring:"TestID" querystringoptions:"omitempty"` // Sent tfalse To Unpause and true To Pause. @@ -33,8 +33,11 @@ type Test struct { // A Port to use on TCP Tests Port int `json:"Port" querystring:"Port"` - // Contact group ID - will return int of contact group used else 0 - ContactID int `json:"ContactID" querystring:"ContactGroup"` + // Contact group ID - deprecated in favor of ContactGroup but still provided in the API detail response + ContactID int `json:"ContactID"` + + // Contact group IDs - will return list of ints or empty if not provided + ContactGroup []string `json:"ContactGroup" querystring:"ContactGroup"` // Current status at last test Status string `json:"Status"` @@ -93,7 +96,7 @@ type Test struct { TriggerRate int `json:"TriggerRate" querystring:"TriggerRate"` // Tags should be seperated by a comma - no spacing between tags (this,is,a set,of,tags) - TestTags string `json:"TestTags" querystring:"TestTags"` + TestTags []string `json:"TestTags" querystring:"TestTags"` // Comma Seperated List of StatusCodes to Trigger Error on (on Update will replace, so send full list each time) StatusCodes string `json:"StatusCodes" querystring:"StatusCodes"` @@ -283,7 +286,7 @@ func (tt *tests) Update(t *Test) (*Test, error) { } if !ur.Success { - return nil, &updateError{Issues: ur.Issues} + return nil, &updateError{Issues: ur.Issues, Message: ur.Message} } t2 := *t -- cgit v1.2.3