Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
5e0143a8
Commit
5e0143a8
authored
7 years ago
by
Alessio Caiazza
Committed by
Alessio Caiazza
6 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add online attribute to runner api entity
parent
e5a9b9a1
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
9 deletions
+25
-9
changelogs/unreleased/feature-api_runners_online.yml
changelogs/unreleased/feature-api_runners_online.yml
+4
-0
doc/api/runners.md
doc/api/runners.md
+20
-9
lib/api/entities.rb
lib/api/entities.rb
+1
-0
No files found.
changelogs/unreleased/feature-api_runners_online.yml
0 → 100644
View file @
5e0143a8
---
title
:
Add online attribute to runner api entity
merge_request
:
11750
author
:
Alessio Caiazza
This diff is collapsed.
Click to expand it.
doc/api/runners.md
View file @
5e0143a8
...
...
@@ -30,14 +30,16 @@ Example response:
"description"
:
"test-1-20150125"
,
"id"
:
6
,
"is_shared"
:
false
,
"name"
:
null
"name"
:
null
,
"online"
:
true
},
{
"active"
:
true
,
"description"
:
"test-2-20150125"
,
"id"
:
8
,
"is_shared"
:
false
,
"name"
:
null
"name"
:
null
,
"online"
:
false
}
]
```
...
...
@@ -69,28 +71,32 @@ Example response:
"description"
:
"shared-runner-1"
,
"id"
:
1
,
"is_shared"
:
true
,
"name"
:
null
"name"
:
null
,
"online"
:
true
},
{
"active"
:
true
,
"description"
:
"shared-runner-2"
,
"id"
:
3
,
"is_shared"
:
true
,
"name"
:
null
"name"
:
null
,
"online"
:
false
},
{
"active"
:
true
,
"description"
:
"test-1-20150125"
,
"id"
:
6
,
"is_shared"
:
false
,
"name"
:
null
"name"
:
null
,
"online"
:
true
},
{
"active"
:
true
,
"description"
:
"test-2-20150125"
,
"id"
:
8
,
"is_shared"
:
false
,
"name"
:
null
"name"
:
null
,
"online"
:
false
}
]
```
...
...
@@ -122,6 +128,7 @@ Example response:
"is_shared"
:
false
,
"contacted_at"
:
"2016-01-25T16:39:48.066Z"
,
"name"
:
null
,
"online"
:
true
,
"platform"
:
null
,
"projects"
:
[
{
...
...
@@ -176,6 +183,7 @@ Example response:
"is_shared"
:
false
,
"contacted_at"
:
"2016-01-25T16:39:48.066Z"
,
"name"
:
null
,
"online"
:
true
,
"platform"
:
null
,
"projects"
:
[
{
...
...
@@ -327,14 +335,16 @@ Example response:
"description"
:
"test-2-20150125"
,
"id"
:
8
,
"is_shared"
:
false
,
"name"
:
null
"name"
:
null
,
"online"
:
false
},
{
"active"
:
true
,
"description"
:
"development_runner"
,
"id"
:
5
,
"is_shared"
:
true
,
"name"
:
null
"name"
:
null
,
"online"
:
true
}
]
```
...
...
@@ -364,7 +374,8 @@ Example response:
"description"
:
"test-2016-02-01"
,
"id"
:
9
,
"is_shared"
:
false
,
"name"
:
null
"name"
:
null
,
"online"
:
true
}
```
...
...
This diff is collapsed.
Click to expand it.
lib/api/entities.rb
View file @
5e0143a8
...
...
@@ -862,6 +862,7 @@ module API
expose
:active
expose
:is_shared
expose
:name
expose
:online?
,
as: :online
end
class
RunnerDetails
<
Runner
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment