collector

package
v0.0.0-...-1ea450c Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

Types

type Issue

type Issue struct {
	// contains filtered or unexported fields
}

func NewIssue

func NewIssue(config IssueConfig) (*Issue, error)

func (*Issue) Collect

func (i *Issue) Collect(ch chan<- prometheus.Metric) error

func (*Issue) Describe

func (i *Issue) Describe(ch chan<- *prometheus.Desc) error

type IssueConfig

type IssueConfig struct {
	GithubClient *github.Client
	Logger       micrologger.Logger

	CustomLabels []string
}

type Set

type Set struct {
	*collector.Set
}

Set is basically only a wrapper for the operator's collector implementations. It eases the iniitialization and prevents some weird import mess so we do not have to alias packages.

func NewSet

func NewSet(config SetConfig) (*Set, error)

type SetConfig

type SetConfig struct {
	GithubClient *github.Client
	Logger       micrologger.Logger

	CustomLabels []string
}

Jump to

Keyboard shortcuts

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