Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
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
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:
- Apm
Domain stringId - The APM Domain ID for the intended request.
- Trace
Key string - Unique Application Performance Monitoring trace identifier (traceId).
- Is
Summarized bool - If enabled, only span level details are sent.
- Snapshot
Time string - Epoch time of snapshot.
- Thread
Id 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 stringId - The APM Domain ID for the intended request.
- Trace
Key string - Unique Application Performance Monitoring trace identifier (traceId).
- Is
Summarized bool - If enabled, only span level details are sent.
- Snapshot
Time string - Epoch time of snapshot.
- Thread
Id 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 StringId - The APM Domain ID for the intended request.
- trace
Key String - Unique Application Performance Monitoring trace identifier (traceId).
- is
Summarized Boolean - If enabled, only span level details are sent.
- snapshot
Time String - Epoch time of snapshot.
- thread
Id 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 stringId - The APM Domain ID for the intended request.
- trace
Key string - Unique Application Performance Monitoring trace identifier (traceId).
- is
Summarized boolean - If enabled, only span level details are sent.
- snapshot
Time string - Epoch time of snapshot.
- thread
Id 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_ strid - 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.
- apm
Domain StringId - The APM Domain ID for the intended request.
- trace
Key String - Unique Application Performance Monitoring trace identifier (traceId).
- is
Summarized Boolean - If enabled, only span level details are sent.
- snapshot
Time String - Epoch time of snapshot.
- thread
Id 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:
- 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_ Sequence[apmtraces.details Get 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.