bumo

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ViewTypePrometheusMetric            = 1
	ViewTypePrometheusMetricAggregation = 2
)
View Source
const (
	ReplicaStatusYes = iota
	ReplicaStatusNo
)
View Source
const (
	DataTypeDistributed = 1
)
View Source
const PrometheusMetricName = "clickvisual_alert_metrics"

Variables

This section is empty.

Functions

This section is empty.

Types

type Params

type Params struct {
	TableCreateType  int
	Cluster          string
	ReplicaStatus    int
	KafkaJsonMapping string
	LogField         string
	TimeField        string
	Data             ParamsData
	View             ParamsView
	Stream           ParamsStream
}

type ParamsData

type ParamsData struct {
	DataType    int
	TableName   string
	Days        int
	SourceTable string
}

type ParamsStream

type ParamsStream struct {
	TableName               string
	TableTyp                string
	Brokers                 string
	Topic                   string
	Group                   string
	ConsumerNum             int
	KafkaSkipBrokenMessages int
}

type ParamsView

type ParamsView struct {
	WithSQL          string
	ViewType         int
	ViewTable        string
	TargetTable      string
	CommonFields     string
	SourceTable      string
	Where            string
	TimeConvert      string
	IsKafkaTimestamp int
}

type QueryAssembly

type QueryAssembly struct {
	Params Params
	Result string
}

QueryAssembly all in one

func (*QueryAssembly) Gen

func (q *QueryAssembly) Gen() string

Jump to

Keyboard shortcuts

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