entityattributes

package
v1.300056.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// The following are the possible values for EntityType config options
	Resource = "Resource"
	Service  = "Service"

	AttributeServiceNameSource           = "service.name.source"
	AttributeDeploymentEnvironmentSource = "deployment.environment.source"
	AttributeServiceNameSourceUserConfig = "UserConfiguration"

	// The following are entity related attributes
	AWSEntityPrefix                      = "com.amazonaws.cloudwatch.entity.internal."
	AttributeEntityType                  = AWSEntityPrefix + "type"
	AttributeEntityAWSResource           = "AWS::Resource"
	AttributeEntityResourceType          = AWSEntityPrefix + "resource.type"
	AttributeEntityEC2InstanceResource   = "AWS::EC2::Instance"
	AttributeEntityIdentifier            = AWSEntityPrefix + "identifier"
	AttributeEntityAwsAccountId          = AWSEntityPrefix + "aws.account.id"
	AttributeEntityServiceName           = AWSEntityPrefix + "service.name"
	AttributeEntityDeploymentEnvironment = AWSEntityPrefix + "deployment.environment"
	AttributeEntityCluster               = AWSEntityPrefix + "k8s.cluster.name"
	AttributeEntityNamespace             = AWSEntityPrefix + "k8s.namespace.name"
	AttributeEntityWorkload              = AWSEntityPrefix + "k8s.workload.name"
	AttributeEntityNode                  = AWSEntityPrefix + "k8s.node.name"
	AttributeEntityServiceNameSource     = AWSEntityPrefix + "service.name.source"
	AttributeEntityPlatformType          = AWSEntityPrefix + "platform.type"
	AttributeEntityInstanceID            = AWSEntityPrefix + "instance.id"
	AttributeEntityAutoScalingGroup      = AWSEntityPrefix + "auto.scaling.group"

	// The following are possible platform values
	AttributeEntityEC2Platform = "AWS::EC2"
	AttributeEntityEKSPlatform = "AWS::EKS"
	AttributeEntityK8sPlatform = "K8s"

	// The following Fields are the actual names attached to the Entity requests.
	ServiceName           = "Name"
	DeploymentEnvironment = "Environment"
	EntityType            = "Type"
	ResourceType          = "ResourceType"
	Identifier            = "Identifier"
	AwsAccountId          = "AwsAccountId"
	EksCluster            = "EKS.Cluster"
	K8sCluster            = "K8s.Cluster"
	NamespaceField        = "K8s.Namespace"
	Workload              = "K8s.Workload"
	Node                  = "K8s.Node"
	ServiceNameSource     = "AWS.ServiceNameSource"
	Platform              = "PlatformType"
	InstanceID            = "EC2.InstanceId"
	AutoscalingGroup      = "EC2.AutoScalingGroup"

	// The following are values used for the environment fallbacks required on EC2
	DeploymentEnvironmentFallbackPrefix = "ec2:"
	DeploymentEnvironmentDefault        = DeploymentEnvironmentFallbackPrefix + "default"
)

Variables

This section is empty.

Functions

func CreateCloudWatchEntityFromAttributes added in v1.300051.0

func CreateCloudWatchEntityFromAttributes(resourceAttributes pcommon.Map) cloudwatch.Entity

func GetFullAttributeName added in v1.300056.1

func GetFullAttributeName(shortName string) (string, bool)

GetFullAttributeName returns the full attribute name for a given short name

func IsAllowedAttribute added in v1.300056.1

func IsAllowedAttribute(key string) bool

IsAllowedAttribute checks if the given key is an allowed attribute name

func IsAllowedKeyAttribute added in v1.300056.1

func IsAllowedKeyAttribute(key string) bool

IsAllowedKeyAttribute checks if the given key is an allowed entity key attribute name

Types

This section is empty.

Jump to

Keyboard shortcuts

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