mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add flag to disable template insights (#20940)
Closes #20399 To summarize the original commit messages: - Do not log stats to the database. - Return errors on the insight endpoints. - Update the frontend to show those errors. - Also fixes an issue with getting the user status count via codersdk, since I added a test to ensure it was not disabled by this flag and it was sending the wrong payload.
This commit is contained in:
@@ -0,0 +1,107 @@
|
||||
{
|
||||
"report": {
|
||||
"start_time": "2023-08-15T00:00:00Z",
|
||||
"end_time": "2023-08-22T00:00:00Z",
|
||||
"template_ids": [],
|
||||
"active_users": 0,
|
||||
"apps_usage": [
|
||||
{
|
||||
"template_ids": [],
|
||||
"type": "builtin",
|
||||
"display_name": "Visual Studio Code",
|
||||
"slug": "vscode",
|
||||
"icon": "/icon/code.svg",
|
||||
"seconds": 0,
|
||||
"times_used": 0
|
||||
},
|
||||
{
|
||||
"template_ids": [],
|
||||
"type": "builtin",
|
||||
"display_name": "JetBrains",
|
||||
"slug": "jetbrains",
|
||||
"icon": "/icon/intellij.svg",
|
||||
"seconds": 0,
|
||||
"times_used": 0
|
||||
},
|
||||
{
|
||||
"template_ids": [],
|
||||
"type": "builtin",
|
||||
"display_name": "Web Terminal",
|
||||
"slug": "reconnecting-pty",
|
||||
"icon": "/icon/terminal.svg",
|
||||
"seconds": 0,
|
||||
"times_used": 0
|
||||
},
|
||||
{
|
||||
"template_ids": [],
|
||||
"type": "builtin",
|
||||
"display_name": "SSH",
|
||||
"slug": "ssh",
|
||||
"icon": "/icon/terminal.svg",
|
||||
"seconds": 0,
|
||||
"times_used": 0
|
||||
},
|
||||
{
|
||||
"template_ids": [],
|
||||
"type": "builtin",
|
||||
"display_name": "SFTP",
|
||||
"slug": "sftp",
|
||||
"icon": "/icon/terminal.svg",
|
||||
"seconds": 0,
|
||||
"times_used": 0
|
||||
}
|
||||
],
|
||||
"parameters_usage": []
|
||||
},
|
||||
"interval_reports": [
|
||||
{
|
||||
"start_time": "2023-08-15T00:00:00Z",
|
||||
"end_time": "2023-08-16T00:00:00Z",
|
||||
"template_ids": [],
|
||||
"interval": "day",
|
||||
"active_users": 0
|
||||
},
|
||||
{
|
||||
"start_time": "2023-08-16T00:00:00Z",
|
||||
"end_time": "2023-08-17T00:00:00Z",
|
||||
"template_ids": [],
|
||||
"interval": "day",
|
||||
"active_users": 0
|
||||
},
|
||||
{
|
||||
"start_time": "2023-08-17T00:00:00Z",
|
||||
"end_time": "2023-08-18T00:00:00Z",
|
||||
"template_ids": [],
|
||||
"interval": "day",
|
||||
"active_users": 0
|
||||
},
|
||||
{
|
||||
"start_time": "2023-08-18T00:00:00Z",
|
||||
"end_time": "2023-08-19T00:00:00Z",
|
||||
"template_ids": [],
|
||||
"interval": "day",
|
||||
"active_users": 0
|
||||
},
|
||||
{
|
||||
"start_time": "2023-08-19T00:00:00Z",
|
||||
"end_time": "2023-08-20T00:00:00Z",
|
||||
"template_ids": [],
|
||||
"interval": "day",
|
||||
"active_users": 0
|
||||
},
|
||||
{
|
||||
"start_time": "2023-08-20T00:00:00Z",
|
||||
"end_time": "2023-08-21T00:00:00Z",
|
||||
"template_ids": [],
|
||||
"interval": "day",
|
||||
"active_users": 0
|
||||
},
|
||||
{
|
||||
"start_time": "2023-08-21T00:00:00Z",
|
||||
"end_time": "2023-08-22T00:00:00Z",
|
||||
"template_ids": [],
|
||||
"interval": "day",
|
||||
"active_users": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"report": {
|
||||
"start_time": "2023-08-15T00:00:00Z",
|
||||
"end_time": "2023-08-22T00:00:00Z",
|
||||
"template_ids": [],
|
||||
"users": []
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user