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 ) ) ; }
Percentage of queries with an associated event .