models

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: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildStat

type BuildStat struct {
	ProductName         string        `bson:"product_name"            json:"productName"`
	TotalSuccess        int           `bson:"total_success"           json:"totalSuccess"`
	TotalFailure        int           `bson:"total_failure"           json:"totalFailure"`
	TotalTimeout        int           `bson:"total_timeout"           json:"totalTimeout"`
	TotalDuration       int64         `bson:"total_duration"          json:"totalDuration"`
	TotalBuildCount     int           `bson:"total_build_count"       json:"totalBuildCount"`
	MaxDuration         int64         `bson:"max_duration"            json:"maxDuration"`
	MaxDurationPipeline *PipelineInfo `bson:"max_duration_pipeline"   json:"maxDurationPipeline"`
	Date                string        `bson:"date"                    json:"date"`
	CreateTime          int64         `bson:"create_time"             json:"createTime"`
	UpdateTime          int64         `bson:"update_time"             json:"updateTime"`
}

func (BuildStat) TableName

func (BuildStat) TableName() string

type BuildStatOption

type BuildStatOption struct {
	StartDate    int64
	EndDate      int64
	Limit        int
	Skip         int
	IsAsc        bool
	ProductNames []string
}

type DeployStat

type DeployStat struct {
	ProductName                 string `bson:"product_name"                      json:"productName"`
	TotalTaskSuccess            int    `bson:"total_task_success"                json:"totalTaskSuccess"`
	TotalTaskFailure            int    `bson:"total_task_failure"                json:"totalTaskFailure"`
	TotalDeploySuccess          int    `bson:"total_deploy_success"              json:"totalDeploySuccess"`
	TotalDeployFailure          int    `bson:"total_deploy_failure"              json:"totalDeployFailure"`
	MaxDeployServiceNum         int    `bson:"max_deploy_service_num"            json:"maxDeployServiceNum"`
	MaxDeployServiceFailureNum  int    `bson:"max_deploy_service_failure_num"    json:"maxDeployServiceFailureNum"`
	MaxDeployServiceName        string `bson:"max_deploy_service_name"           json:"maxDeployServiceName"`
	MaxDeployFailureServiceNum  int    `bson:"max_deploy_failure_service_num"    json:"maxDeployFailureServiceNum"`
	MaxDeployFailureServiceName string `bson:"max_deploy_failure_service_name"   json:"maxDeployFailureServiceName"`
	Date                        string `bson:"date"                              json:"date"`
	CreateTime                  int64  `bson:"create_time"                       json:"createTime"`
	UpdateTime                  int64  `bson:"update_time"                       json:"updateTime"`
}

func (DeployStat) TableName

func (DeployStat) TableName() string

type DeployStatOption

type DeployStatOption struct {
	StartDate    int64
	EndDate      int64
	Limit        int
	Skip         int
	IsAsc        bool
	IsMaxDeploy  bool
	ProductNames []string
}

type PipelineInfo

type PipelineInfo struct {
	TaskID       int64  `bson:"task_id"                 json:"taskId"`
	PipelineName string `bson:"pipeline_name"           json:"pipelineName"`
	Type         string `bson:"type"                    json:"type"`
	MaxDuration  int64  `bson:"max_duration"            json:"maxDuration"`
}

PipelineInfo

type TestStat

type TestStat struct {
	ProductName      string `bson:"product_name"            json:"productName"`
	TotalSuccess     int    `bson:"total_success"           json:"totalSuccess"`
	TotalFailure     int    `bson:"total_failure"           json:"totalFailure"`
	TotalTimeout     int    `bson:"total_timeout"           json:"totalTimeout"`
	TotalDuration    int64  `bson:"total_duration"          json:"totalDuration"`
	TotalTestCount   int    `bson:"total_test_count"        json:"totalTestCount"`
	TotalDeployCount int    `bson:"total_deploy_count"      json:"totalDeployCount"`
	TotalTestCase    int    `bson:"total_test_case"         json:"totalTestCase"`
	Date             string `bson:"date"                    json:"date"`
	CreateTime       int64  `bson:"create_time"             json:"createTime"`
	UpdateTime       int64  `bson:"update_time"             json:"updateTime"`
}

func (TestStat) TableName

func (TestStat) TableName() string

Jump to

Keyboard shortcuts

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