File tree 6 files changed +29
-25
lines changed 6 files changed +29
-25
lines changed Original file line number Diff line number Diff line change @@ -458,7 +458,7 @@ docs/admin/prometheus.md: scripts/metricsdocgen/main.go scripts/metricsdocgen/me
458
458
cd site
459
459
yarn run format:write ../docs/admin/prometheus.md
460
460
461
- coderd/apidoc/swagger.json : $(shell find ./scripts/apidocgen -not \( -path './scripts/apidocgen/node_modules' -prune \) -type f) $(wildcard coderd/* .go)
461
+ coderd/apidoc/swagger.json : $(shell find ./scripts/apidocgen -not \( -path './scripts/apidocgen/node_modules' -prune \) -type f) $(wildcard coderd/* .go) $( wildcard codersdk/ * .go)
462
462
./scripts/apidocgen/generate.sh
463
463
cd site
464
464
yarn run format:write ../docs/api ../docs/manifest.json ../coderd/apidoc/swagger.json
Original file line number Diff line number Diff line change @@ -531,10 +531,12 @@ const docTemplate = `{
531
531
"type": "object",
532
532
"properties": {
533
533
"p50": {
534
- "type": "integer"
534
+ "type": "integer",
535
+ "example": 123
535
536
},
536
537
"p95": {
537
- "type": "integer"
538
+ "type": "integer",
539
+ "example": 146
538
540
}
539
541
}
540
542
},
Original file line number Diff line number Diff line change 486
486
"type" : " object" ,
487
487
"properties" : {
488
488
"p50" : {
489
- "type" : " integer"
489
+ "type" : " integer" ,
490
+ "example" : 123
490
491
},
491
492
"p95" : {
492
- "type" : " integer"
493
+ "type" : " integer" ,
494
+ "example" : 146
493
495
}
494
496
}
495
497
},
Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ type Template struct {
36
36
}
37
37
38
38
type TransitionStats struct {
39
- P50 * int64
40
- P95 * int64
39
+ P50 * int64 `example:"123"`
40
+ P95 * int64 `example:"146"`
41
41
}
42
42
43
43
type TemplateBuildTimeStats map [WorkspaceTransition ]TransitionStats
Original file line number Diff line number Diff line change 161
161
"allow_user_cancel_workspace_jobs" : true ,
162
162
"build_time_stats" : {
163
163
"property1" : {
164
- "p50" : 0 ,
165
- "p95" : 0
164
+ "p50" : 123 ,
165
+ "p95" : 146
166
166
},
167
167
"property2" : {
168
- "p50" : 0 ,
169
- "p95" : 0
168
+ "p50" : 123 ,
169
+ "p95" : 146
170
170
}
171
171
},
172
172
"created_at" : " string" ,
212
212
``` json
213
213
{
214
214
"property1" : {
215
- "p50" : 0 ,
216
- "p95" : 0
215
+ "p50" : 123 ,
216
+ "p95" : 146
217
217
},
218
218
"property2" : {
219
- "p50" : 0 ,
220
- "p95" : 0
219
+ "p50" : 123 ,
220
+ "p95" : 146
221
221
}
222
222
}
223
223
```
232
232
233
233
``` json
234
234
{
235
- "p50" : 0 ,
236
- "p95" : 0
235
+ "p50" : 123 ,
236
+ "p95" : 146
237
237
}
238
238
```
239
239
Original file line number Diff line number Diff line change @@ -56,12 +56,12 @@ curl -X POST http://coder-server:8080/api/v2/organizations/{organization-id}/tem
56
56
"allow_user_cancel_workspace_jobs" : true ,
57
57
"build_time_stats" : {
58
58
"property1" : {
59
- "p50" : 0 ,
60
- "p95" : 0
59
+ "p50" : 123 ,
60
+ "p95" : 146
61
61
},
62
62
"property2" : {
63
- "p50" : 0 ,
64
- "p95" : 0
63
+ "p50" : 123 ,
64
+ "p95" : 146
65
65
}
66
66
},
67
67
"created_at" : " string" ,
@@ -119,12 +119,12 @@ curl -X GET http://coder-server:8080/api/v2/templates/{id} \
119
119
"allow_user_cancel_workspace_jobs" : true ,
120
120
"build_time_stats" : {
121
121
"property1" : {
122
- "p50" : 0 ,
123
- "p95" : 0
122
+ "p50" : 123 ,
123
+ "p95" : 146
124
124
},
125
125
"property2" : {
126
- "p50" : 0 ,
127
- "p95" : 0
126
+ "p50" : 123 ,
127
+ "p95" : 146
128
128
}
129
129
},
130
130
"created_at" : " string" ,
You can’t perform that action at this time.
0 commit comments