Create a job to automate the detection of anomalies in Anomaly Detection.
You must have a project that contains a trained model for use in an asynchronous anomaly detection job.
- Open the navigation menu and click Analytics & AI. Under AI Services, click Anomaly Detection.
- In the left-side navigation menu, click Projects.
- Select the compartment that contains the project that you want to create a job in.
Click the name of the project.
The project details page opens.
- Under Details, click Jobs.
- Click Create job.
Enter a unique name (255 character limit) for the resource. If you don't provide a name, one is automatically generated.
- (Optional) Enter a description (400 character limit) for the resource.
- Select the model that you want to run this job in.
- (Optional) Select the amount of sensitivity for the anomaly detection to use from 0 to 1.
Select the input request type that you want to use for the job.
Drag a JSON or CSV file into the File box, or use Select file to locate and select it from a local drive.
- Object store:
Select the Object Storage bucket that contains the detection data file, and then select the file you that you want to use for this job. Only CSV files are supported.
You can use multiple input buckets and detection data files by clicking Additional input bucket and making further selections.
Select an Object Storage output bucket to store the output files in.
The namespace shows you the tenancy that the job is being created in.
Enter a prefix to use to easily identify the results.
For example, if
myModelis the prefix, then the result file is
Click Create job.
The asynchronous job status is initially Accepted until the job starts running; then it's In Progress. When the job finishes the status changes to Succeeded. The time it takes to run the job depends on the size of the detection datasets.
Click the completed asynchronous job to view its details and review the job results.
The anomaly detection results file is saved in a separate folder in the selected Object Storage output bucket. The file name uses the
<model-OCID>is the OCID of the Anomaly Detection model.
<output_bucket_name>is the Object Storage bucket name.
The anomaly detection results file name is the same as the detection dataset file name suffixed with
Use the oci anomaly-detection data-asset create commands and required parameters to create a job in a compartment:
oci anomaly-detection detect-anomaly-job create --compartment-id <compartment-id>, -c [<name>] ... [OPTIONS]
oci anomaly-detection detect-anomaly-job create-detect-anomaly-job-embedded-input-details --compartment-id <compartment-id>, -c [<name>] ... [OPTIONS]
oci anomaly-detection detect-anomaly-job create-detect-anomaly-job-inline-input-details --compartment-id <compartment-id>, -c [<name>] ... [OPTIONS]
oci anomaly-detection detect-anomaly-job create-detect-anomaly-job-object-list-input-details --compartment-id <compartment-id>, -c [<name>] ... [OPTIONS]
oci anomaly-detection detect-anomaly-job create-detect-anomaly-job-object-store-output-details --compartment-id <compartment-id>, -c [<name>] ... [OPTIONS]
For a complete list of flags and variable options for CLI commands, see the CLI Command Reference.
Run the CreateDetectAnomalyJob operation to create a job.