Skip to main content

Requesting Server Statistics using the REST API

You can use your own tools to analyze your GitHub Enterprise Server usage over time by requesting the 服务器统计信息 metrics collected using the REST API.

You can request up to 365 days of metrics in a single 服务器统计信息 REST API request. This data, which includes aggregate metrics on repositories, issues, and pull requests, can help you anticipate the needs of your organization, understand how your team works, and show the value you get from GitHub Enterprise Server. For a list of the metrics collected, see "服务器统计信息 data collected."

Before you can use the 服务器统计信息 REST API, you must enable 服务器统计信息. For more information, see "Enabling 服务器统计信息 for your enterprise."

For more information about using the REST API to request server statistics, see "Get GitHub Enterprise Server statistics" in the GitHub Enterprise Cloud REST API documentation.