1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. AiAnomalyDetection
  5. getDetectAnomalyJob
Oracle Cloud Infrastructure v1.31.0 published on Wednesday, Apr 10, 2024 by Pulumi

oci.AiAnomalyDetection.getDetectAnomalyJob

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.31.0 published on Wednesday, Apr 10, 2024 by Pulumi

    This data source provides details about a specific Detect Anomaly Job resource in Oracle Cloud Infrastructure Ai Anomaly Detection service.

    Gets a detect anomaly asynchronous job by identifier.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testDetectAnomalyJob = oci.AiAnomalyDetection.getDetectAnomalyJob({
        detectAnomalyJobId: oci_ai_anomaly_detection_detect_anomaly_job.test_detect_anomaly_job.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_detect_anomaly_job = oci.AiAnomalyDetection.get_detect_anomaly_job(detect_anomaly_job_id=oci_ai_anomaly_detection_detect_anomaly_job["test_detect_anomaly_job"]["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/AiAnomalyDetection"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := AiAnomalyDetection.GetDetectAnomalyJob(ctx, &aianomalydetection.GetDetectAnomalyJobArgs{
    			DetectAnomalyJobId: oci_ai_anomaly_detection_detect_anomaly_job.Test_detect_anomaly_job.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testDetectAnomalyJob = Oci.AiAnomalyDetection.GetDetectAnomalyJob.Invoke(new()
        {
            DetectAnomalyJobId = oci_ai_anomaly_detection_detect_anomaly_job.Test_detect_anomaly_job.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.AiAnomalyDetection.AiAnomalyDetectionFunctions;
    import com.pulumi.oci.AiAnomalyDetection.inputs.GetDetectAnomalyJobArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var testDetectAnomalyJob = AiAnomalyDetectionFunctions.getDetectAnomalyJob(GetDetectAnomalyJobArgs.builder()
                .detectAnomalyJobId(oci_ai_anomaly_detection_detect_anomaly_job.test_detect_anomaly_job().id())
                .build());
    
        }
    }
    
    variables:
      testDetectAnomalyJob:
        fn::invoke:
          Function: oci:AiAnomalyDetection:getDetectAnomalyJob
          Arguments:
            detectAnomalyJobId: ${oci_ai_anomaly_detection_detect_anomaly_job.test_detect_anomaly_job.id}
    

    Using getDetectAnomalyJob

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getDetectAnomalyJob(args: GetDetectAnomalyJobArgs, opts?: InvokeOptions): Promise<GetDetectAnomalyJobResult>
    function getDetectAnomalyJobOutput(args: GetDetectAnomalyJobOutputArgs, opts?: InvokeOptions): Output<GetDetectAnomalyJobResult>
    def get_detect_anomaly_job(detect_anomaly_job_id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetDetectAnomalyJobResult
    def get_detect_anomaly_job_output(detect_anomaly_job_id: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetDetectAnomalyJobResult]
    func GetDetectAnomalyJob(ctx *Context, args *GetDetectAnomalyJobArgs, opts ...InvokeOption) (*GetDetectAnomalyJobResult, error)
    func GetDetectAnomalyJobOutput(ctx *Context, args *GetDetectAnomalyJobOutputArgs, opts ...InvokeOption) GetDetectAnomalyJobResultOutput

    > Note: This function is named GetDetectAnomalyJob in the Go SDK.

    public static class GetDetectAnomalyJob 
    {
        public static Task<GetDetectAnomalyJobResult> InvokeAsync(GetDetectAnomalyJobArgs args, InvokeOptions? opts = null)
        public static Output<GetDetectAnomalyJobResult> Invoke(GetDetectAnomalyJobInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDetectAnomalyJobResult> getDetectAnomalyJob(GetDetectAnomalyJobArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:AiAnomalyDetection/getDetectAnomalyJob:getDetectAnomalyJob
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DetectAnomalyJobId string
    Unique asynchronous job identifier.
    DetectAnomalyJobId string
    Unique asynchronous job identifier.
    detectAnomalyJobId String
    Unique asynchronous job identifier.
    detectAnomalyJobId string
    Unique asynchronous job identifier.
    detect_anomaly_job_id str
    Unique asynchronous job identifier.
    detectAnomalyJobId String
    Unique asynchronous job identifier.

    getDetectAnomalyJob Result

    The following output properties are available:

    CompartmentId string
    The OCID of the compartment that starts the job.
    DefinedTags Dictionary<string, object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Description string
    Detect anomaly job description.
    DetectAnomalyJobId string
    DisplayName string
    Detect anomaly job display name.
    FreeformTags Dictionary<string, object>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    Id string
    Id of the job.
    InputDetails List<GetDetectAnomalyJobInputDetail>
    Input details for detect anomaly job.
    LifecycleStateDetails string
    The current state details of the batch document job.
    ModelId string
    The OCID of the trained model.
    OutputDetails List<GetDetectAnomalyJobOutputDetail>
    Output details for detect anomaly job.
    ProjectId string
    The OCID of the project.
    Sensitivity double
    The value that customer can adjust to control the sensitivity of anomaly detection
    State string
    The current state of the batch document job.
    SystemTags Dictionary<string, object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeAccepted string
    Job accepted time
    TimeFinished string
    Job finished time
    TimeStarted string
    Job started time
    CompartmentId string
    The OCID of the compartment that starts the job.
    DefinedTags map[string]interface{}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Description string
    Detect anomaly job description.
    DetectAnomalyJobId string
    DisplayName string
    Detect anomaly job display name.
    FreeformTags map[string]interface{}
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    Id string
    Id of the job.
    InputDetails []GetDetectAnomalyJobInputDetail
    Input details for detect anomaly job.
    LifecycleStateDetails string
    The current state details of the batch document job.
    ModelId string
    The OCID of the trained model.
    OutputDetails []GetDetectAnomalyJobOutputDetail
    Output details for detect anomaly job.
    ProjectId string
    The OCID of the project.
    Sensitivity float64
    The value that customer can adjust to control the sensitivity of anomaly detection
    State string
    The current state of the batch document job.
    SystemTags map[string]interface{}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeAccepted string
    Job accepted time
    TimeFinished string
    Job finished time
    TimeStarted string
    Job started time
    compartmentId String
    The OCID of the compartment that starts the job.
    definedTags Map<String,Object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    Detect anomaly job description.
    detectAnomalyJobId String
    displayName String
    Detect anomaly job display name.
    freeformTags Map<String,Object>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id String
    Id of the job.
    inputDetails List<GetDetectAnomalyJobInputDetail>
    Input details for detect anomaly job.
    lifecycleStateDetails String
    The current state details of the batch document job.
    modelId String
    The OCID of the trained model.
    outputDetails List<GetDetectAnomalyJobOutputDetail>
    Output details for detect anomaly job.
    projectId String
    The OCID of the project.
    sensitivity Double
    The value that customer can adjust to control the sensitivity of anomaly detection
    state String
    The current state of the batch document job.
    systemTags Map<String,Object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeAccepted String
    Job accepted time
    timeFinished String
    Job finished time
    timeStarted String
    Job started time
    compartmentId string
    The OCID of the compartment that starts the job.
    definedTags {[key: string]: any}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description string
    Detect anomaly job description.
    detectAnomalyJobId string
    displayName string
    Detect anomaly job display name.
    freeformTags {[key: string]: any}
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id string
    Id of the job.
    inputDetails GetDetectAnomalyJobInputDetail[]
    Input details for detect anomaly job.
    lifecycleStateDetails string
    The current state details of the batch document job.
    modelId string
    The OCID of the trained model.
    outputDetails GetDetectAnomalyJobOutputDetail[]
    Output details for detect anomaly job.
    projectId string
    The OCID of the project.
    sensitivity number
    The value that customer can adjust to control the sensitivity of anomaly detection
    state string
    The current state of the batch document job.
    systemTags {[key: string]: any}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeAccepted string
    Job accepted time
    timeFinished string
    Job finished time
    timeStarted string
    Job started time
    compartment_id str
    The OCID of the compartment that starts the job.
    defined_tags Mapping[str, Any]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description str
    Detect anomaly job description.
    detect_anomaly_job_id str
    display_name str
    Detect anomaly job display name.
    freeform_tags Mapping[str, Any]
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id str
    Id of the job.
    input_details Sequence[aianomalydetection.GetDetectAnomalyJobInputDetail]
    Input details for detect anomaly job.
    lifecycle_state_details str
    The current state details of the batch document job.
    model_id str
    The OCID of the trained model.
    output_details Sequence[aianomalydetection.GetDetectAnomalyJobOutputDetail]
    Output details for detect anomaly job.
    project_id str
    The OCID of the project.
    sensitivity float
    The value that customer can adjust to control the sensitivity of anomaly detection
    state str
    The current state of the batch document job.
    system_tags Mapping[str, Any]
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_accepted str
    Job accepted time
    time_finished str
    Job finished time
    time_started str
    Job started time
    compartmentId String
    The OCID of the compartment that starts the job.
    definedTags Map<Any>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    Detect anomaly job description.
    detectAnomalyJobId String
    displayName String
    Detect anomaly job display name.
    freeformTags Map<Any>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id String
    Id of the job.
    inputDetails List<Property Map>
    Input details for detect anomaly job.
    lifecycleStateDetails String
    The current state details of the batch document job.
    modelId String
    The OCID of the trained model.
    outputDetails List<Property Map>
    Output details for detect anomaly job.
    projectId String
    The OCID of the project.
    sensitivity Number
    The value that customer can adjust to control the sensitivity of anomaly detection
    state String
    The current state of the batch document job.
    systemTags Map<Any>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeAccepted String
    Job accepted time
    timeFinished String
    Job finished time
    timeStarted String
    Job started time

    Supporting Types

    GetDetectAnomalyJobInputDetail

    Content string
    ContentType string
    Datas List<GetDetectAnomalyJobInputDetailData>
    InputType string
    The type of input location Allowed values are:
    Message string
    Inline input details.
    ObjectLocations List<GetDetectAnomalyJobInputDetailObjectLocation>
    List of ObjectLocations.
    SignalNames List<string>
    Content string
    ContentType string
    Datas []GetDetectAnomalyJobInputDetailData
    InputType string
    The type of input location Allowed values are:
    Message string
    Inline input details.
    ObjectLocations []GetDetectAnomalyJobInputDetailObjectLocation
    List of ObjectLocations.
    SignalNames []string
    content String
    contentType String
    datas List<GetDetectAnomalyJobInputDetailData>
    inputType String
    The type of input location Allowed values are:
    message String
    Inline input details.
    objectLocations List<GetDetectAnomalyJobInputDetailObjectLocation>
    List of ObjectLocations.
    signalNames List<String>
    content string
    contentType string
    datas GetDetectAnomalyJobInputDetailData[]
    inputType string
    The type of input location Allowed values are:
    message string
    Inline input details.
    objectLocations GetDetectAnomalyJobInputDetailObjectLocation[]
    List of ObjectLocations.
    signalNames string[]
    content String
    contentType String
    datas List<Property Map>
    inputType String
    The type of input location Allowed values are:
    message String
    Inline input details.
    objectLocations List<Property Map>
    List of ObjectLocations.
    signalNames List<String>

    GetDetectAnomalyJobInputDetailData

    Timestamp string
    Values List<double>
    Timestamp string
    Values []float64
    timestamp String
    values List<Double>
    timestamp string
    values number[]
    timestamp str
    values Sequence[float]
    timestamp String
    values List<Number>

    GetDetectAnomalyJobInputDetailObjectLocation

    Bucket string
    Object Storage bucket name.
    Namespace string
    Object Storage namespace.
    Object string
    Object Storage object name.
    Bucket string
    Object Storage bucket name.
    Namespace string
    Object Storage namespace.
    Object string
    Object Storage object name.
    bucket String
    Object Storage bucket name.
    namespace String
    Object Storage namespace.
    object String
    Object Storage object name.
    bucket string
    Object Storage bucket name.
    namespace string
    Object Storage namespace.
    object string
    Object Storage object name.
    bucket str
    Object Storage bucket name.
    namespace str
    Object Storage namespace.
    object str
    Object Storage object name.
    bucket String
    Object Storage bucket name.
    namespace String
    Object Storage namespace.
    object String
    Object Storage object name.

    GetDetectAnomalyJobOutputDetail

    Bucket string
    Object Storage bucket name.
    Namespace string
    Object Storage namespace.
    OutputType string
    The type of output location Allowed values are:
    Prefix string
    Object Storage folder name.
    Bucket string
    Object Storage bucket name.
    Namespace string
    Object Storage namespace.
    OutputType string
    The type of output location Allowed values are:
    Prefix string
    Object Storage folder name.
    bucket String
    Object Storage bucket name.
    namespace String
    Object Storage namespace.
    outputType String
    The type of output location Allowed values are:
    prefix String
    Object Storage folder name.
    bucket string
    Object Storage bucket name.
    namespace string
    Object Storage namespace.
    outputType string
    The type of output location Allowed values are:
    prefix string
    Object Storage folder name.
    bucket str
    Object Storage bucket name.
    namespace str
    Object Storage namespace.
    output_type str
    The type of output location Allowed values are:
    prefix str
    Object Storage folder name.
    bucket String
    Object Storage bucket name.
    namespace String
    Object Storage namespace.
    outputType String
    The type of output location Allowed values are:
    prefix String
    Object Storage folder name.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.31.0 published on Wednesday, Apr 10, 2024 by Pulumi