aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/request-scheduler.model.ts
blob: f94ccfcabdf0b4850d3d34bfd59a9b69718c5446 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
export type RequestEndpoint = 'videos'

export type RequestVideoQaduType = 'likes' | 'dislikes' | 'views'

export type RequestVideoEventType = 'likes' | 'dislikes' | 'views'

export type RequestSchedulerAttributes = {
  totalRequests: number
  requestsLimitPods: number
  requestsLimitPerPod: number
  remainingMilliSeconds: number
  milliSecondsInterval: number
}

export interface RequestScheduler {
  requestScheduler: RequestSchedulerAttributes
  requestVideoQaduScheduler: RequestSchedulerAttributes
  requestVideoEventScheduler: RequestSchedulerAttributes
}