metricsadder

package
v0.0.0-...-4bd6544 Latest Latest
Warning

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

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

Documentation

Overview

Package metricsadder contains an implementation of the api facade to add metrics to the state.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client provides access to the metrics adder API.

func NewClient

func NewClient(caller base.APICaller) *Client

NewClient creates a new client for accessing the metricsadder API.

func (*Client) AddMetricBatches

func (c *Client) AddMetricBatches(batches []params.MetricBatchParam) (map[string]error, error)

AddMetricBatches implements the MetricsAdderClient interface.

type MetricsAdderClient

type MetricsAdderClient interface {
	// AddMetricBatches stores specified metric batches in the state.
	AddMetricBatches(batches []params.MetricBatchParam) (map[string]error, error)
}

MetricsAdderClient defines the methods on the metricadder API end point.

Jump to

Keyboard shortcuts

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