code: public ApiResponse<AggregatesResponse> getMessageAggregatesWithHttpInfo(String sdid, String field, Long startDate, Long endDate) throws ApiException {
          com.squareup.okhttp.Call call = getMessageAggregatesValidateBeforeCall(sdid, field, startDate, endDate, null, null);
          Type localVarReturnType = new TypeToken<AggregatesResponse>(){}.getType();
          return apiClient.execute(call, localVarReturnType);
      }
docs: Get Normalized Message Aggregates
  Get Aggregates on normalized messages.
  @param sdid Source device ID of the messages being searched. (required)
  @param field Message field being queried for aggregates. (required)
  @param startDate Timestamp of earliest message (in milliseconds since epoch). (required)
  @param endDate Timestamp of latest message (in milliseconds since epoch). (required)
  @return ApiResponse&lt;AggregatesResponse&gt;
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body