mirror of
https://github.com/github/codeql-action.git
synced 2025-12-30 03:00:13 +08:00
22 lines
1.0 KiB
TypeScript
22 lines
1.0 KiB
TypeScript
/**
|
|
* Status Reporter that displays information about the progress/status of an artifact that is being uploaded or downloaded
|
|
*
|
|
* Variable display time that can be adjusted using the displayFrequencyInMilliseconds variable
|
|
* The total status of the upload/download gets displayed according to this value
|
|
* If there is a large file that is being uploaded, extra information about the individual status can also be displayed using the updateLargeFileStatus function
|
|
*/
|
|
export declare class StatusReporter {
|
|
private totalNumberOfFilesToProcess;
|
|
private processedCount;
|
|
private displayFrequencyInMilliseconds;
|
|
private largeFiles;
|
|
private totalFileStatus;
|
|
constructor(displayFrequencyInMilliseconds: number);
|
|
setTotalNumberOfFilesToProcess(fileTotal: number): void;
|
|
start(): void;
|
|
updateLargeFileStatus(fileName: string, chunkStartIndex: number, chunkEndIndex: number, totalUploadFileSize: number): void;
|
|
stop(): void;
|
|
incrementProcessedCount(): void;
|
|
private formatPercentage;
|
|
}
|