Log

class oci.apm_traces.models.Log(**kwargs)

Bases: object

Definition of a log object.

Methods

__init__(**kwargs) Initializes a new Log object with values from keyword arguments.

Attributes

attribute_metadata Gets the attribute_metadata of this Log.
attributes Gets the attributes of this Log.
body Gets the body of this Log.
event_name Gets the event_name of this Log.
log_key [Required] Gets the log_key of this Log.
overflow_attributes Gets the overflow_attributes of this Log.
severity_number Gets the severity_number of this Log.
severity_text Gets the severity_text of this Log.
span_key Gets the span_key of this Log.
time_created Gets the time_created of this Log.
time_observed Gets the time_observed of this Log.
timestamp [Required] Gets the timestamp of this Log.
trace_flags Gets the trace_flags of this Log.
trace_key Gets the trace_key of this Log.
__init__(**kwargs)

Initializes a new Log object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • log_key (str) – The value to assign to the log_key property of this Log.
  • event_name (str) – The value to assign to the event_name property of this Log.
  • timestamp (datetime) – The value to assign to the timestamp property of this Log.
  • trace_key (str) – The value to assign to the trace_key property of this Log.
  • span_key (str) – The value to assign to the span_key property of this Log.
  • trace_flags (int) – The value to assign to the trace_flags property of this Log.
  • time_created (datetime) – The value to assign to the time_created property of this Log.
  • time_observed (datetime) – The value to assign to the time_observed property of this Log.
  • severity_text (str) – The value to assign to the severity_text property of this Log.
  • severity_number (int) – The value to assign to the severity_number property of this Log.
  • body (str) – The value to assign to the body property of this Log.
  • overflow_attributes (str) – The value to assign to the overflow_attributes property of this Log.
  • attributes (list[oci.apm_traces.models.Attribute]) – The value to assign to the attributes property of this Log.
  • attribute_metadata (dict(str, AttributeMetadata)) – The value to assign to the attribute_metadata property of this Log.
attribute_metadata

Gets the attribute_metadata of this Log. Metadata about the attributes in the logs.

Returns:The attribute_metadata of this Log.
Return type:dict(str, AttributeMetadata)
attributes

Gets the attributes of this Log. List of attributes associated with the logs.

Returns:The attributes of this Log.
Return type:list[oci.apm_traces.models.Attribute]
body

Gets the body of this Log. Log body (Body).

Returns:The body of this Log.
Return type:str
event_name

Gets the event_name of this Log. Name of the event.

Returns:The event_name of this Log.
Return type:str
log_key

[Required] Gets the log_key of this Log. Unique identifier (logId) for the logKey. Note that this field is defined as logKey in the API and it maps to the logId in Application Performance Monitoring.

Returns:The log_key of this Log.
Return type:str
overflow_attributes

Gets the overflow_attributes of this Log. Full values for attributes that are too long to be stored as a log attribute (Overflow).

Returns:The overflow_attributes of this Log.
Return type:str
severity_number

Gets the severity_number of this Log. Log Severity number (SeverityNumber).

Returns:The severity_number of this Log.
Return type:int
severity_text

Gets the severity_text of this Log. Log Severity text (SeverityText). Also known as Log level.

Returns:The severity_text of this Log.
Return type:str
span_key

Gets the span_key of this Log. Unique identifier for the span (spanId) associated with this log.

Returns:The span_key of this Log.
Return type:str
time_created

Gets the time_created of this Log. Time that the log event occurred (CreatedTime).

Returns:The time_created of this Log.
Return type:datetime
time_observed

Gets the time_observed of this Log. Time that the log was received by apm (ObservedTime).

Returns:The time_observed of this Log.
Return type:datetime
timestamp

[Required] Gets the timestamp of this Log. Time used by the time picker (RecordedTime). Either the timeCreated if present or the timeObserved.

Returns:The timestamp of this Log.
Return type:datetime
trace_flags

Gets the trace_flags of this Log. Trace flags.

Returns:The trace_flags of this Log.
Return type:int
trace_key

Gets the trace_key of this Log. Unique identifier for the trace (traceId) associated with this log.

Returns:The trace_key of this Log.
Return type:str