diff --git a/@overflow/model/config/ping/index.ts b/@overflow/model/config/ping/index.ts new file mode 100644 index 0000000..4216a00 --- /dev/null +++ b/@overflow/model/config/ping/index.ts @@ -0,0 +1 @@ +export * from './option'; diff --git a/@overflow/model/config/ping/option.ts b/@overflow/model/config/ping/option.ts new file mode 100644 index 0000000..392d9cc --- /dev/null +++ b/@overflow/model/config/ping/option.ts @@ -0,0 +1,5 @@ +export interface PingOption { + retry: number; + interval: number; + deadline: number; +} diff --git a/@overflow/model/ping/index.ts b/@overflow/model/ping/index.ts new file mode 100644 index 0000000..34a3e5b --- /dev/null +++ b/@overflow/model/ping/index.ts @@ -0,0 +1,3 @@ +export * from './response'; +export * from './result'; +export * from './summary'; diff --git a/@overflow/model/ping/response.ts b/@overflow/model/ping/response.ts new file mode 100644 index 0000000..48b4e5f --- /dev/null +++ b/@overflow/model/ping/response.ts @@ -0,0 +1,5 @@ +export interface PingResponse { + ttl: number; + time: number; + error: string; +} diff --git a/@overflow/model/ping/result.ts b/@overflow/model/ping/result.ts new file mode 100644 index 0000000..e104a7f --- /dev/null +++ b/@overflow/model/ping/result.ts @@ -0,0 +1,7 @@ +import { PingResponse } from './response'; +import { PingSummary } from './summary'; + +export interface PingResult { + responses: Map; + summary: PingSummary; +} diff --git a/@overflow/model/ping/summary.ts b/@overflow/model/ping/summary.ts new file mode 100644 index 0000000..cb61897 --- /dev/null +++ b/@overflow/model/ping/summary.ts @@ -0,0 +1,8 @@ +export interface PingSummary { + sendCount: number; + receiveCount: number; + lossPercent: number; + minTime: number; + maxTime: number; + avgTime: number; +}