aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/request-scheduler.model.ts
blob: 8df184a09563c6df7c2661897261e55bcfca4b91 (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 RequestSchedulerStatsAttributes = {
  totalRequests: number
  requestsLimitPods: number
  requestsLimitPerPod: number
  remainingMilliSeconds: number
  milliSecondsInterval: number
}

export interface RequestSchedulerStats {
  requestScheduler: RequestSchedulerStatsAttributes
  requestVideoQaduScheduler: RequestSchedulerStatsAttributes
  requestVideoEventScheduler: RequestSchedulerStatsAttributes
}