Class AIPredictionAPI
java.lang.Object
overit.geocallapp.wfm.ai.rs.v1.AIApi
overit.geocallapp.wfm.ai.rs.v1.prediction.AIPredictionAPI
API for prediction 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 predictionJobId) Method that delete a prediction execution.getJob(AWSRequestHeaders headers, String predictionJobId) Method that get the result of a prediction job id.getJobs(AWSRequestHeaders headers) Method that gets all the prediction jobs ran in SageMaker given a set of headers composed by: customerId, userId, environment, appName, appVersionstartJob(AWSRequestHeaders headers, RequestJobParams params, Object body) Method that starts a prediction job.startPredictionJobSync(AWSRequestHeaders headers, RequestJobParams params, String body) Method that starts a prediction job.Methods inherited from class overit.geocallapp.wfm.ai.rs.v1.AIApi
buildUriForSpringClient, getAIRestClientBuilder, getDomain, getEncodedUrl, getMultiHeaders, getMultiParams, getPath, getScheme, manageFileResult
-
Constructor Details
-
AIPredictionAPI
public AIPredictionAPI()
-
-
Method Details
-
getJobs
public List<SagemakerJobStatus> getJobs(AWSRequestHeaders headers) throws DAValidateException, DAException Method that gets all the prediction jobs ran in SageMaker given a set of headers composed by: customerId, userId, environment, appName, appVersion- Specified by:
getJobsin classAIApi- Parameters:
headers-- Returns:
- Throws:
DAValidateExceptionDAException
-
getJob
public SagemakerResponse getJob(AWSRequestHeaders headers, String predictionJobId) throws DAValidateException, DAException, IOException Method that get the result of a prediction job id.- Specified by:
getJobin classAIApi- Parameters:
headers-predictionJobId- the id returned by startPredictionJob()- Returns:
- SagemakerResponse, it's composed by the status and the content if it's COMPLETED.
- Throws:
DAValidateExceptionDAExceptionIOException
-
startJob
public SagemakerJobStatus startJob(AWSRequestHeaders headers, RequestJobParams params, Object body) throws DAValidateException, DAException Method that starts a prediction job.- Specified by:
startJobin classAIApi- Parameters:
headers-params-body-- Returns:
- Throws:
DAValidateExceptionDAException
-
startPredictionJobSync
public SagemakerResponse startPredictionJobSync(AWSRequestHeaders headers, RequestJobParams params, String body) throws DAValidateException, DAException Method that starts a prediction job.- Parameters:
headers-params-body-- Returns:
- Throws:
DAValidateExceptionDAException
-
deleteJob
public void deleteJob(AWSRequestHeaders headers, String predictionJobId) throws DAValidateException, DAException Method that delete a prediction execution. It doesn't return anything, it obly gives error if occurred.- Specified by:
deleteJobin classAIApi- Parameters:
headers-predictionJobId-- Throws:
DAValidateExceptionDAException
-