aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/request-scheduler.model.ts
diff options
context:
space:
mode:
Diffstat (limited to 'shared/models/request-scheduler.model.ts')
-rw-r--r--shared/models/request-scheduler.model.ts19
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 @@
1export type RequestEndpoint = 'videos'
2
3export type RequestVideoQaduType = 'likes' | 'dislikes' | 'views'
4
5export type RequestVideoEventType = 'likes' | 'dislikes' | 'views'
6
7export type RequestSchedulerAttributes = {
8 totalRequests: number
9 requestsLimitPods: number
10 requestsLimitPerPod: number
11 remainingMilliSeconds: number
12 milliSecondsInterval: number
13}
14
15export interface RequestScheduler {
16 requestScheduler: RequestSchedulerAttributes
17 requestVideoQaduScheduler: RequestSchedulerAttributes
18 requestVideoEventScheduler: RequestSchedulerAttributes
19}