diff options
Diffstat (limited to 'shared/models/request-scheduler.model.ts')
-rw-r--r-- | shared/models/request-scheduler.model.ts | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/shared/models/request-scheduler.model.ts b/shared/models/request-scheduler.model.ts new file mode 100644 index 000000000..f94ccfcab --- /dev/null +++ b/shared/models/request-scheduler.model.ts | |||
@@ -0,0 +1,19 @@ | |||
1 | export type RequestEndpoint = 'videos' | ||
2 | |||
3 | export type RequestVideoQaduType = 'likes' | 'dislikes' | 'views' | ||
4 | |||
5 | export type RequestVideoEventType = 'likes' | 'dislikes' | 'views' | ||
6 | |||
7 | export type RequestSchedulerAttributes = { | ||
8 | totalRequests: number | ||
9 | requestsLimitPods: number | ||
10 | requestsLimitPerPod: number | ||
11 | remainingMilliSeconds: number | ||
12 | milliSecondsInterval: number | ||
13 | } | ||
14 | |||
15 | export interface RequestScheduler { | ||
16 | requestScheduler: RequestSchedulerAttributes | ||
17 | requestVideoQaduScheduler: RequestSchedulerAttributes | ||
18 | requestVideoEventScheduler: RequestSchedulerAttributes | ||
19 | } | ||