Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.ApmTraces.getTraceAggregatedSnapshotData
Explore with Pulumi AI
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:
- Apm
Domain stringId - The APM Domain ID for the intended request.
- Trace
Key string - Unique Application Performance Monitoring trace identifier (traceId).
- Server
Name string - Name of the server.
- Service
Name string - Name associated with the service.
- Span
Key string - Unique Application Performance Monitoring span identifier (spanId).
- Span
Name string - Name of the span associated with the trace.
- Apm
Domain stringId - The APM Domain ID for the intended request.
- Trace
Key string - Unique Application Performance Monitoring trace identifier (traceId).
- Server
Name string - Name of the server.
- Service
Name string - Name associated with the service.
- Span
Key string - Unique Application Performance Monitoring span identifier (spanId).
- Span
Name string - Name of the span associated with the trace.
- apm
Domain StringId - The APM Domain ID for the intended request.
- trace
Key String - Unique Application Performance Monitoring trace identifier (traceId).
- server
Name String - Name of the server.
- service
Name String - Name associated with the service.
- span
Key String - Unique Application Performance Monitoring span identifier (spanId).
- span
Name String - Name of the span associated with the trace.
- apm
Domain stringId - The APM Domain ID for the intended request.
- trace
Key string - Unique Application Performance Monitoring trace identifier (traceId).
- server
Name string - Name of the server.
- service
Name string - Name associated with the service.
- span
Key string - Unique Application Performance Monitoring span identifier (spanId).
- span
Name string - Name of the span associated with the trace.
- apm_
domain_ strid - 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.
- apm
Domain StringId - The APM Domain ID for the intended request.
- trace
Key String - Unique Application Performance Monitoring trace identifier (traceId).
- server
Name String - Name of the server.
- service
Name String - Name associated with the service.
- span
Key String - Unique Application Performance Monitoring span identifier (spanId).
- span
Name String - Name of the span associated with the trace.
getTraceAggregatedSnapshotData Result
The following output properties are available:
- Apm
Domain stringId - Details
List<Get
Trace Aggregated Snapshot Data Detail> - Aggregated snapshot details.
- Id string
- The provider-assigned unique ID for this managed resource.
- Trace
Key string - Server
Name string - Service
Name string - Span
Key string - Span
Name string
- Apm
Domain stringId - Details
[]Get
Trace Aggregated Snapshot Data Detail - Aggregated snapshot details.
- Id string
- The provider-assigned unique ID for this managed resource.
- Trace
Key string - Server
Name string - Service
Name string - Span
Key string - Span
Name string
- apm
Domain StringId - details
List<Get
Trace Aggregated Snapshot Data Detail> - Aggregated snapshot details.
- id String
- The provider-assigned unique ID for this managed resource.
- trace
Key String - server
Name String - service
Name String - span
Key String - span
Name String
- apm
Domain stringId - details
Get
Trace Aggregated Snapshot Data Detail[] - Aggregated snapshot details.
- id string
- The provider-assigned unique ID for this managed resource.
- trace
Key string - server
Name string - service
Name string - span
Key string - span
Name string
- apm_
domain_ strid - details
Sequence[apmtraces.
Get Trace Aggregated Snapshot Data Detail] - 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
- apm
Domain StringId - details List<Property Map>
- Aggregated snapshot details.
- id String
- The provider-assigned unique ID for this managed resource.
- trace
Key String - server
Name String - service
Name String - span
Key String - span
Name String
Supporting Types
GetTraceAggregatedSnapshotDataDetail
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.