package
3.9.2635+incompatible
Repository: https://github.com/tencentblueking/bkmonitor-datalink.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
Package mocktest is a generated GoMock package.

# Functions

CheckSelectSQL 检查是否是查询语句,防止sql注入.
CheckSQLInject 检查sql注入.
GetBizRouter.
GetInfluxDBRouter 获取实例.
GetInstance 初始化全局influxdb实例.
GetMetricRouter.
No description provided by the author
GetTableRouter.
No description provided by the author
GetTsDBRouter.
GroupBySeries 基于维度进行重新分组.
InitGlobalInstance 兼容单元测试.
Intersection 取交集并去重.
MergeTables : 直接合并相同维度的数据.
MockRouter mock 路由信息.
No description provided by the author
No description provided by the author
NewBizRouter.
NewDataIDFilter.
No description provided by the author
NewInstance.
NewMetricRouter.
NewPool.
NewTable.
NewTableRouter.
NewTables.
NewTask.
NewTsDBRouter.
QueryAsync 异步查询数据 此方法会将所有series放在同一个Tables中,所以仅仅用于查询单指标的情况,请勿查询不同指标.
QueryInfosAsync.
ReloadMetricRouter: 重载 influxdb 指标路由表信息 dataidMetrics: {dataid:[metrics]}, eg: {1001: ["usage", "idle", "iowait"], 1002: ["free", "total"]}.
ReloadStorage 重新加载 influxdb 实例.
ReloadTableInfos : 重载 influxdb 路由表信息.
SetSpaceTsDbRouter 设置全局可用的 Router 单例,用于管理空间数据.
SetTablesInfo.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetTableIDByDBAndMeasurement 根据db和measurement获取tableID.
GetTableIDsByDataID : 根据projectID获取tableID列表.
IsPivotTable 判断是否为自定义类型table.
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
BatchItemMeta 一个批次每个元素的更新情况.
BizRouter.
DataIDFilter 这里需要bizID, projectID, clusterID的路由.
Host.
Instance.
MetricRouter map[string]consul.DataIDs.
Option.
Params.
Pool.
Router 查询路由.
No description provided by the author
SQLInfo.
Table :.
TableInfo.
TableRouter.
Tables.
Task.
TsDBRouter :map[consul.DataID][]*consul.TableID // dataID -> [tableInfo].