bumo

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ViewTypeDefault = iota
	ViewTypePrometheusMetric
	ViewTypePrometheusMetricAggregation
)
View Source
const (
	DataTypeDefault = iota
	DataTypeDistributed
)
View Source
const (
	ReplicaStatusYes = iota
	ReplicaStatusNo
)
View Source
const PrometheusMetricName = "clickvisual_alert_metrics"

Variables

This section is empty.

Functions

This section is empty.

Types

type Params

type Params struct {
	Cluster       string
	ReplicaStatus int
	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
	TimeTyp     string
	Brokers     string
	Topic       string
	Group       string
	ConsumerNum int
}

type ParamsView

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

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