lambda

package
v1.4.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const Name = "lambda"

Variables

View Source
var DefaultArguments = Config{
	ResourceAttributes: ResourceAttributesConfig{
		AwsLogGroupNames:  rac.ResourceAttributeConfig{Enabled: true},
		AwsLogStreamNames: rac.ResourceAttributeConfig{Enabled: true},
		CloudPlatform:     rac.ResourceAttributeConfig{Enabled: true},
		CloudProvider:     rac.ResourceAttributeConfig{Enabled: true},
		CloudRegion:       rac.ResourceAttributeConfig{Enabled: true},
		FaasInstance:      rac.ResourceAttributeConfig{Enabled: true},
		FaasMaxMemory:     rac.ResourceAttributeConfig{Enabled: true},
		FaasName:          rac.ResourceAttributeConfig{Enabled: true},
		FaasVersion:       rac.ResourceAttributeConfig{Enabled: true},
	},
}

DefaultArguments holds default settings for Config.

Functions

This section is empty.

Types

type Config

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

func (Config) Convert

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

func (*Config) SetToDefault

func (args *Config) SetToDefault()

SetToDefault implements syntax.Defaulter.

type ResourceAttributesConfig

type ResourceAttributesConfig struct {
	AwsLogGroupNames  rac.ResourceAttributeConfig `alloy:"aws.log.group.names,block,optional"`
	AwsLogStreamNames rac.ResourceAttributeConfig `alloy:"aws.log.stream.names,block,optional"`
	CloudPlatform     rac.ResourceAttributeConfig `alloy:"cloud.platform,block,optional"`
	CloudProvider     rac.ResourceAttributeConfig `alloy:"cloud.provider,block,optional"`
	CloudRegion       rac.ResourceAttributeConfig `alloy:"cloud.region,block,optional"`
	FaasInstance      rac.ResourceAttributeConfig `alloy:"faas.instance,block,optional"`
	FaasMaxMemory     rac.ResourceAttributeConfig `alloy:"faas.max_memory,block,optional"`
	FaasName          rac.ResourceAttributeConfig `alloy:"faas.name,block,optional"`
	FaasVersion       rac.ResourceAttributeConfig `alloy:"faas.version,block,optional"`
}

ResourceAttributesConfig provides config for lambda 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