feat(coderd): support weekly aggregated insights (#9684)

This commit is contained in:
Marcin Tojek
2023-09-19 13:06:19 +02:00
committed by GitHub
parent b358e3d558
commit b0e3daa120
15 changed files with 680 additions and 24 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ curl -X GET http://coder-server:8080/api/v2/insights/templates \
{
"active_users": 14,
"end_time": "2019-08-24T14:15:22Z",
"interval": "day",
"interval": "week",
"start_time": "2019-08-24T14:15:22Z",
"template_ids": ["497f6eca-6276-4993-bfeb-53cbbbba6f08"]
}
+6 -5
View File
@@ -3085,9 +3085,10 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
#### Enumerated Values
| Value |
| ----- |
| `day` |
| Value |
| ------ |
| `day` |
| `week` |
## codersdk.IssueReconnectingPTYSignedTokenRequest
@@ -4421,7 +4422,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
{
"active_users": 14,
"end_time": "2019-08-24T14:15:22Z",
"interval": "day",
"interval": "week",
"start_time": "2019-08-24T14:15:22Z",
"template_ids": ["497f6eca-6276-4993-bfeb-53cbbbba6f08"]
}
@@ -4500,7 +4501,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
{
"active_users": 14,
"end_time": "2019-08-24T14:15:22Z",
"interval": "day",
"interval": "week",
"start_time": "2019-08-24T14:15:22Z",
"template_ids": ["497f6eca-6276-4993-bfeb-53cbbbba6f08"]
}