1
0
Fork 0
peertube/shared/models/request-scheduler.model.ts
2017-06-25 17:19:46 +02:00

19 lines
589 B
TypeScript

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
}