def list_metric_defintions_as_lazy(resource_group_name, name, custom_headers:nil)
      response = list_metric_defintions_async(resource_group_name, name, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          list_metric_defintions_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
def list_metric_defintions_as_lazy(resource_group_name, name, custom_headers:nil)
      response = list_metric_defintions_async(resource_group_name, name, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          list_metric_defintions_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
Get metrics that can be queried for an App Service plan, and their
 definitions.

 Get metrics that can be queried for an App Service plan, and their
 definitions.

 @param resource_group_name [String] Name of the resource group to which the
 resource belongs.
 @param name [String] Name of the App Service plan.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [ResourceMetricDefinitionCollection] which provide lazy access to
 pages of the response.