Training Job Event Reporting APIs
Function
This API is used to report the training event to the service plane.
Debugging
You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, no identity policy-based permission required for calling this API.
URI
POST /v2/{project_id}/training-jobs/{training_job_id}/tasks/{task_id}/reports/{report_type}
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Definition: Project ID. For details, see Obtaining a Project ID and Name. Constraints: The value can contain 1 to 64 characters. Letters, digits, and hyphens (-) are allowed. Range: N/A Default Value: N/A |
| training_job_id | Yes | String | Definition: Training job ID. For details, see Obtaining Training Jobs. Constraints: N/A Range: N/A Default Value: N/A |
| task_id | Yes | String | Definition: Task ID of a training job. You can obtain the value from the status.tasks field in the training job details. Constraints: N/A Range: For a single node, the default value is worker-0. For multiple nodes, the value is worker-0, worker-1, and so on. Default Value: N/A |
| report_type | Yes | String | Definition: Event reporting type. Constraints: N/A Range: training-event Default Value: N/A |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| type | No | String | Type of the reported event |
Response Parameters
Status code: 200
No Content
None
Example Requests
Use a training-event to report a CoreDumpUpload event.
POST https://{endpoint}/v2/{project_id}/training-jobs/{training_job_id}/tasks/worker-0/reports/training-event
{
"type" : "CoreDumpUpload"
} Example Responses
None
Status Codes
| Status Code | Description |
|---|---|
| 200 | No Content |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot