remove healthcheck notification property
MODIFY
healthchecks.go
healthchecks.go
@@ -28,7 +28,6 @@ type Healthcheck struct {
CheckRegions []string `json:"check_regions"`
HTTPConfig *HealthcheckHTTPConfig `json:"http_config,omitempty"`
TCPConfig *HealthcheckTCPConfig `json:"tcp_config,omitempty"`
- Notification HealthcheckNotification `json:"notification,omitempty"`
Status string `json:"status"`
FailureReason string `json:"failure_reason"`
}
@@ -51,14 +50,6 @@ type HealthcheckTCPConfig struct {
Port uint16 `json:"port,omitempty"`
}
-// HealthcheckNotification describes notification configuration for a healthcheck.
-// Deprecated: Use CreateNotificationPolicy() instead.
-type HealthcheckNotification struct {
- Suspended bool `json:"suspended,omitempty"`
- EmailAddresses []string `json:"email_addresses,omitempty"`
- Trigger string `json:"trigger,omitempty"`
-}
-
// HealthcheckListResponse is the API response, containing an array of healthchecks.
type HealthcheckListResponse struct {
Response

MODIFY
healthchecks_test.go
healthchecks_test.go
@@ -45,11 +45,6 @@ const (
}
},
"tcp_config": null,
- "notification": {
- "suspended": false,
- "email_addresses": ["alerts@example.com"],
- "trigger": "ALL"
- },
"created_on": "2019-01-13T12:20:00.12345Z",
"modified_on": "2019-01-13T12:20:00.12345Z",
"status": "unknown",
@@ -88,11 +83,6 @@ var (
"Host": {"www.example.com"},
},
},
- Notification: HealthcheckNotification{
- Suspended: false,
- EmailAddresses: []string{"alerts@example.com"},
- Trigger: "ALL",
- },
Status: "unknown",
FailureReason: "",
}

remove healthcheck notification property