Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Opts ¶
type Opts struct {
// logger
Logger struct {
Level string `` // nolint:staticcheck // multiple choices are ok
/* 152-byte string literal not displayed */
Format string `long:"log.format" env:"LOG_FORMAT" description:"Log format" choice:"logfmt" choice:"json" default:"logfmt"` // nolint:staticcheck // multiple choices are ok
Source string `` // nolint:staticcheck // multiple choices are ok
/* 177-byte string literal not displayed */
Color string `long:"log.color" env:"LOG_COLOR" description:"Enable color for logs" choice:"" choice:"auto" choice:"yes" choice:"no"` // nolint:staticcheck // multiple choices are ok
Time bool `long:"log.time" env:"LOG_TIME" description:"Show log time"`
}
// scrape time settings
Scrape struct {
Time time.Duration `` /* 158-byte string literal not displayed */
TimeProjects *time.Duration `` /* 134-byte string literal not displayed */
TimeRepository *time.Duration `` /* 137-byte string literal not displayed */
TimeBuild *time.Duration `` /* 132-byte string literal not displayed */
TimeRelease *time.Duration `` /* 134-byte string literal not displayed */
TimeDeployment *time.Duration `` /* 137-byte string literal not displayed */
TimePullRequest *time.Duration `` /* 139-byte string literal not displayed */
TimeStats *time.Duration `` /* 133-byte string literal not displayed */
TimeResourceUsage *time.Duration `` /* 141-byte string literal not displayed */
TimeQuery *time.Duration `` /* 133-byte string literal not displayed */
TimeLive *time.Duration `` /* 158-byte string literal not displayed */
}
// summary options
Stats struct {
SummaryMaxAge *time.Duration `` /* 135-byte string literal not displayed */
}
// azure settings
Azure struct {
TenantId string `` /* 140-byte string literal not displayed */
ClientId string `` /* 134-byte string literal not displayed */
ClientSecret string `` /* 147-byte string literal not displayed */
}
// azure settings
AzureDevops struct {
Url *string `` /* 141-byte string literal not displayed */
AccessToken string `` /* 128-byte string literal not displayed */
AccessTokenFile *string `` /* 131-byte string literal not displayed */
Organisation string `` /* 135-byte string literal not displayed */
ApiVersion string `` /* 133-byte string literal not displayed */
// agentpool
AgentPoolIdList *[]int64 `` /* 132-byte string literal not displayed */
// ignore settings
FilterProjects []string `long:"whitelist.project" env:"AZURE_DEVOPS_FILTER_PROJECT" env-delim:" " description:"Filter projects (UUIDs)"`
BlacklistProjects []string `long:"blacklist.project" env:"AZURE_DEVOPS_BLACKLIST_PROJECT" env-delim:" " description:"Filter projects (UUIDs)"`
FilterTimelineState []string `` /* 174-byte string literal not displayed */
FetchAllBuildsFilter []string `` /* 156-byte string literal not displayed */
// query settings
QueriesWithProjects []string `` /* 150-byte string literal not displayed */
// tag settings
TagsSchema *[]string `` /* 206-byte string literal not displayed */
TagsBuildDefinitionIdList *[]int64 `` /* 144-byte string literal not displayed */
}
// cache settings
Cache struct {
Path string `` /* 186-byte string literal not displayed */
}
Request struct {
ConcurrencyLimit int64 `` /* 154-byte string literal not displayed */
Retries int `` /* 153-byte string literal not displayed */
}
ServiceDiscovery struct {
RefreshDuration time.Duration `` /* 147-byte string literal not displayed */
}
Limit struct {
Project int64 `` /* 149-byte string literal not displayed */
BuildsPerProject int64 `` /* 149-byte string literal not displayed */
BuildsPerDefinition int64 `` /* 148-byte string literal not displayed */
ReleasesPerProject int64 `` /* 149-byte string literal not displayed */
ReleasesPerDefinition int64 `` /* 149-byte string literal not displayed */
DeploymentPerDefinition int64 `` /* 149-byte string literal not displayed */
ReleaseDefinitionsPerProject int64 `` /* 149-byte string literal not displayed */
BuildHistoryDuration time.Duration `` /* 192-byte string literal not displayed */
ReleaseHistoryDuration time.Duration `` /* 194-byte string literal not displayed */
}
Server struct {
// general options
Bind string `long:"server.bind" env:"SERVER_BIND" description:"Server address" default:":8080"`
ReadTimeout time.Duration `long:"server.timeout.read" env:"SERVER_TIMEOUT_READ" description:"Server read timeout" default:"5s"`
WriteTimeout time.Duration `long:"server.timeout.write" env:"SERVER_TIMEOUT_WRITE" description:"Server write timeout" default:"10s"`
}
}
func (*Opts) GetCachePath ¶
Click to show internal directories.
Click to hide internal directories.