xo::is_ip (private)

 xo::is_ip key

Defined in packages/xotcl-request-monitor/tcl/throttle_mod-procs.tcl

Classify a request monitor key as an IP address when it contains a dot or colon. This is a heuristic for keys already collected by the monitor.

Parameters:
key (required)
Request monitor key.
Returns:
Boolean classification.

Partial Call Graph (max 5 caller/called nodes):
Object ::throttle Object ::throttle (public) xo::is_ip xo::is_ip Object ::throttle->xo::is_ip

Testcases:
No testcase defined.
Source code:
    expr { [string match "*.*" $key] || [string match "*:*" $key] }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: