Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Job ¶
type Job struct { Name string Grouper data.Grouper Specs definition.SpecGroups Filterer discovery.NamespaceFilterer }
Job hold all information specific to a certain Scrape Job, e.g.: where do I get the data from, and what data
func NewScrapeJob ¶
func NewScrapeJob(name string, grouper data.Grouper, specs definition.SpecGroups, options ...JobOpt) *Job
NewScrapeJob creates a new Scrape Job with the given attributes
func (*Job) Populate ¶
func (s *Job) Populate( i *integration.Integration, clusterName string, logger *log.Logger, k8sVersion *version.Info, ) data.PopulateResult
Populate will get the data using the given Group, transform it, and push it to the given Integration
type JobOpt ¶ added in v3.3.0
type JobOpt func(s *Job)
JobOpt are options that can be used to configure the ScrapeJob
func JobWithFilterer ¶ added in v3.3.0
func JobWithFilterer(filterer discovery.NamespaceFilterer) JobOpt
JobWithFilterer returns an OptionFunc to add a Filterer.
Click to show internal directories.
Click to hide internal directories.