Rush StackShopBlogEvents
Skip to main content

Home > @microsoft/rush-lib > ITelemetryOperationResult

ITelemetryOperationResult interface

This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Signature:

export interface ITelemetryOperationResult 

Properties

Property

Modifiers

Type

Description

dependencies

string[]

(BETA) The names of operations that this operation depends on.

endTimestampMs?

number

(BETA) (Optional) A timestamp in milliseconds (from performance.now()) when the operation finished. If the operation was blocked, will be undefined.

nonCachedDurationMs?

number

(BETA) (Optional) Duration in milliseconds when the operation does not hit cache

result

string

(BETA) The status code for the operation.

startTimestampMs?

number

(BETA) (Optional) A timestamp in milliseconds (from performance.now()) when the operation started. If the operation was blocked, will be undefined.

wasExecutedOnThisMachine?

boolean

(BETA) (Optional) Was this operation built on this machine? If so, the duration can be calculated from startTimestampMs and endTimestampMs. If not, you should use the metrics from the machine that built it.