data

package
v0.54.0 Latest Latest
Warning

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

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

Documentation

Overview

Package data is a utility package

Index

Constants

View Source
const (
	// SourceUnknown is an unknown source
	SourceUnknown source = iota
	// SourceDatadog is a config from datadog
	SourceDatadog
	// SourceEmployee is a config from a datadog employee
	SourceEmployee
)

Variables

This section is empty.

Functions

func ProductListToString

func ProductListToString(products []Product) []string

ProductListToString converts a product list to string list

Types

type ConfigPath

type ConfigPath struct {
	Source   source
	OrgID    int64
	Product  string
	ConfigID string
	Name     string
}

ConfigPath is the extracted metadata of a config path

func ParseConfigPath

func ParseConfigPath(path string) (ConfigPath, error)

ParseConfigPath parses a config path

type Product

type Product string

Product is a remote configuration product

const (
	// ProductAPMSampling is the apm sampling product
	ProductAPMSampling Product = "APM_SAMPLING"
	// ProductCWSDD is the cloud workload security product
	ProductCWSDD Product = "CWS_DD"
	// ProductCWSCustom is the cloud workload security product
	ProductCWSCustom Product = "CWS_CUSTOM"
	// ProductCWSProfile is the cloud workload security product
	ProductCWSProfile Product = "CWS_SECURITY_PROFILES"
	// ProductAPMTracing is the apm tracing product
	ProductAPMTracing Product = "APM_TRACING"
	// ProductLiveDebugging is the dynamic instrumentation product
	ProductLiveDebugging = "LIVE_DEBUGGING"
	// ProductTesting1 is a testing product
	ProductTesting1 Product = "TESTING1"
	// ProductAgentTask is to receive agent task instruction, like a flare
	ProductAgentTask Product = "AGENT_TASK"
	// ProductAgentConfig is to receive agent configurations, like the log level
	ProductAgentConfig = "AGENT_CONFIG"
	// ProductAgentIntegrations is to receive integrations to schedule
	ProductAgentIntegrations = "AGENT_INTEGRATIONS"
)

func StringListToProduct

func StringListToProduct(stringProducts []string) []Product

StringListToProduct converts a string list to product list

Jump to

Keyboard shortcuts

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