Skip to content

Commit 32a446b

Browse files
authored
Merge pull request #409 from RADAR-base/app-events
Add new RADAR questionnaire app events to schema
2 parents bd104fe + 75b0d5c commit 32a446b

File tree

1 file changed

+33
-2
lines changed

1 file changed

+33
-2
lines changed

commons/monitor/questionnaire/questionnaire_application_interaction_event.avsc

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,40 @@
77
{ "name": "time", "type": "double", "doc": "Device timestamp in UTC (s)." },
88
{ "name": "eventType", "type": {
99
"name": "InteractionEventType",
10-
"doc": "NOTIFICATION_OPEN = When a user presses the notification to open the app, APP_OPEN = When a user opens the app directly, QUESTIONNAIRE_STARTED = When a user starts a questionnaire, QUESTIONNAIRE_FINISHED = When a user completes a questionnaire, QUESTIONNAIRE_CANCELLED = When a user closes a questionnaire without completing it., QUESTIONNAIRE_TRIGGERED = When a data message triggers a new questionnaire.",
10+
"doc": "Interaction event types:\n- NOTIFICATION_OPEN: User taps notification to open the app\n- APP_OPEN: User opens the app directly\n- QUESTIONNAIRE_STARTED: User begins a questionnaire\n- QUESTIONNAIRE_FINISHED: User completes and submits a questionnaire\n- QUESTIONNAIRE_CANCELLED: User exits a questionnaire without submitting\n- OTHER: Event that does not match any known category\n- UNKNOWN: Event type could not be determined\n- RECORDING_STARTED: An embedded task/recording started (e.g., audio or sensor)\n- RECORDING_STOPPED: The embedded task/recording stopped normally\n- QR_CODE_SCANNED: A QR code was scanned in the app\n- RECORDING_ERROR: The embedded task/recording failed due to an error\n- HEALTHKIT_STARTED: HealthKit sync/import started\n- HEALTHKIT_FINISHED: HealthKit sync/import finished successfully\n- HEALTHKIT_ERROR: HealthKit sync/import failed\n- HEALTHKIT_RETRY: HealthKit sync/import was retried\n- HEALTHKIT_EXIT: User exited the HealthKit sync flow\n- HEALTHKIT_TIMEOUT: HealthKit sync/import timed out\n- SIGN_UP: User sign-up flow started or completed\n- SIGN_UP_FAIL: User sign-up failed validation or server-side checks\n- SIGN_UP_ERROR: Unexpected error during sign-up\n- PROTOCOL_CHANGE: Study protocol changed on device\n- APP_VERSION_CHANGE: App version changed after an update\n- TIMEZONE_CHANGE: Device timezone changed\n- CONFIG_ERROR: Client configuration error detected\n- APP_RESET: Full app reset performed\n- APP_RESET_PARTIAL: Partial app reset performed\n- NOTIFICATION_CANCELLED: Scheduled notification was cancelled\n- NOTIFICATION_REFRESHED: Notification content or schedule refreshed\n- NOTIFICATION_RESCHEDULED: Notification rescheduled\n- NOTIFICATION_TEST: Test notification event.",
1111
"type": "enum",
12-
"symbols": ["NOTIFICATION_OPEN", "APP_OPEN", "QUESTIONNAIRE_STARTED", "QUESTIONNAIRE_FINISHED", "QUESTIONNAIRE_CANCELLED", "OTHER", "UNKNOWN", "RECORDING_STARTED", "RECORDING_STOPPED", "QUESTIONNAIRE_TRIGGERED"]
12+
"symbols": [
13+
"NOTIFICATION_OPEN",
14+
"APP_OPEN",
15+
"QUESTIONNAIRE_STARTED",
16+
"QUESTIONNAIRE_FINISHED",
17+
"QUESTIONNAIRE_CANCELLED",
18+
"OTHER",
19+
"UNKNOWN",
20+
"RECORDING_STARTED",
21+
"RECORDING_STOPPED",
22+
"QR_CODE_SCANNED",
23+
"RECORDING_ERROR",
24+
"HEALTHKIT_STARTED",
25+
"HEALTHKIT_FINISHED",
26+
"HEALTHKIT_ERROR",
27+
"HEALTHKIT_RETRY",
28+
"HEALTHKIT_EXIT",
29+
"HEALTHKIT_TIMEOUT",
30+
"SIGN_UP",
31+
"SIGN_UP_FAIL",
32+
"SIGN_UP_ERROR",
33+
"PROTOCOL_CHANGE",
34+
"APP_VERSION_CHANGE",
35+
"TIMEZONE_CHANGE",
36+
"CONFIG_ERROR",
37+
"APP_RESET",
38+
"APP_RESET_PARTIAL",
39+
"NOTIFICATION_CANCELLED",
40+
"NOTIFICATION_REFRESHED",
41+
"NOTIFICATION_RESCHEDULED",
42+
"NOTIFICATION_TEST"
43+
]
1344
},
1445
"doc": "Questionnaire app activity usage event type.",
1546
"default": "UNKNOWN"

0 commit comments

Comments
 (0)