awsinfo

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: 3 Imported by: 10

Documentation

Overview

Package awsinfo contains routines to extract from AWS metadata

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsInfo

type AwsInfo struct {
	// The account ID
	AccountId string

	// The account Name
	AccountName string

	// The InstanceId
	InstanceId string

	// The region
	Region string

	// Whether or not scotty should write health-agent data to cloud health
	CloudHealth bool

	// How often scotty is to write health-agent data to cloud watch. 0
	// means don't write to cloud watch.
	CloudWatch time.Duration

	// If true, write only memory stats to cloud watch for this instance
	CloudWatchMemoryOnly bool
}

AwsInfo represents information on an AWS machine for scotty.

type Config

type Config struct {
	// Whether or not scotty is running in cloud health test mode
	CloudHealthTest bool

	// Whether or not scotty is running in cloud watch test mode
	CloudWatchTest bool

	// The default frequency scotty is to write to cloud watch.
	// Zero value means the default, 5 minutes.
	CloudWatchRefresh time.Duration
}

Config represents scotty configuration for AWS

func (Config) GetAwsInfo

func (c Config) GetAwsInfo(aws *mdb.AwsMetadata) *AwsInfo

GetAwsInfo creates an AwsInfo instance from existing mdb metadata. If aws is nil, GetAwsInfo returns nil.

Jump to

Keyboard shortcuts

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