:doc:`IoT <../../iot>` / Client / list_fleet_metrics

******************
list_fleet_metrics
******************



.. py:method:: IoT.Client.list_fleet_metrics(**kwargs)

  

  Lists all your fleet metrics.

   

  Requires permission to access the `ListFleetMetrics <https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions>`__ action.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iot-2015-05-28/ListFleetMetrics>`_  


  **Request Syntax**
  ::

    response = client.list_fleet_metrics(
        nextToken='string',
        maxResults=123
    )
    
  :type nextToken: string
  :param nextToken: 

    To retrieve the next set of results, the ``nextToken`` value from a previous response; otherwise ``null`` to receive the first set of results.

    

  
  :type maxResults: integer
  :param maxResults: 

    The maximum number of results to return in this operation.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'fleetMetrics': [
              {
                  'metricName': 'string',
                  'metricArn': 'string'
              },
          ],
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **fleetMetrics** *(list) --* 

        The list of fleet metrics objects.

        
        

        - *(dict) --* 

          The name and ARN of a fleet metric.

          
          

          - **metricName** *(string) --* 

            The fleet metric name.

            
          

          - **metricArn** *(string) --* 

            The fleet metric ARN.

            
      
    
      

      - **nextToken** *(string) --* 

        The token for the next set of results. Will not be returned if the operation has returned all results.

        
  
  **Exceptions**
  
  *   :py:class:`IoT.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`IoT.Client.exceptions.ThrottlingException`

  
  *   :py:class:`IoT.Client.exceptions.UnauthorizedException`

  
  *   :py:class:`IoT.Client.exceptions.ServiceUnavailableException`

  
  *   :py:class:`IoT.Client.exceptions.InternalFailureException`

  