統計

統計設備數量

函數列表:

Connected

Connected 用於統計有多少設備連接到服務器

rpc Connected (ConnectedRequest) returns (ConnectedResponse){
    option (google.api.http) = {
        get: "/api/v1/history/statistics/connected"
    };
}

http 路徑:

/api/v1/history/statistics/connected

權限要求: session

Priority

Priority 用於統計正在執行不同優先級任務的設備數量

rpc Priority (PriorityRequest) returns (PriorityResponse){
    option (google.api.http) = {
        get: "/api/v1/history/statistics/priority"
    };
}

http 路徑:

/api/v1/history/statistics/priority

權限要求: session

Level

Level 用於統計正在執行不同等級任務的設備數量

rpc Level (LevelRequest) returns (LevelResponse){
    option (google.api.http) = {
        get: "/api/v1/history/statistics/level"
    };
}

http 路徑:

/api/v1/history/statistics/level

權限要求: session

SchedulerPriority

SchedulerPriority 用於統計在一段時間內,不同優先級的調度器數量,因爲調度器和播放任務一致所以實際上就是播放任務數量

rpc SchedulerPriority (SchedulerPriorityRequest) returns (SchedulerPriorityResponse){
    option (google.api.http) = {
        get: "/api/v1/history/statistics/scheduler_priority"
    };
}

http 路徑:

/api/v1/history/statistics/scheduler_priority

權限要求: session

SchedulerLevel

SchedulerLevel 用於統計在一段時間內,不同等級的調度器數量,因爲調度器和播放任務一致所以實際上就是播放任務數量

rpc SchedulerLevel (SchedulerLevelRequest) returns (SchedulerLevelResponse){
    option (google.api.http) = {
        get: "/api/v1/history/statistics/scheduler_level"
    };
}

http 路徑:

/api/v1/history/statistics/scheduler_level

權限要求: session

SchedulerSource

SchedulerSource 用於統計在一段時間內,不同來源的調度器數量,因爲調度器和播放任務一致所以實際上就是播放任務數量

rpc SchedulerSource(SchedulerSourceRequest) returns (SchedulerSourceResponse){
    option (google.api.http) = {
        get: "/api/v1/history/statistics/scheduler_source"
    };
}

http 路徑:

/api/v1/history/statistics/scheduler_source

權限要求: session