Class 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 the Log.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 the Log.Builder, which maintain a set of all explicitly set fields called Log.Builder.__explicitlySet__. The hashCode() and equals(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).
    • Method Detail

      • builder

        public static Log.Builder builder()
        Create a new builder.
      • 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 class com.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 class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel