-
Notifications
You must be signed in to change notification settings - Fork 67
/
triggers.yaml
49 lines (47 loc) 路 1.36 KB
/
triggers.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
openapi: 3.0.0
components:
schemas:
Trigger:
type: object
properties:
type:
type: string
enum: ["http", "grpc", "traceid", "kafka"]
httpRequest:
$ref: "./http.yaml#/components/schemas/HTTPRequest"
grpc:
$ref: "./grpc.yaml#/components/schemas/GRPCRequest"
traceid:
$ref: "./traceid.yaml#/components/schemas/TRACEIDRequest"
kafka:
$ref: "./kafka.yaml#/components/schemas/KafkaRequest"
TriggerResult:
type: object
properties:
type:
type: string
enum: ["http", "grpc", "traceid", "kafka"]
triggerResult:
type: object
properties:
http:
$ref: "./http.yaml#/components/schemas/HTTPResponse"
grpc:
$ref: "./grpc.yaml#/components/schemas/GRPCResponse"
traceid:
$ref: "./traceid.yaml#/components/schemas/TRACEIDResponse"
kafka:
$ref: "./kafka.yaml#/components/schemas/KafkaResponse"
error:
$ref: "#/components/schemas/TriggerError"
TriggerError:
type: object
properties:
connectionError:
type: boolean
runningOnContainer:
type: boolean
targetsLocalhost:
type: boolean
message:
type: string