user_event_ping.schema.json (1557B)
1 { 2 "$schema": "http://json-schema.org/draft-07/schema#", 3 "$id": "browser/extensions/newtab/test/schemas/user_event_ping.schema.json", 4 "title": "User event PingCentre ping", 5 "type": "object", 6 "properties": { 7 "client_id": { 8 "type": "string" 9 }, 10 "addon_version": { 11 "type": "string" 12 }, 13 "locale": { 14 "type": "string" 15 }, 16 "session_id": { 17 "type": "string" 18 }, 19 "page": { 20 "type": "string", 21 "enum": ["about:home", "about:newtab", "about:welcome", "both", "unknown"] 22 }, 23 "user_prefs": { 24 "type": "integer" 25 }, 26 "source": { 27 "type": "string" 28 }, 29 "event": { 30 "type": "string" 31 }, 32 "action": { 33 "type": "string", 34 "enum": ["activity_stream_user_event"] 35 }, 36 "metadata_source": { 37 "type": "string" 38 }, 39 "highlight_type": { 40 "type": "string", 41 "enum": ["bookmarks", "recommendation", "history"] 42 }, 43 "recommender_type": { 44 "type": "string" 45 }, 46 "value": { 47 "type": "object", 48 "properties": { 49 "newtab_url_category": { 50 "type": "string" 51 }, 52 "newtab_extension_id": { 53 "type": "string" 54 }, 55 "home_url_category": { 56 "type": "string" 57 }, 58 "home_extension_id": { 59 "type": "string" 60 } 61 }, 62 "additionalProperties": false 63 } 64 }, 65 "required": [ 66 "addon_version", 67 "locale", 68 "session_id", 69 "page", 70 "user_prefs", 71 "event", 72 "action" 73 ], 74 "additionalProperties": false 75 }