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

package metricsmanager

import "github.com/mhilton/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 {
    base.ClientFacade
    // contains filtered or unexported fields
}

Client provides access to the metrics manager api

func NewClient Uses

func NewClient(st api.Connection) *Client

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). Updated 2018-04-16. Refresh now. Tools for package owners.