ISTATS::get

Description

Reads in the value associated with the given iStats key

Syntax

ISTATS::get <key>

ISTATS::get

  • Always reads aggregate (not tmm-local) value

Examples

when HTTP_REQUEST {
    if { [string tolower [HTTP::uri]] equals "/12345" } {
        ISTATS::incr "uri /12345 r Requests" 1
        HTTP::uri "/"
        HTTP::redirect "http://www.mysite.com"
    } elseif { [string tolower [HTTP::uri]] equals "/stats" } {
          HTTP::respond 200 content "<html><body>Requests for /12345: [ISTATS::get "uri /12345 r Requests"]</body></html>"
    }
}