nsmcp::ServerTopology method execute (public)

 <instance of nsmcp::ServerTopology[i]> execute context arguments

Defined in /usr/local/ns/tcl/nsmcp/stats-tools.tcl

Read the selected server's runtime topology. Use the configured runtime command and return an unavailable result when the capability is absent.

Parameters:
context (required)
Authenticated request context carrying the principal, grants and selected server.
arguments (required)
Rooted ns_json typed triples for the tool's JSON argument object.
Returns:
A rooted JSON tool-result object, including availability or job metadata as appropriate.

Testcases:
No testcase defined.
Source code:
if {![:available]} {
    return [:unavailable $context]
}
set data [${:command} describe -server [$context server]]
return [list {} object [list server string [$context server] available boolean true  topology object [:encode topology $data]]]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: