-
Notifications
You must be signed in to change notification settings - Fork 9
/
schema.json
166 lines (166 loc) · 5.75 KB
/
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
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
{
"$id": "https://raw.githubusercontent.com/temporalio/roadrunner-temporal/refs/heads/master/schema.json",
"$schema": "https://json-schema.org/draft/2019-09/schema",
"description": "All the valid configuration parameters for the Temporal plugin for RoadRunner.",
"type": "object",
"title": "roadrunner-temporal",
"additionalProperties": false,
"properties": {
"address": {
"description": "Address of the Temporal server. Defaults to localhost:7233 if not provided.",
"type": "string",
"default": "localhost:7233",
"minLength": 1
},
"cache_size": {
"description": "Sticky cache size. Sticky workflow execution is the affinity between workflow tasks of a specific workflow execution to a specific worker. The benefit of sticky execution is that the workflow does not have to reconstruct state by replaying history from the beginning. The cache is shared between workers running within same process. This must be called before any worker is started. If not called, the default size of 10K (which may change) will be used.",
"type": "integer",
"default": 10000
},
"namespace": {
"description": "Namespace for this client to work with.",
"type": "string",
"default": "default"
},
"metrics": {
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"driver": {
"description": "The Prometheus driver.",
"type": "string",
"enum": [
"prometheus"
]
},
"prometheus": {
"$ref": "#/$defs/Prometheus"
}
}
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"driver": {
"description": "The Statsd driver.",
"type": "string",
"enum": [
"statsd"
]
},
"statsd": {
"$ref": "#/$defs/Statsd"
}
}
}
]
},
"activities": {
"$ref": "https://raw.githubusercontent.com/roadrunner-server/pool/refs/heads/master/schema.json"
},
"tls": {
"description": "Temporal TLS configuration.",
"type": "object",
"required": [
"key",
"cert"
],
"properties": {
"key": {
"$ref": "https://raw.githubusercontent.com/roadrunner-server/http/refs/heads/master/schema.json#/$defs/SSL/properties/key"
},
"cert": {
"$ref": "https://raw.githubusercontent.com/roadrunner-server/http/refs/heads/master/schema.json#/$defs/SSL/properties/cert"
},
"root_ca": {
"$ref": "https://raw.githubusercontent.com/roadrunner-server/http/refs/heads/master/schema.json#/$defs/SSL/properties/root_ca"
},
"client_auth_type": {
"$ref": "https://raw.githubusercontent.com/roadrunner-server/http/refs/heads/master/schema.json#/$defs/ClientAuthType"
},
"server_name": {
"description": "ServerName is used to verify the hostname on the returned certificates unless InsecureSkipVerify is given. It is also included in the client's handshake to support virtual hosting unless it is an IP address.",
"type": "string"
}
}
}
},
"$defs": {
"Statsd": {
"type": "object",
"description": "Properties for Temporal Statsd integration.",
"additionalProperties": false,
"properties": {
"host_port": {
"description": "The host and port of the statsd server.",
"type": "string",
"default": "127.0.0.1:8125",
"minLength": 1
},
"prefix": {
"description": "The prefix to use in reporting to statsd.",
"type": "string"
},
"flush_interval": {
"description": "The maximum interval between sending packets.",
"$ref": "https://raw.githubusercontent.com/roadrunner-server/roadrunner/refs/heads/master/schemas/config/3.0.schema.json#/definitions/Duration",
"default": "1s"
},
"flush_bytes": {
"description": "The maximum UDP packet size you wish to send. Defaults to 1432 bytes if zero or undefined, which is considered safe for local traffic.",
"type": "integer",
"default": 1432
},
"tags": {
"description": "A map of tags consisting of keys and values.",
"type": "object",
"minProperties": 1,
"additionalProperties": false,
"patternProperties": {
"^[a-zA-Z0-9._-]+$": {
"type": "string",
"minLength": 1
}
}
},
"tag_prefix": {
"description": "Prefix for the tags.",
"type": "string"
},
"tag_separator": {
"description": "The tag separator allows tags to be appended with a separator. If not specified, tag keys and values are embedded in the stat name directly.",
"type": "string"
}
}
},
"Prometheus": {
"type": "object",
"description": "Properties for Temporal Prometheus integration.",
"additionalProperties": false,
"properties": {
"address": {
"description": "Server metrics address.",
"type": "string",
"default": "127.0.0.1:9091",
"minLength": 1
},
"type": {
"type": "string",
"description": "Metrics type to use. Defaults to `summary`.",
"enum": [
"summary",
"histogram"
],
"default": "summary"
},
"prefix": {
"description": "Temporal metrics prefix.",
"type": "string"
}
}
}
}
}