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 a78e3aa commit d89239b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions task.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ type Task struct {
HealthCheckResults []*HealthCheckResult `json:"healthCheckResults"`
Ports []int `json:"ports"`
ServicePorts []int `json:"servicePorts"`
SlaveID string `json:"slaveId"`
StagedAt string `json:"stagedAt"`
StartedAt string `json:"startedAt"`
Version string `json:"version"`
Expand Down
8 changes: 8 additions & 0 deletions tests/rest-api/methods.yml
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,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 @@ -334,6 +335,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 @@ -429,6 +431,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 @@ -450,6 +453,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 @@ -546,6 +550,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 @@ -567,6 +572,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 @@ -857,6 +863,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 @@ -881,6 +888,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 d89239b

Please sign in to comment.