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
---
openapi: 3.1.0
info:
title: SimKube API
version: "1"
paths:
/export:
post:
summary: Export simulation data
requestBody:
required: true
content:
application/json:
schema:
type: object
title: export_request
required:
- start_ts
- end_ts
- export_path
- filters
properties:
start_ts:
type: integer
format: int64
end_ts:
type: integer
format: int64
export_path:
type: string
format: uri
# TODO - eventually want positive filters too
filters:
type: object
title: export_filters
required:
- excluded_namespaces
- excluded_labels
properties:
excluded_namespaces:
type: array
items:
type: string
excluded_labels:
type: array
items:
$ref: 'https://raw.githubusercontent.com/kubernetes/kubernetes/master/api/openapi-spec/v3/api__v1_openapi.json#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector' # yamllint disable-line rule:line-length
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
title: export_response
properties:
trace_data:
type: string
format: byte
'404':
description: Storage location not found
'500':
description: Tracer error
'502':
description: External storage provider error