Versions in this module Expand all Collapse all v2 v2.5.2 Apr 27, 2022 Changes in this version + func Fields(t FieldsType) ([]string, error) + type Client interface + LogpullReceived func(ctx context.Context, start, end time.Time) (cloudflare.LogpullReceivedIterator, error) + type FieldsType string + const FieldsTypeAll + const FieldsTypeDefault + const FieldsTypeExtended + const FieldsTypeMinimal + type Metrics struct + Entries prometheus.Counter + LastEnd prometheus.Gauge + func NewMetrics(reg prometheus.Registerer) *Metrics + type Target struct + func NewTarget(metrics *Metrics, logger log.Logger, handler api.EntryHandler, ...) (*Target, error) + func (t *Target) Details() interface{} + func (t *Target) DiscoveredLabels() model.LabelSet + func (t *Target) Labels() model.LabelSet + func (t *Target) Ready() bool + func (t *Target) Stop() + func (t *Target) Type() target.TargetType + type TargetManager struct + func NewTargetManager(metrics *Metrics, logger log.Logger, positions positions.Positions, ...) (*TargetManager, error) + func (tm *TargetManager) ActiveTargets() map[string][]target.Target + func (tm *TargetManager) AllTargets() map[string][]target.Target + func (tm *TargetManager) Ready() bool + func (tm *TargetManager) Stop()