Service Accounts: Separate metrics logic from store (#54085)

* separate stats logic from store

* remove in_teams unused stat

* use init instead
This commit is contained in:
Jo
2022-08-23 14:24:55 +02:00
committed by GitHub
parent afa7e8d8de
commit 5c1f614d3c
8 changed files with 109 additions and 75 deletions

View File

@@ -125,3 +125,8 @@ const (
FilterOnlyDisabled ServiceAccountFilter = "disabled"
FilterIncludeAll ServiceAccountFilter = "all"
)
type Stats struct {
ServiceAccounts int64 `xorm:"serviceaccounts"`
Tokens int64 `xorm:"serviceaccount_tokens"`
}