forked from RedHatInsights/playbook-dispatcher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ansibleRunnerJobEvent.yaml
53 lines (51 loc) · 1.09 KB
/
ansibleRunnerJobEvent.yaml
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
# This schema captures the shape of events produced by ansible runner
# https://ansible-runner.readthedocs.io/en/stable/intro.html#runner-artifact-job-events-host-and-playbook-events
# This schema does not aim to be complete - it only captures used by playbook-dispatcher
---
$id: ansibleRunnerJobEvent
$schema: http://json-schema.org/draft-07/schema#
type: object
properties:
event:
type: string
minLength: 3
maxLength: 50
uuid:
type: string
format: uuid
counter:
type: integer
stdout:
type:
- string
- "null"
start_line:
type: integer
minimum: 0
end_line:
type: integer
minimum: 0
event_data:
type: object
properties:
playbook:
type: string
minLength: 1
playbook_uuid:
type: string
format: uuid
host:
type: string
crc_dispatcher_correlation_id:
type: string
format: uuid
crc_dispatcher_error_code:
type: string
crc_dispatcher_error_details:
type: string
required:
- event
- uuid
- counter
- start_line
- end_line