Class LogAnomalyClass

    • Method Detail

      • logStreamName

        public final String logStreamName()

        The name of the Amazon CloudWatch log stream that the anomalous log event belongs to. A log stream is a sequence of log events that share the same source.

        Returns:
        The name of the Amazon CloudWatch log stream that the anomalous log event belongs to. A log stream is a sequence of log events that share the same source.
      • logAnomalyToken

        public final String logAnomalyToken()

        The token where the anomaly was detected. This may refer to an exception or another location, or it may be blank for log anomalies such as format anomalies.

        Returns:
        The token where the anomaly was detected. This may refer to an exception or another location, or it may be blank for log anomalies such as format anomalies.
      • logEventId

        public final String logEventId()

        The ID of the log event.

        Returns:
        The ID of the log event.
      • explanation

        public final String explanation()

        The explanation for why the log event is considered an anomaly.

        Returns:
        The explanation for why the log event is considered an anomaly.
      • numberOfLogLinesOccurrences

        public final Integer numberOfLogLinesOccurrences()

        The number of log lines where this anomalous log event occurs.

        Returns:
        The number of log lines where this anomalous log event occurs.
      • logEventTimestamp

        public final Instant logEventTimestamp()

        The time of the first occurrence of the anomalous log event.

        Returns:
        The time of the first occurrence of the anomalous log event.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)