mirror of
https://github.com/Unleash/unleash.git
synced 2025-08-04 13:48:56 +02:00
chore: impact metrics resolver signature update (#10352)
This commit is contained in:
parent
ed9eccd743
commit
187d24db1f
@ -1,6 +1,7 @@
|
|||||||
import { PayloadType, type Variant } from 'unleash-client';
|
import { PayloadType, type Variant } from 'unleash-client';
|
||||||
import { parseEnvVarBoolean } from '../util/index.js';
|
import { parseEnvVarBoolean } from '../util/index.js';
|
||||||
import { getDefaultVariant } from 'unleash-client/lib/variant.js';
|
import { getDefaultVariant } from 'unleash-client/lib/variant.js';
|
||||||
|
import type { MetricFlagContext } from 'unleash-client/lib/impact-metrics/metric-types.js';
|
||||||
import type { Context } from '../features/playground/feature-evaluator/index.js';
|
import type { Context } from '../features/playground/feature-evaluator/index.js';
|
||||||
|
|
||||||
export type IFlagKey =
|
export type IFlagKey =
|
||||||
@ -332,6 +333,14 @@ export interface IExternalFlagResolver {
|
|||||||
export interface IImpactMetricsResolver {
|
export interface IImpactMetricsResolver {
|
||||||
defineCounter(name: string, help: string);
|
defineCounter(name: string, help: string);
|
||||||
defineGauge(name: string, help: string);
|
defineGauge(name: string, help: string);
|
||||||
incrementCounter(name: string, value?: number, featureName?: string): void;
|
incrementCounter(
|
||||||
updateGauge(name: string, value: number, featureName?: string): void;
|
name: string,
|
||||||
|
value?: number,
|
||||||
|
metricsFlagContext?: MetricFlagContext,
|
||||||
|
): void;
|
||||||
|
updateGauge(
|
||||||
|
name: string,
|
||||||
|
value: number,
|
||||||
|
metricsFlagContext?: MetricFlagContext,
|
||||||
|
): void;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user