clickhousesource

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	HttpRecMircoIndexType = "http-rpc-mirco"
	MQDBCacheIndexType    = "mq-db-cache"
	ServiceNodeIndexType  = "service-node"
)

metric catalog

View Source
const (
	TargetServiceNode   = "TargetServiceNode"
	SourceServiceNode   = "SourceServiceNode"
	TargetAddonNode     = "TargetAddonNode"
	SourceAddonNode     = "SourceAddonNode"
	TargetComponentNode = "TargetComponentNode"
	TargetOtherNode     = "TargetOtherNode"
	SourceMQNode        = "SourceMQNode"
	TargetMQNode        = "TargetMQNode"
	TargetMQServiceNode = "TargetMQServiceNode"
	OtherNode           = "OtherNode"
)

node catalog

View Source
const (
	GroupHttp        = "application_http_service"
	GroupRpc         = "application_rpc_service"
	GroupMicro       = "application_micro_service"
	GroupMq          = "application_mq_service"
	GroupDb          = "application_db_service"
	GroupCache       = "application_cache_service"
	GroupServiceNode = "service_node"
)

Variables

View Source
var (
	NodeRelations map[string][]*NodeRelation
	Aggregations  map[string]AggregationCondition
)

Functions

func SelectRelation

func SelectRelation(indexType string) (AggregationCondition, []*NodeRelation)

Types

type AggregationCondition

type AggregationCondition []exp.SelectClauses

type BoolQuery

type BoolQuery exp.LiteralExpression

type NodeRelation

type NodeRelation struct {
	Source []*NodeType
	Target *NodeType
}

type NodeType

type NodeType struct {
	Type string
	// columns in group by
	GroupByField []string
	// columns in select
	ColumnFields []string
	// where condition
	Filter BoolQuery
	// aggregations
	Aggregation SumAggregationMap
}
var (
	TargetServiceNodeType   *NodeType
	SourceServiceNodeType   *NodeType
	TargetAddonNodeType     *NodeType
	SourceAddonNodeType     *NodeType
	TargetComponentNodeType *NodeType
	TargetOtherNodeType     *NodeType
	SourceMQNodeType        *NodeType
	TargetMQNodeType        *NodeType
	TargetMQServiceNodeType *NodeType
	OtherNodeType           *NodeType
)

type SumAggregationMap

type SumAggregationMap map[string]exp.AliasedExpression

Jump to

Keyboard shortcuts

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