Port: add client ID to TWEs in activity log [vault-3136] (#12820)

* port for tracking twes as clients

* comment clean up

* changelog

* change changelog entry phrasing
This commit is contained in:
Hridoy Roy
2021-10-14 09:10:59 -07:00
committed by GitHub
parent fb7dd97e3f
commit db584437b1
15 changed files with 1649 additions and 362 deletions

View File

@@ -191,8 +191,11 @@ type UsageCommandNamespace struct {
type UsageResponse struct {
namespacePath string
entityCount int64
tokenCount int64
clientCount int64
// As per 1.9, the tokenCount field will contain the distinct non-entity
// token clients instead of each individual token.
tokenCount int64
clientCount int64
}
func jsonNumberOK(m map[string]interface{}, key string) (int64, bool) {