From 43e17c4f9531ed2df8f0839b318f38fc2d1951b5 Mon Sep 17 00:00:00 2001 From: Marin Date: Tue, 23 Aug 2016 13:49:37 -0700 Subject: [PATCH] api/tasks.go: add check initial_status --- api/tasks.go | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/api/tasks.go b/api/tasks.go index 9924742cc..ab8886724 100644 --- a/api/tasks.go +++ b/api/tasks.go @@ -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