cloudwatch

package
v0.0.0-...-fe13f99 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

The cloudwatch package writes data to aws cloudwatch

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsRole

type AwsRole struct {

	// looks like "123456789012"
	AccountNumber string `yaml:"accountNumber"`

	// looks like "arn:aws:iam::123456789012:role/SOME-ROLE"
	RoleArn string `yaml:"roleArn"`
}

AwsRole represents a single AwsRole in a config file

func (*AwsRole) UnmarshalYAML

func (a *AwsRole) UnmarshalYAML(unmarshal func(interface{}) error) error

type Config

type Config struct {
	Roles []AwsRole `yaml:"roles"`

	// Full path of AWS shared credentials file
	SharedCredentialsFile string `yaml:"sharedCredentialsFile"`

	// The AWS profile name to use in shared credentials file.
	// Omitting this is equivalent to specifying the "default" profile
	SharedCredentialsProfile string `yaml:"sharedCredentialsProfile"`

	// Not used anymore. Zeroed out when read.
	Region string `yaml:"region"`
}

Config represents the configuration of a Writer

func (*Config) Reset

func (c *Config) Reset()

func (*Config) UnmarshalYAML

func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error

type Writer

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

A Writer instance writes cloudwatch data to AWS

func NewWriter

func NewWriter(c Config) (*Writer, error)

func (*Writer) Write

func (w *Writer) Write(snapshot *chpipeline.Snapshot) error

Write writes data for a single instance to AWS

Jump to

Keyboard shortcuts

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