1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ApmTraces
  5. getTraceAggregatedSnapshotData
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.ApmTraces.getTraceAggregatedSnapshotData

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 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

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testTraceAggregatedSnapshotData = oci.ApmTraces.getTraceAggregatedSnapshotData({
        apmDomainId: testApmDomain.id,
        traceKey: traceAggregatedSnapshotDataTraceKey,
        serverName: traceAggregatedSnapshotDataServerName,
        serviceName: testService.name,
        spanKey: traceAggregatedSnapshotDataSpanKey,
        spanName: traceAggregatedSnapshotDataSpanName,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_trace_aggregated_snapshot_data = oci.ApmTraces.get_trace_aggregated_snapshot_data(apm_domain_id=test_apm_domain["id"],
        trace_key=trace_aggregated_snapshot_data_trace_key,
        server_name=trace_aggregated_snapshot_data_server_name,
        service_name=test_service["name"],
        span_key=trace_aggregated_snapshot_data_span_key,
        span_name=trace_aggregated_snapshot_data_span_name)
    
    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.GetTraceAggregatedSnapshotData(ctx, &apmtraces.GetTraceAggregatedSnapshotDataArgs{
    			ApmDomainId: testApmDomain.Id,
    			TraceKey:    traceAggregatedSnapshotDataTraceKey,
    			ServerName:  pulumi.StringRef(traceAggregatedSnapshotDataServerName),
    			ServiceName: pulumi.StringRef(testService.Name),
    			SpanKey:     pulumi.StringRef(traceAggregatedSnapshotDataSpanKey),
    			SpanName:    pulumi.StringRef(traceAggregatedSnapshotDataSpanName),
    		}, 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 testTraceAggregatedSnapshotData = Oci.ApmTraces.GetTraceAggregatedSnapshotData.Invoke(new()
        {
            ApmDomainId = testApmDomain.Id,
            TraceKey = traceAggregatedSnapshotDataTraceKey,
            ServerName = traceAggregatedSnapshotDataServerName,
            ServiceName = testService.Name,
            SpanKey = traceAggregatedSnapshotDataSpanKey,
            SpanName = traceAggregatedSnapshotDataSpanName,
        });
    
    });
    
    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(testApmDomain.id())
                .traceKey(traceAggregatedSnapshotDataTraceKey)
                .serverName(traceAggregatedSnapshotDataServerName)
                .serviceName(testService.name())
                .spanKey(traceAggregatedSnapshotDataSpanKey)
                .spanName(traceAggregatedSnapshotDataSpanName)
                .build());
    
        }
    }
    
    variables:
      testTraceAggregatedSnapshotData:
        fn::invoke:
          Function: oci:ApmTraces:getTraceAggregatedSnapshotData
          Arguments:
            apmDomainId: ${testApmDomain.id}
            traceKey: ${traceAggregatedSnapshotDataTraceKey}
            serverName: ${traceAggregatedSnapshotDataServerName}
            serviceName: ${testService.name}
            spanKey: ${traceAggregatedSnapshotDataSpanKey}
            spanName: ${traceAggregatedSnapshotDataSpanName}
    

    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,
                                           server_name: Optional[str] = None,
                                           service_name: Optional[str] = None,
                                           span_key: Optional[str] = None,
                                           span_name: 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,
                                           server_name: Optional[pulumi.Input[str]] = None,
                                           service_name: Optional[pulumi.Input[str]] = None,
                                           span_key: Optional[pulumi.Input[str]] = None,
                                           span_name: 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 for the intended request.
    TraceKey string
    Unique Application Performance Monitoring trace identifier (traceId).
    ServerName string
    Name of the server.
    ServiceName string
    Name associated with the service.
    SpanKey string
    Unique Application Performance Monitoring span identifier (spanId).
    SpanName string
    Name of the span associated with the trace.
    ApmDomainId string
    The APM Domain ID for the intended request.
    TraceKey string
    Unique Application Performance Monitoring trace identifier (traceId).
    ServerName string
    Name of the server.
    ServiceName string
    Name associated with the service.
    SpanKey string
    Unique Application Performance Monitoring span identifier (spanId).
    SpanName string
    Name of the span associated with the trace.
    apmDomainId String
    The APM Domain ID for the intended request.
    traceKey String
    Unique Application Performance Monitoring trace identifier (traceId).
    serverName String
    Name of the server.
    serviceName String
    Name associated with the service.
    spanKey String
    Unique Application Performance Monitoring span identifier (spanId).
    spanName String
    Name of the span associated with the trace.
    apmDomainId string
    The APM Domain ID for the intended request.
    traceKey string
    Unique Application Performance Monitoring trace identifier (traceId).
    serverName string
    Name of the server.
    serviceName string
    Name associated with the service.
    spanKey string
    Unique Application Performance Monitoring span identifier (spanId).
    spanName string
    Name of the span associated with the trace.
    apm_domain_id str
    The APM Domain ID for the intended request.
    trace_key str
    Unique Application Performance Monitoring trace identifier (traceId).
    server_name str
    Name of the server.
    service_name str
    Name associated with the service.
    span_key str
    Unique Application Performance Monitoring span identifier (spanId).
    span_name str
    Name of the span associated with the trace.
    apmDomainId String
    The APM Domain ID for the intended request.
    traceKey String
    Unique Application Performance Monitoring trace identifier (traceId).
    serverName String
    Name of the server.
    serviceName String
    Name associated with the service.
    spanKey String
    Unique Application Performance Monitoring span identifier (spanId).
    spanName String
    Name of the span associated with the trace.

    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
    ServerName string
    ServiceName string
    SpanKey string
    SpanName string
    ApmDomainId string
    Details []GetTraceAggregatedSnapshotDataDetail
    Aggregated snapshot details.
    Id string
    The provider-assigned unique ID for this managed resource.
    TraceKey string
    ServerName string
    ServiceName string
    SpanKey string
    SpanName string
    apmDomainId String
    details List<GetTraceAggregatedSnapshotDataDetail>
    Aggregated snapshot details.
    id String
    The provider-assigned unique ID for this managed resource.
    traceKey String
    serverName String
    serviceName String
    spanKey String
    spanName String
    apmDomainId string
    details GetTraceAggregatedSnapshotDataDetail[]
    Aggregated snapshot details.
    id string
    The provider-assigned unique ID for this managed resource.
    traceKey string
    serverName string
    serviceName string
    spanKey string
    spanName string
    apm_domain_id str
    details Sequence[apmtraces.GetTraceAggregatedSnapshotDataDetail]
    Aggregated snapshot details.
    id str
    The provider-assigned unique ID for this managed resource.
    trace_key str
    server_name str
    service_name str
    span_key str
    span_name str
    apmDomainId String
    details List<Property Map>
    Aggregated snapshot details.
    id String
    The provider-assigned unique ID for this managed resource.
    traceKey String
    serverName String
    serviceName String
    spanKey String
    spanName 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 v2.17.0 published on Friday, Nov 15, 2024 by Pulumi