This commit is contained in:
Daniel LaCosse 2024-09-17 12:46:46 -04:00
parent cebef7352d
commit 0fd1008d65
2 changed files with 3 additions and 2 deletions

View file

@ -37,8 +37,8 @@ describe('PrometheusManagerMetrics', () => {
);
const tunnelTime = await managerMetrics.getTunnelTimeByLocation({hours: 0});
expect(tunnelTime).toEqual([
{location: 'US', asn: undefined, tunnel_time_seconds: 1000},
{location: 'CA', asn: undefined, tunnel_time_seconds: 2000},
{location: 'US', asn: undefined, as_org: undefined, tunnel_time_seconds: 1000},
{location: 'CA', asn: undefined, as_org: undefined, tunnel_time_seconds: 2000},
]);
done();
});

View file

@ -24,6 +24,7 @@ interface TunnelTimeRequest {
interface TunnelTimeResponse {
location?: string;
asn?: number;
as_org?: string;
tunnel_time_seconds: number;
}