1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ApmTraces
  5. getTraceSnapshotData
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.ApmTraces.getTraceSnapshotData

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 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

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testTraceSnapshotData = oci.ApmTraces.getTraceSnapshotData({
        apmDomainId: testApmDomain.id,
        traceKey: traceSnapshotDataTraceKey,
        isSummarized: traceSnapshotDataIsSummarized,
        snapshotTime: traceSnapshotDataSnapshotTime,
        threadId: testThread.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_trace_snapshot_data = oci.ApmTraces.get_trace_snapshot_data(apm_domain_id=test_apm_domain["id"],
        trace_key=trace_snapshot_data_trace_key,
        is_summarized=trace_snapshot_data_is_summarized,
        snapshot_time=trace_snapshot_data_snapshot_time,
        thread_id=test_thread["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/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:  testApmDomain.Id,
    			TraceKey:     traceSnapshotDataTraceKey,
    			IsSummarized: pulumi.BoolRef(traceSnapshotDataIsSummarized),
    			SnapshotTime: pulumi.StringRef(traceSnapshotDataSnapshotTime),
    			ThreadId:     pulumi.StringRef(testThread.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 testTraceSnapshotData = Oci.ApmTraces.GetTraceSnapshotData.Invoke(new()
        {
            ApmDomainId = testApmDomain.Id,
            TraceKey = traceSnapshotDataTraceKey,
            IsSummarized = traceSnapshotDataIsSummarized,
            SnapshotTime = traceSnapshotDataSnapshotTime,
            ThreadId = testThread.Id,
        });
    
    });
    
    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(testApmDomain.id())
                .traceKey(traceSnapshotDataTraceKey)
                .isSummarized(traceSnapshotDataIsSummarized)
                .snapshotTime(traceSnapshotDataSnapshotTime)
                .threadId(testThread.id())
                .build());
    
        }
    }
    
    variables:
      testTraceSnapshotData:
        fn::invoke:
          Function: oci:ApmTraces:getTraceSnapshotData
          Arguments:
            apmDomainId: ${testApmDomain.id}
            traceKey: ${traceSnapshotDataTraceKey}
            isSummarized: ${traceSnapshotDataIsSummarized}
            snapshotTime: ${traceSnapshotDataSnapshotTime}
            threadId: ${testThread.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 for the intended request.
    TraceKey string
    Unique Application Performance Monitoring trace identifier (traceId).
    IsSummarized bool
    If enabled, only span level details are sent.
    SnapshotTime string
    Epoch time of snapshot.
    ThreadId string
    Thread ID for which snapshots need to be retrieved. This identifier of a thread is a long positive number generated when a thread is created.
    ApmDomainId string
    The APM Domain ID for the intended request.
    TraceKey string
    Unique Application Performance Monitoring trace identifier (traceId).
    IsSummarized bool
    If enabled, only span level details are sent.
    SnapshotTime string
    Epoch time of snapshot.
    ThreadId string
    Thread ID for which snapshots need to be retrieved. This identifier of a thread is a long positive number generated when a thread is created.
    apmDomainId String
    The APM Domain ID for the intended request.
    traceKey String
    Unique Application Performance Monitoring trace identifier (traceId).
    isSummarized Boolean
    If enabled, only span level details are sent.
    snapshotTime String
    Epoch time of snapshot.
    threadId String
    Thread ID for which snapshots need to be retrieved. This identifier of a thread is a long positive number generated when a thread is created.
    apmDomainId string
    The APM Domain ID for the intended request.
    traceKey string
    Unique Application Performance Monitoring trace identifier (traceId).
    isSummarized boolean
    If enabled, only span level details are sent.
    snapshotTime string
    Epoch time of snapshot.
    threadId string
    Thread ID for which snapshots need to be retrieved. This identifier of a thread is a long positive number generated when a thread is created.
    apm_domain_id str
    The APM Domain ID for the intended request.
    trace_key str
    Unique Application Performance Monitoring trace identifier (traceId).
    is_summarized bool
    If enabled, only span level details are sent.
    snapshot_time str
    Epoch time of snapshot.
    thread_id str
    Thread ID for which snapshots need to be retrieved. This identifier of a thread is a long positive number generated when a thread is created.
    apmDomainId String
    The APM Domain ID for the intended request.
    traceKey String
    Unique Application Performance Monitoring trace identifier (traceId).
    isSummarized Boolean
    If enabled, only span level details are sent.
    snapshotTime String
    Epoch time of snapshot.
    threadId String
    Thread ID for which snapshots need to be retrieved. This identifier of a thread is a long positive number generated 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 Sequence[apmtraces.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 v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi