oci.ApmTraces.getTraceSnapshotData
Explore with Pulumi AI
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:
- Apm
Domain stringId The APM Domain ID the request is intended for.
- Trace
Key string Unique Application Performance Monitoring trace identifier (traceId).
- Is
Summarized bool If enabled, then only span level details will be sent.
- Snapshot
Time string Epoch time of snapshot.
- Thread
Id 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 stringId The APM Domain ID the request is intended for.
- Trace
Key string Unique Application Performance Monitoring trace identifier (traceId).
- Is
Summarized bool If enabled, then only span level details will be sent.
- Snapshot
Time string Epoch time of snapshot.
- Thread
Id 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 StringId The APM Domain ID the request is intended for.
- trace
Key String Unique Application Performance Monitoring trace identifier (traceId).
- is
Summarized Boolean If enabled, then only span level details will be sent.
- snapshot
Time String Epoch time of snapshot.
- thread
Id 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 stringId The APM Domain ID the request is intended for.
- trace
Key string Unique Application Performance Monitoring trace identifier (traceId).
- is
Summarized boolean If enabled, then only span level details will be sent.
- snapshot
Time string Epoch time of snapshot.
- thread
Id 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_ strid 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.
- apm
Domain StringId The APM Domain ID the request is intended for.
- trace
Key String Unique Application Performance Monitoring trace identifier (traceId).
- is
Summarized Boolean If enabled, then only span level details will be sent.
- snapshot
Time String Epoch time of snapshot.
- thread
Id 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:
- Apm
Domain stringId - Id string
The provider-assigned unique ID for this managed resource.
- Key string
Name of the property.
- Time
Ended string End time of the trace.
- Time
Started string Start time of the trace.
- Trace
Key string - Trace
Snapshot List<GetDetails Trace Snapshot Data Trace Snapshot Detail> Trace snapshots properties.
- Is
Summarized bool - Snapshot
Time string - Thread
Id string
- Apm
Domain stringId - Id string
The provider-assigned unique ID for this managed resource.
- Key string
Name of the property.
- Time
Ended string End time of the trace.
- Time
Started string Start time of the trace.
- Trace
Key string - Trace
Snapshot []GetDetails Trace Snapshot Data Trace Snapshot Detail Trace snapshots properties.
- Is
Summarized bool - Snapshot
Time string - Thread
Id string
- apm
Domain StringId - id String
The provider-assigned unique ID for this managed resource.
- key String
Name of the property.
- time
Ended String End time of the trace.
- time
Started String Start time of the trace.
- trace
Key String - trace
Snapshot List<GetDetails Trace Snapshot Data Trace Snapshot Detail> Trace snapshots properties.
- is
Summarized Boolean - snapshot
Time String - thread
Id String
- apm
Domain stringId - id string
The provider-assigned unique ID for this managed resource.
- key string
Name of the property.
- time
Ended string End time of the trace.
- time
Started string Start time of the trace.
- trace
Key string - trace
Snapshot GetDetails Trace Snapshot Data Trace Snapshot Detail[] Trace snapshots properties.
- is
Summarized boolean - snapshot
Time string - thread
Id string
- apm_
domain_ strid - 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_ Getdetails Trace Snapshot Data Trace Snapshot Detail] Trace snapshots properties.
- is_
summarized bool - snapshot_
time str - thread_
id str
- apm
Domain StringId - id String
The provider-assigned unique ID for this managed resource.
- key String
Name of the property.
- time
Ended String End time of the trace.
- time
Started String Start time of the trace.
- trace
Key String - trace
Snapshot List<Property Map>Details Trace snapshots properties.
- is
Summarized Boolean - snapshot
Time String - thread
Id String
Supporting Types
GetTraceSnapshotDataTraceSnapshotDetail
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.