Documentation ¶
Index ¶
- Constants
- func EntryAdded(size int, summery *api.BaseEntry)
- func InitProtocolToColor(protocolMap map[string]*api.Protocol)
- func ResetGeneralStats()
- type AccumulativeStatsCounter
- type AccumulativeStatsProtocol
- type AccumulativeStatsProtocolTime
- type BucketStats
- type GeneralStats
- type ProtocolStats
- type SizeAndEntriesCount
- type TimeFrameStatsValue
- type TrafficStatsResponse
Constants ¶
View Source
const ( InternalBucketThreshold = time.Minute * 1 MaxNumberOfBars = 30 )
Variables ¶
This section is empty.
Functions ¶
func EntryAdded ¶
func InitProtocolToColor ¶
func ResetGeneralStats ¶
func ResetGeneralStats()
Types ¶
type AccumulativeStatsProtocol ¶
type AccumulativeStatsProtocol struct { AccumulativeStatsCounter Methods []*AccumulativeStatsCounter `json:"methods"` }
type AccumulativeStatsProtocolTime ¶
type AccumulativeStatsProtocolTime struct { ProtocolsData []*AccumulativeStatsProtocol `json:"protocols"` Time int64 `json:"timestamp"` }
type BucketStats ¶
type BucketStats []*TimeFrameStatsValue
type GeneralStats ¶
type GeneralStats struct { EntriesCount int EntriesVolumeInGB float64 FirstEntryTimestamp int LastEntryTimestamp int }
func GetGeneralStats ¶
func GetGeneralStats() *GeneralStats
type ProtocolStats ¶
type ProtocolStats struct {
MethodsStats map[string]*SizeAndEntriesCount `json:"methods"`
}
type SizeAndEntriesCount ¶
type TimeFrameStatsValue ¶
type TimeFrameStatsValue struct { BucketTime time.Time `json:"timestamp"` ProtocolStats map[string]ProtocolStats `json:"protocols"` }
type TrafficStatsResponse ¶
type TrafficStatsResponse struct { Protocols []string `json:"protocols"` PieStats []*AccumulativeStatsProtocol `json:"pie"` TimelineStats []*AccumulativeStatsProtocolTime `json:"timeline"` }
func GetTrafficStats ¶
func GetTrafficStats(startTime time.Time, endTime time.Time) *TrafficStatsResponse
Click to show internal directories.
Click to hide internal directories.