:doc:`NeptuneData <../../neptunedata>` / Client / manage_sparql_statistics

************************
manage_sparql_statistics
************************



.. py:method:: NeptuneData.Client.manage_sparql_statistics(**kwargs)

  

  Manages the generation and use of RDF graph statistics.

   

  When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows the `neptune-db\:ManageStatistics <https://docs.aws.amazon.com/neptune/latest/userguide/iam-dp-actions.html#managestatistics>`__ IAM action in that cluster.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/neptunedata-2023-08-01/ManageSparqlStatistics>`_  


  **Request Syntax**
  ::

    response = client.manage_sparql_statistics(
        mode='disableAutoCompute'|'enableAutoCompute'|'refresh'
    )
    
  :type mode: string
  :param mode: 

    The statistics generation mode. One of: ``DISABLE_AUTOCOMPUTE``, ``ENABLE_AUTOCOMPUTE``, or ``REFRESH``, the last of which manually triggers DFE statistics generation.

    

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

    
    ::

      {
          'status': 'string',
          'payload': {
              'statisticsId': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **status** *(string) --* 

        The HTTP return code of the request. If the request succeeded, the code is 200.

        
      

      - **payload** *(dict) --* 

        This is only returned for refresh mode.

        
        

        - **statisticsId** *(string) --* 

          The ID of the statistics generation run that is currently occurring.

          
    
  
  **Exceptions**
  
  *   :py:class:`NeptuneData.Client.exceptions.BadRequestException`

  
  *   :py:class:`NeptuneData.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`NeptuneData.Client.exceptions.StatisticsNotAvailableException`

  
  *   :py:class:`NeptuneData.Client.exceptions.ClientTimeoutException`

  
  *   :py:class:`NeptuneData.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`NeptuneData.Client.exceptions.IllegalArgumentException`

  
  *   :py:class:`NeptuneData.Client.exceptions.TooManyRequestsException`

  
  *   :py:class:`NeptuneData.Client.exceptions.UnsupportedOperationException`

  
  *   :py:class:`NeptuneData.Client.exceptions.PreconditionsFailedException`

  
  *   :py:class:`NeptuneData.Client.exceptions.ReadOnlyViolationException`

  
  *   :py:class:`NeptuneData.Client.exceptions.ConstraintViolationException`

  
  *   :py:class:`NeptuneData.Client.exceptions.InvalidArgumentException`

  
  *   :py:class:`NeptuneData.Client.exceptions.MissingParameterException`

  