package
8.0.2
Repository: https://github.com/apache/trafficcontrol.git
Documentation: pkg.go.dev

# Functions

ComputedStats returns a map of cache stats which are computed by Traffic Monitor (rather than returned literally from ATS), mapped to the function to compute them.
GetDecoder gets a decoder for the given statistic format.
LoadavgFromRawLine parses a raw line - presumably read from /proc/loadavg - and returns a Loadavg containing all of the same information, as well as any encountered error.
NewHandler returns a new cache handler.
NewPrecomputeHandler constructs a new cache Handler, which precomputes stat data and populates result.Precomputed before passing to ResultChan.
No description provided by the author

# Constants

No description provided by the author
LOADAVG_SHIFT is the amount by which "loadavg" values returned by stats_over_http need to be divided to obtain the values with which ATC operators are more familiar.

# Structs

Astats contains ATS data returned from the Astats ATS plugin.
AstatsSystem represents fixed system stats returned from the 'astats_over_http' ATS plugin.
AvailableStatus is the available status of the given cache.
AvailableTuple contains a boolean value to indicate whether IPv4 is available and a boolean value to indicate whether IPv6 is available.
DSStat is a single Delivery Service statistic, which is associated with a particular cache server.
Handler is a cache handler, which fulfills the common/handler `Handler` interface.
Interface represents a network interface.
Loadavg contains the parsed "loadavg" data for a polled cache server.
PrecomputedData represents data parsed and pre-computed from the Result.
Result is a result of polling a cache server for statistics.
ResultInfo contains all the non-stat result info.
Stat is a generic stat, including the untyped value and the time the stat was taken.
Statistics is a structure containing, most generally, the statistics of a cache server.
StatsDecoder is a pair of functions registered for decoding statistics of a particular format, and parsing that data and precomputing related data, respectively.
Vitals is the vitals data returned from a cache.
Vstats holds Varnish cache statistics.

# Interfaces

Filter filters whether stats and caches should be returned from a data set.

# Type aliases

CacheAvailableStatuses is the available status of each cache.
Kbpses is the kbps values of each interface of a cache server.
ResultHistory is a map of cache names, to an array of result history from each cache server.
TODO determine if anything ever needs more than the latest, and if not, change ResultInfo to not be a slice.
StatComputeFunc functions calculate a specific statistic given a set of polling results, server and profile information, whether or not the server is available, and the name of the specific network interface for which stats will be computed.
StatisticsParser is a function that parses raw input data for a given statistics format and returns the meaningful statistics.
StatisticsPrecomputer is a function that "pre-computes" some statistics beyond the basic ones covered by a Statistics object.