RoadmapShopEvents
Skip to main content

Home > @rushstack/heft > MetricsCollectorHooks

MetricsCollectorHooks class

Tap these hooks to record build metrics, to a file, for example.

Signature:

export declare class MetricsCollectorHooks 

Properties

PropertyModifiersTypeDescription
flushAsyncParallelHookThis hook is called when collected metrics should be flushed
flushAndTeardownAsyncParallelHookThis hook is called when collected metrics should be flushed and no more metrics will be collected.
recordMetricSyncHook<string, IMetricsData>This hook is called when a metric is recorded.