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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
1f1257a2
Commit
1f1257a2
authored
Aug 30, 2019
by
manojmj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add API documentation
parent
f0f69a97
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
0 deletions
+33
-0
doc/api/api_resources.md
doc/api/api_resources.md
+1
-0
doc/api/statistics.md
doc/api/statistics.md
+32
-0
No files found.
doc/api/api_resources.md
View file @
1f1257a2
...
...
@@ -126,6 +126,7 @@ The following API resources are available outside of project and group contexts
|
[
Runners
](
runners.md
)
|
`/runners`
(also available for projects) |
|
[
Search
](
search.md
)
|
`/search`
(also available for groups and projects) |
|
[
Settings
](
settings.md
)
|
`/application/settings`
|
|
[
Statistics
](
statistics.md
)
|
`/application/statistics`
|
|
[
Sidekiq metrics
](
sidekiq_metrics.md
)
|
`/sidekiq`
|
|
[
Suggestions
](
suggestions.md
)
|
`/suggestions`
|
|
[
System hooks
](
system_hooks.md
)
|
`/hooks`
|
...
...
doc/api/statistics.md
0 → 100644
View file @
1f1257a2
---
table_display_block
:
true
---
# Application statistics API
## Get current application statistics
List the current statistics of the GitLab instance.
```
GET /application/statistics
```
```
bash
curl
--header
"PRIVATE-TOKEN: <your_access_token>"
https://gitlab.example.com/api/v4/application/statistics
```
Example response:
```
json
{
"forks"
:
"10"
,
"issues"
:
"76"
,
"merge_requests"
:
"27"
,
"notes"
:
"954"
,
"snippets"
:
"50"
,
"ssh_keys"
:
"10"
,
"milestones"
:
"40"
,
"active_users"
:
"50"
}
```
\ No newline at end of file
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