filter

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Difference

func Difference(l1, l2 []string) []string

Difference returns the difference set of arguments.

func Intersect

func Intersect(l1, l2 []string) []string

Intersect returns the product set of arguments.

Types

type AwsAPIGatewayConfig added in v0.2.0

type AwsAPIGatewayConfig struct {
	AwsTagKey string `envconfig:"aws_tag_key" default:""`
	DdTagKey  string `envconfig:"datadog_tag_key" default:""`
}

AwsAPIGatewayConfig holds metadata for AwsFilter for AWS API Gateway.

type AwsAutoScalingGroupConfig

type AwsAutoScalingGroupConfig struct {
	AwsTagKey string `envconfig:"aws_tag_key" default:""`
	DdTagKey  string `envconfig:"datadog_tag_key" default:""`
}

AwsAutoScalingGroupConfig holds metadata for AwsFilter for AWS AutoScalingGroup.

type AwsClbConfig

type AwsClbConfig struct {
	AwsTagKey string `envconfig:"aws_tag_key" default:""`
	DdTagKey  string `envconfig:"datadog_tag_key" default:""`
}

AwsClbConfig holds metadata for AwsFilter for AWS CLB.

type AwsDynamoDBConfig

type AwsDynamoDBConfig struct {
	AwsTagKey string `envconfig:"aws_tag_key" default:""`
	DdTagKey  string `envconfig:"datadog_tag_key" default:""`
}

AwsDynamoDBConfig holds metadata for AwsFilter for AWS DynamoDB.

type AwsElastiCacheConfig

type AwsElastiCacheConfig struct {
	AwsTagKey string `envconfig:"aws_tag_key" default:""`
	DdTagKey  string `envconfig:"datadog_tag_key" default:""`
}

AwsElastiCacheConfig holds metadata for AwsFilter for AWS ElastiCache.

type AwsElbConfig

type AwsElbConfig struct {
	AwsTagKey string `envconfig:"aws_tag_key" default:""`
	DdTagKey  string `envconfig:"datadog_tag_key" default:""`
}

AwsElbConfig holds metadata for AwsFilter for AWS ALB.

type AwsFilter

type AwsFilter struct {
	AwsTagKey string
	DdTagKey  string
}

AwsFilter implements Filter interface. it holds the metadata to filter AWS resources which should be monitored.

func (AwsFilter) CheckScopeWithTags

func (af AwsFilter) CheckScopeWithTags(scope datadog.Scope, tags mapper.Tags) (included, excluded bool)

CheckScopeWithTags evaluates Datadog scope and AWS resources.

func (AwsFilter) CheckTagsWithTags

func (af AwsFilter) CheckTagsWithTags(ddTags datadog.Tags, resourceTags mapper.Tags) bool

CheckTagsWithTags evaluates a Datadog/AWS tag matcher.

type AwsFirehoseConfig added in v0.2.0

type AwsFirehoseConfig struct {
	AwsTagKey string `envconfig:"aws_tag_key" default:""`
	DdTagKey  string `envconfig:"datadog_tag_key" default:""`
}

AwsFirehoseConfig holds metadata for AwsFilter for AWS Firehose.

type AwsKinesisConfig

type AwsKinesisConfig struct {
	AwsTagKey string `envconfig:"aws_tag_key" default:""`
	DdTagKey  string `envconfig:"datadog_tag_key" default:""`
}

AwsKinesisConfig holds metadata for AwsFilter for AWS Kinesis.

type AwsOpenSeardhServiceConfig

type AwsOpenSeardhServiceConfig struct {
	AwsTagKey string `envconfig:"aws_tag_key" default:""`
	DdTagKey  string `envconfig:"datadog_tag_key" default:""`
}

AwsOpenSeardhServiceConfig holds metadata for AwsFilter for AWS OpenSearch Service.

type AwsRdsConfig

type AwsRdsConfig struct {
	AwsTagKey string `envconfig:"aws_tag_key" default:""`
	DdTagKey  string `envconfig:"datadog_tag_key" default:""`
}

AwsRdsConfig holds metadata for AwsFilter for AWS RDS.

type AwsSnsConfig added in v0.2.0

type AwsSnsConfig struct {
	AwsTagKey string `envconfig:"aws_tag_key" default:""`
	DdTagKey  string `envconfig:"datadog_tag_key" default:""`
}

AwsSnsConfig holds metadata for AwsFilter for AWS SNS.

type AwsSqsConfig

type AwsSqsConfig struct {
	AwsTagKey string `envconfig:"aws_tag_key" default:""`
	DdTagKey  string `envconfig:"datadog_tag_key" default:""`
}

AwsSqsConfig holds metadata for AwsFilter for AWS SQS.

type AwsStepFunctionConfig

type AwsStepFunctionConfig struct {
	AwsTagKey string `envconfig:"aws_tag_key" default:""`
	DdTagKey  string `envconfig:"datadog_tag_key" default:""`
}

AwsStepFunctionConfig holds metadata for AwsFilter for AWS StepFunction.

type Filter

type Filter interface {
	CheckScopeWithTags(scope datadog.Scope, tags mapper.Tags) (included bool, excluded bool)
	CheckTagsWithTags(ddTags datadog.Tags, resourceTags mapper.Tags) bool
}

Filter is an interface to filter AWS resources which should be monitored.

func BuildFilter

func BuildFilter(it datadog.IntegrationTarget) (Filter, error)

BuildFilter build the proper Filter implementation.

Jump to

Keyboard shortcuts

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