SDK
SDK C# v2.x
2

GetStatsAsync #

Returns statistics snapshots within a provided timestamp range. By default, snapshots are made every 10 seconds and they are stored for 1 hour.

These statistics include:

  • the number of connected users per protocol (not available for all protocols)
  • the number of ongoing requests
  • the number of completed requests since the last frame
  • the number of failed requests since the last frame

Arguments #

Copied to clipboard!
async Task<JObject> GetStatsAsync(Int64 start, Int64 end)
Argument Type Description
start
long
beginning of statistics frame set
end
long
end of statistics frame set

Return #

Returns statistics snapshots within a provided timestamp range as a JObject.

Usage #

Copied to clipboard!
long start = 1234567890000L;
long end = 1541426610000L;
JObject stats = await kuzzle.Server.GetStatsAsync(start, end);
Console.WriteLine("Kuzzle stats: " + stats.ToString(Formatting.None));