Documentation ¶
Index ¶
- Constants
- Variables
- func IsModifiedOnlyDatasource(datasource string) bool
- func MakeCreateTableLocal(t *ckdb.Table, dstTable, aggrSummable, aggrUnsummable string) string
- func MakeGlobalTableCreateSQL(t *ckdb.Table, dstTable string) string
- func MakeMVTableCreateSQL(t *ckdb.Table, dstTable, aggrSummable, aggrUnsummable string, ...) string
- type ActionEnum
- type AddBody
- type AggrEnum
- type DatasourceInfo
- type DatasourceManager
- type DatasourceModifiedOnly
- type DelBody
- type IntervalEnum
- type JsonResp
- type ModBody
- type TableType
Constants ¶
View Source
const ( DATASOURCE_PORT = 20106 MAX_DATASOURCE_COUNT = 64 )
View Source
const ( ORIGIN_TABLE_1M = "1m" ORIGIN_TABLE_1S = "1s" FLOW_METRICS = "vtap_flow" APP_METRICS = "vtap_app" ERR_IS_MODIFYING = "Modifying the retention time (%s), please try again later" )
View Source
const ( OBSERVATRACE_SYSTEM DatasourceModifiedOnly = "observatrace_system" L4_FLOW_LOG = "flow_log.l4_flow_log" L7_FLOW_LOG = "flow_log.l7_flow_log" L4_PACKET = "flow_log.l4_packet" L7_PACKET = "flow_log.l7_packet" EXT_METRICS = "ext_metrics" PROMETHEUS = "prometheus" EVENT_EVENT = "event.event" EVENT_PERF_EVENT = "event.perf_event" EVENT_ALARM_EVENT = "event.alarm_event" PROFILE = "profile.in_process" )
Variables ¶
View Source
var DatasourceModifiedOnlyIDMap = map[DatasourceModifiedOnly]DatasourceInfo{ OBSERVATRACE_SYSTEM: {int(zerodoc.VTAP_TABLE_ID_MAX) + 1, "observatrace_system", []string{}}, L4_FLOW_LOG: {int(zerodoc.VTAP_TABLE_ID_MAX) + 2, "flow_log", []string{"l4_flow_log"}}, L7_FLOW_LOG: {int(zerodoc.VTAP_TABLE_ID_MAX) + 3, "flow_log", []string{"l7_flow_log"}}, L4_PACKET: {int(zerodoc.VTAP_TABLE_ID_MAX) + 4, "flow_log", []string{"l4_packet"}}, L7_PACKET: {int(zerodoc.VTAP_TABLE_ID_MAX) + 5, "flow_log", []string{"l7_packet"}}, EXT_METRICS: {int(zerodoc.VTAP_TABLE_ID_MAX) + 6, "ext_metrics", []string{"metrics"}}, PROMETHEUS: {int(zerodoc.VTAP_TABLE_ID_MAX) + 7, "prometheus", []string{"samples"}}, EVENT_EVENT: {int(zerodoc.VTAP_TABLE_ID_MAX) + 8, "event", []string{"event"}}, EVENT_PERF_EVENT: {int(zerodoc.VTAP_TABLE_ID_MAX) + 9, "event", []string{"perf_event"}}, EVENT_ALARM_EVENT: {int(zerodoc.VTAP_TABLE_ID_MAX) + 10, "event", []string{"alarm_event"}}, PROFILE: {int(zerodoc.VTAP_TABLE_ID_MAX) + 11, "profile", []string{"in_process"}}, }
Functions ¶
func MakeCreateTableLocal ¶
func MakeMVTableCreateSQL ¶
Types ¶
type ActionEnum ¶
type ActionEnum uint8
const ( ADD ActionEnum = iota DEL MOD )
func ActionToEnum ¶
func ActionToEnum(action string) (ActionEnum, error)
type DatasourceInfo ¶
type DatasourceManager ¶
type DatasourceManager struct {
// contains filtered or unexported fields
}
func NewDatasourceManager ¶
func NewDatasourceManager(cfg *config.Config, readTimeout int) *DatasourceManager
func (*DatasourceManager) Close ¶
func (m *DatasourceManager) Close() error
func (*DatasourceManager) Handle ¶
func (m *DatasourceManager) Handle(dbGroup, action, baseTable, dstTable, aggrSummable, aggrUnsummable string, interval, duration int) error
func (*DatasourceManager) RegisterHandlers ¶
func (m *DatasourceManager) RegisterHandlers()
func (*DatasourceManager) Start ¶
func (m *DatasourceManager) Start()
type DatasourceModifiedOnly ¶
type DatasourceModifiedOnly string
func (DatasourceModifiedOnly) DatasourceInfo ¶
func (ds DatasourceModifiedOnly) DatasourceInfo() DatasourceInfo
Click to show internal directories.
Click to hide internal directories.