Your plugin might need to know information about Traffic Server’s
current configuration and performance. The functions described in this
section read this information from the Traffic Server
records.config
file. Configuration settings are
stored in CONFIG
variables and statistics are stored
in PROCESS
variables.
Caution | |
---|---|
Not all |
To retrieve a variable, you need to know its type
(int
, counter
, float
, or
string
). Plugins store the records.config
values as an INKMgmtInt
, INKMgmtCounter
,
INKMgmtFloat
, or
INKMgmtString
. You can look up
records.config
variable types in the Traffic Server
Administrator’s Guide.
Depending on the result type, you'll use
INKMgmtIntGet
,
INKMgmtCounterGet
,
INKMgmtFloatGet
, or
INKMgmtStringGet
to obtain the variable
value (see the example for INKMgmtIntGet).
The INKMgmt*Get
functions are: