# LibTmux::ControlSubscription#diagnostics

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

```
def diagnostics: () -> {
  queued_events: ::Integer,
  retained_event_bytes: ::Integer,
  gap_pending: bool,
  overflowed: bool,
  closed: bool,
  mode: :reliable | :tail,
  limits: { max_bytes: ::Integer, max_events: ::Integer }
}
```

Returns frozen local buffer state. A reliable overflow keeps its prefix
readable; explicit close discards the prefix and pending loss report.

Behavior contract: Diagnostics.
