-
Notifications
You must be signed in to change notification settings - Fork 98
/
Copy pathcontainer_log.schema.json
45 lines (45 loc) · 1.54 KB
/
container_log.schema.json
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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "container_log.schema.json",
"title": "Container Log Request",
"descriptions": "Container Log Request used in Rapid Recommendations",
"examples": [
{
"namespace": "openshift-etcd",
"pod_name_regex": ".*",
"messages": [
"wal:\\ max\\ entry\\ size\\ limit\\ exceeded"
]
}
],
"type": "object",
"required": [
"namespace",
"pod_name_regex",
"messages"
],
"properties": {
"namespace": {
"type": "string",
"description": "OpenShift namespace name",
"pattern": "^openshift-[a-zA-Z0-9_.-]{1,128}$|^kube-[a-zA-Z0-9_.-]{1,128}$"
},
"pod_name_regex": {
"type": "string",
"description": "Regular expression used to find matching Pods"
},
"messages": {
"type": "array",
"description": "The list of regular expressions used to filter the container logs",
"uniqueItems": false,
"items": {
"type": "string",
"description": "Regular expression used to filter the container log. The collected data will include all lines matching the regular expression (as implemented by https://pkg.go.dev/regexp#Regexp.Match)."
}
},
"previous": {
"type": "boolean",
"description": "Flag to distinguish filtering of the previous container's log"
}
}
}