module Octokit::EnterpriseAdminClient::AdminStats
Methods for the Enterprise Admin Stats API
Public Instance Methods
Get only comment-related stats
@return [Sawyer::Resource] Only comment-related stats @example Get only comment-related stats
@client.admin_comments_stats
# File lib/octokit/enterprise_admin_client/admin_stats.rb, line 104 def admin_comments_stats get_admin_stats "comments" end
Get only gist-related stats
@return [Sawyer::Resource] Only only gist-related stats @example Get only gist-related stats
@client.admin_gits_stats
# File lib/octokit/enterprise_admin_client/admin_stats.rb, line 95 def admin_gists_stats get_admin_stats "gists" end
Get only hooks-related stats
@return [Sawyer::Resource] Only hooks-related stats @example Get only hooks-related stats
@client.admin_hooks_stats
# File lib/octokit/enterprise_admin_client/admin_stats.rb, line 32 def admin_hooks_stats get_admin_stats "hooks" end
Get only issue-related stats
@return [Sawyer::Resource] Only issue-related stats @example Get only issue-related stats
@client.admin_issues_stats
# File lib/octokit/enterprise_admin_client/admin_stats.rb, line 77 def admin_issues_stats get_admin_stats "issues" end
Get only milestone-related stats
@return [Sawyer::Resource] Only milestone-related stats @example Get only milestone-related stats
@client.admin_milestones_stats
# File lib/octokit/enterprise_admin_client/admin_stats.rb, line 86 def admin_milestones_stats get_admin_stats "milestones" end
Get only organization-related stats
@return [Sawyer::Resource] Only organization-related stats @example Get only organization-related stats
@client.admin_organization_stats
# File lib/octokit/enterprise_admin_client/admin_stats.rb, line 50 def admin_organization_stats get_admin_stats "orgs" end
Get only pages-related stats
@return [Sawyer::Resource] Only pages-related stats @example Get only pages-related stats
@client.admin_pages_stats
# File lib/octokit/enterprise_admin_client/admin_stats.rb, line 41 def admin_pages_stats get_admin_stats "pages" end
Get only pull request-related stats
@return [Sawyer::Resource] Only pull request-related stats @example Get only pull request-related stats
@client.admin_pull_requests_stats
# File lib/octokit/enterprise_admin_client/admin_stats.rb, line 68 def admin_pull_requests_stats get_admin_stats "pulls" end
Get only repository-related stats
@return [Sawyer::Resource] Only repository-related stats @example Get only repository-related stats
@client.admin_repository_stats
# File lib/octokit/enterprise_admin_client/admin_stats.rb, line 23 def admin_repository_stats get_admin_stats "repos" end
Get all available stats
@return [Sawyer::Resource] All available stats @example Get all available stats
@client.admin_stats
# File lib/octokit/enterprise_admin_client/admin_stats.rb, line 14 def admin_stats get_admin_stats "all" end
Get only user-related stats
@return [Sawyer::Resource] Only user-related stats @example Get only user-related stats
@client.admin_users_stats
# File lib/octokit/enterprise_admin_client/admin_stats.rb, line 59 def admin_users_stats get_admin_stats "users" end
Private Instance Methods
@private Get enterprise stats
@param metric [String] The metrics you are looking for @return [Sawyer::Resource] Magical unicorn stats
# File lib/octokit/enterprise_admin_client/admin_stats.rb, line 114 def get_admin_stats(metric) get "enterprise/stats/#{metric}" end