ISTATS::set¶
Syntax¶
ISTATS::set <key> <value>
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. See the example below.
Examples¶
when HTTP_REQUEST {
# send request to /invalidate?policy=<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" 1
}
HTTP::respond 200 content "<html><body>Cache Invalidated for Policy: $wa_policy</body></html>"
}
}