Versions in this module Expand all Collapse all v0 v0.2.0 Aug 10, 2021 Changes in this version + type Alert struct + func (a Alert) Header() []string + func (a Alert) Job() string + func (a Alert) Name() string + func (a Alert) Row() []string + type AlertFilterFunc func(Alert) bool + func AlertByJob(r *regexp.Regexp) AlertFilterFunc + func AlertByName(r *regexp.Regexp) AlertFilterFunc + func AlertByServer(r *regexp.Regexp) AlertFilterFunc + func AlertByState(state v1.AlertState) AlertFilterFunc + type Alerts []Alert + func (a Alerts) Filter(filters ...AlertFilterFunc) Alerts + type Client struct + func New(urls ...string) (*Client, error) + func (c Client) Alerts(ctx context.Context) (Alerts, error) + func (c Client) Targets(ctx context.Context, appendScraperAsTarget bool) (Targets, error) + type Target struct + func (t Target) Header() []string + func (t Target) Job() string + func (t Target) Row() []string + type TargetFilterFunc func(Target) bool + func TargetByHealth(health v1.HealthStatus) TargetFilterFunc + func TargetByJob(r *regexp.Regexp) TargetFilterFunc + func TargetByScrapeURL(r *regexp.Regexp) TargetFilterFunc + func TargetBySelector(selector labels.Selector) TargetFilterFunc + func TargetByServer(r *regexp.Regexp) TargetFilterFunc + type Targets []Target + func (t Targets) Active() []*v1.ActiveTarget + func (t Targets) Compact() + func (t Targets) Deduplicate() Targets + func (t Targets) Filter(filters ...TargetFilterFunc) Targets + func (t Targets) Sort()