Home > @rushstack/heft > MetricsCollectorHooks
MetricsCollectorHooks class
Tap these hooks to record build metrics, to a file, for example.
Signature:
export declare class MetricsCollectorHooks
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
flush | AsyncParallelHook | This hook is called when collected metrics should be flushed | |
flushAndTeardown | AsyncParallelHook | This hook is called when collected metrics should be flushed and no more metrics will be collected. | |
recordMetric | SyncHook<string, IMetricsData> | This hook is called when a metric is recorded. |