GetRequestCountRequest constructor

GetRequestCountRequest({
  1. String? orgId,
  2. Int64? timestampFrom,
  3. Int64? timestampTo,
  4. Iterable<String>? services,
  5. Iterable<String>? projectIds,
  6. Granularity? granularity,
  7. GroupBy? groupBy,
})

Implementation

factory GetRequestCountRequest({
  $core.String? orgId,
  $fixnum.Int64? timestampFrom,
  $fixnum.Int64? timestampTo,
  $core.Iterable<$core.String>? services,
  $core.Iterable<$core.String>? projectIds,
  Granularity? granularity,
  GroupBy? groupBy,
}) {
  final result = create();
  if (orgId != null) result.orgId = orgId;
  if (timestampFrom != null) result.timestampFrom = timestampFrom;
  if (timestampTo != null) result.timestampTo = timestampTo;
  if (services != null) result.services.addAll(services);
  if (projectIds != null) result.projectIds.addAll(projectIds);
  if (granularity != null) result.granularity = granularity;
  if (groupBy != null) result.groupBy = groupBy;
  return result;
}