Skip to content

Commit

Permalink
Support GeoLite2 City event properties in UI (#3894)
Browse files Browse the repository at this point in the history
* Support GeoLite2 City event properties in UI

* Improve property value examples

* Prepend geoip_ to added event property keys

* Improve wording
  • Loading branch information
Twixes authored Apr 7, 2021
1 parent e068568 commit c7ca412
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions frontend/src/lib/components/PropertyKeyInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,63 @@ export const keyMapping = {
examples: ['16ff262c4301e5-0aa346c03894bc-39667c0e-1aeaa0-16ff262c431767'],
hide: true,
},

// GeoIP
$geoip_city_name: {
label: 'City Name',
description: `Name of the city matched to this event's IP address.`,
examples: ['Sydney', 'Chennai'],
},
$geoip_country_name: {
label: 'Country Name',
description: `Name of the country matched to this event's IP address.`,
examples: ['Australia', 'India'],
},
$geoip_country_code: {
label: 'Country Code',
description: `Code of the country matched to this event's IP address.`,
examples: ['AU', 'IN'],
},
$geoip_continent_name: {
label: 'Continent Code',
description: `Name of the continent matched to this event's IP address.`,
examples: ['Oceania', 'Asia'],
},
$geoip_continent_code: {
label: 'Continent Code',
description: `Code of the continent matched to this event's IP address.`,
examples: ['OC', 'AS'],
},
$geoip_postal_code: {
label: 'Postal Code',
description: `Approximated postal code matched to this event's IP address.`,
examples: ['2000', '600004'],
},
$geoip_latitude: {
label: 'Latitude',
description: `Approximated latitude matched to this event's IP address.`,
examples: [-33.8591, 13.1337],
},
$geoip_longitude: {
label: 'Longitude',
description: `Approximated longitude matched to this event's IP address.`,
examples: [151.2, 80.8008],
},
$geoip_time_zone: {
label: 'Timezone',
description: `Timezone matched to this event's IP address.`,
examples: ['Australia/Sydney', 'Asia/Kolkata'],
},
$geoip_subdivision_1_name: {
label: 'Subdivision Name',
description: `Name of the subdivision matched to this event's IP address.`,
examples: ['New South Wales', 'Tamil Nadu'],
},
$geoip_subdivision_1_code: {
label: 'Subdivision Code',
description: `Code of the subdivision matched to this event's IP address.`,
examples: ['NSW', 'TN'],
},
},
element: {
tag_name: {
Expand Down

0 comments on commit c7ca412

Please sign in to comment.