ltm rule command ISTATS set
iRule(1) BIG-IP TMSH Manual iRule(1)
ISTATS::set
Sets the given key's value within iStats.
SYNOPSIS
ISTATS::set KEY VALUE
DESCRIPTION
Set the given key's value within iStats
Syntax
ISTATS::set
* Set the given key's value within iStats. The key consists of a
class, object, measure type (counter, gauge, string), and measure
name, separated by whitespace and enclosed in double quotes.
RETURN VALUE
VALID DURING
ANY_EVENT
EXAMPLES
when HTTP_REQUEST {
# send request to /invalidate?policy=
if { [HTTP::path] eq "/invalidate" } {
set wa_policy [URI::query [HTTP::uri] policy]
if { $wa_policy ne "" } {
ISTATS::set "WA policy string $wa_policy" "invalidated"
}
HTTP::respond 200 content "Cache Invalidated for Policy: $wa_policy"
}
}
HINTS
SEE ALSO
CHANGE LOG
@BIGIP-11.0.0 --First introduced the command.
BIG-IP 2017-01-31 iRule(1)