# LibTmux::ControlSubscription#diagnostics

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Ruby
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/c8b839595d5a30e271e3f9be0d0fe811ddb11b7e/gems/libtmux/lib/libtmux/control.rb#L163
- **Page:** https://libtmux.org/en/ruby/v0.1.0/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.
