ltm rule command ISTATS get
iRule(1) BIG-IP TMSH Manual iRule(1)
ISTATS::get
Retrieves the value associated with the given key.
SYNOPSIS
ISTATS::get KEY
DESCRIPTION
Reads in the value associated with the given iStats key
Syntax
ISTATS::get
* Always reads aggregate (not tmm-local) value
RETURN VALUE
Returns the value associated with the given key.
VALID DURING
ANY_EVENT
EXAMPLES
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] equals "/12345" } {
ISTATS::incr "uri /12345 counter Requests" 1
HTTP::uri "/"
HTTP::redirect "http://www.mysite.com"
} elseif { [string tolower [HTTP::uri]] equals "/stats" } {
HTTP::respond 200 content "Requests for /12345: [ISTATS::get "uri /12345 counter Requests"]"
}
}
HINTS
SEE ALSO
CHANGE LOG
@BIGIP-11.0.0 --First introduced the command.
BIG-IP 2017-01-31 iRule(1)