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 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
Click to show internal directories.
Click to hide internal directories.