juju: github.com/juju/juju/apiserver/facades/agent/metricsadder Index | Files

package metricsadder

import "github.com/juju/juju/apiserver/facades/agent/metricsadder"

Index

Package Files

metricsadder.go

type MetricsAdder Uses

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 Uses

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 Uses

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

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

func (*MetricsAdderAPI) AddMetricBatches Uses

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

AddMetricBatches implements the MetricsAdder interface.

Package metricsadder imports 5 packages (graph) and is imported by 3 packages. Updated 2019-09-01. Refresh now. Tools for package owners.