oci.AiAnomalyDetection.getDetectAnomalyJob
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
using System.Collections.Generic;
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 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
})
}
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());
}
}
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"])
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,
});
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:
- Detect
Anomaly stringJob Id Unique asynchronous job identifier.
- Detect
Anomaly stringJob Id Unique asynchronous job identifier.
- detect
Anomaly StringJob Id Unique asynchronous job identifier.
- detect
Anomaly stringJob Id Unique asynchronous job identifier.
- detect_
anomaly_ strjob_ id Unique asynchronous job identifier.
- detect
Anomaly StringJob Id Unique asynchronous job identifier.
getDetectAnomalyJob Result
The following output properties are available:
- Compartment
Id string The OCID of the compartment that starts the job.
- 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.
- Detect
Anomaly stringJob Id - Display
Name string Detect anomaly job display name.
- 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.
- Input
Details List<GetDetect Anomaly Job Input Detail> Input details for detect anomaly job.
- Lifecycle
State stringDetails The current state details of the batch document job.
- Model
Id string The OCID of the trained model.
- Output
Details List<GetDetect Anomaly Job Output Detail> Output details for detect anomaly job.
- Project
Id 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.
- Dictionary<string, object>
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Accepted string Job accepted time
- Time
Finished string Job finished time
- Time
Started string Job started time
- Compartment
Id string The OCID of the compartment that starts the job.
- 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.
- Detect
Anomaly stringJob Id - Display
Name string Detect anomaly job display name.
- 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.
- Input
Details []GetDetect Anomaly Job Input Detail Input details for detect anomaly job.
- Lifecycle
State stringDetails The current state details of the batch document job.
- Model
Id string The OCID of the trained model.
- Output
Details []GetDetect Anomaly Job Output Detail Output details for detect anomaly job.
- Project
Id 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.
- map[string]interface{}
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Accepted string Job accepted time
- Time
Finished string Job finished time
- Time
Started string Job started time
- compartment
Id String The OCID of the compartment that starts the job.
- 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.
- detect
Anomaly StringJob Id - display
Name String Detect anomaly job display name.
- 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.
- input
Details List<GetDetect Anomaly Job Input Detail> Input details for detect anomaly job.
- lifecycle
State StringDetails The current state details of the batch document job.
- model
Id String The OCID of the trained model.
- output
Details List<GetDetect Anomaly Job Output Detail> Output details for detect anomaly job.
- project
Id 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.
- Map<String,Object>
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Accepted String Job accepted time
- time
Finished String Job finished time
- time
Started String Job started time
- compartment
Id string The OCID of the compartment that starts the job.
- {[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.
- detect
Anomaly stringJob Id - display
Name string Detect anomaly job display name.
- {[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.
- input
Details GetDetect Anomaly Job Input Detail[] Input details for detect anomaly job.
- lifecycle
State stringDetails The current state details of the batch document job.
- model
Id string The OCID of the trained model.
- output
Details GetDetect Anomaly Job Output Detail[] Output details for detect anomaly job.
- project
Id 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.
- {[key: string]: any}
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Accepted string Job accepted time
- time
Finished string Job finished time
- time
Started string Job started time
- compartment_
id str The OCID of the compartment that starts the job.
- 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_ strjob_ id - display_
name str Detect anomaly job display name.
- 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 GetDetect Anomaly Job Input Detail] Input details for detect anomaly job.
- lifecycle_
state_ strdetails The current state details of the batch document job.
- model_
id str The OCID of the trained model.
- output_
details GetDetect Anomaly Job Output Detail] 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.
- 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
- compartment
Id String The OCID of the compartment that starts the job.
- 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.
- detect
Anomaly StringJob Id - display
Name String Detect anomaly job display name.
- 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.
- input
Details List<Property Map> Input details for detect anomaly job.
- lifecycle
State StringDetails The current state details of the batch document job.
- model
Id String The OCID of the trained model.
- output
Details List<Property Map> Output details for detect anomaly job.
- project
Id 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.
- Map<Any>
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Accepted String Job accepted time
- time
Finished String Job finished time
- time
Started String Job started time
Supporting Types
GetDetectAnomalyJobInputDetail
- Content string
- Content
Type string - Datas
List<Get
Detect Anomaly Job Input Detail Data> - Input
Type string The type of input location Allowed values are:
- Message string
Inline input details.
- Object
Locations List<GetDetect Anomaly Job Input Detail Object Location> List of ObjectLocations.
- Signal
Names List<string>
- Content string
- Content
Type string - Datas
[]Get
Detect Anomaly Job Input Detail Data - Input
Type string The type of input location Allowed values are:
- Message string
Inline input details.
- Object
Locations []GetDetect Anomaly Job Input Detail Object Location List of ObjectLocations.
- Signal
Names []string
- content String
- content
Type String - datas
List<Get
Detect Anomaly Job Input Detail Data> - input
Type String The type of input location Allowed values are:
- message String
Inline input details.
- object
Locations List<GetDetect Anomaly Job Input Detail Object Location> List of ObjectLocations.
- signal
Names List<String>
- content string
- content
Type string - datas
Get
Detect Anomaly Job Input Detail Data[] - input
Type string The type of input location Allowed values are:
- message string
Inline input details.
- object
Locations GetDetect Anomaly Job Input Detail Object Location[] List of ObjectLocations.
- signal
Names string[]
- content str
- content_
type str - datas
Get
Detect Anomaly Job Input Detail Data] - input_
type str The type of input location Allowed values are:
- message str
Inline input details.
- object_
locations GetDetect Anomaly Job Input Detail Object Location] List of ObjectLocations.
- signal_
names Sequence[str]
- content String
- content
Type String - datas List<Property Map>
- input
Type String The type of input location Allowed values are:
- message String
Inline input details.
- object
Locations List<Property Map> List of ObjectLocations.
- signal
Names List<String>
GetDetectAnomalyJobInputDetailData
GetDetectAnomalyJobInputDetailObjectLocation
GetDetectAnomalyJobOutputDetail
- Bucket string
Object Storage bucket name.
- Namespace string
Object Storage namespace.
- Output
Type 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.
- Output
Type 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.
- output
Type 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.
- output
Type 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.
- output
Type 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.