code: public FieldPresenceEnvelope getFieldPresence(Long startDate, Long endDate, String interval, String sdid, String fieldPresence) throws ApiException {
          ApiResponse<FieldPresenceEnvelope> resp = getFieldPresenceWithHttpInfo(startDate, endDate, interval, sdid, fieldPresence);
          return resp.getData();
      }
docs: Get normalized message presence
  Get normalized message presence.
  @param startDate startDate (required)
  @param endDate endDate (required)
  @param interval String representing grouping interval. One of: &#39;minute&#39; (1 hour limit), &#39;hour&#39; (1 day limit), &#39;day&#39; (31 days limit), &#39;month&#39; (1 year limit), or &#39;year&#39; (10 years limit). (required)
  @param sdid Source device ID of the messages being searched. (optional)
  @param fieldPresence String representing a field from the specified device ID. (optional)
  @return FieldPresenceEnvelope
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body