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 JobItem ¶
type JobItem struct { Name string `json:"name"` Color string `json:"color"` URL string `json:"url"` }
JobItem represents a single job definition from the Jenkins jobs API.
type QueueItem ¶
type QueueItem struct { Task *QueueItemTask `json:"task"` InQueueSince float64 `json:"inQueueSince"` }
QueueItem represents a queue item definition from the Jenkins queue API.
type QueueItemTask ¶
type QueueItemTask struct {
Name string `json:"name"`
}
QueueItemTask represents a single task definition in a queue
Click to show internal directories.
Click to hide internal directories.