You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The phone usage event stream uses an internal cache of 1 million elements, which may take about 50 MB of memory. Adjust `org.radarcns.stream.phone.PhoneUsageStream.MAX_CACHE_SIZE` to change it.
74
77
75
78
### RADAR-backend monitors
@@ -111,11 +114,45 @@ To get email notifications for Empatica E4 battery status, an email server witho
111
114
topics:
112
115
- android_empatica_e4_temperature
113
116
```
117
+
118
+
3. For Source Statistics monitors, configure what source topics to monitor to output some basic output statistics (like last time seen)
119
+
120
+
```yaml
121
+
statistics_monitors:
122
+
# Human readable monitor name
123
+
- name: Empatica E4
124
+
# topics to aggregate. This can take any number of topics that may
125
+
# lead to slightly different statistics
126
+
topics:
127
+
- android_empatica_e4_blood_volume_pulse_1min
128
+
# Topic to write results to. This should follow the convention
129
+
# source_statistics_[provider]_[model] with produer and model as
130
+
# defined in RADAR-Schemas
131
+
output_topic: source_statistics_empatica_e4
132
+
# Maximum batch size to aggregate before sending results.
133
+
# Defaults to 1000.
134
+
max_batch_size: 500
135
+
# Flush timeout in milliseconds. If the batch size is not larger than
136
+
# max_batch_size for this amount of time, the current batch is
137
+
# forcefully flushed to the output topic.
138
+
# Defaults to 60000 = 1 minute.
139
+
flush_timeout: 15000
140
+
- name: Biovotion VSM1
141
+
topics:
142
+
- android_biovotion_vsm1_acceleration_1min
143
+
output_topic: source_statistics_biovotion_vsm1
144
+
- name: RADAR pRMT
145
+
topics:
146
+
- android_phone_acceleration_1min
147
+
- android_phone_bluetooth_devices
148
+
- android_phone_sms
149
+
output_topic: source_statistics_radar_prmt
150
+
```
114
151
115
-
3. Run `radarbackend.jar` with configured `radar.yml` and `monitor` argument
152
+
3. Run `radar-backend` with configured `radar.yml` and `monitor` argument
@@ -150,21 +187,33 @@ To get email notifications for Empatica E4 battery status, an email server witho
150
187
3. To generate data on some `backend_mock_empatica_e4_<>` topic with a number of devices, run (substitute `<num-devices>` with the needed number of devices):
The backend is [published to Docker Hub](https://hub.docker.com/r/radarcns/radar-backend-kafka). Mount a `/etc/radar.yml` file to configure either the streams or the monitor.
206
+
207
+
This image requires the following environment variable:
208
+
209
+
- `KAFKA_REST_PROXY`: a valid Rest-Proxy instance
210
+
- `KAFKA_SCHEMA_REGISTRY`: a valid Confluent Schema Registry.
211
+
- `KAFKA_BROKERS`: number of brokers expected (default: 3).
212
+
213
+
For a complete use case scenario, check the RADAR-CNS `docker-compose` file available [here](https://github.com/RADAR-CNS/RADAR-Docker/blob/backend-integration/dcompose-stack/radar-cp-hadoop-stack/docker-compose.yml)
166
214
167
215
## Contributing
216
+
168
217
Code should be formatted using the [Google Java Code Style Guide](https://google.github.io/styleguide/javaguide.html).
169
218
If you want to contribute a feature or fix browse our [issues](https://github.com/RADAR-CNS/RADAR-Backend/issues), and please make a pull request.
0 commit comments