/// <summary> /// Gets the metrics for the specified volume. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='odataQuery'> /// OData parameters to apply to the operation. /// </param> /// <param name='deviceName'> /// The device name /// </param> /// <param name='volumeContainerName'> /// The volume container name. /// </param> /// <param name='volumeName'> /// The volume name. /// </param> /// <param name='resourceGroupName'> /// The resource group name /// </param> /// <param name='managerName'> /// The manager name /// </param> public static IEnumerable <Metrics> ListMetrics(this IVolumesOperations operations, ODataQuery <MetricFilter> odataQuery, string deviceName, string volumeContainerName, string volumeName, string resourceGroupName, string managerName) { return(operations.ListMetricsAsync(odataQuery, deviceName, volumeContainerName, volumeName, resourceGroupName, managerName).GetAwaiter().GetResult()); }