Skip to content

Commit e3a4b2c

Browse files
committed
Fix gen
1 parent cc715cd commit e3a4b2c

File tree

8 files changed

+134
-21
lines changed

8 files changed

+134
-21
lines changed

coderd/apidoc/docs.go

+28-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/apidoc/swagger.json

+28-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/database/migrations/000109_add_startup_logs.down.sql

-2
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
DROP TABLE workspace_agent_startup_logs;
2+
ALTER TABLE ONLY workspace_agents
3+
DROP COLUMN startup_logs_length,
4+
DROP COLUMN startup_logs_overflowed;

docs/api/agents.md

+55
Original file line numberDiff line numberDiff line change
@@ -718,3 +718,58 @@ curl -X GET http://coder-server:8080/api/v2/workspaceagents/{workspaceagent}/pty
718718
| 101 | [Switching Protocols](https://tools.ietf.org/html/rfc7231#section-6.2.2) | Switching Protocols | |
719719

720720
To perform this operation, you must be authenticated. [Learn more](authentication.md).
721+
722+
## Get startup logs by workspace agent
723+
724+
### Code samples
725+
726+
```shell
727+
# Example request using curl
728+
curl -X GET http://coder-server:8080/api/v2/workspaceagents/{workspaceagent}/startup-logs \
729+
-H 'Accept: application/json' \
730+
-H 'Coder-Session-Token: API_KEY'
731+
```
732+
733+
`GET /workspaceagents/{workspaceagent}/startup-logs`
734+
735+
### Parameters
736+
737+
| Name | In | Type | Required | Description |
738+
| ---------------- | ----- | ------------ | -------- | ------------------ |
739+
| `workspaceagent` | path | string(uuid) | true | Workspace agent ID |
740+
| `before` | query | integer | false | Before log id |
741+
| `after` | query | integer | false | After log id |
742+
| `follow` | query | boolean | false | Follow log stream |
743+
744+
### Example responses
745+
746+
> 200 Response
747+
748+
```json
749+
[
750+
{
751+
"created_at": "2019-08-24T14:15:22Z",
752+
"id": 0,
753+
"output": "string"
754+
}
755+
]
756+
```
757+
758+
### Responses
759+
760+
| Status | Meaning | Description | Schema |
761+
| ------ | ------------------------------------------------------- | ----------- | ----------------------------------------------------------------------------------------- |
762+
| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | OK | array of [codersdk.WorkspaceAgentStartupLog](schemas.md#codersdkworkspaceagentstartuplog) |
763+
764+
<h3 id="get-startup-logs-by-workspace-agent-responseschema">Response Schema</h3>
765+
766+
Status Code **200**
767+
768+
| Name | Type | Required | Restrictions | Description |
769+
| -------------- | ----------------- | -------- | ------------ | ----------- |
770+
| `[array item]` | array | false | | |
771+
| `» created_at` | string(date-time) | false | | |
772+
| `» id` | integer | false | | |
773+
| `» output` | string | false | | |
774+
775+
To perform this operation, you must be authenticated. [Learn more](authentication.md).

docs/api/schemas.md

+18
Original file line numberDiff line numberDiff line change
@@ -4630,6 +4630,24 @@ Parameter represents a set value for the scope.
46304630
| ------- | ------------------------------------------------------------------------------------- | -------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
46314631
| `ports` | array of [codersdk.WorkspaceAgentListeningPort](#codersdkworkspaceagentlisteningport) | false | | If there are no ports in the list, nothing should be displayed in the UI. There must not be a "no ports available" message or anything similar, as there will always be no ports displayed on platforms where our port detection logic is unsupported. |
46324632

4633+
## codersdk.WorkspaceAgentStartupLog
4634+
4635+
```json
4636+
{
4637+
"created_at": "2019-08-24T14:15:22Z",
4638+
"id": 0,
4639+
"output": "string"
4640+
}
4641+
```
4642+
4643+
### Properties
4644+
4645+
| Name | Type | Required | Restrictions | Description |
4646+
| ------------ | ------- | -------- | ------------ | ----------- |
4647+
| `created_at` | string | false | | |
4648+
| `id` | integer | false | | |
4649+
| `output` | string | false | | |
4650+
46334651
## codersdk.WorkspaceAgentStatus
46344652

46354653
```json

site/src/components/Resources/AgentRow.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818
useLayoutEffect,
1919
useMemo,
2020
useRef,
21-
useState
21+
useState,
2222
} from "react"
2323
import { useTranslation } from "react-i18next"
2424
import { Prism as SyntaxHighlighter } from "react-syntax-highlighter"

0 commit comments

Comments
 (0)