metricsdebug

package
v0.0.0-...-6cf1bc9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2016 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() cmd.Command

New creates a new MetricsCommand.

func NewCollectMetricsCommand

func NewCollectMetricsCommand() cmd.Command

NewCollectMetricsCommand creates a new collectMetricsCommand.

Types

type GetMetricsClient

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

type MetricsCommand

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

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

Info implements Command.Info.

func (*MetricsCommand) Init

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

Init reads and verifies the cli arguments for the MetricsCommand

func (*MetricsCommand) Run

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

Run implements Command.Run.

func (*MetricsCommand) SetFlags

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

SetFlags implements cmd.Command.SetFlags.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL