diff options
Diffstat (limited to 'client/src/app/+admin/request-schedulers/shared/request-schedulers-stats-attributes.model.ts')
-rw-r--r-- | client/src/app/+admin/request-schedulers/shared/request-schedulers-stats-attributes.model.ts | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/client/src/app/+admin/request-schedulers/shared/request-schedulers-stats-attributes.model.ts b/client/src/app/+admin/request-schedulers/shared/request-schedulers-stats-attributes.model.ts deleted file mode 100644 index c4abf3d4d..000000000 --- a/client/src/app/+admin/request-schedulers/shared/request-schedulers-stats-attributes.model.ts +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | import { RequestSchedulerStatsAttributes as FormattedRequestSchedulerStatsAttributes } from '../../../../../../shared' | ||
2 | |||
3 | export interface Request { | ||
4 | request: any | ||
5 | to: any | ||
6 | } | ||
7 | |||
8 | export class RequestSchedulerStatsAttributes implements FormattedRequestSchedulerStatsAttributes { | ||
9 | requestsLimitPods: number | ||
10 | requestsLimitPerPod: number | ||
11 | milliSecondsInterval: number | ||
12 | remainingMilliSeconds: number | ||
13 | totalRequests: number | ||
14 | |||
15 | constructor (hash: { | ||
16 | requestsLimitPods: number, | ||
17 | requestsLimitPerPod: number, | ||
18 | milliSecondsInterval: number, | ||
19 | remainingMilliSeconds: number, | ||
20 | totalRequests: number | ||
21 | }) { | ||
22 | this.requestsLimitPods = hash.requestsLimitPods | ||
23 | this.requestsLimitPerPod = hash.requestsLimitPerPod | ||
24 | this.milliSecondsInterval = hash.milliSecondsInterval | ||
25 | this.remainingMilliSeconds = hash.remainingMilliSeconds | ||
26 | this.totalRequests = hash.totalRequests | ||
27 | } | ||
28 | |||
29 | get remainingSeconds () { | ||
30 | return Math.floor(this.remainingMilliSeconds / 1000) | ||
31 | } | ||
32 | |||
33 | get secondsInterva () { | ||
34 | return Math.floor(this.milliSecondsInterval / 1000) | ||
35 | } | ||
36 | |||
37 | } | ||