countChromeCrashEvents method

Future<GoogleChromeManagementV1CountChromeCrashEventsResponse> countChromeCrashEvents(
  1. String customer, {
  2. String? filter,
  3. String? orderBy,
  4. String? orgUnitId,
  5. String? $fields,
})

Get a count of Chrome crash events.

Request parameters:

customer - Customer ID. Value must have pattern ^customers/\[^/\]+$.

filter - Query string to filter results, AND-separated fields in EBNF syntax. Supported filter fields: * major_browser_version * minor_browser_version * browser_channel * device_platform * past_number_days Example: major_browser_version = 'M115' AND past_number_days = '28'.

orderBy - Field used to order results. Supported order by fields: * browser_version * count * date

orgUnitId - If specified, only count the number of crash events of the devices in this organizational unit.

$fields - Selector specifying which fields to include in a partial response.

Completes with a GoogleChromeManagementV1CountChromeCrashEventsResponse.

Completes with a commons.ApiRequestError if the API endpoint returned an error.

If the used http.Client completes with an error when making a REST call, this method will complete with the same error.

Implementation

async.Future<GoogleChromeManagementV1CountChromeCrashEventsResponse>
    countChromeCrashEvents(
  core.String customer, {
  core.String? filter,
  core.String? orderBy,
  core.String? orgUnitId,
  core.String? $fields,
}) async {
  final queryParams_ = <core.String, core.List<core.String>>{
    if (filter != null) 'filter': [filter],
    if (orderBy != null) 'orderBy': [orderBy],
    if (orgUnitId != null) 'orgUnitId': [orgUnitId],
    if ($fields != null) 'fields': [$fields],
  };

  final url_ = 'v1/' +
      core.Uri.encodeFull('$customer') +
      '/reports:countChromeCrashEvents';

  final response_ = await _requester.request(
    url_,
    'GET',
    queryParams: queryParams_,
  );
  return GoogleChromeManagementV1CountChromeCrashEventsResponse.fromJson(
      response_ as core.Map<core.String, core.dynamic>);
}