forked from KablamoOSS/kombustion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
HealthCheck_HealthCheckConfig.go
62 lines (27 loc) · 1.28 KB
/
HealthCheck_HealthCheckConfig.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
package properties
import "fmt"
type HealthCheck_HealthCheckConfig struct {
EnableSNI interface{} `yaml:"EnableSNI,omitempty"`
FailureThreshold interface{} `yaml:"FailureThreshold,omitempty"`
FullyQualifiedDomainName interface{} `yaml:"FullyQualifiedDomainName,omitempty"`
HealthThreshold interface{} `yaml:"HealthThreshold,omitempty"`
IPAddress interface{} `yaml:"IPAddress,omitempty"`
InsufficientDataHealthStatus interface{} `yaml:"InsufficientDataHealthStatus,omitempty"`
Inverted interface{} `yaml:"Inverted,omitempty"`
MeasureLatency interface{} `yaml:"MeasureLatency,omitempty"`
Port interface{} `yaml:"Port,omitempty"`
RequestInterval interface{} `yaml:"RequestInterval,omitempty"`
ResourcePath interface{} `yaml:"ResourcePath,omitempty"`
SearchString interface{} `yaml:"SearchString,omitempty"`
Type interface{} `yaml:"Type"`
ChildHealthChecks interface{} `yaml:"ChildHealthChecks,omitempty"`
Regions interface{} `yaml:"Regions,omitempty"`
AlarmIdentifier *HealthCheck_AlarmIdentifier `yaml:"AlarmIdentifier,omitempty"`
}
func (resource HealthCheck_HealthCheckConfig) Validate() []error {
errs := []error{}
if resource.Type == nil {
errs = append(errs, fmt.Errorf("Missing required field 'Type'"))
}
return errs
}