mirror of
https://github.com/OutlineFoundation/outline-server.git
synced 2026-05-13 13:58:57 +00:00
Update manager_metrics.ts
This commit is contained in:
parent
45128215ae
commit
9b8b4d07c2
1 changed files with 5 additions and 7 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue