diff --git a/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/implementation/MetricsInner.java b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/implementation/MetricsInner.java index 17354274a57..4351df4782b 100644 --- a/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/implementation/MetricsInner.java +++ b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/implementation/MetricsInner.java @@ -55,7 +55,7 @@ public MetricsInner(Retrofit retrofit, MonitorManagementClientImpl client) { interface MetricsService { @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.monitor.Metrics list" }) @GET("{resourceUri}/providers/microsoft.insights/metrics") - Observable> list(@Path(value = "resourceUri", encoded = true) String resourceUri, @Query("timespan") String timespan, @Query("interval") Period interval, @Query("metricnames") String metricnames, @Query("aggregation") String aggregation, @Query("top") Double top, @Query("orderby") String orderby, @Query("$filter") String filter, @Query("resultType") ResultType resultType1, @Query("api-version") String apiVersion, @Query("metricnamespace") String metricnamespace, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Observable> list(@Path(value = "resourceUri", encoded = true) String resourceUri, @Query("timespan") String timespan, @Query("interval") Period interval, @Query("metricnames") String metricnames, @Query("aggregation") String aggregation, @Query("top") Integer top, @Query("orderby") String orderby, @Query("$filter") String filter, @Query("resultType") ResultType resultType1, @Query("api-version") String apiVersion, @Query("metricnamespace") String metricnamespace, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); } @@ -116,7 +116,7 @@ public Observable> listWithServiceResponseAsync(S final Period interval = null; final String metricnames = null; final String aggregation = null; - final Double top = null; + final Integer top = null; final String orderby = null; final String filter = null; final ResultType resultType = null; @@ -157,7 +157,7 @@ public Observable> call(Response re * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the ResponseInner object if successful. */ - public ResponseInner list(String resourceUri, String timespan, Period interval, String metricnames, String aggregation, Double top, String orderby, String filter, ResultType resultType, String metricnamespace) { + public ResponseInner list(String resourceUri, String timespan, Period interval, String metricnames, String aggregation, Integer top, String orderby, String filter, ResultType resultType, String metricnamespace) { return listWithServiceResponseAsync(resourceUri, timespan, interval, metricnames, aggregation, top, orderby, filter, resultType, metricnamespace).toBlocking().single().body(); } @@ -182,7 +182,7 @@ public ResponseInner list(String resourceUri, String timespan, Period interval, * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture listAsync(String resourceUri, String timespan, Period interval, String metricnames, String aggregation, Double top, String orderby, String filter, ResultType resultType, String metricnamespace, final ServiceCallback serviceCallback) { + public ServiceFuture listAsync(String resourceUri, String timespan, Period interval, String metricnames, String aggregation, Integer top, String orderby, String filter, ResultType resultType, String metricnamespace, final ServiceCallback serviceCallback) { return ServiceFuture.fromResponse(listWithServiceResponseAsync(resourceUri, timespan, interval, metricnames, aggregation, top, orderby, filter, resultType, metricnamespace), serviceCallback); } @@ -206,7 +206,7 @@ public ServiceFuture listAsync(String resourceUri, String timespa * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ResponseInner object */ - public Observable listAsync(String resourceUri, String timespan, Period interval, String metricnames, String aggregation, Double top, String orderby, String filter, ResultType resultType, String metricnamespace) { + public Observable listAsync(String resourceUri, String timespan, Period interval, String metricnames, String aggregation, Integer top, String orderby, String filter, ResultType resultType, String metricnamespace) { return listWithServiceResponseAsync(resourceUri, timespan, interval, metricnames, aggregation, top, orderby, filter, resultType, metricnamespace).map(new Func1, ResponseInner>() { @Override public ResponseInner call(ServiceResponse response) { @@ -235,7 +235,7 @@ public ResponseInner call(ServiceResponse response) { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ResponseInner object */ - public Observable> listWithServiceResponseAsync(String resourceUri, String timespan, Period interval, String metricnames, String aggregation, Double top, String orderby, String filter, ResultType resultType, String metricnamespace) { + public Observable> listWithServiceResponseAsync(String resourceUri, String timespan, Period interval, String metricnames, String aggregation, Integer top, String orderby, String filter, ResultType resultType, String metricnamespace) { if (resourceUri == null) { throw new IllegalArgumentException("Parameter resourceUri is required and cannot be null."); } diff --git a/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/package-info.java b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/package-info.java index 869b80781e2..fdcbdcf7339 100644 --- a/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/package-info.java +++ b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/package-info.java @@ -5,7 +5,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. /** - * This package contains the classes for managing Azure Monitor and getting logs and metrics. + * This package contains the classes for MonitorManagementClient. * Monitor Management Client. */ package com.microsoft.azure.management.monitor;