Documentation ¶
Index ¶
- Constants
- func CheckAggsField(field string, needReplace bool) (string, string, error)
- func CheckInterfaceString(a []interface{}) ([]string, error)
- func GetTables(indices []string, tableName string, startTime int64, endTime int64) string
- func GetTablesMonitor(indices []string, tableName string, startTime int64, endTime int64) string
- type Client
- func (c *Client) Indices() ([]string, error)
- func (c *Client) Query(table string, startTime int64, endTime int64, orderBy string, order string, ...) ([]string, []interface{}, error)
- func (c *Client) QueryMonitor(table string, startTime int64, endTime int64, orderBy string, order string, ...) ([]string, []interface{}, error)
- func (c *Client) SimpleQuery(table string) ([]interface{}, error)
Constants ¶
View Source
const MaxLimit = 10000
MaxLimit is the size used in aggs
Variables ¶
This section is empty.
Functions ¶
func CheckAggsField ¶
检查聚合字段格式是否正确,如sum(success)
func CheckInterfaceString ¶
CheckInterfaceString 检查一个[]interface{}中的元素是否都为string
Types ¶
type Client ¶
Client is a ElasticSearch Client
func (*Client) QueryMonitor ¶
func (*Client) SimpleQuery ¶
Click to show internal directories.
Click to hide internal directories.