juju: github.com/juju/juju/api/metricsmanager Index | Files

package metricsmanager

import "github.com/juju/juju/api/metricsmanager"

The metricsmanager package contains implementation for an api facade to access metrics functions within state

Index

Package Files

client.go

type Client Uses

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

Client provides access to the metrics manager api

func NewClient Uses

func NewClient(apiCaller base.APICaller) (*Client, error)

NewClient creates a new client for accessing the metricsmanager api

func (*Client) CleanupOldMetrics Uses

func (c *Client) CleanupOldMetrics() error

CleanupOldMetrics looks for metrics that are 24 hours old (or older) and have been sent. Any metrics it finds are deleted.

func (*Client) SendMetrics Uses

func (c *Client) SendMetrics() error

SendMetrics will send any unsent metrics to the collection service.

type MetricsManagerClient Uses

type MetricsManagerClient interface {
    CleanupOldMetrics() error
    SendMetrics() error
}

MetricsManagerClient defines the methods on the metricsmanager API end point.

Package metricsmanager imports 4 packages (graph) and is imported by 69 packages. Updated 2019-08-25. Refresh now. Tools for package owners.