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

package metricsadder

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


Package Files


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 4 packages. Updated 2020-09-30. Refresh now. Tools for package owners.