getAnalyticsOld method

Future<void> getAnalyticsOld({
  1. String? name,
  2. String? teamId,
})

Get analytics

Get some analytics data about the system. This endpoint uses the old format, the /analytics route is reserved for the new format when it gets implemented. The returned JSON changes based on the name query parameter but is always key/value pairs. Minimum server version: 4.0 ##### Permissions Must have manage_system permission.

Parameters:

  • String name: Possible values are "standard", "bot_post_counts_day", "post_counts_day", "user_counts_with_posts_day" or "extra_counts"

  • String teamId: The team ID to filter the data by

Implementation

Future<void> getAnalyticsOld({
  String? name,
  String? teamId,
}) async {
  final response = await getAnalyticsOldWithHttpInfo(
    name: name,
    teamId: teamId,
  );
  if (response.statusCode >= HttpStatus.badRequest) {
    throw MmApiException(response.statusCode, await _decodeBodyBytes(response));
  }
}