From 5c992cee00c0984b80a1ec31ffa76867f247db03 Mon Sep 17 00:00:00 2001 From: Olivier G Date: Tue, 4 Oct 2022 14:30:23 +0200 Subject: [PATCH] Add Flush method in IDogStatsd --- src/StatsdClient/IDogStatsd.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/StatsdClient/IDogStatsd.cs b/src/StatsdClient/IDogStatsd.cs index a3590ef..a874563 100644 --- a/src/StatsdClient/IDogStatsd.cs +++ b/src/StatsdClient/IDogStatsd.cs @@ -170,5 +170,11 @@ void ServiceCheck( string hostname = null, string[] tags = null, string message = null); + + /// + /// Flushes all metrics. + /// + /// The value indicating whether the telemetry must be flushed. + void Flush(bool flushTelemetry = true); } } \ No newline at end of file