constants

package
v0.0.0-...-11fe650 Latest Latest
Warning

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

Go to latest
Published: May 12, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DateFormat          = "2006-01-02T15:04:05Z"
	BatchDataDateFormat = "2006-01-02"

	LGTMLabel     = "lgtm"
	ApprovedLabel = "approved"

	DoNotMergeLabelPattern = "do-not-merge/*"
	NeedsLabelPattern      = "needs-*"

	MergeQueueLengthName = "AverageMergeQueueLength"
	TimeToMergeName      = "AverageTimeToMerge"
	RetestsToMergeName   = "AverageRetestsToMerge"

	DefaultPath                        = "/tmp/test"
	DefaultTokenPath                   = ""
	DefaultSource                      = "kubevirt/kubevirt"
	DefaultDataDays                    = 7
	DefaultLogLevel                    = "info"
	DefaultTimeToMergeYellowLevel      = 1.0
	DefaultTimeToMergeRedLevel         = 3.0
	DefaultMergeQueueLengthYellowLevel = 8.0
	DefaultMergeQueueLengthRedLevel    = 15.0
	DefaultRetestsToMergeYellowLevel   = 3.0
	DefaultRetestsToMergeRedLevel      = 6.0
	DefaultBatchStartDate              = "2019-05-06"

	TimeToMergeBadgeFileName      = "time-to-merge.svg"
	MergeQueueLengthBadgeFileName = "merge-queue-length.svg"
	RetestsToMergeBadgeFileName   = "retests-to-merge.svg"
	JSONResultsFileName           = "results.json"
	PlotFileName                  = "plot.png"
	MetricsFileName               = "metrics"

	TimeToMergeBadgeName      = "days to merge"
	MergeQueueLengthBadgeName = "avg merge queue length"
	RetestsToMergeBadgeName   = "retests to merge"
	BadgeDataFormat           = "%.2f ± std %.2f"

	AvgMergeQueueLengthMetricName = "cihealth_avg_merge_queue_lenght_total"
	AvgTimeToMergeMetricName      = "cihealth_avg_time_to_merge_days"
	AvgRetestsToMergeMetricName   = "cihealth_avg_retests_to_merge_total"
	StdMergeQueueLengthMetricName = "cihealth_std_merge_queue_lenght_total"
	StdTimeToMergeMetricName      = "cihealth_std_time_to_merge_days"
	StdRetestsToMergeMetricName   = "cihealth_std_retests_to_merge_total"

	DefaultBatchBaseOutputPath = "batch"
	DefaultBatchDataOutputPath = "data"
	DefaultBatchPlotOutputPath = "plot"
)

Variables

This section is empty.

Functions

func DoNotMergeLabels

func DoNotMergeLabels() []string

func RequiredForMergeLabels

func RequiredForMergeLabels() []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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