api/tasks.go: add check initial_status

This commit is contained in:
Marin 2016-08-23 13:49:37 -07:00
parent 588a4802c1
commit 9ad8ecc149

View file

@ -60,16 +60,17 @@ type RestartPolicy struct {
// The ServiceCheck data model represents the consul health check that // The ServiceCheck data model represents the consul health check that
// Nomad registers for a Task // Nomad registers for a Task
type ServiceCheck struct { type ServiceCheck struct {
Id string Id string
Name string Name string
Type string Type string
Command string Command string
Args []string Args []string
Path string Path string
Protocol string `mapstructure:"port"` Protocol string `mapstructure:"port"`
PortLabel string `mapstructure:"port"` PortLabel string `mapstructure:"port"`
Interval time.Duration Interval time.Duration
Timeout time.Duration Timeout time.Duration
InitialStatus string `mapstructure:"initial_status"`
} }
// The Service model represents a Consul service definition // The Service model represents a Consul service definition