service

package
v1.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllPipelineTask

func GetAllPipelineTask(log *zap.SugaredLogger) error

func GetBuildDailyAverageMeasure

func GetBuildDailyAverageMeasure(startDate int64, endDate int64, productNames []string, log *zap.SugaredLogger) ([]*dailyBuildStat, error)

func GetBuildDailyMeasure

func GetBuildDailyMeasure(startDate int64, endDate int64, productNames []string, log *zap.SugaredLogger) ([]*buildStatDaily, error)

func GetBuildHealthMeasure

func GetBuildHealthMeasure(startDate int64, endDate int64, productNames []string, log *zap.SugaredLogger) (*buildStatTotal, error)

func GetBuildStats added in v1.9.9

func GetBuildStats(args *models.BuildStatOption, log *zap.SugaredLogger) (*dashboardBuild, error)

func GetBuildTotalAndSuccess

func GetBuildTotalAndSuccess(args *models.BuildStatOption, log *zap.SugaredLogger) (*dashboardBuild, error)

func GetBuildTrendMeasure

func GetBuildTrendMeasure(startDate int64, endDate int64, productNames []string, log *zap.SugaredLogger) (*buildTrend, error)

func GetDeployDailyTotalAndSuccess

func GetDeployDailyTotalAndSuccess(args *models.DeployStatOption, log *zap.SugaredLogger) (*dashboardDeploy, error)

func GetDeployHealthMeasure

func GetDeployHealthMeasure(startDate, endDate int64, productNames []string, log *zap.SugaredLogger) (*deployStatTotal, error)

func GetDeployStats added in v1.9.9

func GetDeployStats(args *models.DeployStatOption, log *zap.SugaredLogger) (*dashboardDeploy, error)

func GetDeployTopFiveFailureMeasure

func GetDeployTopFiveFailureMeasure(startDate, endDate int64, productNames []string, log *zap.SugaredLogger) ([]*deployFailureHigherStat, error)

func GetDeployTopFiveHigherMeasure

func GetDeployTopFiveHigherMeasure(startDate, endDate int64, productNames []string, log *zap.SugaredLogger) ([]*deployHigherStat, error)

func GetDeployWeeklyMeasure

func GetDeployWeeklyMeasure(startDate, endDate int64, productNames []string, log *zap.SugaredLogger) ([]*deployStatWeekly, error)

func GetLatestTenBuildMeasure

func GetLatestTenBuildMeasure(productNames []string, log *zap.SugaredLogger) ([]*buildStatLatestTen, error)

func GetPipelineHealthMeasure

func GetPipelineHealthMeasure(startDate, endDate int64, productNames []string, log *zap.SugaredLogger) (*deployStatTotal, error)

func GetTenDurationMeasure

func GetTenDurationMeasure(startDate int64, endDate int64, productNames []string, log *zap.SugaredLogger) ([]*buildStatLatestTen, error)

func GetTestAverageMeasure

func GetTestAverageMeasure(startDate, endDate int64, productNames []string, log *zap.SugaredLogger) ([]*testStatDailyArg, error)

func GetTestCaseMeasure

func GetTestCaseMeasure(startDate, endDate int64, productNames []string, log *zap.SugaredLogger) ([]*testCaseStat, error)

func GetTestDashboard

func GetTestDashboard(startTime, endTime int64, log *zap.SugaredLogger) (*testDashboard, error)

func GetTestDeliveryDeployMeasure

func GetTestDeliveryDeployMeasure(startDate, endDate int64, productNames []string, log *zap.SugaredLogger) ([]*testDeployStat, error)

func GetTestHealthMeasure

func GetTestHealthMeasure(startDate, endDate int64, productNames []string, log *zap.SugaredLogger) (*testStatTotal, error)

func GetTestTrendMeasure

func GetTestTrendMeasure(startDate, endDate int64, productNames []string, log *zap.SugaredLogger) (*testTrend, error)

func InitDeployStat

func InitDeployStat(log *zap.SugaredLogger) error

func InitTestStat

func InitTestStat(log *zap.SugaredLogger) error

Types

type CurrentDay

type CurrentDay struct {
	Success int `json:"success"`
	Failure int `json:"failure"`
	Timeout int `json:"timeout"`
}

type Overview

type Overview struct {
	ProjectCount  int `json:"project_count"`
	ClusterCount  int `json:"cluster_count"`
	ServiceCount  int `json:"service_count"`
	WorkflowCount int `json:"workflow_count"`
	EnvCount      int `json:"env_count"`
	ArtifactCount int `json:"artifact_count"`
}

func GetOverviewStat

func GetOverviewStat(log *zap.SugaredLogger) (*Overview, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL