# LibTmux::ControlConnection#diagnostics

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Ruby
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/dcc9f8b5a6970144a9e7d80cd5f381d8f6198372/gems/libtmux/lib/libtmux/control.rb#L552
- **Page:** https://libtmux.org/en/ruby/v0.1.0.alpha.2/reference/libtmux-controlconnection-diagnostics/

```
def diagnostics: () -> {
  admitted_requests: ::Integer,
  incomplete_requests: ::Integer,
  queued_requests: ::Integer,
  writing_requests: ::Integer,
  awaiting_reply: ::Integer,
  reserved_wire_bytes: ::Integer,
  retained_reply_bytes: ::Integer,
  stderr_received_bytes: ::Integer,
  subscription_count: ::Integer,
  stopping: bool,
  finished: bool,
  cleanup_error_count: ::Integer,
  limits: {
    max_requests: ::Integer,
    max_command_bytes: ::Integer,
    max_queue_bytes: ::Integer,
    max_line_bytes: ::Integer,
    max_reply_bytes: ::Integer,
    max_stderr_bytes: ::Integer,
    max_subscriptions: ::Integer
  }
}
```

Returns frozen local accounting, without payloads or native liveness I/O.
Admission and byte reservations include completed replies until consumed.
Subscription count includes closed streams retained by this connection.

Behavior contract: Diagnostics.
