:doc:`DataZone <../../datazone>` / Client / get_job_run

***********
get_job_run
***********



.. py:method:: DataZone.Client.get_job_run(**kwargs)

  

  The details of the job run.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/datazone-2018-05-10/GetJobRun>`_  


  **Request Syntax**
  ::

    response = client.get_job_run(
        domainIdentifier='string',
        identifier='string'
    )
    
  :type domainIdentifier: string
  :param domainIdentifier: **[REQUIRED]** 

    The ID of the domain.

    

  
  :type identifier: string
  :param identifier: **[REQUIRED]** 

    The ID of the job run.

    

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

    
    ::

      {
          'domainId': 'string',
          'id': 'string',
          'jobId': 'string',
          'jobType': 'LINEAGE',
          'runMode': 'SCHEDULED'|'ON_DEMAND',
          'details': {
              'lineageRunDetails': {
                  'sqlQueryRunDetails': {
                      'queryStartTime': datetime(2015, 1, 1),
                      'queryEndTime': datetime(2015, 1, 1),
                      'totalQueriesProcessed': 123,
                      'numQueriesFailed': 123,
                      'errorMessages': [
                          'string',
                      ]
                  }
              }
          },
          'status': 'SCHEDULED'|'IN_PROGRESS'|'SUCCESS'|'PARTIALLY_SUCCEEDED'|'FAILED'|'ABORTED'|'TIMED_OUT'|'CANCELED',
          'error': {
              'message': 'string'
          },
          'createdBy': 'string',
          'createdAt': datetime(2015, 1, 1),
          'startTime': datetime(2015, 1, 1),
          'endTime': datetime(2015, 1, 1)
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **domainId** *(string) --* 

        The ID of the domain.

        
      

      - **id** *(string) --* 

        The ID of the job run.

        
      

      - **jobId** *(string) --* 

        The ID of the job run.

        
      

      - **jobType** *(string) --* 

        The type of the job run.

        
      

      - **runMode** *(string) --* 

        The mode of the job run.

        
      

      - **details** *(dict) --* 

        The details of the job run.

        .. note::    This is a Tagged Union structure. Only one of the     following top level keys will be set: ``lineageRunDetails``.     If a client receives an unknown member it will     set ``SDK_UNKNOWN_MEMBER`` as the top level key,     which maps to the name or tag of the unknown     member. The structure of ``SDK_UNKNOWN_MEMBER`` is     as follows::

                'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}


      
        

        - **lineageRunDetails** *(dict) --* 

          The data lineage details of a job run.

          
          

          - **sqlQueryRunDetails** *(dict) --* 

            The SQL query run details of a data lineage run.

            
            

            - **queryStartTime** *(datetime) --* 

              The query start time in the SQL query run details of a data lineage run.

              
            

            - **queryEndTime** *(datetime) --* 

              The query end time in the SQL query run details of a data lineage run.

              
            

            - **totalQueriesProcessed** *(integer) --* 

              The total queries processed in the SQL query run details of a data lineage run.

              
            

            - **numQueriesFailed** *(integer) --* 

              The number of queries that failed in the SQL query run details of a data lineage run.

              
            

            - **errorMessages** *(list) --* 

              The error message of the SQL query run details of a data lineage run.

              
              

              - *(string) --* 
          
        
      
    
      

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

        The status of the job run.

        
      

      - **error** *(dict) --* 

        The error generated if the action is not completed successfully.

        
        

        - **message** *(string) --* 

          The job run error message.

          
    
      

      - **createdBy** *(string) --* 

        The user who created the job run.

        
      

      - **createdAt** *(datetime) --* 

        The timestamp of when the job run was created.

        
      

      - **startTime** *(datetime) --* 

        The timestamp of when the job run started.

        
      

      - **endTime** *(datetime) --* 

        The timestamp of when the job run ended.

        
  
  **Exceptions**
  
  *   :py:class:`DataZone.Client.exceptions.InternalServerException`

  
  *   :py:class:`DataZone.Client.exceptions.ResourceNotFoundException`

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

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

  
  *   :py:class:`DataZone.Client.exceptions.ValidationException`

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

  