Module: Octokit::EnterpriseAdminClient::AdminStats
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Included In:
| |
Defined in: | lib/octokit/enterprise_admin_client/admin_stats.rb |
Overview
Methods for the Enterprise Admin Stats API
Instance Method Summary
-
#admin_comments_stats ⇒ Sawyer::Resource
Get only comment-related stats.
-
#admin_gists_stats ⇒ Sawyer::Resource
Get only gist-related stats.
-
#admin_hooks_stats ⇒ Sawyer::Resource
Get only hooks-related stats.
-
#admin_issues_stats ⇒ Sawyer::Resource
Get only issue-related stats.
-
#admin_milestones_stats ⇒ Sawyer::Resource
Get only milestone-related stats.
-
#admin_organization_stats ⇒ Sawyer::Resource
Get only organization-related stats.
-
#admin_pages_stats ⇒ Sawyer::Resource
Get only pages-related stats.
-
#admin_pull_requests_stats ⇒ Sawyer::Resource
Get only pull request-related stats.
-
#admin_repository_stats ⇒ Sawyer::Resource
Get only repository-related stats.
-
#admin_stats ⇒ Sawyer::Resource
Get all available stats.
-
#admin_users_stats ⇒ Sawyer::Resource
Get only user-related stats.
- #get_admin_stats(metric) ⇒ Sawyer::Resource private Internal use only
Instance Method Details
#admin_comments_stats ⇒ Sawyer::Resource
Get only comment-related stats
# File 'lib/octokit/enterprise_admin_client/admin_stats.rb', line 104
def admin_comments_stats get_admin_stats 'comments' end
#admin_gists_stats ⇒ Sawyer::Resource
Get only gist-related stats
# File 'lib/octokit/enterprise_admin_client/admin_stats.rb', line 95
def admin_gists_stats get_admin_stats 'gists' end
#admin_hooks_stats ⇒ Sawyer::Resource
Get only hooks-related stats
# File 'lib/octokit/enterprise_admin_client/admin_stats.rb', line 32
def admin_hooks_stats get_admin_stats 'hooks' end
#admin_issues_stats ⇒ Sawyer::Resource
Get only issue-related stats
# File 'lib/octokit/enterprise_admin_client/admin_stats.rb', line 77
def admin_issues_stats get_admin_stats 'issues' end
#admin_milestones_stats ⇒ Sawyer::Resource
Get only milestone-related stats
# File 'lib/octokit/enterprise_admin_client/admin_stats.rb', line 86
def admin_milestones_stats get_admin_stats 'milestones' end
#admin_organization_stats ⇒ Sawyer::Resource
Get only organization-related stats
# File 'lib/octokit/enterprise_admin_client/admin_stats.rb', line 50
def admin_organization_stats get_admin_stats 'orgs' end
#admin_pages_stats ⇒ Sawyer::Resource
Get only pages-related stats
# File 'lib/octokit/enterprise_admin_client/admin_stats.rb', line 41
def admin_pages_stats get_admin_stats 'pages' end
#admin_pull_requests_stats ⇒ Sawyer::Resource
Get only pull request-related stats
# File 'lib/octokit/enterprise_admin_client/admin_stats.rb', line 68
def admin_pull_requests_stats get_admin_stats 'pulls' end
#admin_repository_stats ⇒ Sawyer::Resource
Get only repository-related stats
# File 'lib/octokit/enterprise_admin_client/admin_stats.rb', line 23
def admin_repository_stats get_admin_stats 'repos' end
#admin_stats ⇒ Sawyer::Resource
Get all available stats
# File 'lib/octokit/enterprise_admin_client/admin_stats.rb', line 14
def admin_stats get_admin_stats 'all' end
#admin_users_stats ⇒ Sawyer::Resource
Get only user-related stats
# File 'lib/octokit/enterprise_admin_client/admin_stats.rb', line 59
def admin_users_stats get_admin_stats 'users' end
#get_admin_stats(metric) ⇒ Sawyer::Resource
(private)
This method is for internal use only.
# File 'lib/octokit/enterprise_admin_client/admin_stats.rb', line 114
def get_admin_stats(metric) get "enterprise/stats/#{metric}" end