amp_rule

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 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 AmpRuleOptions

type AmpRuleOptions struct {
	resource.CommonOptions

	Alias       string
	WorkspaceId string
}

type AmpRulePrinter

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

func NewPrinter

func NewPrinter(ruleGroupNamespaces []*types.RuleGroupsNamespaceDescription) *AmpRulePrinter

func (*AmpRulePrinter) PrintJSON

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

func (*AmpRulePrinter) PrintTable

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

func (*AmpRulePrinter) PrintYAML

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

type Getter

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

func NewGetter

func NewGetter(prometheusClient *aws.AMPClient) *Getter

func (*Getter) Get

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

func (*Getter) GetAllRules

func (g *Getter) GetAllRules(workspaceId string) ([]*types.RuleGroupsNamespaceDescription, error)

func (*Getter) GetRuleByName

func (g *Getter) GetRuleByName(ruleName, workspaceId string) (*types.RuleGroupsNamespaceDescription, error)

func (*Getter) Init

func (g *Getter) Init()

Jump to

Keyboard shortcuts

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