common

package
v4.5.2000+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConvertDatahub = iota
	ConvertInflux
	ConvertPrometheus
	ConvertNormal
)

Variables

View Source
var PRELOADERENABLE = "/var/tmp/.preloader_enable"
View Source
var PRELOADERLOADFUTURE = "/var/tmp/.preloader_load_future_hours"

Functions

This section is empty.

Types

type AgentQueueItem

type AgentQueueItem struct {
	QueueType string
	RawData   dpRawData.WriteRawdataRequest
}

type ConvertInt

type ConvertInt int

type DataSourceConverter

type DataSourceConverter interface {
	GetWriteRequest() (*dpRawData.WriteRawdataRequest, error)
}

type InfluxField

type InfluxField struct {
	Name    string
	Type    DataHubCommon.DataType
	Default interface{}
}

type QueueType

type QueueType int
const (
	QueueTypePod                QueueType = 0
	QueueTypeNode               QueueType = 1
	QueueTypePodMetrics         QueueType = 2
	QueueTypeApplicationMetrics QueueType = 3
	QueueTypeControllerMetrics  QueueType = 4
	QueueTypeNamespaceMetrics   QueueType = 5
	QueueTypeNodeMetrics        QueueType = 6
	QueueTypeClusterMetrics     QueueType = 7
	QueueTypeTopic              QueueType = 8
	QueueTypeConsumerGroup      QueueType = 9
	QueueTypeConsumerLag        QueueType = 10
	QueueTypeNginx              QueueType = 11
)

type TargetData

type TargetData interface {
	IsTagKey(string) bool
	GetFieldKey(string) *InfluxField
	GetSourceData() interface{}
	GetClusterID() string
}

Directories

Path Synopsis
csv
log
Package log provides the canonical logging functionality used by Go-based Alameda components.
Package log provides the canonical logging functionality used by Go-based Alameda components.

Jump to

Keyboard shortcuts

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