Class AITrainingApi
java.lang.Object
overit.geocallapp.wfm.ai.rs.v1.AIApi
overit.geocallapp.wfm.ai.rs.v1.training.AITrainingApi
API for training processes.
- Since:
- 13.0
-
Field Summary
Fields inherited from class overit.geocallapp.wfm.ai.rs.v1.AIApi
AWS_SERVICE_NAME, mapper, sdf -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteJob(AWSRequestHeaders headers, String trainingJobId) Method that delete a training execution.getJob(AWSRequestHeaders headers, String trainingJobId) Method that get the result of a training job id.getJobs(AWSRequestHeaders headers) Method that gets all the training jobs for a client.startJob(AWSRequestHeaders headers, RequestJobParams params, Object body) Method that starts a training job.Methods inherited from class overit.geocallapp.wfm.ai.rs.v1.AIApi
buildUriForSpringClient, getAIRestClientBuilder, getDomain, getEncodedUrl, getMultiHeaders, getMultiParams, getPath, getScheme, manageFileResult
-
Constructor Details
-
AITrainingApi
public AITrainingApi()
-
-
Method Details
-
getJobs
public List<SagemakerJobStatus> getJobs(AWSRequestHeaders headers) throws DAValidateException, DAException Method that gets all the training jobs for a client.- Specified by:
getJobsin classAIApi- Parameters:
headers-- Returns:
- Throws:
DAValidateExceptionDAException
-
getJob
public TrainingJobInfo getJob(AWSRequestHeaders headers, String trainingJobId) throws DAValidateException, DAException Method that get the result of a training job id. The response has some info about the training job id and its status.- Specified by:
getJobin classAIApi- Parameters:
headers-trainingJobId-- Returns:
- Throws:
DAValidateExceptionDAException
-
startJob
public SagemakerJobStatus startJob(AWSRequestHeaders headers, RequestJobParams params, Object body) throws DAValidateException, DAException Method that starts a training job.- Specified by:
startJobin classAIApi- Parameters:
headers-params-body-- Returns:
- Throws:
DAValidateExceptionDAException
-
deleteJob
public void deleteJob(AWSRequestHeaders headers, String trainingJobId) throws DAValidateException, DAException Method that delete a training execution. It doesn't return anything, it obly gives error if occurred.- Specified by:
deleteJobin classAIApi- Parameters:
headers-trainingJobId-- Throws:
DAValidateExceptionDAException
-