webmetric

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// ProviderType indicates the provider is a web metric
	ProviderType = "Web"
)

Variables

This section is empty.

Functions

func NewWebMetricHttpClient

func NewWebMetricHttpClient(metric v1alpha1.Metric) *http.Client

func NewWebMetricJsonParser

func NewWebMetricJsonParser(metric v1alpha1.Metric) (*jsonpath.JSONPath, error)

Types

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

Provider contains all the required components to run a WebMetric query Implements the Provider Interface

func NewWebMetricProvider

func NewWebMetricProvider(logCtx log.Entry, client *http.Client, jsonParser *jsonpath.JSONPath) *Provider

func (*Provider) GarbageCollect

func (p *Provider) GarbageCollect(run *v1alpha1.AnalysisRun, metric v1alpha1.Metric, limit int) error

GarbageCollect is a no-op for the WebMetric provider

func (*Provider) Resume

func (p *Provider) Resume(run *v1alpha1.AnalysisRun, metric v1alpha1.Metric, measurement v1alpha1.Measurement) v1alpha1.Measurement

Resume should not be used the WebMetric provider since all the work should occur in the Run method

func (*Provider) Run

func (*Provider) Terminate

func (p *Provider) Terminate(run *v1alpha1.AnalysisRun, metric v1alpha1.Metric, measurement v1alpha1.Measurement) v1alpha1.Measurement

Terminate should not be used the WebMetric provider since all the work should occur in the Run method

func (*Provider) Type

func (p *Provider) Type() string

Type indicates provider is a WebMetric provider

Jump to

Keyboard shortcuts

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