ecs

package
v0.40.5 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "ecs"

Variables

View Source
var DefaultArguments = Config{
	ResourceAttributes: ResourceAttributesConfig{
		AwsEcsClusterArn:      rac.ResourceAttributeConfig{Enabled: true},
		AwsEcsLaunchtype:      rac.ResourceAttributeConfig{Enabled: true},
		AwsEcsTaskArn:         rac.ResourceAttributeConfig{Enabled: true},
		AwsEcsTaskFamily:      rac.ResourceAttributeConfig{Enabled: true},
		AwsEcsTaskRevision:    rac.ResourceAttributeConfig{Enabled: true},
		AwsLogGroupArns:       rac.ResourceAttributeConfig{Enabled: true},
		AwsLogGroupNames:      rac.ResourceAttributeConfig{Enabled: true},
		AwsLogStreamArns:      rac.ResourceAttributeConfig{Enabled: true},
		AwsLogStreamNames:     rac.ResourceAttributeConfig{Enabled: true},
		CloudAccountID:        rac.ResourceAttributeConfig{Enabled: true},
		CloudAvailabilityZone: rac.ResourceAttributeConfig{Enabled: true},
		CloudPlatform:         rac.ResourceAttributeConfig{Enabled: true},
		CloudProvider:         rac.ResourceAttributeConfig{Enabled: true},
		CloudRegion:           rac.ResourceAttributeConfig{Enabled: true},
	},
}

DefaultArguments holds default settings for Config.

Functions

This section is empty.

Types

type Config

type Config struct {
	ResourceAttributes ResourceAttributesConfig `river:"resource_attributes,block,optional"`
}

func (*Config) Convert

func (args *Config) Convert() map[string]interface{}

func (*Config) SetToDefault

func (args *Config) SetToDefault()

SetToDefault implements river.Defaulter.

type ResourceAttributesConfig

type ResourceAttributesConfig struct {
	AwsEcsClusterArn      rac.ResourceAttributeConfig `river:"aws.ecs.cluster.arn,block,optional"`
	AwsEcsLaunchtype      rac.ResourceAttributeConfig `river:"aws.ecs.launchtype,block,optional"`
	AwsEcsTaskArn         rac.ResourceAttributeConfig `river:"aws.ecs.task.arn,block,optional"`
	AwsEcsTaskFamily      rac.ResourceAttributeConfig `river:"aws.ecs.task.family,block,optional"`
	AwsEcsTaskRevision    rac.ResourceAttributeConfig `river:"aws.ecs.task.revision,block,optional"`
	AwsLogGroupArns       rac.ResourceAttributeConfig `river:"aws.log.group.arns,block,optional"`
	AwsLogGroupNames      rac.ResourceAttributeConfig `river:"aws.log.group.names,block,optional"`
	AwsLogStreamArns      rac.ResourceAttributeConfig `river:"aws.log.stream.arns,block,optional"`
	AwsLogStreamNames     rac.ResourceAttributeConfig `river:"aws.log.stream.names,block,optional"`
	CloudAccountID        rac.ResourceAttributeConfig `river:"cloud.account.id,block,optional"`
	CloudAvailabilityZone rac.ResourceAttributeConfig `river:"cloud.availability_zone,block,optional"`
	CloudPlatform         rac.ResourceAttributeConfig `river:"cloud.platform,block,optional"`
	CloudProvider         rac.ResourceAttributeConfig `river:"cloud.provider,block,optional"`
	CloudRegion           rac.ResourceAttributeConfig `river:"cloud.region,block,optional"`
}

ResourceAttributesConfig provides config for ecs resource attributes.

func (ResourceAttributesConfig) Convert

func (r ResourceAttributesConfig) Convert() map[string]interface{}

Jump to

Keyboard shortcuts

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