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
1 changed files with 11 additions and 10 deletions

View File

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