metric

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT-0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResource

func NewResource() *resource.Resource

Types

type CloudwatchMetricOptions

type CloudwatchMetricOptions struct {
	resource.CommonOptions

	Dimensions []string
	Namespace  string
	Values     bool
	// contains filtered or unexported fields
}

type DimensionValuePrinter

type DimensionValuePrinter struct {
	// contains filtered or unexported fields
}

func NewDimensionValuePrinter

func NewDimensionValuePrinter(metrics []types.Metric, metricNameColumn bool, cmd *cobra.Command) *DimensionValuePrinter

func (*DimensionValuePrinter) PrintJSON

func (p *DimensionValuePrinter) PrintJSON(writer io.Writer) error

func (*DimensionValuePrinter) PrintTable

func (p *DimensionValuePrinter) PrintTable(writer io.Writer) error

func (*DimensionValuePrinter) PrintYAML

func (p *DimensionValuePrinter) PrintYAML(writer io.Writer) error

type Getter

type Getter struct {
	// contains filtered or unexported fields
}

func NewGetter

func NewGetter(cloudwatchClient *aws.CloudwatchClient) *Getter

func (*Getter) Get

func (g *Getter) Get(name string, output printer.Output, options resource.Options) error

func (*Getter) Init

func (g *Getter) Init()

type MetricNamePrinter

type MetricNamePrinter struct {
	// contains filtered or unexported fields
}

func NewMetricNamePrinter

func NewMetricNamePrinter(metrics []types.Metric) *MetricNamePrinter

func (*MetricNamePrinter) PrintJSON

func (p *MetricNamePrinter) PrintJSON(writer io.Writer) error

func (*MetricNamePrinter) PrintTable

func (p *MetricNamePrinter) PrintTable(writer io.Writer) error

func (*MetricNamePrinter) PrintYAML

func (p *MetricNamePrinter) PrintYAML(writer io.Writer) error

type NamespacePrinter

type NamespacePrinter struct {
	// contains filtered or unexported fields
}

func NewNamespacePrinter

func NewNamespacePrinter(metrics []types.Metric) *NamespacePrinter

func (*NamespacePrinter) PrintJSON

func (p *NamespacePrinter) PrintJSON(writer io.Writer) error

func (*NamespacePrinter) PrintTable

func (p *NamespacePrinter) PrintTable(writer io.Writer) error

func (*NamespacePrinter) PrintYAML

func (p *NamespacePrinter) PrintYAML(writer io.Writer) error

Jump to

Keyboard shortcuts

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