Update manager_metrics.ts

This commit is contained in:
Daniel LaCosse 2024-10-24 15:25:23 -04:00 committed by GitHub
parent 45128215ae
commit 9b8b4d07c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,21 +15,19 @@
import {PrometheusClient} from '../infrastructure/prometheus_scraper';
import {DataUsageByUser, DataUsageTimeframe} from '../model/metrics';
export type TunnelTimeDimension = 'access_key' | 'country' | 'asn';
interface TunnelTimeDuration {
seconds: number;
}
interface TunnelTimeRequest {
time_window: {
seconds: number;
};
time_window: TunnelTimeDuration;
}
interface TunnelTimeResponse {
location?: string;
asn?: number;
as_org?: string;
tunnel_time: {
seconds: number;
};
tunnel_time: TunnelTimeDuration;
}
export interface ManagerMetrics {