Mozilla Telemetry Data Normalization Module

1. Functions

1.1. channel

Returns the channel name as one of the standardized reporting types: e.g., "release", "nightly" etc...

Arguments

  • name (string) - channel name to normalize

Return

  • nname (string) - normalized channel name

1.2. get_channel_count

Arguments

  • none

Return

  • count (integer) - number of channel categories

1.3. get_channel_name

Arguments

  • id (number)

Return

  • name (string) - channel name corresponding to the numeric id

1.4. get_channel_id

Arguments

  • name (string)

Return

  • id (integer) - channel id corresponding to the human readable name

1.5. os

Returns the OS name as one of the standardized reporting types: e.g., "Windows", "Mac" etc...

Arguments

  • name (string) - OS name to normalize

Return

  • nname (string) - normalized OS name

1.6. get_os_count

Arguments

  • none

Return

  • count (integer) - number of OS categories

1.7. get_os_name

Arguments

  • id (number)

Return

  • name (string) - OS name corresponding to the numeric id

1.8. get_os_win_count

Arguments

  • none

Return

  • count (integer) - number of Window OS categories

1.9. get_os_win_name

Arguments

  • id (number)

Return

  • name (string) - Windows OS name corresponding to the numeric id

1.10. get_os_id

Arguments

  • name (string)

Return

  • id (integer) - OS id corresponding to the human readable name

1.11. get_os_win_id

Arguments

  • version (string)

Return

  • id (integer) - Windows OS id corresponding to the human readable name

1.12. country

Returns the country code as an ISO 3166 two character country code. See: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2

Arguments

  • country (string) - country code to map

Return

  • cc (string) - valid country code or 'Other' on no match

1.13. get_country_count

Arguments

  • none

Return

  • count (integer) - number of country codes

1.14. get_country_name

Arguments

  • id (number)

Return

  • name (string) - country name corresponding to the numeric id

1.15. get_country_id

Arguments

  • name (string)

Return

  • id (integer) - country id corresponding to the human readable name

1.16. get_boolean_value(v)

Arguments

  • any

Return

  • bool (boolean) - returns true only when boolean value of true was passed in

source code: normalize.lua

results matching ""

    No results matching ""