oci_ai_anomaly_detection_detect_anomaly_job

This resource provides the Detect Anomaly Job resource in Oracle Cloud Infrastructure Ai Anomaly Detection service.

Creates a job to perform anomaly detection.

Example Usage

resource "oci_ai_anomaly_detection_detect_anomaly_job" "test_detect_anomaly_job" {
    #Required
    compartment_id = var.compartment_id
    input_details {
        #Required
        input_type = var.detect_anomaly_job_input_details_input_type

        #Optional
        content = var.detect_anomaly_job_input_details_content
        content_type = var.detect_anomaly_job_input_details_content_type
        data {

            #Optional
            timestamp = var.detect_anomaly_job_input_details_data_timestamp
            values = var.detect_anomaly_job_input_details_data_values
        }
        object_locations {

            #Optional
            bucket = var.detect_anomaly_job_input_details_object_locations_bucket
            namespace = var.detect_anomaly_job_input_details_object_locations_namespace
            object = var.detect_anomaly_job_input_details_object_locations_object
        }
        signal_names = var.detect_anomaly_job_input_details_signal_names
    }
    model_id = oci_ai_anomaly_detection_model.test_model.id
    output_details {
        #Required
        bucket = var.detect_anomaly_job_output_details_bucket
        namespace = var.detect_anomaly_job_output_details_namespace
        output_type = var.detect_anomaly_job_output_details_output_type

        #Optional
        prefix = var.detect_anomaly_job_output_details_prefix
    }

    #Optional
    are_all_estimates_required = var.detect_anomaly_job_are_all_estimates_required
    description = var.detect_anomaly_job_description
    display_name = var.detect_anomaly_job_display_name
    sensitivity = var.detect_anomaly_job_sensitivity
}

Argument Reference

The following arguments are supported:

* IMPORTANT * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Detect Anomaly Job * update - (Defaults to 20 minutes), when updating the Detect Anomaly Job * delete - (Defaults to 20 minutes), when destroying the Detect Anomaly Job

Import

DetectAnomalyJobs can be imported using the id, e.g.

$ terraform import oci_ai_anomaly_detection_detect_anomaly_job.test_detect_anomaly_job "id"