juju: github.com/juju/juju/cmd/juju/metricsdebug Index | Files

package metricsdebug

import "github.com/juju/juju/cmd/juju/metricsdebug"

Index

Package Files

collectmetrics.go metrics.go

func New Uses

func New() cmd.Command

New creates a new MetricsCommand.

func NewCollectMetricsCommand Uses

func NewCollectMetricsCommand() cmd.Command

NewCollectMetricsCommand creates a new collectMetricsCommand.

type GetMetricsClient Uses

type GetMetricsClient interface {
    GetMetrics(tags ...string) ([]params.MetricResult, error)
    Close() error
}

type MetricsCommand Uses

type MetricsCommand struct {
    modelcmd.ModelCommandBase

    Tags []string
    All  bool
    // contains filtered or unexported fields
}

MetricsCommand retrieves metrics stored in the juju controller.

func (*MetricsCommand) Info Uses

func (c *MetricsCommand) Info() *cmd.Info

Info implements Command.Info.

func (*MetricsCommand) Init Uses

func (c *MetricsCommand) Init(args []string) error

Init reads and verifies the cli arguments for the MetricsCommand

func (*MetricsCommand) Run Uses

func (c *MetricsCommand) Run(ctx *cmd.Context) error

Run implements Command.Run.

func (*MetricsCommand) SetFlags Uses

func (c *MetricsCommand) SetFlags(f *gnuflag.FlagSet)

SetFlags implements cmd.Command.SetFlags.

Package metricsdebug imports 19 packages (graph) and is imported by 37 packages. Updated 2019-08-23. Refresh now. Tools for package owners.