scrape

package
v1.26.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

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
}

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) *Job

NewScrapeJob creates a new Scrape Job with the given attributes

func (*Job) Populate

func (s *Job) Populate(
	integration *sdk.IntegrationProtocol2,
	clusterName string,
	logger *logrus.Logger,
	k8sVersion *version.Info,
) data.PopulateResult

Populate will get the data using the given Group, transform it, and push it to the given Integration

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL