From 46349fb1788f9a626fc2892c7c2f10683385188e Mon Sep 17 00:00:00 2001 From: crusader Date: Tue, 18 Sep 2018 00:22:00 +0900 Subject: [PATCH] ing --- @overflow/model/config/ping/index.ts | 1 + @overflow/model/config/ping/option.ts | 5 +++++ @overflow/model/ping/index.ts | 3 +++ @overflow/model/ping/response.ts | 5 +++++ @overflow/model/ping/result.ts | 7 +++++++ @overflow/model/ping/summary.ts | 8 ++++++++ 6 files changed, 29 insertions(+) create mode 100644 @overflow/model/config/ping/index.ts create mode 100644 @overflow/model/config/ping/option.ts create mode 100644 @overflow/model/ping/index.ts create mode 100644 @overflow/model/ping/response.ts create mode 100644 @overflow/model/ping/result.ts create mode 100644 @overflow/model/ping/summary.ts 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; +}