
package cn.orionsec.ops.service.api;

import cn.orionsec.ops.entity.request.home.HomeStatisticsRequest;
import cn.orionsec.ops.entity.vo.app.*;
import cn.orionsec.ops.entity.vo.home.HomeStatisticsVO;
import cn.orionsec.ops.entity.vo.scheduler.SchedulerTaskRecordStatisticsVO;

import java.util.List;

public interface StatisticsService {

    /**
     * 获取首页统计信息
     *
     * @param request request
     * @return 统计信息
     */
    HomeStatisticsVO homeStatistics(HomeStatisticsRequest request);

    /**
     * 获取调度任务统计
     *
     * @param taskId 任务id
     * @return 统计
     */
    SchedulerTaskRecordStatisticsVO schedulerTaskStatistics(Long taskId);

    /**
     * 获取应用构建统计 视图
     *
     * @param appId     appId
     * @param profileId profileId
     * @return 视图
     */
    ApplicationBuildStatisticsViewVO appBuildStatisticsView(Long appId, Long profileId);

    /**
     * 获取应用构建统计 指标
     *
     * @param appId     appId
     * @param profileId profileId
     * @return 指标
     */
    ApplicationBuildStatisticsMetricsWrapperVO appBuildStatisticsMetrics(Long appId, Long profileId);

    /**
     * 获取应用构建统计 表格
     *
     * @param appId     appId
     * @param profileId profileId
     * @return 折线图
     */
    List<ApplicationBuildStatisticsChartVO> appBuildStatisticsChart(Long appId, Long profileId);

    /**
     * 获取应用发布统计 视图
     *
     * @param appId     appId
     * @param profileId profileId
     * @return 视图
     */
    ApplicationReleaseStatisticsViewVO appReleaseStatisticView(Long appId, Long profileId);

    /**
     * 获取应用发布统计 指标
     *
     * @param appId     appId
     * @param profileId profileId
     * @return 指标
     */
    ApplicationReleaseStatisticsMetricsWrapperVO appReleaseStatisticMetrics(Long appId, Long profileId);

    /**
     * 获取应用发布统计 折线图
     *
     * @param appId     appId
     * @param profileId profileId
     * @return 折线图
     */
    List<ApplicationReleaseStatisticsChartVO> appReleaseStatisticChart(Long appId, Long profileId);

    /**
     * 获取应用发布统计 视图
     *
     * @param pipelineId pipelineId
     * @return 视图
     */
    ApplicationPipelineTaskStatisticsViewVO appPipelineTaskStatisticView(Long pipelineId);

    /**
     * 获取应用发布统计 指标
     *
     * @param pipelineId pipelineId
     * @return 指标
     */
    ApplicationPipelineTaskStatisticsMetricsWrapperVO appPipelineTaskStatisticMetrics(Long pipelineId);

    /**
     * 获取应用发布统计 折线图
     *
     * @param pipelineId pipelineId
     * @return 折线图
     */
    List<ApplicationPipelineTaskStatisticsChartVO> appPipelineTaskStatisticChart(Long pipelineId);

}
