Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
Exporter combines the metric collector and descritions.
func NewExporter ¶
NewExporter gives you a new exporter instance.
func (*Exporter) Collect ¶
func (e *Exporter) Collect(ch chan<- prometheus.Metric)
Collect delivers the metrics to Prometheus.
func (*Exporter) Describe ¶
func (e *Exporter) Describe(ch chan<- *prometheus.Desc)
Describe defines the metric descriptions for Prometheus.
type Job ¶
type Job struct { Name string `json:"name"` Links struct { Self struct { URL string `json:"href"` } `json:"self"` } `json:"_links"` Fail int `json:"numberOfFailingBranches"` Success int `json:"numberOfSuccessfulBranches"` Weather int `json:"weatherScore"` }
Job represents a single job definition from the Jenkins API.
Click to show internal directories.
Click to hide internal directories.