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

Commite3a4b2c

Browse files
committed
Fix gen
1 parentcc715cd commite3a4b2c

File tree

8 files changed

+134
-21
lines changed

8 files changed

+134
-21
lines changed

‎coderd/apidoc/docs.go

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

‎coderd/apidoc/swagger.json

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

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

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
DROPTABLE workspace_agent_startup_logs;
2+
ALTERTABLE ONLY workspace_agents
3+
DROP COLUMN startup_logs_length,
4+
DROP COLUMN startup_logs_overflowed;

‎docs/api/agents.md

Lines changed: 55 additions & 0 deletions
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+
<h3id="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

Lines changed: 18 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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{PrismasSyntaxHighlighter}from"react-syntax-highlighter"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp