exportSnapshot method

  1. @override
void exportSnapshot(
  1. GlobalMetrics gm
)
override

Implementation

@override
void exportSnapshot(GlobalMetrics gm) {
  _writeHeaderIfNeeded();

  _writeln([
    gm.ts.toIso8601String(),
    'global',
    '', // id
    gm.sent, gm.recv, gm.dropped, gm.closed,
    gm.trySendOk, gm.trySendFail, gm.tryRecvOk, gm.tryRecvEmpty,
    '', '', '', // global latencies not computed
    '', '', '',
    '', '', // global rates not computed
    '', '', '', // global drop/failure rates not computed
    gm.channels.length, // channel count
  ]);
}