mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
14 lines
480 B
TypeScript
14 lines
480 B
TypeScript
|
|
import { MetricOptions } from '@opentelemetry/api';
|
||
|
|
|
||
|
|
export interface CustomMetricOptions extends MetricOptions {
|
||
|
|
enabled?: boolean;
|
||
|
|
}
|
||
|
|
|
||
|
|
export const IMetricRepository = 'IMetricRepository';
|
||
|
|
|
||
|
|
export interface IMetricRepository {
|
||
|
|
addToCounter(name: string, value: number, options?: CustomMetricOptions): void;
|
||
|
|
updateGauge(name: string, value: number, options?: CustomMetricOptions): void;
|
||
|
|
updateHistogram(name: string, value: number, options?: CustomMetricOptions): void;
|
||
|
|
}
|