Confirmed users
632
edits
| Line 173: | Line 173: | ||
=== Index Format === | === Index Format === | ||
The "index.txt" file MUST be the first file in the ZIP file, and MUST use compression method of "stored" (uncompressed). This can be easily achieved by passing a compression level of 0 to [https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsIZipWriter nsIZipWriter] for this file. These properties are critical to allow for rapid indexing of the reports. | The "index.txt" file MUST be the first file in the ZIP file, and MUST use compression method of "stored" (uncompressed). This can be easily achieved by passing a compression level of 0 to [https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsIZipWriter nsIZipWriter] for this file. These properties are critical to allow for rapid indexing of the reports. | ||
The report IDs will be formed by appending a UUID to the string "le-". | |||
The index file is a JSON object with the following fields: | The index file is a JSON object with the following fields: | ||
* '''id''': | * '''id''': ID of report (must match ZIP filename) | ||
* '''timestamp''': Date of report submission, in seconds past the epoch | * '''timestamp''': Date of report submission, in seconds past the epoch | ||
* '''phase''': Indicates what state the call was in when the user indicated an issue. | * '''phase''': Indicates what state the call was in when the user indicated an issue. | ||
| Line 219: | Line 221: | ||
{ | { | ||
"id": "4b42e9ff-5406-4839-90f5-3ccb121ec1a7", | "id": "le-4b42e9ff-5406-4839-90f5-3ccb121ec1a7", | ||
"timestamp": "1407784618", | "timestamp": "1407784618", | ||
"phase": "midcall", | "phase": "midcall", | ||