types

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PushPolicy = "push"
	PullPolicy = "pull"
)
View Source
const (
	Agent                  = "/monitoring/agents/"
	MonConfig              = "/monitoring/configs"
	EventLog               = "/monitoring/eventLogs"
	CollectorPolicy        = "/monitoring/collectorPolicy"
	Topic                  = "/push/topic"
	CollectorTopicMap      = "/push/collectorTopicMap"
	MCK8STopic             = "/mck8s/push/topic"
	MCK8SCollectorTopicMap = "/mck8s/push/collectorTopicMap"
)

CB-Store key

View Source
const (
	NsId    = "nsId"
	McisId  = "mcisId"
	VmId    = "vmId"
	OsType  = "osType"
	CspType = "cspType"
)
View Source
const (
	AgentCntCollectorPolicy = "AGENTCOUNT"
	CSPCollectorPolicy      = "CSP"
)
View Source
const (
	Alibaba     = "ALIBABA"
	Aws         = "AWS"
	Azure       = "AZURE"
	Cloudit     = "CLOUDIT"
	Cloudtwin   = "CLOUDTWIN"
	Docker      = "DOCKER"
	Gcp         = "GCP"
	Openstack   = "OPENSTACK"
	TotalCspCnt = 8
)
View Source
const (
	AgentPort            = 8888
	KafkaDefaultPort     = 9092
	InfluxDefaultPort    = 8086
	KapacitorDefaultPort = 9092
)
View Source
const (
	Dev     = "dev"
	Helm    = "helm"
	Compose = "compose"
)
View Source
const (
	TopicAdd = "TopicAdd"
	TopicDel = "TopicDel"
)
View Source
const (
	ConfigMapName       = "cb-dragonfly-collector-configmap"
	DeploymentName      = "cb-dragonfly-collector-"
	MCK8SConfigMapName  = "cb-dragonfly-mck8s-collector-configmap"
	MCK8SDeploymentName = "cb-dragonfly-mck8s-collector-"
)
View Source
const (
	LabelKey = "name"

	MCISCollectorImage  = "cloudbaristaorg/cb-dragonfly:0.7.0-mcis-collector"
	MCK8SCollectorImage = "cloudbaristaorg/cb-dragonfly:0.7.0-mck8s-collector"
)
View Source
const (
	CREATE = "create"
	DELETE = "delete"
)
View Source
const (
	MCIS       string = "mcis"
	VM         string = "vm"
	MCK8S      string = "mck8s"
	KUBERNETES string = "kubernetes"
	K8S        string = "k8s"
	Cluster    string = "cluster"
	Node       string = "node"
	Namespace  string = "namespace"
	ALL        string = "all"
)
View Source
const ReadConnectionTimeout = 5
View Source
const (
	TBRestAPIURL = "http://localhost:1323/tumblebug"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregateType added in v0.3.5

type AggregateType string
const (
	MIN  AggregateType = "min"
	MAX  AggregateType = "max"
	AVG  AggregateType = "avg"
	LAST AggregateType = "last"
)

func (AggregateType) ToString added in v0.3.5

func (a AggregateType) ToString() string

type CBMCISMetric added in v0.5.2

type CBMCISMetric struct {
	Result  string `json:"result"`
	Unit    string `json:"unit"`
	Desc    string `json:"desc"`
	Elapsed string `json:"elapsed"`
	SpecId  string `json:"specid"`
}

CBMCISMetric 단일 MCIS Milkyway 메트릭

type DBData added in v0.5.2

type DBData struct {
	Name    string            `json:"name"`
	Tags    map[string]string `json:"tags"`
	Columns []string          `json:"columns"`
	Values  [][]interface{}   `json:"values"`
}

type DBMetricRequestInfo added in v0.5.2

type DBMetricRequestInfo struct {
	NsID                string
	ServiceID           string
	ServiceType         string
	MonitoringMechanism bool // push: true
	VMID                string
	MetricName          string
	MCK8SReqInfo
	Period       string
	AggegateType string
	Duration     string
}

type MCBMCISMetric added in v0.5.2

type MCBMCISMetric struct {
	ResultArray []CBMCISMetric `json:"resultarray"`
}

MCBMCISMetric 멀티 MCIS Milkyway 메트릭

type MCK8SReqInfo added in v0.5.2

type MCK8SReqInfo struct {
	GroupBy   string // Node: Cluster or Node  // Pod: Node or Namespace or Pod
	Node      string
	Namespace string
	Pod       string
}

type Metric

type Metric string
const (
	Cpu           Metric = "cpu"
	CpuFrequency  Metric = "cpufreq"
	Memory        Metric = "memory"
	Disk          Metric = "disk"
	DiskIO        Metric = "diskio"
	Network       Metric = "network"
	None          Metric = "none"
	MCK8S_NODE    Metric = "node"
	MCK8S_POD     Metric = "pod"
	MCK8S_CLUSTER Metric = "cluster"
)

func GetMetricType added in v0.4.1

func GetMetricType(input string) Metric

func (Metric) ToAgentMetricKey added in v0.3.5

func (m Metric) ToAgentMetricKey() string

func (Metric) ToString added in v0.3.5

func (m Metric) ToString() string

type Mrequest added in v0.5.2

type Mrequest struct {
	MultiHost []Request `json:"multihost"`
}

Mrequest GET Request 멀티 Body 정보

type Parameter added in v0.5.2

type Parameter struct {
	// contains filtered or unexported fields
}

type Request added in v0.5.2

type Request struct {
	Host string `json:"host"`
	Spec string `json:"spec"`
}

Request GET Request 단일 Body 정보

Jump to

Keyboard shortcuts

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