Show / Hide Table of Contents

Class Log

Definition of a log object.

Inheritance
object
Log
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.ApmtracesService.Models
Assembly: OCI.DotNetSDK.Apmtraces.dll
Syntax
public class Log

Properties

AttributeMetadata

Declaration
[JsonProperty(PropertyName = "attributeMetadata")]
public Dictionary<string, AttributeMetadata> AttributeMetadata { get; set; }
Property Value
Type Description
Dictionary<string, AttributeMetadata>

Metadata about the attributes in the logs.

Attributes

Declaration
[JsonProperty(PropertyName = "attributes")]
public List<Attribute> Attributes { get; set; }
Property Value
Type Description
List<Attribute>

List of attributes associated with the logs.

Body

Declaration
[JsonProperty(PropertyName = "body")]
public string Body { get; set; }
Property Value
Type Description
string

Log body (Body).

EventName

Declaration
[JsonProperty(PropertyName = "eventName")]
public string EventName { get; set; }
Property Value
Type Description
string

Name of the event.

LogKey

Declaration
[Required(ErrorMessage = "LogKey is required.")]
[JsonProperty(PropertyName = "logKey")]
public string LogKey { get; set; }
Property Value
Type Description
string

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.

Remarks

Required

OverflowAttributes

Declaration
[JsonProperty(PropertyName = "overflowAttributes")]
public string OverflowAttributes { get; set; }
Property Value
Type Description
string

Full values for attributes that are too long to be stored as a log attribute (Overflow).

SeverityNumber

Declaration
[JsonProperty(PropertyName = "severityNumber")]
public int? SeverityNumber { get; set; }
Property Value
Type Description
int?

Log Severity number (SeverityNumber).

SeverityText

Declaration
[JsonProperty(PropertyName = "severityText")]
public string SeverityText { get; set; }
Property Value
Type Description
string

Log Severity text (SeverityText). Also known as Log level.

SpanKey

Declaration
[JsonProperty(PropertyName = "spanKey")]
public string SpanKey { get; set; }
Property Value
Type Description
string

Unique identifier for the span (spanId) associated with this log.

TimeCreated

Declaration
[JsonProperty(PropertyName = "timeCreated")]
public DateTime? TimeCreated { get; set; }
Property Value
Type Description
DateTime?

Time that the log event occurred (CreatedTime).

TimeObserved

Declaration
[JsonProperty(PropertyName = "timeObserved")]
public DateTime? TimeObserved { get; set; }
Property Value
Type Description
DateTime?

Time that the log was received by apm (ObservedTime).

Timestamp

Declaration
[Required(ErrorMessage = "Timestamp is required.")]
[JsonProperty(PropertyName = "timestamp")]
public DateTime? Timestamp { get; set; }
Property Value
Type Description
DateTime?

Time used by the time picker (RecordedTime). Either the timeCreated if present or the timeObserved.

Remarks

Required

TraceFlags

Declaration
[JsonProperty(PropertyName = "traceFlags")]
public int? TraceFlags { get; set; }
Property Value
Type Description
int?

Trace flags.

TraceKey

Declaration
[JsonProperty(PropertyName = "traceKey")]
public string TraceKey { get; set; }
Property Value
Type Description
string

Unique identifier for the trace (traceId) associated with this log.

In this article
Back to top