@@ -30,6 +30,7 @@ const insightsTimeLayout = time.RFC3339
30
30
// @Security CoderSessionToken
31
31
// @Produce json
32
32
// @Tags Insights
33
+ // @Param tz_offset query int true "Time-zone offset (e.g. -2)"
33
34
// @Success 200 {object} codersdk.DAUsResponse
34
35
// @Router /insights/daus [get]
35
36
func (api * API ) deploymentDAUs (rw http.ResponseWriter , r * http.Request ) {
@@ -100,8 +101,9 @@ func (api *API) returnDAUsInternal(rw http.ResponseWriter, r *http.Request, temp
100
101
// @Security CoderSessionToken
101
102
// @Produce json
102
103
// @Tags Insights
103
- // @Param before query int true "Start time"
104
- // @Param after query int true "End time"
104
+ // @Param start_time query string true "Start time" format(date-time)
105
+ // @Param end_time query string true "End time" format(date-time)
106
+ // @Param template_ids query []string false "Template IDs" collectionFormat(csv)
105
107
// @Success 200 {object} codersdk.UserActivityInsightsResponse
106
108
// @Router /insights/user-activity [get]
107
109
func (api * API ) insightsUserActivity (rw http.ResponseWriter , r * http.Request ) {
@@ -202,8 +204,9 @@ func (api *API) insightsUserActivity(rw http.ResponseWriter, r *http.Request) {
202
204
// @Security CoderSessionToken
203
205
// @Produce json
204
206
// @Tags Insights
205
- // @Param before query int true "Start time"
206
- // @Param after query int true "End time"
207
+ // @Param start_time query string true "Start time" format(date-time)
208
+ // @Param end_time query string true "End time" format(date-time)
209
+ // @Param template_ids query []string false "Template IDs" collectionFormat(csv)
207
210
// @Success 200 {object} codersdk.UserLatencyInsightsResponse
208
211
// @Router /insights/user-latency [get]
209
212
func (api * API ) insightsUserLatency (rw http.ResponseWriter , r * http.Request ) {
@@ -294,8 +297,10 @@ func (api *API) insightsUserLatency(rw http.ResponseWriter, r *http.Request) {
294
297
// @Security CoderSessionToken
295
298
// @Produce json
296
299
// @Tags Insights
297
- // @Param before query int true "Start time"
298
- // @Param after query int true "End time"
300
+ // @Param start_time query string true "Start time" format(date-time)
301
+ // @Param end_time query string true "End time" format(date-time)
302
+ // @Param interval query string true "Interval" enums(week,day)
303
+ // @Param template_ids query []string false "Template IDs" collectionFormat(csv)
299
304
// @Success 200 {object} codersdk.TemplateInsightsResponse
300
305
// @Router /insights/templates [get]
301
306
func (api * API ) insightsTemplates (rw http.ResponseWriter , r * http.Request ) {
0 commit comments