code: public List<MetricDefinitionInner> listMetricDefinitions(String resourceGroupName, String accountName, String databaseRid) {
          return listMetricDefinitionsWithServiceResponseAsync(resourceGroupName, accountName, databaseRid).toBlocking().single().body();
      }
docs: Retrieves metric defintions for the given database.
  
  @param resourceGroupName Name of an Azure resource group.
  @param accountName Cosmos DB database account name.
  @param databaseRid Cosmos DB database rid.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws CloudException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the List&lt;MetricDefinitionInner&gt; object if successful.