collector

package
v2.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RunningBuildsCount   = "RunningBuildsCount"
	RunningJobsCount     = "RunningJobsCount"
	ScheduledBuildsCount = "ScheduledBuildsCount"
	ScheduledJobsCount   = "ScheduledJobsCount"
	UnfinishedJobsCount  = "UnfinishedJobsCount"
	TotalAgentCount      = "TotalAgentCount"
	BusyAgentCount       = "BusyAgentCount"
	IdleAgentCount       = "IdleAgentCount"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
	Opts
	// contains filtered or unexported fields
}

func New

func New(c *bk.Client, opts Opts) *Collector

func (*Collector) Collect

func (c *Collector) Collect() (*Result, error)

type Opts

type Opts struct {
	OrgSlug string
	History time.Duration
	Queue   string
	Debug   bool
}

type Result

type Result struct {
	Totals            map[string]int
	Queues, Pipelines map[string]map[string]int
}

func (Result) Dump

func (res Result) Dump()

Jump to

Keyboard shortcuts

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