model

package
v1.3.0-rc.0...-d217119 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	TimestampKey   = "timestamp"
	NameKey        = "name"
	TagKey         = "tags"
	FieldKey       = "fields"
	ClusterNameKey = TagKey + ".cluster_name"
)
View Source
const (
	TagsKey         = "tags."
	FieldsKey       = "fields."
	TimeKey         = "time"
	DefaultLimtSize = 100
)

keys define

View Source
const (
	ColumnFlagNone = ColumnFlag(0)
	ColumnFlagHide = ColumnFlag(1 << (iota - 1))
	ColumnFlagName
	ColumnFlagTimestamp
	ColumnFlagTag
	ColumnFlagField
	ColumnFlagLiteral
	ColumnFlagFunc
	ColumnFlagAgg
	ColumnFlagGroupBy
	ColumnFlagOrderBy

	ColumnFlagGroupByInterval
	ColumnFlagGroupByRange
)

ColumnFlag values

View Source
const ClickhouseKind = "Clickhouse"

Variables

This section is empty.

Functions

This section is empty.

Types

type Column

type Column struct {
	Type  string
	Name  string
	Key   string
	Flag  ColumnFlag
	Extra interface{}
}

Column .

type ColumnFlag

type ColumnFlag int32

ColumnFlag .

func (ColumnFlag) String

func (f ColumnFlag) String() string

type Data

type Data struct {
	Total    int64
	Interval int64
	Columns  []*Column
	Rows     [][]interface{}
}

Data .

func (Data) String

func (d Data) String() string

type Filter

type Filter struct {
	Key      string
	Operator string
	Value    interface{}
}

Filter .

type ResultSet

type ResultSet struct {
	*Data
	Details interface{}
	Elapsed struct {
		Search time.Duration `json:"search"`
	} `json:"elapsed"`
}

ResultSet .

type Source

type Source struct {
	Database string
	Name     string
}

Source .

Jump to

Keyboard shortcuts

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