code: public ServiceCall<MetricResponse> getMetricsEventRate(GetMetricsEventRateOptions getMetricsEventRateOptions) {
      String[] pathSegments = { "v1/metrics/event_rate" };
      RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getEndPoint(), pathSegments));
      builder.query("version", versionDate);
      Map<String, String> sdkHeaders = SdkCommon.getSdkHeaders("discovery", "v1", "getMetricsEventRate");
      for (Entry<String, String> header : sdkHeaders.entrySet()) {
        builder.header(header.getKey(), header.getValue());
      }
      builder.header("Accept", "application/json");
      if (getMetricsEventRateOptions != null) {
        if (getMetricsEventRateOptions.startTime() != null) {
          builder.query("start_time", String.valueOf(getMetricsEventRateOptions.startTime()));
        }
        if (getMetricsEventRateOptions.endTime() != null) {
          builder.query("end_time", String.valueOf(getMetricsEventRateOptions.endTime()));
        }
        if (getMetricsEventRateOptions.resultType() != null) {
          builder.query("result_type", getMetricsEventRateOptions.resultType());
        }
      }
      return createServiceCall(builder.build(), ResponseConverterUtils.getObject(MetricResponse.class));
    }
docs: Percentage of queries with an associated event.
  
  The percentage of queries using the **natural_language_query** parameter that have a corresponding \"click\" event
  over a specified time window. This metric requires having integrated event tracking in your application using the
  **Events** API.
  
  @param getMetricsEventRateOptions the {@link GetMetricsEventRateOptions} containing the options for the call
  @return a {@link ServiceCall} with a response type of {@link MetricResponse}