Help Center/ ModelArts/ SDK Reference/ Training Management (Old Version)/ Visualization Jobs/ Querying the Details About a Visualization Job
Updated on 2024-03-21 GMT+08:00

Querying the Details About a Visualization Job

Sample Code

In ModelArts notebook, you do not need to enter authentication parameters for session authentication. For details about session authentication of other development environments, see Session Authentication.

  • Method 1: Use the specified visualization_id.
    1
    2
    3
    4
    5
    6
    from modelarts.session import Session
    from modelarts.estimator import VisualizationJob
    session = Session()
    job = VisualizationJob(modelarts_session=session, visualization_id='8992')
    job_info = job.get_visualization_job_info()
    print(job_info)
    
  • Method 2: Use the visualization job created in Creating a Visualization Job.
    1
    2
    job_info = job_visualization_instance.get_visualization_job_info()
    print(job_info)
    

Parameters

Table 1 VisualizationJob request parameters

Parameter

Mandatory

Type

Description

modelarts_session

Yes

Object

Session object. For details about the initialization method, see Session Authentication.

visualization_id

Yes

String

ID of a visualization job

Table 2 get_visualization_job_info response parameters

Parameter

Type

Description

error_code

String

Error code when the API fails to be called. For details, see Error Codes.

This parameter is not included when the API call succeeds.

error_msg

String

Error message when the API call fails.

This parameter is not included when the API call succeeds.

job_name

String

Name of a visualization job

service_url

String

Endpoint of a visualization job

is_success

Boolean

Whether the API call succeeds

duration

Long

Running duration of a visualization job

create_time

Long

Time when a visualization job is created

train_url

String

OBS path to the visualization job output file

job_id

Long

ID of a visualization job

job_desc

String

Description of a visualization job

resource_id

String

Resource ID of a visualization job

status

Integer

Status of a visualization job. For details about the job statuses, see Job Statuses.