Documentation ¶
Index ¶
- Variables
- func FlushStatsToFile(orgid uint64) error
- func ForceFlushStatstoFile()
- func GetBaseStatsDir(orgid uint64) string
- func GetCurrentMetricsStats(orgid uint64) (uint64, uint64)
- func GetQueryCount()
- func GetQueryStats(orgid uint64) (uint64, float64, uint64)
- func GetTotalLogLines(orgid uint64) uint64
- func GetUsageStats(pastXhours uint64, granularity UsageStatsGranularity, orgid uint64) (map[string]ReadStats, error)
- func ReadQueryStats(orgid uint64) error
- func StartUsageStats()
- func UpdateCompressedStats(segFileSize int64, orgid uint64)
- func UpdateMetricsStats(bytesCount uint64, incomingMetrics uint64, orgid uint64)
- func UpdateQueryStats(queryCount uint64, totalRespTime float64, orgid uint64)
- func UpdateStats(bytesCount uint64, logLinesCount uint64, orgid uint64)
- type CompressedStats
- type QueryStats
- type ReadStats
- type Stats
- type UsageStatsGranularity
Constants ¶
This section is empty.
Variables ¶
View Source
var QueryStatsMap = make(map[uint64]*QueryStats)
Functions ¶
func FlushStatsToFile ¶
func ForceFlushStatstoFile ¶
func ForceFlushStatstoFile()
func GetBaseStatsDir ¶
func GetCurrentMetricsStats ¶
func GetQueryCount ¶
func GetQueryCount()
func GetTotalLogLines ¶
func GetUsageStats ¶
func GetUsageStats(pastXhours uint64, granularity UsageStatsGranularity, orgid uint64) (map[string]ReadStats, error)
Calculate total bytesCount,linesCount and return hourly / daily count
func ReadQueryStats ¶
func StartUsageStats ¶
func StartUsageStats()
func UpdateCompressedStats ¶
func UpdateMetricsStats ¶
func UpdateQueryStats ¶
func UpdateStats ¶
Types ¶
type CompressedStats ¶
type QueryStats ¶
type UsageStatsGranularity ¶
type UsageStatsGranularity uint8
const ( Hourly UsageStatsGranularity = iota + 1 Daily )
Click to show internal directories.
Click to hide internal directories.