1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ApmTraces
  5. getTraceSnapshotData
Oracle Cloud Infrastructure v1.16.1 published on Wednesday, Nov 22, 2023 by Pulumi

oci.ApmTraces.getTraceSnapshotData

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.16.1 published on Wednesday, Nov 22, 2023 by Pulumi

    This data source provides details about a specific Trace Snapshot Data resource in Oracle Cloud Infrastructure Apm Traces service.

    Gets the trace snapshots data identified by trace ID.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testTraceSnapshotData = Oci.ApmTraces.GetTraceSnapshotData.Invoke(new()
        {
            ApmDomainId = oci_apm_apm_domain.Test_apm_domain.Id,
            TraceKey = @var.Trace_snapshot_data_trace_key,
            IsSummarized = @var.Trace_snapshot_data_is_summarized,
            SnapshotTime = @var.Trace_snapshot_data_snapshot_time,
            ThreadId = oci_apm_traces_thread.Test_thread.Id,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/ApmTraces"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ApmTraces.GetTraceSnapshotData(ctx, &apmtraces.GetTraceSnapshotDataArgs{
    			ApmDomainId:  oci_apm_apm_domain.Test_apm_domain.Id,
    			TraceKey:     _var.Trace_snapshot_data_trace_key,
    			IsSummarized: pulumi.BoolRef(_var.Trace_snapshot_data_is_summarized),
    			SnapshotTime: pulumi.StringRef(_var.Trace_snapshot_data_snapshot_time),
    			ThreadId:     pulumi.StringRef(oci_apm_traces_thread.Test_thread.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.ApmTraces.ApmTracesFunctions;
    import com.pulumi.oci.ApmTraces.inputs.GetTraceSnapshotDataArgs;
    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 testTraceSnapshotData = ApmTracesFunctions.getTraceSnapshotData(GetTraceSnapshotDataArgs.builder()
                .apmDomainId(oci_apm_apm_domain.test_apm_domain().id())
                .traceKey(var_.trace_snapshot_data_trace_key())
                .isSummarized(var_.trace_snapshot_data_is_summarized())
                .snapshotTime(var_.trace_snapshot_data_snapshot_time())
                .threadId(oci_apm_traces_thread.test_thread().id())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_oci as oci
    
    test_trace_snapshot_data = oci.ApmTraces.get_trace_snapshot_data(apm_domain_id=oci_apm_apm_domain["test_apm_domain"]["id"],
        trace_key=var["trace_snapshot_data_trace_key"],
        is_summarized=var["trace_snapshot_data_is_summarized"],
        snapshot_time=var["trace_snapshot_data_snapshot_time"],
        thread_id=oci_apm_traces_thread["test_thread"]["id"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testTraceSnapshotData = oci.ApmTraces.getTraceSnapshotData({
        apmDomainId: oci_apm_apm_domain.test_apm_domain.id,
        traceKey: _var.trace_snapshot_data_trace_key,
        isSummarized: _var.trace_snapshot_data_is_summarized,
        snapshotTime: _var.trace_snapshot_data_snapshot_time,
        threadId: oci_apm_traces_thread.test_thread.id,
    });
    
    variables:
      testTraceSnapshotData:
        fn::invoke:
          Function: oci:ApmTraces:getTraceSnapshotData
          Arguments:
            apmDomainId: ${oci_apm_apm_domain.test_apm_domain.id}
            traceKey: ${var.trace_snapshot_data_trace_key}
            isSummarized: ${var.trace_snapshot_data_is_summarized}
            snapshotTime: ${var.trace_snapshot_data_snapshot_time}
            threadId: ${oci_apm_traces_thread.test_thread.id}
    

    Using getTraceSnapshotData

    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 getTraceSnapshotData(args: GetTraceSnapshotDataArgs, opts?: InvokeOptions): Promise<GetTraceSnapshotDataResult>
    function getTraceSnapshotDataOutput(args: GetTraceSnapshotDataOutputArgs, opts?: InvokeOptions): Output<GetTraceSnapshotDataResult>
    def get_trace_snapshot_data(apm_domain_id: Optional[str] = None,
                                is_summarized: Optional[bool] = None,
                                snapshot_time: Optional[str] = None,
                                thread_id: Optional[str] = None,
                                trace_key: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetTraceSnapshotDataResult
    def get_trace_snapshot_data_output(apm_domain_id: Optional[pulumi.Input[str]] = None,
                                is_summarized: Optional[pulumi.Input[bool]] = None,
                                snapshot_time: Optional[pulumi.Input[str]] = None,
                                thread_id: Optional[pulumi.Input[str]] = None,
                                trace_key: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetTraceSnapshotDataResult]
    func GetTraceSnapshotData(ctx *Context, args *GetTraceSnapshotDataArgs, opts ...InvokeOption) (*GetTraceSnapshotDataResult, error)
    func GetTraceSnapshotDataOutput(ctx *Context, args *GetTraceSnapshotDataOutputArgs, opts ...InvokeOption) GetTraceSnapshotDataResultOutput

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

    public static class GetTraceSnapshotData 
    {
        public static Task<GetTraceSnapshotDataResult> InvokeAsync(GetTraceSnapshotDataArgs args, InvokeOptions? opts = null)
        public static Output<GetTraceSnapshotDataResult> Invoke(GetTraceSnapshotDataInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTraceSnapshotDataResult> getTraceSnapshotData(GetTraceSnapshotDataArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:ApmTraces/getTraceSnapshotData:getTraceSnapshotData
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ApmDomainId string

    The APM Domain ID the request is intended for.

    TraceKey string

    Unique Application Performance Monitoring trace identifier (traceId).

    IsSummarized bool

    If enabled, then only span level details will be sent.

    SnapshotTime string

    Epoch time of snapshot.

    ThreadId string

    Thread id for which snapshots needs to be retrieved. This is an identifier of a thread, and is a positive long number generated when when a thread is created.

    ApmDomainId string

    The APM Domain ID the request is intended for.

    TraceKey string

    Unique Application Performance Monitoring trace identifier (traceId).

    IsSummarized bool

    If enabled, then only span level details will be sent.

    SnapshotTime string

    Epoch time of snapshot.

    ThreadId string

    Thread id for which snapshots needs to be retrieved. This is an identifier of a thread, and is a positive long number generated when when a thread is created.

    apmDomainId String

    The APM Domain ID the request is intended for.

    traceKey String

    Unique Application Performance Monitoring trace identifier (traceId).

    isSummarized Boolean

    If enabled, then only span level details will be sent.

    snapshotTime String

    Epoch time of snapshot.

    threadId String

    Thread id for which snapshots needs to be retrieved. This is an identifier of a thread, and is a positive long number generated when when a thread is created.

    apmDomainId string

    The APM Domain ID the request is intended for.

    traceKey string

    Unique Application Performance Monitoring trace identifier (traceId).

    isSummarized boolean

    If enabled, then only span level details will be sent.

    snapshotTime string

    Epoch time of snapshot.

    threadId string

    Thread id for which snapshots needs to be retrieved. This is an identifier of a thread, and is a positive long number generated when when a thread is created.

    apm_domain_id str

    The APM Domain ID the request is intended for.

    trace_key str

    Unique Application Performance Monitoring trace identifier (traceId).

    is_summarized bool

    If enabled, then only span level details will be sent.

    snapshot_time str

    Epoch time of snapshot.

    thread_id str

    Thread id for which snapshots needs to be retrieved. This is an identifier of a thread, and is a positive long number generated when when a thread is created.

    apmDomainId String

    The APM Domain ID the request is intended for.

    traceKey String

    Unique Application Performance Monitoring trace identifier (traceId).

    isSummarized Boolean

    If enabled, then only span level details will be sent.

    snapshotTime String

    Epoch time of snapshot.

    threadId String

    Thread id for which snapshots needs to be retrieved. This is an identifier of a thread, and is a positive long number generated when when a thread is created.

    getTraceSnapshotData Result

    The following output properties are available:

    ApmDomainId string
    Id string

    The provider-assigned unique ID for this managed resource.

    Key string

    Name of the property.

    TimeEnded string

    End time of the trace.

    TimeStarted string

    Start time of the trace.

    TraceKey string
    TraceSnapshotDetails List<GetTraceSnapshotDataTraceSnapshotDetail>

    Trace snapshots properties.

    IsSummarized bool
    SnapshotTime string
    ThreadId string
    ApmDomainId string
    Id string

    The provider-assigned unique ID for this managed resource.

    Key string

    Name of the property.

    TimeEnded string

    End time of the trace.

    TimeStarted string

    Start time of the trace.

    TraceKey string
    TraceSnapshotDetails []GetTraceSnapshotDataTraceSnapshotDetail

    Trace snapshots properties.

    IsSummarized bool
    SnapshotTime string
    ThreadId string
    apmDomainId String
    id String

    The provider-assigned unique ID for this managed resource.

    key String

    Name of the property.

    timeEnded String

    End time of the trace.

    timeStarted String

    Start time of the trace.

    traceKey String
    traceSnapshotDetails List<GetTraceSnapshotDataTraceSnapshotDetail>

    Trace snapshots properties.

    isSummarized Boolean
    snapshotTime String
    threadId String
    apmDomainId string
    id string

    The provider-assigned unique ID for this managed resource.

    key string

    Name of the property.

    timeEnded string

    End time of the trace.

    timeStarted string

    Start time of the trace.

    traceKey string
    traceSnapshotDetails GetTraceSnapshotDataTraceSnapshotDetail[]

    Trace snapshots properties.

    isSummarized boolean
    snapshotTime string
    threadId string
    apm_domain_id str
    id str

    The provider-assigned unique ID for this managed resource.

    key str

    Name of the property.

    time_ended str

    End time of the trace.

    time_started str

    Start time of the trace.

    trace_key str
    trace_snapshot_details GetTraceSnapshotDataTraceSnapshotDetail]

    Trace snapshots properties.

    is_summarized bool
    snapshot_time str
    thread_id str
    apmDomainId String
    id String

    The provider-assigned unique ID for this managed resource.

    key String

    Name of the property.

    timeEnded String

    End time of the trace.

    timeStarted String

    Start time of the trace.

    traceKey String
    traceSnapshotDetails List<Property Map>

    Trace snapshots properties.

    isSummarized Boolean
    snapshotTime String
    threadId String

    Supporting Types

    GetTraceSnapshotDataTraceSnapshotDetail

    Key string

    Name of the property.

    Value string

    Value of the property.

    Key string

    Name of the property.

    Value string

    Value of the property.

    key String

    Name of the property.

    value String

    Value of the property.

    key string

    Name of the property.

    value string

    Value of the property.

    key str

    Name of the property.

    value str

    Value of the property.

    key String

    Name of the property.

    value String

    Value of the property.

    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.16.1 published on Wednesday, Nov 22, 2023 by Pulumi