Skip to content

Commit

Permalink
Tweak some namings
Browse files Browse the repository at this point in the history
  • Loading branch information
tjerman committed Dec 3, 2024
1 parent ee1e5e6 commit 6c88cef
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions server/pkg/rbac/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,22 +102,22 @@ type (
}

Stats struct {
CacheHits uint `json:"cacheHits"`
CacheMisses uint `json:"cacheMisses"`
CacheUpdates uint `json:"cacheUpdates"`
AvgDbTiming time.Duration `json:"avgDbTiming"`
MinDbTiming time.Duration `json:"minDbTiming"`
MaxDbTiming time.Duration `json:"maxDbTiming"`
AvgIndexTiming time.Duration `json:"avgIndexTiming"`
MinIndexTiming time.Duration `json:"minIndexTiming"`
MaxIndexTiming time.Duration `json:"maxIndexTiming"`
CacheHits uint `json:"cacheHits"`
CacheMisses uint `json:"cacheMisses"`
CacheUpdates uint `json:"cacheUpdates"`
AvgDatabaseTiming time.Duration `json:"avgDatabaseTiming"`
MinDatabaseTiming time.Duration `json:"minDatabaseTiming"`
MaxDatabaseTiming time.Duration `json:"maxDatabaseTiming"`
AvgIndexTiming time.Duration `json:"avgIndexTiming"`
MinIndexTiming time.Duration `json:"minIndexTiming"`
MaxIndexTiming time.Duration `json:"maxIndexTiming"`

IndexSize int `json:"indexSize"`

LastHits []string `json:"lastHits"`
LastMisses []string `json:"lastMisses"`
LastDbTimings []time.Duration `json:"lastDbTimings"`
LastIndexTimings []time.Duration `json:"lastIndexTimings"`
LastHits []string `json:"lastHits"`
LastMisses []string `json:"lastMisses"`
LastDatabaseTimings []time.Duration `json:"lastDatabaseTimings"`
LastIndexTimings []time.Duration `json:"lastIndexTimings"`

Counters []expCtrItem `json:"counters"`
}
Expand Down Expand Up @@ -432,15 +432,15 @@ func (svc *Service) Stats() (out Stats, err error) {
out.CacheHits,
out.CacheMisses,
out.CacheUpdates,
out.AvgDbTiming,
out.MinDbTiming,
out.MaxDbTiming,
out.AvgDatabaseTiming,
out.MinDatabaseTiming,
out.MaxDatabaseTiming,
out.AvgIndexTiming,
out.MinIndexTiming,
out.MaxIndexTiming,
out.LastHits,
out.LastMisses,
out.LastDbTimings,
out.LastDatabaseTimings,
out.LastIndexTimings = svc.StatLogger.Stats()

out.IndexSize = svc.index.getSize()
Expand Down

0 comments on commit 6c88cef

Please sign in to comment.