TraceSnapshot¶
- class oci.apm_traces.models.TraceSnapshot(**kwargs)¶
Bases:
objectDefinition of a trace snapshot object.
Methods:
__init__(**kwargs)Initializes a new TraceSnapshot object with values from keyword arguments.
Attributes:
[Required] Gets the key of this TraceSnapshot.
[Required] Gets the span_snapshots of this TraceSnapshot.
Gets the time_ended of this TraceSnapshot.
Gets the time_started of this TraceSnapshot.
Gets the trace_snapshot_details of this TraceSnapshot.
- __init__(**kwargs)¶
Initializes a new TraceSnapshot object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
key (str) – The value to assign to the key property of this TraceSnapshot.
time_started (datetime) – The value to assign to the time_started property of this TraceSnapshot.
time_ended (datetime) – The value to assign to the time_ended property of this TraceSnapshot.
trace_snapshot_details (list[oci.apm_traces.models.SnapshotDetail]) – The value to assign to the trace_snapshot_details property of this TraceSnapshot.
span_snapshots (list[oci.apm_traces.models.SpanSnapshot]) – The value to assign to the span_snapshots property of this TraceSnapshot.
- property key¶
[Required] Gets the key of this TraceSnapshot. Unique identifier (traceId) for the trace that represents the span set. Note that this field is defined as traceKey in the API and it maps to the traceId in the trace data in Application Performance Monitoring.
- Returns
The key of this TraceSnapshot.
- Return type
str
- property span_snapshots¶
[Required] Gets the span_snapshots of this TraceSnapshot. List of spans.
- Returns
The span_snapshots of this TraceSnapshot.
- Return type
- property time_ended¶
Gets the time_ended of this TraceSnapshot. End time of the trace.
- Returns
The time_ended of this TraceSnapshot.
- Return type
datetime
- property time_started¶
Gets the time_started of this TraceSnapshot. Start time of the trace.
- Returns
The time_started of this TraceSnapshot.
- Return type
datetime
- property trace_snapshot_details¶
Gets the trace_snapshot_details of this TraceSnapshot. Trace snapshots properties.
- Returns
The trace_snapshot_details of this TraceSnapshot.
- Return type