forked from quixio/iot-phone-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquix.yaml
308 lines (305 loc) · 8.81 KB
/
quix.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
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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
# Quix Project Descriptor
# This file describes the data pipeline and configuration of resources of a Quix Project.
metadata:
version: 1.0
# This section describes the Deployments of the data pipeline
deployments:
- name: QR Settings Share
application: QR Settings Share
deploymentType: Service
version: 2dabed24c24ec10f4601a1e5215d0c9791c11e64
resources:
cpu: 200
memory: 200
replicas: 1
publicAccess:
enabled: true
urlPrefix: qr-settings-share
desiredStatus: Stopped
variables:
- name: BearerToken
inputType: Secret
description: ''
required: true
value: qr_bearer
- name: Fleet console
application: FleetConsole
deploymentType: Service
version: 26a36d0
resources:
cpu: 200
memory: 200
replicas: 1
publicAccess:
enabled: true
urlPrefix: fleetconsole
desiredStatus: Stopped
variables:
- name: topic
inputType: FreeText
description: The topic to read telementry data from
required: true
value: phone-data
- name: eventTopic
inputType: FreeText
description: The topic to read events from
required: true
value: events
- name: ShakeDetection
application: ShakeDetection
deploymentType: Service
version: 6fc3a89
resources:
cpu: 500
memory: 500
replicas: 2
desiredStatus: Stopped
variables:
- name: input
inputType: InputTopic
description: Name of the input topic to listen to.
required: true
value: phone-data
- name: output
inputType: OutputTopic
description: Name of the output topic to write to.
required: true
value: events
- name: model
inputType: FreeText
description: ''
required: true
value: XGB_model_v1.8.pkl
- name: Splitter
application: Splitter
deploymentType: Service
version: 756dc29
resources:
cpu: 500
memory: 500
replicas: 1
desiredStatus: Stopped
variables:
- name: input
inputType: InputTopic
description: Name of the input topic to listen to.
required: true
value: phone-data
- name: gps_topic
inputType: OutputTopic
description: Name of the output topic to write to.
required: true
value: gps
- name: gforce_topic
inputType: OutputTopic
description: ''
required: true
value: gforce
- name: GForce InfluxDB Sink
application: InfluxDBSink
deploymentType: Service
version: ab9ca2cab7586f0cc936618bded59d763668546b
resources:
cpu: 500
memory: 500
replicas: 1
desiredStatus: Stopped
variables:
- name: input
inputType: InputTopic
description: This is the input topic
required: true
value: gforce
- name: INFLUXDB_HOST
inputType: FreeText
description: Host address for the InfluxDB instance.
required: true
value: eu-central-1-1.aws.cloud2.influxdata.com
- name: INFLUXDB_TOKEN
inputType: Secret
description: Authentication token to access InfluxDB.
required: true
value: influx_token
- name: INFLUXDB_ORG
inputType: FreeText
description: Organization name in InfluxDB.
required: false
value: Lemon
- name: INFLUXDB_DATABASE
inputType: FreeText
description: Database name in InfluxDB where data should be stored.
required: true
value: quix_demo
- name: INFLUXDB_TAG_COLUMNS
inputType: FreeText
description: Columns to be used as tags when writing data to InfluxDB.
required: false
value: "['TAG__rider', 'TAG__team', 'TAG__device_id', 'stream_id']"
- name: INFLUXDB_MEASUREMENT_NAME
inputType: FreeText
description: The InfluxDB measurement to write data to. If not specified, the name of the input topic will be used
required: false
value: gforce
- name: GPS InfluxDB Sink
application: InfluxDBSink
deploymentType: Service
version: ab9ca2cab7586f0cc936618bded59d763668546b
resources:
cpu: 500
memory: 500
replicas: 1
desiredStatus: Stopped
variables:
- name: input
inputType: InputTopic
description: This is the input topic
required: true
value: gps
- name: INFLUXDB_HOST
inputType: FreeText
description: Host address for the InfluxDB instance.
required: true
value: eu-central-1-1.aws.cloud2.influxdata.com
- name: INFLUXDB_TOKEN
inputType: Secret
description: Authentication token to access InfluxDB.
required: true
value: influx_token
- name: INFLUXDB_ORG
inputType: FreeText
description: Organization name in InfluxDB.
required: false
value: Lemon
- name: INFLUXDB_DATABASE
inputType: FreeText
description: Database name in InfluxDB where data should be stored.
required: true
value: quix_demo
- name: INFLUXDB_TAG_COLUMNS
inputType: FreeText
description: Columns to be used as tags when writing data to InfluxDB.
required: false
value: "['TAG__rider', 'TAG__team', 'TAG__device_id', 'stream_id']"
- name: INFLUXDB_MEASUREMENT_NAME
inputType: FreeText
description: The InfluxDB measurement to write data to. If not specified, the name of the input topic will be used
required: false
value: gps
- name: Model training
application: ModelTraining
deploymentType: Job
version: 756dc2946e53de1b7e6f6d36d32862ced878ef05
resources:
cpu: 500
memory: 500
replicas: 1
variables:
- name: INFLUXDB_HOST
inputType: FreeText
description: Host address for the InfluxDB instance.
required: true
value: eu-central-1-1.aws.cloud2.influxdata.com
- name: INFLUXDB_TOKEN
inputType: Secret
description: Authentication token to access InfluxDB.
required: true
value: influx_token
- name: INFLUXDB_ORG
inputType: FreeText
description: Organization name in InfluxDB.
required: true
value: Lemon
- name: INFLUXDB_DATABASE
inputType: FreeText
description: Database name in InfluxDB where data is stored.
required: true
value: quix_demo
- name: INFLUXDB_MEASUREMENT_NAME
inputType: FreeText
description: The InfluxDB measurement to read data from. If not specified, the name of the output topic will be used
required: false
value: gforce
- name: version
inputType: FreeText
description: ''
required: true
value: v1.9
- name: training
inputType: FreeText
description: ''
required: true
value: Tomas-S20-350c01,Tomas-S20-1d8fc9,Tomas-S20-b628c2
- name: testing
inputType: FreeText
description: ''
required: true
value: Tomas-S20-71fb86,Tomas-S20-f024fc
- name: ShakeDetection backtest
application: ShakeDetection
deploymentType: Service
version: 6fc3a89
resources:
cpu: 500
memory: 500
replicas: 1
desiredStatus: Stopped
variables:
- name: input
inputType: InputTopic
description: Name of the input topic to listen to.
required: true
value: phone-data-replay
- name: output
inputType: OutputTopic
description: Name of the output topic to write to.
required: true
value: events-replay
- name: model
inputType: FreeText
description: ''
required: true
value: XGB_model_v1.8.pkl
# This section describes the Topics of the data pipeline
topics:
- name: phone-data
persisted: true
configuration:
partitions: 2
replicationFactor: 2
retentionInMinutes: 10080
retentionInBytes: 52428800
- name: events
persisted: false
configuration:
partitions: 2
replicationFactor: 2
retentionInMinutes: 10080
retentionInBytes: 52428800
- name: gforce
persisted: true
configuration:
partitions: 2
replicationFactor: 2
retentionInMinutes: 10080
retentionInBytes: 52428800
- name: gps
persisted: true
configuration:
partitions: 2
replicationFactor: 2
retentionInMinutes: 10080
retentionInBytes: 52428800
- name: phone-data-replay
persisted: false
configuration:
partitions: 1
replicationFactor: 2
retentionInMinutes: 60
retentionInBytes: 52428800
- name: events-replay
persisted: true
configuration:
partitions: 1
replicationFactor: 2
retentionInMinutes: 60
retentionInBytes: 52428800