package
0.1.7
Repository: https://github.com/gaopengfei123123/tools.git
Documentation: pkg.go.dev

# Functions

BatchGenerateMetricsAgg 将指标批量加载进去.
BatchGetValueFromAggData 从 agg 中提取数据.
BatchGetValueFromTerms 从聚合 terms 中批量获取值.
BuildHistogramMetricsAgg 构建直方图的agg.
BuildTermAgg 递归生成多级 term.
CheckAggNeeReverse 检测该指标是否就是需要在 nested 环境下使用 true 则不执行 reverse_nested.
No description provided by the author
GenTermKey 组合 term聚合的 key.
GetBasicMetrics 获取简单指标.
GetBasicMetricsWithQuery 以原生传query 的方式获取值.
No description provided by the author
GetHistogramMetrics 获取直方图聚合指标.
GetHistogramMetricsWithQuery 获取直方图, 参数由 query 格式传入.
GetTermsMetrics 获取多级指标.
GetTermsMetricsWithQuery 以原生传参的方式, 获取聚合指标.
GetValueFromAggData 单个指标从 agg 中取数.
SetEsIndex 确定要查询的esindex.
SetESIndexNameFunc 设置默认的索引.
SetHistogramAgg 设置.
No description provided by the author
SetMetricsAggFunc 设置获取指标信息的方法.
No description provided by the author

# Constants

聚合 terms 的时候的最大数量.
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
标记必须非空.
nested类型字段连接方式 nested A下的字段B, 写成 A.B 实际按.
非空标识符.
object类型字段链接方式 object A下的字段 B, 写成 A>B, 最终转换成 A.B.
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

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
EsQueryCondition es 搜索条件.
No description provided by the author
EsTerm 指标配置, 只允许一个字段值做指标.
No description provided by the author
No description provided by the author
ParamsMapList 参数映射图.
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

AggFunc 指标查询函数要求的格式.
AggHistogramFunc 直方聚合查询.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author