/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import type { TelemetryLoggerExt } from "./telemetryTypes.js"; /** * Utility counter which will send event only if the provided value is above a configured threshold. * * @internal */ export declare class ThresholdCounter { private readonly threshold; private readonly logger; private thresholdMultiple; constructor(threshold: number, logger: TelemetryLoggerExt, thresholdMultiple?: number); /** * Sends the value if it's above the treshold. */ send(eventName: string, value: number): void; /** * Sends the value if it's above the threshold * and a multiple of the threshold. * * To be used in scenarios where we'd like to record a * threshold violation while reducing telemetry noise. */ sendIfMultiple(eventName: string, value: number): void; } //# sourceMappingURL=thresholdCounter.d.ts.map