getStats method

Future<Map<String, dynamic>> getStats(
  1. DateTime startTime,
  2. DateTime stopTime
)

Returns the statistics frame from a date

Implementation

Future<Map<String, dynamic>> getStats(
    DateTime startTime, DateTime stopTime) async {
  final response = await kuzzle.query(KuzzleRequest(
    controller: name,
    action: 'getAllStats',
    startTime: startTime,
    stopTime: stopTime,
  ));

  return response.result as Map<String, dynamic>;
}