1# Chrome histogram hashes translation rules 2packet { 3 translation_table { 4 chrome_user_event { 5 action_hash_to_name { key: 10 value: "action1" } 6 action_hash_to_name { key: 20 value: "action2" } 7 } 8 } 9} 10# Known action hash, should be translated to a name 11packet { 12 trusted_packet_sequence_id: 1 13 timestamp: 0 14 incremental_state_cleared: true 15 track_event { 16 categories: "cat1" 17 type: 3 18 name_iid: 1 19 chrome_user_event { 20 action_hash: 10 21 } 22 } 23} 24# Another known hash, should be translated to a name 25packet { 26 trusted_packet_sequence_id: 1 27 timestamp: 0 28 incremental_state_cleared: true 29 track_event { 30 categories: "cat2" 31 type: 3 32 name_iid: 2 33 chrome_user_event { 34 action_hash: 20 35 } 36 } 37} 38# Unknown hash, should not be translated to any name 39packet { 40 trusted_packet_sequence_id: 1 41 timestamp: 0 42 incremental_state_cleared: true 43 track_event { 44 categories: "cat3" 45 type: 3 46 name_iid: 3 47 chrome_user_event { 48 action_hash: 30 49 } 50 } 51} 52 53