Commit 3514b724 authored by Alessio Caiazza's avatar Alessio Caiazza Committed by Alessio Caiazza

Add status attribute to runner api entity

parent 5e0143a8
--- ---
title: Add online attribute to runner api entity title: Add online and status attribute to runner api entity
merge_request: 11750 merge_request: 11750
author: Alessio Caiazza author:
type: added
...@@ -31,7 +31,8 @@ Example response: ...@@ -31,7 +31,8 @@ Example response:
"id": 6, "id": 6,
"is_shared": false, "is_shared": false,
"name": null, "name": null,
"online": true "online": true,
"status": "online"
}, },
{ {
"active": true, "active": true,
...@@ -39,7 +40,8 @@ Example response: ...@@ -39,7 +40,8 @@ Example response:
"id": 8, "id": 8,
"is_shared": false, "is_shared": false,
"name": null, "name": null,
"online": false "online": false,
"status": "offline"
} }
] ]
``` ```
...@@ -72,7 +74,8 @@ Example response: ...@@ -72,7 +74,8 @@ Example response:
"id": 1, "id": 1,
"is_shared": true, "is_shared": true,
"name": null, "name": null,
"online": true "online": true,
"status": "online"
}, },
{ {
"active": true, "active": true,
...@@ -81,6 +84,7 @@ Example response: ...@@ -81,6 +84,7 @@ Example response:
"is_shared": true, "is_shared": true,
"name": null, "name": null,
"online": false "online": false
"status": "offline"
}, },
{ {
"active": true, "active": true,
...@@ -89,6 +93,7 @@ Example response: ...@@ -89,6 +93,7 @@ Example response:
"is_shared": false, "is_shared": false,
"name": null, "name": null,
"online": true "online": true
"status": "paused"
}, },
{ {
"active": true, "active": true,
...@@ -96,7 +101,8 @@ Example response: ...@@ -96,7 +101,8 @@ Example response:
"id": 8, "id": 8,
"is_shared": false, "is_shared": false,
"name": null, "name": null,
"online": false "online": false,
"status": "offline"
} }
] ]
``` ```
...@@ -129,6 +135,7 @@ Example response: ...@@ -129,6 +135,7 @@ Example response:
"contacted_at": "2016-01-25T16:39:48.066Z", "contacted_at": "2016-01-25T16:39:48.066Z",
"name": null, "name": null,
"online": true, "online": true,
"status": "online",
"platform": null, "platform": null,
"projects": [ "projects": [
{ {
...@@ -184,6 +191,7 @@ Example response: ...@@ -184,6 +191,7 @@ Example response:
"contacted_at": "2016-01-25T16:39:48.066Z", "contacted_at": "2016-01-25T16:39:48.066Z",
"name": null, "name": null,
"online": true, "online": true,
"status": "online",
"platform": null, "platform": null,
"projects": [ "projects": [
{ {
...@@ -336,7 +344,8 @@ Example response: ...@@ -336,7 +344,8 @@ Example response:
"id": 8, "id": 8,
"is_shared": false, "is_shared": false,
"name": null, "name": null,
"online": false "online": false,
"status": "offline"
}, },
{ {
"active": true, "active": true,
...@@ -345,6 +354,7 @@ Example response: ...@@ -345,6 +354,7 @@ Example response:
"is_shared": true, "is_shared": true,
"name": null, "name": null,
"online": true "online": true
"status": "paused"
} }
] ]
``` ```
...@@ -375,7 +385,8 @@ Example response: ...@@ -375,7 +385,8 @@ Example response:
"id": 9, "id": 9,
"is_shared": false, "is_shared": false,
"name": null, "name": null,
"online": true "online": true,
"status": "online"
} }
``` ```
......
...@@ -863,6 +863,7 @@ module API ...@@ -863,6 +863,7 @@ module API
expose :is_shared expose :is_shared
expose :name expose :name
expose :online?, as: :online expose :online?, as: :online
expose :status
end end
class RunnerDetails < Runner class RunnerDetails < Runner
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment