Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1abe0cf

Browse files
authored
docs: fix /audit & /insights params (#12043)
1 parent1cf4b62 commit1abe0cf

File tree

6 files changed

+133
-8
lines changed

6 files changed

+133
-8
lines changed

‎coderd/apidoc/docs.go

Lines changed: 50 additions & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎coderd/apidoc/swagger.json

Lines changed: 50 additions & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎coderd/audit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import (
3131
// @Produce json
3232
// @Tags Audit
3333
// @Param q query string false "Search query"
34-
// @Param limit query intfalse "Page limit"
34+
// @Param limit query inttrue "Page limit"
3535
// @Param offset query int false "Page offset"
3636
// @Success 200 {object} codersdk.AuditLogResponse
3737
// @Router /audit [get]

‎coderd/insights.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ func (api *API) deploymentDAUs(rw http.ResponseWriter, r *http.Request) {
6464
// @Security CoderSessionToken
6565
// @Produce json
6666
// @Tags Insights
67+
// @Param before query int true "Start time"
68+
// @Param after query int true "End time"
6769
// @Success 200 {object} codersdk.UserActivityInsightsResponse
6870
// @Router /insights/user-activity [get]
6971
func (api*API)insightsUserActivity(rw http.ResponseWriter,r*http.Request) {
@@ -151,6 +153,8 @@ func (api *API) insightsUserActivity(rw http.ResponseWriter, r *http.Request) {
151153
// @Security CoderSessionToken
152154
// @Produce json
153155
// @Tags Insights
156+
// @Param before query int true "Start time"
157+
// @Param after query int true "End time"
154158
// @Success 200 {object} codersdk.UserLatencyInsightsResponse
155159
// @Router /insights/user-latency [get]
156160
func (api*API)insightsUserLatency(rw http.ResponseWriter,r*http.Request) {
@@ -241,6 +245,8 @@ func (api *API) insightsUserLatency(rw http.ResponseWriter, r *http.Request) {
241245
// @Security CoderSessionToken
242246
// @Produce json
243247
// @Tags Insights
248+
// @Param before query int true "Start time"
249+
// @Param after query int true "End time"
244250
// @Success 200 {object} codersdk.TemplateInsightsResponse
245251
// @Router /insights/templates [get]
246252
func (api*API)insightsTemplates(rw http.ResponseWriter,r*http.Request) {

‎docs/api/audit.md

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎docs/api/insights.md

Lines changed: 24 additions & 3 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp