Documentation
¶
Overview ¶
Package appstatistics implements MCP tools for GitLab instance application statistics.
The package wraps the GitLab Application statistics API:
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatGetMarkdown ¶
FormatGetMarkdown renders the instance statistics as the card of one object: one row per metric, in the order a reader reads them, then the note about what GitLab counts.
Types ¶
type GetOutput ¶
type GetOutput struct {
toolutil.HintableOutput
Forks int64 `json:"forks"`
Issues int64 `json:"issues"`
MergeRequests int64 `json:"merge_requests"`
Notes int64 `json:"notes"`
Snippets int64 `json:"snippets"`
SSHKeys int64 `json:"ssh_keys"`
Milestones int64 `json:"milestones"`
Users int64 `json:"users"`
Groups int64 `json:"groups"`
Projects int64 `json:"projects"`
ActiveUsers int64 `json:"active_users"`
}
GetOutput is the output for application statistics.
func Get ¶
Get retrieves current application statistics (admin).
It builds its own request rather than calling client-go's GetApplicationStatistics, whose ApplicationStatistics declares int64 fields and so cannot decode the strings GitLab sends for every count (see [delimitedCount]). Reported in gitlab-org/api/client-go!3063, closed unmerged on 2026-10-21 with its fix to go out again in a small merge request, and tracked in docs/development/upstream-bugs.md, entry 7; once a release carries the fix, this handler calls the SDK method directly.