:doc:`XRay <../../xray>` / Client / put_telemetry_records

*********************
put_telemetry_records
*********************



.. py:method:: XRay.Client.put_telemetry_records(**kwargs)

  

  Used by the Amazon Web Services X-Ray daemon to upload telemetry.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/PutTelemetryRecords>`_  


  **Request Syntax**
  ::

    response = client.put_telemetry_records(
        TelemetryRecords=[
            {
                'Timestamp': datetime(2015, 1, 1),
                'SegmentsReceivedCount': 123,
                'SegmentsSentCount': 123,
                'SegmentsSpilloverCount': 123,
                'SegmentsRejectedCount': 123,
                'BackendConnectionErrors': {
                    'TimeoutCount': 123,
                    'ConnectionRefusedCount': 123,
                    'HTTPCode4XXCount': 123,
                    'HTTPCode5XXCount': 123,
                    'UnknownHostCount': 123,
                    'OtherCount': 123
                }
            },
        ],
        EC2InstanceId='string',
        Hostname='string',
        ResourceARN='string'
    )
    
  :type TelemetryRecords: list
  :param TelemetryRecords: **[REQUIRED]** 

  
    - *(dict) --* 

    
      - **Timestamp** *(datetime) --* **[REQUIRED]** 

      
      - **SegmentsReceivedCount** *(integer) --* 

      
      - **SegmentsSentCount** *(integer) --* 

      
      - **SegmentsSpilloverCount** *(integer) --* 

      
      - **SegmentsRejectedCount** *(integer) --* 

      
      - **BackendConnectionErrors** *(dict) --* 

      
        - **TimeoutCount** *(integer) --* 

        
        - **ConnectionRefusedCount** *(integer) --* 

        
        - **HTTPCode4XXCount** *(integer) --* 

        
        - **HTTPCode5XXCount** *(integer) --* 

        
        - **UnknownHostCount** *(integer) --* 

        
        - **OtherCount** *(integer) --* 

        
      
    

  :type EC2InstanceId: string
  :param EC2InstanceId: 

  
  :type Hostname: string
  :param Hostname: 

  
  :type ResourceARN: string
  :param ResourceARN: 

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`XRay.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`XRay.Client.exceptions.ThrottledException`

  