::nsmcp::LogTool ::nsmcp::LogTool arguments execute validate ::nsmcp::Tool ::nsmcp::Tool describe execute name permission validate ::nsmcp::LogTool->::nsmcp::Tool ::nsmcp::ServerDescribe ::nsmcp::ServerDescribe execute ::nsmcp::ServerDescribe->::nsmcp::Tool ::nsmcp::StatsTool ::nsmcp::StatsTool available encode unavailable ::nsmcp::StatsTool->::nsmcp::Tool ::nsmcp::AccessSummaryTool ::nsmcp::AccessSummaryTool execute options validate ::nsmcp::AccessSummaryTool->::nsmcp::Tool ::nx::Object ::nx::Object __default_accessor __default_method_call_protection __object_configureparameter __resolve_method_path contains copy delete object method delete object property delete object variable destroy_on_cleanup info consts info info info lookup parameters info lookup slots info lookup syntax info lookup variables info object method args info object method body info object method callprotection info object method debug info object method definition info object method definitionhandle info object method deprecated info object method exists info object method handle info object method origin info object method parameters info object method registrationhandle info object method returns info object method submethods info object method syntax info object method type info object slots info object variables info variable definition info variable name info variable parameter move object alias object forward object method object property object variable private protected public qn require namespace require object method require private object method require protected object method require public object method serialize ::nsmcp::Tool->::nx::Object

Class ::nsmcp::AccessSummaryTool

::nsmcp::AccessSummaryTool[i] create ... \
           [ -analytics:required analytics:required ] \
           [ -description (default "Start an incremental access-log summary; poll log_results with jobHandle. Defaults to the last 60 completed minutes. Use lastMinutes or period previous-hour for relative intervals, or reuse windowHandle to freeze bounds across comparisons. Time selectors are mutually exclusive; explicit from/to remain supported. Counts use request start times when available. Windows are rounded outwards to minutes; coverage reports recent-scan progress, historical backfill, completion-order assumptions, and possible rotation gaps. Supports exact path, status and pool filters and timing breakdowns by status. Coverage separates live-tail lag, historical backfill, cumulative parsing failures and outward bucket rounding; do not treat the rounded future minute as ingestion lag. Optional windowSeconds finds the maximum requests from one logged peer in a rolling inclusive window within the selected period; default 600 seconds. Peer addresses are retained internally; peer filtering and disclosure require diagnostics.logs.peers.read. Existing cache rows may lack peers; inspect unknownPeerCount and peerCountsComplete. Top paths omit queries and may be incomplete when cardinality limits are reached.") ] \
           [ -inputSchema (default "{} object {type string object properties object { lastMinutes object {type string integer minimum number 1 maximum number 1440 description string {Trailing minutes ending at the last completed minute; default 60}} period object {type string string enum array {0 string previous-hour} description string {Previous complete UTC clock hour}} windowHandle object {type string string description string {Reuse bounds returned by an earlier summary; owned by this principal and server}} from object {type string integer description string {Unix epoch seconds; explicit interval start}} to object {type string integer description string {Unix epoch seconds; explicit interval end}} path object {type string string description string {Exact queryless path}} peer object {type string string description string {Exact logged IP address; requires peer permission}} windowSeconds object {type string integer minimum number 1 maximum number 3600 description string {Rolling peer burst duration, defaults to 600; inclusive endpoints}} includePeerAddresses object {type string boolean description string {Disclose the burst peer; requires peer permission}} pool object {type string string description string {Exact connection pool}} status object {type string integer minimum number 100 maximum number 599 description string {HTTP status}} bucketSeconds object {type string integer minimum number 60 maximum number 3600 multipleOf number 60} } additionalProperties boolean false}") ] \
           [ -name (default "access_summary") ] \
           [ -outputSchema (default "") ] \
           [ -permission (default "diagnostics.logs.read") ] \
           [ -service:required service:required ]

Defined in /usr/local/ns/tcl/nsmcp/lib/access-tools.tcl

Class Relations

  • class: ::nx::Class[i]
  • superclass: ::nsmcp::Tool[i]

Methods (to be applied on instances)

  • execute (scripted, public)

     <instance of nsmcp::AccessSummaryTool[i]> execute context arguments
    Parameters:
    context (required)
    arguments (required)

    Testcases:
    No testcase defined.
  • options (scripted, public)

     <instance of nsmcp::AccessSummaryTool[i]> options arguments
    Parameters:
    arguments (required)

    Testcases:
    No testcase defined.
  • validate (scripted, public)

     <instance of nsmcp::AccessSummaryTool[i]> validate arguments
    Parameters:
    arguments (required)

    Testcases:
    No testcase defined.