Skip to content

Commit

Permalink
Add SlaveID field in Task struct
Browse files Browse the repository at this point in the history
Marathon has a "slaveId" field in "task" since v0.11.0-RC1
  • Loading branch information
ohmystack committed Apr 14, 2016
1 parent 7cd6914 commit 8030a4f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions task.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ type Tasks struct {
// Task ... the definition for a marathon task
type Task struct {
ID string `json:"id"`
SlaveID string `json:"slaveId"`
AppID string `json:"appId"`
Host string `json:"host"`
HealthCheckResult []*HealthCheckResult `json:"healthCheckResults"`
Expand Down
6 changes: 6 additions & 0 deletions tests/rest-api/methods.yml
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@
"ports": [
31045
],
"slaveId": "63c5932c-c1c6-4fd4-b797-bc4863e27244-S0",
"stagedAt": "2014-09-12T23:28:28.594Z",
"startedAt": "2014-09-13T00:24:46.959Z",
"version": "2014-09-12T23:28:21.737Z"
Expand All @@ -323,6 +324,7 @@
"ports": [
31234
],
"slaveId": "63c5932c-c1c6-4fd4-b797-bc4863e27244-S0",
"stagedAt": "2014-09-12T23:28:22.587Z",
"startedAt": "2014-09-13T00:24:46.965Z",
"version": "2014-09-12T23:28:21.737Z"
Expand Down Expand Up @@ -419,6 +421,7 @@
"ports": [
31045
],
"slaveId": "63c5932c-c1c6-4fd4-b797-bc4863e27244-S0",
"stagedAt": "2014-09-12T23:28:28.594Z",
"startedAt": "2014-09-13T00:24:46.959Z",
"version": "2014-09-12T23:28:21.737Z"
Expand All @@ -440,6 +443,7 @@
"ports": [
31234
],
"slaveId": "63c5932c-c1c6-4fd4-b797-bc4863e27244-S0",
"stagedAt": "2014-09-12T23:28:22.587Z",
"startedAt": "2014-09-13T00:24:46.965Z",
"version": "2014-09-12T23:28:21.737Z"
Expand Down Expand Up @@ -723,6 +727,7 @@
"servicePorts": [
9000
],
"slaveId": "63c5932c-c1c6-4fd4-b797-bc4863e27244-S0",
"stagedAt": "2014-10-03T22:16:27.811Z",
"startedAt": "2014-10-03T22:57:41.587Z",
"version": "2014-10-03T22:16:23.634Z"
Expand All @@ -747,6 +752,7 @@
"servicePorts": [
9000
],
"slaveId": "63c5932c-c1c6-4fd4-b797-bc4863e27244-S0",
"stagedAt": "2014-10-03T22:16:33.814Z",
"startedAt": "2014-10-03T22:57:41.593Z",
"version": "2014-10-03T22:16:23.634Z"
Expand Down

0 comments on commit 8030a4f

Please sign in to comment.