metricsdebug

package
v0.0.0-...-2608902 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2016 License: AGPL-3.0 Imports: 14 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 DebugMetricsCommand.

func NewCollectMetricsCommand

func NewCollectMetricsCommand() cmd.Command

NewCollectMetricsCommand creates a new collectMetricsCommand.

Types

type DebugMetricsCommand

type DebugMetricsCommand struct {
	modelcmd.ModelCommandBase
	Json  bool
	Tag   names.Tag
	Count int
}

DebugMetricsCommand retrieves metrics stored in the juju controller.

func (*DebugMetricsCommand) Info

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

Info implements Command.Info.

func (*DebugMetricsCommand) Init

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

Init reads and verifies the cli arguments for the DebugMetricsCommand

func (*DebugMetricsCommand) Run

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

Run implements Command.Run.

func (*DebugMetricsCommand) SetFlags

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

SetFlags implements Command.SetFlags.

type GetMetricsClient

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

Jump to

Keyboard shortcuts

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