feat(coderd): add times_used to coder_apps in insights API (#13292)

For now, only applied to `coder_app`s, same logic can be implemented for
VS Code, SSH, etc.

Part of #13099
This commit is contained in:
Mathias Fredriksson
2024-05-16 16:53:01 +03:00
committed by GitHub
parent 63e06853eb
commit a0fce363cd
24 changed files with 346 additions and 102 deletions

View File

@ -217,6 +217,7 @@ type TemplateAppUsage struct {
Slug string `json:"slug" example:"vscode"`
Icon string `json:"icon"`
Seconds int64 `json:"seconds" example:"80500"`
TimesUsed int64 `json:"times_used" example:"2"`
}
// TemplateParameterUsage shows the usage of a parameter for one or more