ing
This commit is contained in:
parent
b2b86426bf
commit
46349fb178
1
@overflow/model/config/ping/index.ts
Normal file
1
@overflow/model/config/ping/index.ts
Normal file
|
@ -0,0 +1 @@
|
||||||
|
export * from './option';
|
5
@overflow/model/config/ping/option.ts
Normal file
5
@overflow/model/config/ping/option.ts
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
export interface PingOption {
|
||||||
|
retry: number;
|
||||||
|
interval: number;
|
||||||
|
deadline: number;
|
||||||
|
}
|
3
@overflow/model/ping/index.ts
Normal file
3
@overflow/model/ping/index.ts
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
export * from './response';
|
||||||
|
export * from './result';
|
||||||
|
export * from './summary';
|
5
@overflow/model/ping/response.ts
Normal file
5
@overflow/model/ping/response.ts
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
export interface PingResponse {
|
||||||
|
ttl: number;
|
||||||
|
time: number;
|
||||||
|
error: string;
|
||||||
|
}
|
7
@overflow/model/ping/result.ts
Normal file
7
@overflow/model/ping/result.ts
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
import { PingResponse } from './response';
|
||||||
|
import { PingSummary } from './summary';
|
||||||
|
|
||||||
|
export interface PingResult {
|
||||||
|
responses: Map<number, PingResponse>;
|
||||||
|
summary: PingSummary;
|
||||||
|
}
|
8
@overflow/model/ping/summary.ts
Normal file
8
@overflow/model/ping/summary.ts
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
export interface PingSummary {
|
||||||
|
sendCount: number;
|
||||||
|
receiveCount: number;
|
||||||
|
lossPercent: number;
|
||||||
|
minTime: number;
|
||||||
|
maxTime: number;
|
||||||
|
avgTime: number;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user