code: public Observable<MetricDefinitionInner> listMetricDefinitionsAsync(String resourceGroupName, String name) {
          return listMetricDefinitionsWithServiceResponseAsync(resourceGroupName, name).map(new Func1<ServiceResponse<MetricDefinitionInner>, MetricDefinitionInner>() {
              @Override
              public MetricDefinitionInner call(ServiceResponse<MetricDefinitionInner> response) {
                  return response.body();
              }
          });
      }
docs: Get global metric definitions of an App Service Environment.
  Get global metric definitions of an App Service Environment.
  
  @param resourceGroupName Name of the resource group to which the resource belongs.
  @param name Name of the App Service Environment.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the MetricDefinitionInner object