Files
doc-exports/docs/modelarts/api-ref/ListTrainingJobEvents.html
2025-05-09 10:22:58 +00:00

380 lines
27 KiB
HTML

<a name="EN-US_TOPIC_0000002233726978"></a><a name="EN-US_TOPIC_0000002233726978"></a>
<h1 class="topictitle1">Obtaining the Events of a Training Job</h1>
<div id="body32001227"><div class="section" id="EN-US_TOPIC_0000002233726978__section16144133820385"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0000002233726978__p15144338143820">This API is used to obtain the events of a training job.</p>
</div>
<div class="section" id="EN-US_TOPIC_0000002233726978__section14145133873817"><h4 class="sectiontitle">URI</h4><p id="EN-US_TOPIC_0000002233726978__p10145143812384">GET /v2/{project_id}/training-jobs/{training_job_id}/events</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002233726978__table19146138193811" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000002233726978__row12146938183818"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="EN-US_TOPIC_0000002233726978__p614773863811">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="EN-US_TOPIC_0000002233726978__p20147163873818">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="EN-US_TOPIC_0000002233726978__p814773813814">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="EN-US_TOPIC_0000002233726978__p15147438173812">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002233726978__row41462038133810"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002233726978__p18147738163810">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="EN-US_TOPIC_0000002233726978__p81471738163813">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002233726978__p4148103810389">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002233726978__p414813815382">Project ID. For details, see <a href="modelarts_03_0147.html">Obtaining a Project ID and Name</a>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726978__row2146113813812"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002233726978__p214893817389">training_job_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="EN-US_TOPIC_0000002233726978__p121481938113816">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002233726978__p19148173853812">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002233726978__p1814818384384">Training job ID For details about how to obtain the value, see <a href="ListTrainingJobs.html">Querying the Training Job List</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002233726978__table915033833811" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Query Parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000002233726978__row1614923815384"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.1"><p id="EN-US_TOPIC_0000002233726978__p171501238153814">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.2"><p id="EN-US_TOPIC_0000002233726978__p715093813387">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.3"><p id="EN-US_TOPIC_0000002233726978__p1115093883811">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.4.2.5.1.4"><p id="EN-US_TOPIC_0000002233726978__p115033812384">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002233726978__row71491338153812"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="EN-US_TOPIC_0000002233726978__p01512389383">offset</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="EN-US_TOPIC_0000002233726978__p1515143819381">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="EN-US_TOPIC_0000002233726978__p18151183853818">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="EN-US_TOPIC_0000002233726978__p1415111386385">Offset of a data entry.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726978__row614993893811"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="EN-US_TOPIC_0000002233726978__p11519386388">limit</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="EN-US_TOPIC_0000002233726978__p13151038123818">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="EN-US_TOPIC_0000002233726978__p71512380383">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="EN-US_TOPIC_0000002233726978__p1215173843813">Maximum number of records returned on each page. The value ranges from 1 to 100. The default value is <strong id="EN-US_TOPIC_0000002233726978__b015115389386">50</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726978__row1714917387384"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="EN-US_TOPIC_0000002233726978__p13151203810381">order</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="EN-US_TOPIC_0000002233726978__p81520383386">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="EN-US_TOPIC_0000002233726978__p1152738193811">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="EN-US_TOPIC_0000002233726978__p515253813810">instance order</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726978__row8149138123811"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="EN-US_TOPIC_0000002233726978__p1715212381383">start_time</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="EN-US_TOPIC_0000002233726978__p141521338153813">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="EN-US_TOPIC_0000002233726978__p1015203843810">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="EN-US_TOPIC_0000002233726978__p81521538173817">Start time, which must be passed together with the end time</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726978__row13149163823815"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="EN-US_TOPIC_0000002233726978__p14152183873815">end_time</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="EN-US_TOPIC_0000002233726978__p6152638123820">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="EN-US_TOPIC_0000002233726978__p201531038163818">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="EN-US_TOPIC_0000002233726978__p0153938103813">End time, which must be passed together with the start time</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726978__row8150183893816"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="EN-US_TOPIC_0000002233726978__p1215363853814">level</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="EN-US_TOPIC_0000002233726978__p15153173883810">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="EN-US_TOPIC_0000002233726978__p20153133818382">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="EN-US_TOPIC_0000002233726978__p81537380382">Level of the event to be returned. The value range is [Info Error Warning].</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726978__row9150338123813"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="EN-US_TOPIC_0000002233726978__p15153638173816">pattern</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="EN-US_TOPIC_0000002233726978__p15153153883818">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="EN-US_TOPIC_0000002233726978__p11153133883811">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="EN-US_TOPIC_0000002233726978__p015416381382">Content contained in the event. The value contains a maximum of 256 characters.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726978__row14150173833815"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="EN-US_TOPIC_0000002233726978__p121541538163816">source</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="EN-US_TOPIC_0000002233726978__p215413820381">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="EN-US_TOPIC_0000002233726978__p11543387381">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="EN-US_TOPIC_0000002233726978__p1015443815381">Source of the returned event. The value range is [<strong id="EN-US_TOPIC_0000002233726978__b15154138103815">K8S Job Task</strong>].</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000002233726978__section4154193853819"><h4 class="sectiontitle">Request Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002233726978__en-us_topic_0000002055164106_HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request header parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000002233726978__row9154133833818"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="EN-US_TOPIC_0000002233726978__p5156183814380">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="EN-US_TOPIC_0000002233726978__p11156133815383">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="EN-US_TOPIC_0000002233726978__p181561338173813">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="EN-US_TOPIC_0000002233726978__p1815613813388">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002233726978__row1215583820384"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000002233726978__p101566388380">X-Language</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000002233726978__p8156143812388">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000002233726978__p1615753863818">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000002233726978__p4157203843812">Language</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000002233726978__section015703812387"><h4 class="sectiontitle">Response Parameters</h4><p id="EN-US_TOPIC_0000002233726978__p13157113817387"><strong id="EN-US_TOPIC_0000002233726978__b121577382388">Status code: 200</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002233726978__en-us_topic_0000002055164106_response_ListEvents" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Response body parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000002233726978__row101570387381"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.4.1.1"><p id="EN-US_TOPIC_0000002233726978__p515816381385">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.4.1.2"><p id="EN-US_TOPIC_0000002233726978__p5158338113818">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.3.2.4.1.3"><p id="EN-US_TOPIC_0000002233726978__p17158183810388">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002233726978__row161571038123817"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002233726978__p315814389382">total</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002233726978__p13158338173810">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002233726978__p2159133815385">Total number of records.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726978__row15157123823811"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002233726978__p1159143803816">limit</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002233726978__p2015920389385">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002233726978__p11159738153820">Maximum number of records that can be displayed.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726978__row18157123863811"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002233726978__p12159638123820">offset</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002233726978__p15159163819380">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002233726978__p12159123814382">Start number of records.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726978__row1415893813381"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002233726978__p11159238173818">order</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002233726978__p1115913843817">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002233726978__p1215911384382">Sorting order.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726978__row1915833873814"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002233726978__p8160638133816">start_time</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002233726978__p51606389385">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002233726978__p516043833820">Start time of an event.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726978__row81581738143813"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002233726978__p1916063813816">end_time</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002233726978__p01601638163816">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002233726978__p1716063819382">End time of an event.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726978__row19158133853813"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002233726978__p81601638133817">events</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002233726978__p17160173810384">Array of <a href="#EN-US_TOPIC_0000002233726978__en-us_topic_0000002055164106_response_Event">Event</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002233726978__p31601838153815">Event list.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002233726978__en-us_topic_0000002055164106_response_Event"></a><a name="en-us_topic_0000002055164106_response_Event"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002233726978__en-us_topic_0000002055164106_response_Event" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Event</caption><thead align="left"><tr id="EN-US_TOPIC_0000002233726978__row3161153819388"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.4.2.4.1.1"><p id="EN-US_TOPIC_0000002233726978__p7161123853817">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.4.2.4.1.2"><p id="EN-US_TOPIC_0000002233726978__p16161133818382">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.4.2.4.1.3"><p id="EN-US_TOPIC_0000002233726978__p1516117386382">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002233726978__row3161143820385"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002233726978__p4162113813819">message</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002233726978__p13162738163819">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002233726978__p18162103813819">Event information.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726978__row13161133883813"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002233726978__p0162193813818">level</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002233726978__p316223812386">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002233726978__p2162138113812">Event severity.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726978__row20161103823819"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002233726978__p716273813818">time</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002233726978__p6162173883810">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002233726978__p101626382382">Time when an event occurs.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726978__row14161153810383"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002233726978__p1116243893818">source</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002233726978__p161638382381">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002233726978__p316311388382">Event source</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="EN-US_TOPIC_0000002233726978__p216353883817"><strong id="EN-US_TOPIC_0000002233726978__b6163103893817">Status code: 400</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002233726978__en-us_topic_0000002055164106_response_ErrorResponse" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Response body parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000002233726978__row1916333873816"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.6.2.4.1.1"><p id="EN-US_TOPIC_0000002233726978__p1916363893816">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.6.2.4.1.2"><p id="EN-US_TOPIC_0000002233726978__p1716311387385">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.6.2.4.1.3"><p id="EN-US_TOPIC_0000002233726978__p216419389381">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002233726978__row416313813819"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.1 "><p id="EN-US_TOPIC_0000002233726978__p1516403814389">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.2 "><p id="EN-US_TOPIC_0000002233726978__p131648385385">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.6.2.4.1.3 "><p id="EN-US_TOPIC_0000002233726978__p17164338183815">Error codes of ModelArts.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726978__row916373823812"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.1 "><p id="EN-US_TOPIC_0000002233726978__p8164193833813">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.2 "><p id="EN-US_TOPIC_0000002233726978__p12164738163819">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.6.2.4.1.3 "><p id="EN-US_TOPIC_0000002233726978__p11164938163814">Error message.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000002233726978__section516416387381"><h4 class="sectiontitle">Example Requests</h4><pre class="screen" id="EN-US_TOPIC_0000002233726978__screen1716583863816">GET https://endpoint/v2/{project_id}/training-jobs/{training_job_id}/events?order=desc&amp;offset=0&amp;limit=10&amp;start_time=1669449696964&amp;end_time=1669711991259</pre>
</div>
<div class="section" id="EN-US_TOPIC_0000002233726978__section81658381388"><h4 class="sectiontitle">Example Responses</h4><p id="EN-US_TOPIC_0000002233726978__p1016573803811"><strong id="EN-US_TOPIC_0000002233726978__b16165038143810">Status code: 200</strong></p>
<p id="EN-US_TOPIC_0000002233726978__p2165143833810">ok</p>
<pre class="screen" id="EN-US_TOPIC_0000002233726978__screen151661638183813">{
"total" : 27,
"limit" : 10,
"offset" : 0,
"order" : "desc",
"start_time" : "2022-11-26T16:01:36+08:00",
"end_time" : "2022-11-29T16:53:11+08:00",
"events" : [ {
"time" : "2022-11-26T16:03:41+08:00",
"level" : "Error",
"message" : "Training job failed.",
"source" : "Job"
}, {
"time" : "2022-11-26T16:03:16+08:00",
"level" : "Info",
"message" : "[Job: modelarts-job-5bd61eea-9de2-4864-a0f7-5fae966171b5] ExecuteAction: Start to execute action TerminateJob",
"source" : "K8S"
}, {
"time" : "2022-11-26T16:03:12+08:00",
"level" : "Info",
"message" : "[worker-0][time used: 0.296s] Upload training output(parameter name: train_url) finished.",
"source" : "Task"
}, {
"time" : "2022-11-26T16:03:12+08:00",
"level" : "Info",
"message" : "[worker-0] Training output(parameter name: train_url) Uploading.",
"source" : "Task"
}, {
"time" : "2022-11-26T16:03:11+08:00",
"level" : "Info",
"message" : "[worker-0] Training finished. Exit code 1.",
"source" : "Task"
}, {
"time" : "2022-11-26T16:02:10+08:00",
"level" : "Info",
"message" : "[worker-0] training started.",
"source" : "Task"
}, {
"time" : "2022-11-26T16:02:09+08:00",
"level" : "Info",
"message" : "Training job is running.",
"source" : "Job"
}, {
"time" : "2022-11-26T16:02:06+08:00",
"level" : "Info",
"message" : "[Pod: modelarts-job-5bd61eea-9de2-4864-a0f7-5fae966171b5-worker-0] Started: Started container",
"source" : "K8S"
}, {
"time" : "2022-11-26T16:02:06+08:00",
"level" : "Info",
"message" : "[Pod: modelarts-job-5bd61eea-9de2-4864-a0f7-5fae966171b5-worker-0] SuccessfulCreate: Created container",
"source" : "K8S"
}, {
"time" : "2022-11-26T16:02:05+08:00",
"level" : "Info",
"message" : "[Pod: modelarts-job-5bd61eea-9de2-4864-a0f7-5fae966171b5-worker-0] Pulled: Successfully pulled image \"<strong id="EN-US_TOPIC_0000002233726978__b17967245124612">resource-path</strong> /modelarts-job-dev-image/modelarts-tool-container:1.0.0-5.3.1-b002.2\"",
"source" : "K8s"
} ]
}</pre>
<p id="EN-US_TOPIC_0000002233726978__p161691038173816"><strong id="EN-US_TOPIC_0000002233726978__b3169103843817">Status code: 400</strong></p>
<p id="EN-US_TOPIC_0000002233726978__p151694385388">Bad request.</p>
<pre class="screen" id="EN-US_TOPIC_0000002233726978__screen71697382384">{
"error_code" : "ModelArts.50004000",
"error_msg" : "Bad request."
}</pre>
</div>
<div class="section" id="EN-US_TOPIC_0000002233726978__section016943820385"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002233726978__en-us_topic_0000002055164106_status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000002233726978__row16169113883817"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="EN-US_TOPIC_0000002233726978__p1939353833811">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="EN-US_TOPIC_0000002233726978__p139333863812">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002233726978__row417023814388"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="EN-US_TOPIC_0000002233726978__p4393183816385">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="EN-US_TOPIC_0000002233726978__p33931382384">ok</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002233726978__row5170438203812"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="EN-US_TOPIC_0000002233726978__p143935389389">400</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="EN-US_TOPIC_0000002233726978__p19393238163815">Bad request.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000002233726978__section939333883815"><h4 class="sectiontitle">Error Codes</h4><p id="EN-US_TOPIC_0000002233726978__p1939373812387">See <a href="modelarts_03_0095.html">Error Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="algorithms.html">Training Management</a></div>
</div>
</div>