We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4421b46 commit c991528Copy full SHA for c991528
coderd/workspacehistorylogs.go
@@ -29,6 +29,13 @@ type WorkspaceHistoryLog struct {
29
Output string `json:"output"`
30
}
31
32
+// Returns workspace history logs based on query parameters.
33
+// The intended usage for a client to stream all logs (with JS API):
34
+// const timestamp = new Date().getTime();
35
+// 1. GET /logs?before=<timestamp>
36
+// 2. GET /logs?after=<timestamp>&follow
37
+// The combination of these responses should provide all current logs
38
+// to the consumer, and future logs are streamed in the follow request.
39
func (api *api) workspaceHistoryLogsByName(rw http.ResponseWriter, r *http.Request) {
40
follow := r.URL.Query().Has("follow")
41
afterRaw := r.URL.Query().Get("after")
0 commit comments