agent

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(opt Option) error

Run fetches metrics from CloudWatch by MetricDataQuery and post these to Mackerel.

func RunWithContext

func RunWithContext(ctx context.Context, opt Option) error

RunWithContext fetches metrics from CloudWatch by MetricDataQuery with context and post these to Mackerel.

Types

type Label added in v0.0.3

type Label struct {
	Service  string
	HostID   string
	Name     string
	EmitZero bool
}

Label represents structured label

func (Label) IsService added in v0.0.3

func (l Label) IsService() bool

func (Label) String added in v0.0.3

func (l Label) String() string

type Option

type Option struct {
	StartTime time.Time
	EndTime   time.Time
	APIKey    string
	Query     []byte
	Session   *session.Session
}

Option represents agent option.

Jump to

Keyboard shortcuts

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