nsmcp::ServerRuntime method execute (public)
<instance of nsmcp::ServerRuntime> execute context arguments
Defined in /usr/local/ns/tcl/nsmcp/stats-tools.tcl
Read bounded runtime diagnostics for the selected server. Apply the validated inspection mode and retain unavailable capability and scheduler diagnostics.
- 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 mode [:mode $arguments] set data [${:command} $mode -server [$context server]] set status [${:command} sampling status] return [list {} object [list server string [$context server] available boolean true mode string $mode sampling object [:encode metrics $status] scheduler object [:encode schedulerDiagnostics [:schedulerDiagnostics]] runtime object [:encode runtime $data]]]XQL Not present: Generic, PostgreSQL, Oracle
![[i]](/resources/acs-subsite/ZoomIn16.gif)