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

package metricsmanager

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

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


Package Files


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). Updated 2020-08-15. Refresh now. Tools for package owners.