Add query-filters to the init complete status report
This commit is contained in:
parent
a6c4760357
commit
25d25968e6
1 changed files with 3 additions and 0 deletions
|
|
@ -93,6 +93,8 @@ interface InitWithConfigStatusReport extends InitStatusReport {
|
||||||
trap_cache_download_size_bytes: number;
|
trap_cache_download_size_bytes: number;
|
||||||
/** Time taken to download TRAP caches, in milliseconds. */
|
/** Time taken to download TRAP caches, in milliseconds. */
|
||||||
trap_cache_download_duration_ms: number;
|
trap_cache_download_duration_ms: number;
|
||||||
|
/** Stringified JSON object representing a query-filters, from the 'query-filters' config field. **/
|
||||||
|
query_filters: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Fields of the init status report populated when the tools source is `download`. */
|
/** Fields of the init status report populated when the tools source is `download`. */
|
||||||
|
|
@ -207,6 +209,7 @@ async function sendCompletedStatusReport(
|
||||||
await getTotalCacheSize(config.trapCaches, logger),
|
await getTotalCacheSize(config.trapCaches, logger),
|
||||||
),
|
),
|
||||||
trap_cache_download_duration_ms: Math.round(config.trapCacheDownloadTime),
|
trap_cache_download_duration_ms: Math.round(config.trapCacheDownloadTime),
|
||||||
|
query_filters: JSON.stringify(config.originalUserInput["query-filters"]),
|
||||||
};
|
};
|
||||||
await sendStatusReport({
|
await sendStatusReport({
|
||||||
...initWithConfigStatusReport,
|
...initWithConfigStatusReport,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue