plugins

package
v1.0.0-rc.8 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2018 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EBServiceName  = "elastic_beanstalk"
	EC2ServiceName = "ec2"
	ECSServiceName = "ecs"
)

Variables

View Source
var InstancePluginMetadata = &PluginMetadata{}

InstancePluginMetadata points to the PluginMetadata struct.

Functions

This section is empty.

Types

type BeanstalkMetadata

type BeanstalkMetadata struct {
	Environment  string `json:"environment_name"`
	VersionLabel string `json:"version_label"`
	DeploymentID int    `json:"deployment_id"`
}

BeanstalkMetadata provides the shape for unmarshalling Elastic Beanstalk environment metadata.

type EC2Metadata added in v1.0.0

type EC2Metadata struct {
	InstanceID       string `json:"instance_id"`
	AvailabilityZone string `json:"availability_zone"`
}

EC2Metadata provides the shape for unmarshalling EC2 metadata.

type ECSMetadata added in v1.0.0

type ECSMetadata struct {
	ContainerName string `json:"container"`
}

ECSMetadata provides the shape for unmarshalling ECS metadata.

type PluginMetadata

type PluginMetadata struct {

	// EC2Metadata records the ec2 instance ID and availability zone.
	EC2Metadata *EC2Metadata

	// BeanstalkMetadata records the Elastic Beanstalk
	// environment name, version label, and deployment ID.
	BeanstalkMetadata *BeanstalkMetadata

	// ECSMetadata records the ECS container ID.
	ECSMetadata *ECSMetadata

	// Origin records original service of the segment.
	Origin string
}

PluginMetadata struct contains items to record information about the AWS infrastructure hosting the traced application.

Jump to

Keyboard shortcuts

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