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

oci.ApmTraces.getTraceAggregatedSnapshotData

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 Aggregated Snapshot Data resource in Oracle Cloud Infrastructure Apm Traces service.

    Gets the aggregated snapshot identified by trace ID.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testTraceAggregatedSnapshotData = Oci.ApmTraces.GetTraceAggregatedSnapshotData.Invoke(new()
        {
            ApmDomainId = oci_apm_apm_domain.Test_apm_domain.Id,
            TraceKey = @var.Trace_aggregated_snapshot_data_trace_key,
        });
    
    });
    
    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.GetTraceAggregatedSnapshotData(ctx, &apmtraces.GetTraceAggregatedSnapshotDataArgs{
    			ApmDomainId: oci_apm_apm_domain.Test_apm_domain.Id,
    			TraceKey:    _var.Trace_aggregated_snapshot_data_trace_key,
    		}, 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.GetTraceAggregatedSnapshotDataArgs;
    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 testTraceAggregatedSnapshotData = ApmTracesFunctions.getTraceAggregatedSnapshotData(GetTraceAggregatedSnapshotDataArgs.builder()
                .apmDomainId(oci_apm_apm_domain.test_apm_domain().id())
                .traceKey(var_.trace_aggregated_snapshot_data_trace_key())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_oci as oci
    
    test_trace_aggregated_snapshot_data = oci.ApmTraces.get_trace_aggregated_snapshot_data(apm_domain_id=oci_apm_apm_domain["test_apm_domain"]["id"],
        trace_key=var["trace_aggregated_snapshot_data_trace_key"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testTraceAggregatedSnapshotData = oci.ApmTraces.getTraceAggregatedSnapshotData({
        apmDomainId: oci_apm_apm_domain.test_apm_domain.id,
        traceKey: _var.trace_aggregated_snapshot_data_trace_key,
    });
    
    variables:
      testTraceAggregatedSnapshotData:
        fn::invoke:
          Function: oci:ApmTraces:getTraceAggregatedSnapshotData
          Arguments:
            apmDomainId: ${oci_apm_apm_domain.test_apm_domain.id}
            traceKey: ${var.trace_aggregated_snapshot_data_trace_key}
    

    Using getTraceAggregatedSnapshotData

    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 getTraceAggregatedSnapshotData(args: GetTraceAggregatedSnapshotDataArgs, opts?: InvokeOptions): Promise<GetTraceAggregatedSnapshotDataResult>
    function getTraceAggregatedSnapshotDataOutput(args: GetTraceAggregatedSnapshotDataOutputArgs, opts?: InvokeOptions): Output<GetTraceAggregatedSnapshotDataResult>
    def get_trace_aggregated_snapshot_data(apm_domain_id: Optional[str] = None,
                                           trace_key: Optional[str] = None,
                                           opts: Optional[InvokeOptions] = None) -> GetTraceAggregatedSnapshotDataResult
    def get_trace_aggregated_snapshot_data_output(apm_domain_id: Optional[pulumi.Input[str]] = None,
                                           trace_key: Optional[pulumi.Input[str]] = None,
                                           opts: Optional[InvokeOptions] = None) -> Output[GetTraceAggregatedSnapshotDataResult]
    func GetTraceAggregatedSnapshotData(ctx *Context, args *GetTraceAggregatedSnapshotDataArgs, opts ...InvokeOption) (*GetTraceAggregatedSnapshotDataResult, error)
    func GetTraceAggregatedSnapshotDataOutput(ctx *Context, args *GetTraceAggregatedSnapshotDataOutputArgs, opts ...InvokeOption) GetTraceAggregatedSnapshotDataResultOutput

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

    public static class GetTraceAggregatedSnapshotData 
    {
        public static Task<GetTraceAggregatedSnapshotDataResult> InvokeAsync(GetTraceAggregatedSnapshotDataArgs args, InvokeOptions? opts = null)
        public static Output<GetTraceAggregatedSnapshotDataResult> Invoke(GetTraceAggregatedSnapshotDataInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTraceAggregatedSnapshotDataResult> getTraceAggregatedSnapshotData(GetTraceAggregatedSnapshotDataArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:ApmTraces/getTraceAggregatedSnapshotData:getTraceAggregatedSnapshotData
      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).

    ApmDomainId string

    The APM Domain ID the request is intended for.

    TraceKey string

    Unique Application Performance Monitoring trace identifier (traceId).

    apmDomainId String

    The APM Domain ID the request is intended for.

    traceKey String

    Unique Application Performance Monitoring trace identifier (traceId).

    apmDomainId string

    The APM Domain ID the request is intended for.

    traceKey string

    Unique Application Performance Monitoring trace identifier (traceId).

    apm_domain_id str

    The APM Domain ID the request is intended for.

    trace_key str

    Unique Application Performance Monitoring trace identifier (traceId).

    apmDomainId String

    The APM Domain ID the request is intended for.

    traceKey String

    Unique Application Performance Monitoring trace identifier (traceId).

    getTraceAggregatedSnapshotData Result

    The following output properties are available:

    ApmDomainId string
    Details List<GetTraceAggregatedSnapshotDataDetail>

    Aggregated snapshot details.

    Id string

    The provider-assigned unique ID for this managed resource.

    TraceKey string
    ApmDomainId string
    Details []GetTraceAggregatedSnapshotDataDetail

    Aggregated snapshot details.

    Id string

    The provider-assigned unique ID for this managed resource.

    TraceKey string
    apmDomainId String
    details List<GetTraceAggregatedSnapshotDataDetail>

    Aggregated snapshot details.

    id String

    The provider-assigned unique ID for this managed resource.

    traceKey String
    apmDomainId string
    details GetTraceAggregatedSnapshotDataDetail[]

    Aggregated snapshot details.

    id string

    The provider-assigned unique ID for this managed resource.

    traceKey string
    apm_domain_id str
    details GetTraceAggregatedSnapshotDataDetail]

    Aggregated snapshot details.

    id str

    The provider-assigned unique ID for this managed resource.

    trace_key str
    apmDomainId String
    details List<Property Map>

    Aggregated snapshot details.

    id String

    The provider-assigned unique ID for this managed resource.

    traceKey String

    Supporting Types

    GetTraceAggregatedSnapshotDataDetail

    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