Mozilla Telemetry Data Normalization Module

1. Functions

1.1. build

Returns the environment.build JSON object as a Lua table.

1.2. system

Returns the environment.system JSON object as a Lua table.

1.3. addons

Returns the environment.addons JSON object as a Lua table.

1.4. num_active_addons

Returns the number of active addons.

1.5. flash_version

Returns the flash version or nil if not available.

1.6. settings

Returns the environment.settings JSON object as a Lua table.

1.7. is_default_browser

Returns true if Firefox is the default browser.

1.8. profile_creation_timestamp

Returns the profile creation timestamp in nano seconds since Jan 1, 1970.

1.9. khist

Returns the payload.keyedHistograms JSON object as a Lua table.

1.10. khist_sum

Arguments

  • section (string)
  • key (string

Return

  • sum (number) - returns the sum of the histogram values for the specified section/key

1.11. info

Returns the payload.info JSON object as a Lua table.

1.12. hours

Returns the subsession uptime in hours (e.g. 1.25).

1.13. payload

Returns the message payload JSON object as a Lua table.

1.14. get_timestamp

Arguments

  • timestring (string) - rfc3339 or crash date format

Return

  • timestamp (number) - timestamp in nano seconds since Jan 1, 1970

1.15. get_date

Arguments

  • timestring (string) - crash date format

Return

  • date (string) - YY-MM-DD

source code: ping.lua

results matching ""

    No results matching ""