module Octokit::EnterpriseAdminClient::AdminStats

Methods for the Enterprise Admin Stats API

@see developer.github.com/v3/enterprise-admin/admin_stats/

Public Instance Methods

admin_comments_stats() click to toggle source

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
admin_gists_stats() click to toggle source

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
admin_hooks_stats() click to toggle source

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
admin_issues_stats() click to toggle source

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
admin_milestones_stats() click to toggle source

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
admin_organization_stats() click to toggle source

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
admin_pages_stats() click to toggle source

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
admin_pull_requests_stats() click to toggle source

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
admin_repository_stats() click to toggle source

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
admin_stats() click to toggle source

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
admin_users_stats() click to toggle source

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

get_admin_stats(metric) click to toggle source

@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