metricsadder

package
v0.0.0-...-a002913 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2015 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricsAdder

type MetricsAdder interface {
	// AddMetricBatches stores the specified metric batches in the state.
	AddMetricBatches(batches params.MetricBatchParams) (params.ErrorResults, error)
}

MetricsAdder defines methods that are used to store metric batches in the state.

type MetricsAdderAPI

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

MetricsAdderAPI implements the metrics adder interface and is the concrete implementation of the API end point.

func NewMetricsAdderAPI

func NewMetricsAdderAPI(
	st *state.State,
	resources *common.Resources,
	authorizer common.Authorizer,
) (*MetricsAdderAPI, error)

NewMetricsAdderAPI creates a new API endpoint for adding metrics to state.

func (*MetricsAdderAPI) AddMetricBatches

func (api *MetricsAdderAPI) AddMetricBatches(args params.MetricBatchParams) (params.ErrorResults, error)

AddMetricBatches implements the MetricsAdder interface.

Jump to

Keyboard shortcuts

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