mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
feat: Fix Deployment DAUs to work with local timezones (#7647)
* chore: Add timezone param to DAU SQL query * Merge DAUs response * Pass time offsets to metricscache
This commit is contained in:
40
coderd/apidoc/docs.go
generated
40
coderd/apidoc/docs.go
generated
@ -747,7 +747,7 @@ const docTemplate = `{
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/codersdk.DeploymentDAUsResponse"
|
||||
"$ref": "#/definitions/codersdk.DAUsResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -2124,7 +2124,7 @@ const docTemplate = `{
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/codersdk.TemplateDAUsResponse"
|
||||
"$ref": "#/definitions/codersdk.DAUsResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -7211,6 +7211,20 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.DAUsResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"entries": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/codersdk.DAUEntry"
|
||||
}
|
||||
},
|
||||
"tz_hour_offset": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.DERP": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@ -7298,17 +7312,6 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.DeploymentDAUsResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"entries": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/codersdk.DAUEntry"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.DeploymentStats": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@ -8921,17 +8924,6 @@ const docTemplate = `{
|
||||
"$ref": "#/definitions/codersdk.TransitionStats"
|
||||
}
|
||||
},
|
||||
"codersdk.TemplateDAUsResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"entries": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/codersdk.DAUEntry"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.TemplateExample": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
Reference in New Issue
Block a user