entityattributes

package
v1.300049.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 0 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 GetAttributeEntityShortNameMap

func GetAttributeEntityShortNameMap(platformType string) map[string]string

Cluster attribute prefix could be either EKS or K8s. We set the field once at runtime.

func GetKeyAttributeEntityShortNameMap

func GetKeyAttributeEntityShortNameMap() map[string]string

Types

This section is empty.

Jump to

Keyboard shortcuts

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