summaryrefslogtreecommitdiff
path: root/toolkit/components/telemetry/docs/concepts/archiving.rst
blob: a2c57de43d7ac54840b2d228b41981562b5e77d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
=========
Archiving
=========

When archiving is enabled through the relevant pref (``toolkit.telemetry.archive.enabled``), pings submitted to ``TelemetryController`` are also stored locally in the user profile directory, in ``<profile-dir>/datareporting/archived``.

To allow for cheaper lookup of archived pings, storage follows a specific naming scheme for both the directory and the ping file name: `<YYYY-MM>/<timestamp>.<UUID>.<type>.jsonlz4`.

* ``<YYYY-MM>`` - The subdirectory name, generated from the ping creation date.
* ``<timestamp>`` - Timestamp of the ping creation date.
* ``<UUID>`` - The ping identifier.
* ``<type>`` - The ping type.