-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrunloop-executions-api-openapi.yml
More file actions
130 lines (130 loc) · 3.66 KB
/
runloop-executions-api-openapi.yml
File metadata and controls
130 lines (130 loc) · 3.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
openapi: 3.0.3
info:
title: Runloop Executions API
version: '0.1'
description: Stream stdout and stderr updates from in-flight Devbox executions in real time. Use alongside the Devbox execute
endpoints for long-running command output capture.
contact:
name: Runloop AI Support
url: https://runloop.ai
email: support@runloop.ai
servers:
- url: https://api.runloop.ai
description: Runloop API
variables: {}
tags:
- name: executions
paths:
/v1/devboxes/{devbox_id}/executions/{execution_id}/stream_stderr_updates:
get:
tags:
- executions
- streaming
summary: Tails the stderr logs for the given execution with SSE streaming
description: Tails the stderr logs for the given execution with SSE streaming
operationId: streamStdErrUpdates
parameters:
- name: devbox_id
in: path
description: The ID of the devbox.
required: true
deprecated: false
allowEmptyValue: false
schema:
type: string
- name: execution_id
in: path
description: The ID of the execution.
required: true
deprecated: false
allowEmptyValue: false
schema:
type: string
- name: offset
in: query
description: The byte offset to start the stream from (if unspecified, starts from the beginning of the stream)
required: false
deprecated: false
allowEmptyValue: true
schema:
type: string
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ExecUpdateChunkView'
headers:
Content-Type:
description: text/event-stream
schema:
type: string
deprecated: false
/v1/devboxes/{devbox_id}/executions/{execution_id}/stream_stdout_updates:
get:
tags:
- executions
- streaming
summary: Tails the stdout logs for the given execution with SSE streaming
description: Tails the stdout logs for the given execution with SSE streaming
operationId: streamStdOutUpdates
parameters:
- name: devbox_id
in: path
description: The ID of the devbox.
required: true
deprecated: false
allowEmptyValue: false
schema:
type: string
- name: execution_id
in: path
description: The ID of the execution.
required: true
deprecated: false
allowEmptyValue: false
schema:
type: string
- name: offset
in: query
description: The byte offset to start the stream from (if unspecified, starts from the beginning of the stream)
required: false
deprecated: false
allowEmptyValue: true
schema:
type: string
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ExecUpdateChunkView'
headers:
Content-Type:
description: text/event-stream
schema:
type: string
deprecated: false
components:
schemas:
ExecUpdateChunkView:
type: object
additionalProperties: false
properties:
offset:
type: integer
format: int64
description: The byte offset of this chunk of log stream.
output:
type: string
description: The latest log stream chunk.
required:
- output
securitySchemes:
bearerAuth:
scheme: bearer
type: http
security:
- bearerAuth: []