Package com.oracle.bmc.apmtraces.model
Class Log
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.apmtraces.model.Log
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20200630") public final class Log extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Definition of a log object.
Note: Objects should always be created or deserialized using theLog.Builder
. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theLog.Builder
, which maintain a set of all explicitly set fields calledLog.Builder.__explicitlySet__
. ThehashCode()
andequals(Object)
methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Log.Builder
-
Constructor Summary
Constructors Constructor Description Log(String logKey, String eventName, Date timestamp, String traceKey, String spanKey, Integer traceFlags, Date timeCreated, Date timeObserved, String severityText, Integer severityNumber, String body, String overflowAttributes, List<Attribute> attributes, Map<String,AttributeMetadata> attributeMetadata)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Log.Builder
builder()
Create a new builder.boolean
equals(Object o)
Map<String,AttributeMetadata>
getAttributeMetadata()
Metadata about the attributes in the logs.List<Attribute>
getAttributes()
List of attributes associated with the logs.String
getBody()
Log body (Body).String
getEventName()
Name of the event.String
getLogKey()
Unique identifier (logId) for the logKey.String
getOverflowAttributes()
Full values for attributes that are too long to be stored as a log attribute (Overflow).Integer
getSeverityNumber()
Log Severity number (SeverityNumber).String
getSeverityText()
Log Severity text (SeverityText).String
getSpanKey()
Unique identifier for the span (spanId) associated with this log.Date
getTimeCreated()
Time that the log event occurred (CreatedTime).Date
getTimeObserved()
Time that the log was received by apm (ObservedTime).Date
getTimestamp()
Time used by the time picker (RecordedTime).Integer
getTraceFlags()
Trace flags.String
getTraceKey()
Unique identifier for the trace (traceId) associated with this log.int
hashCode()
Log.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.
-
-
-
Constructor Detail
-
Log
@Deprecated @ConstructorProperties({"logKey","eventName","timestamp","traceKey","spanKey","traceFlags","timeCreated","timeObserved","severityText","severityNumber","body","overflowAttributes","attributes","attributeMetadata"}) public Log(String logKey, String eventName, Date timestamp, String traceKey, String spanKey, Integer traceFlags, Date timeCreated, Date timeObserved, String severityText, Integer severityNumber, String body, String overflowAttributes, List<Attribute> attributes, Map<String,AttributeMetadata> attributeMetadata)
Deprecated.
-
-
Method Detail
-
builder
public static Log.Builder builder()
Create a new builder.
-
toBuilder
public Log.Builder toBuilder()
-
getLogKey
public String getLogKey()
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 value
-
getEventName
public String getEventName()
Name of the event.- Returns:
- the value
-
getTimestamp
public Date getTimestamp()
Time used by the time picker (RecordedTime).Either the timeCreated if present or the timeObserved.
- Returns:
- the value
-
getTraceKey
public String getTraceKey()
Unique identifier for the trace (traceId) associated with this log.- Returns:
- the value
-
getSpanKey
public String getSpanKey()
Unique identifier for the span (spanId) associated with this log.- Returns:
- the value
-
getTraceFlags
public Integer getTraceFlags()
Trace flags.- Returns:
- the value
-
getTimeCreated
public Date getTimeCreated()
Time that the log event occurred (CreatedTime).- Returns:
- the value
-
getTimeObserved
public Date getTimeObserved()
Time that the log was received by apm (ObservedTime).- Returns:
- the value
-
getSeverityText
public String getSeverityText()
Log Severity text (SeverityText).Also known as Log level.
- Returns:
- the value
-
getSeverityNumber
public Integer getSeverityNumber()
Log Severity number (SeverityNumber).- Returns:
- the value
-
getBody
public String getBody()
Log body (Body).- Returns:
- the value
-
getOverflowAttributes
public String getOverflowAttributes()
Full values for attributes that are too long to be stored as a log attribute (Overflow).- Returns:
- the value
-
getAttributes
public List<Attribute> getAttributes()
List of attributes associated with the logs.- Returns:
- the value
-
getAttributeMetadata
public Map<String,AttributeMetadata> getAttributeMetadata()
Metadata about the attributes in the logs.- Returns:
- the value
-
toString
public String toString()
- Overrides:
toString
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Parameters:
includeByteArrayContents
- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-