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.

Source Files