Documentation ¶
Index ¶
Constants ¶
View Source
const ATSVersion = "5.3.2" // of course, we're not really ATS. We're terrible liars.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Stats ¶
type Stats interface { System() StatsSystem Remap() StatsRemaps Connections() uint64 CacheHits() uint64 AddCacheHit() CacheMisses() uint64 AddCacheMiss() CacheSize() uint64 CacheCapacity() uint64 // Write writes to the remapRuleStats of s, and returns the bytes written to the connection Write(w http.ResponseWriter, conn *web.InterceptConn, reqFQDN string, remoteAddr string, code int, bytesWritten uint64, cacheHit bool) uint64 CacheKeys(string) []string CacheSizeByName(string) (uint64, bool) CacheCapacityByName(string) (uint64, bool) CacheNames() []string CachePeek(string, string) (*cacheobj.CacheObj, bool) }
type StatsJSON ¶
type StatsJSON struct { ATS map[string]interface{} `json:"ats"` System StatsSystemJSON `json:"system"` }
type StatsRemap ¶
type StatsRemap interface { InBytes() uint64 AddInBytes(uint64) OutBytes() uint64 AddOutBytes(uint64) Status2xx() uint64 AddStatus2xx(uint64) Status3xx() uint64 AddStatus3xx(uint64) Status4xx() uint64 AddStatus4xx(uint64) Status5xx() uint64 AddStatus5xx(uint64) CacheHits() uint64 AddCacheHit() CacheMisses() uint64 AddCacheMiss() }
func NewStatsRemap ¶
func NewStatsRemap() StatsRemap
type StatsRemaps ¶
type StatsRemaps interface { Stats(fqdn string) (StatsRemap, bool) Rules() []string }
func NewStatsRemaps ¶
func NewStatsRemaps(remapRules []remapdata.RemapRule) StatsRemaps
type StatsSystem ¶
type StatsSystem interface { AddConfigReloadRequests() SetLastReloadRequest(time.Time) AddConfigReload() SetLastReload(time.Time) SetAstatsLoad(time.Time) ConfigReloadRequests() uint64 LastReloadRequest() time.Time ConfigReloads() uint64 LastReload() time.Time AstatsLoad() time.Time Version() string }
func NewStatsSystem ¶
func NewStatsSystem(version string) StatsSystem
type StatsSystemJSON ¶
type StatsSystemJSON struct { InterfaceName string `json:"inf.name"` InterfaceSpeed int64 `json:"inf.speed"` ProcNetDev string `json:"proc.net.dev"` ProcLoadAvg string `json:"proc.loadavg"` ConfigReloadRequests uint64 `json:"configReloadRequests"` LastReloadRequest int64 `json:"lastReloadRequest"` ConfigReloads uint64 `json:"configReloads"` LastReload int64 `json:"lastReload"` AstatsLoad int64 `json:"astatsLoad"` Something string `json:"something"` Version string `json:"application_version"` }
Click to show internal directories.
Click to hide internal directories.