nsmcp::SystemLogSummary object method addHost (public)
nsmcp::SystemLogSummaryaddHost statsVar value
Defined in /usr/local/ns/tcl/nsmcp/log-summary.tcl
Count one Host warning in the caller's accumulator. Preserve case, brackets and ports for bounded, display-safe values.
- Parameters:
- statsVar (required)
- value (required)
- Testcases:
- No testcase defined.
Source code: upvar 1 $statsVar stats dict incr stats recordCount if {[string length $value] > 256 || ![regexp {^(?:[A-Za-z0-9_.-]+(?::[0-9]+)?|\[[0-9A-Fa-f:.]+\](?::[0-9]+)?)$} $value]} { dict incr stats unknownRecords } elseif {[dict exists $stats counts $value] || [dict size [dict get $stats counts]] < 256} { set counts [dict get $stats counts] dict incr counts $value dict set stats counts $counts } else { dict incr stats capacityOmittedRecords }XQL Not present: Generic, PostgreSQL, Oracle
![[i]](/resources/acs-subsite/ZoomIn16.gif)