Added remaining HTTP health check fields to structs
This commit is contained in:
parent
84a07ea113
commit
7d82ece118
|
@ -482,10 +482,13 @@ type HealthCheck struct {
|
||||||
ServiceName string // optional service name
|
ServiceName string // optional service name
|
||||||
ServiceTags []string // optional service tags
|
ServiceTags []string // optional service tags
|
||||||
|
|
||||||
HTTP string `json:",omitempty"`
|
HTTP string `json:",omitempty"`
|
||||||
TCP string `json:",omitempty"`
|
TLSSkipVerify bool `json:",omitempty"`
|
||||||
Interval string `json:",omitempty"`
|
Header map[string][]string `json:",omitempty"`
|
||||||
Timeout string `json:",omitempty"`
|
Method string `json:",omitempty"`
|
||||||
|
TCP string `json:",omitempty"`
|
||||||
|
Interval string `json:",omitempty"`
|
||||||
|
Timeout string `json:",omitempty"`
|
||||||
|
|
||||||
RaftIndex
|
RaftIndex
|
||||||
}
|
}
|
||||||
|
|
27
api/agent.go
27
api/agent.go
|
@ -7,18 +7,21 @@ import (
|
||||||
|
|
||||||
// AgentCheck represents a check known to the agent
|
// AgentCheck represents a check known to the agent
|
||||||
type AgentCheck struct {
|
type AgentCheck struct {
|
||||||
Node string
|
Node string
|
||||||
CheckID string
|
CheckID string
|
||||||
Name string
|
Name string
|
||||||
Status string
|
Status string
|
||||||
Notes string
|
Notes string
|
||||||
Output string
|
Output string
|
||||||
ServiceID string
|
ServiceID string
|
||||||
ServiceName string
|
ServiceName string
|
||||||
HTTP string
|
HTTP string
|
||||||
TCP string
|
Header map[string][]string
|
||||||
Interval string
|
Method string
|
||||||
Timeout string
|
TLSSkipVerify bool
|
||||||
|
TCP string
|
||||||
|
Interval string
|
||||||
|
Timeout string
|
||||||
}
|
}
|
||||||
|
|
||||||
// AgentService represents a service known to the agent
|
// AgentService represents a service known to the agent
|
||||||
|
|
|
@ -35,10 +35,13 @@ type HealthCheck struct {
|
||||||
ServiceName string
|
ServiceName string
|
||||||
ServiceTags []string
|
ServiceTags []string
|
||||||
|
|
||||||
HTTP string
|
HTTP string
|
||||||
TCP string
|
Header map[string][]string
|
||||||
Interval string
|
Method string
|
||||||
Timeout string
|
TLSSkipVerify bool
|
||||||
|
TCP string
|
||||||
|
Interval string
|
||||||
|
Timeout string
|
||||||
}
|
}
|
||||||
|
|
||||||
// HealthChecks is a collection of HealthCheck structs.
|
// HealthChecks is a collection of HealthCheck structs.
|
||||||
|
|
Loading…
Reference in New Issue