Class ActiveViolation

    • Method Detail

      • violationId

        public final String violationId()

        The ID of the active violation.

        Returns:
        The ID of the active violation.
      • thingName

        public final String thingName()

        The name of the thing responsible for the active violation.

        Returns:
        The name of the thing responsible for the active violation.
      • securityProfileName

        public final String securityProfileName()

        The security profile with the behavior is in violation.

        Returns:
        The security profile with the behavior is in violation.
      • behavior

        public final Behavior behavior()

        The behavior that is being violated.

        Returns:
        The behavior that is being violated.
      • lastViolationValue

        public final MetricValue lastViolationValue()

        The value of the metric (the measurement) that caused the most recent violation.

        Returns:
        The value of the metric (the measurement) that caused the most recent violation.
      • violationEventAdditionalInfo

        public final ViolationEventAdditionalInfo violationEventAdditionalInfo()

        The details of a violation event.

        Returns:
        The details of a violation event.
      • verificationStateAsString

        public final String verificationStateAsString()

        The verification state of the violation (detect alarm).

        If the service returns an enum value that is not available in the current SDK version, verificationState will return VerificationState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from verificationStateAsString().

        Returns:
        The verification state of the violation (detect alarm).
        See Also:
        VerificationState
      • verificationStateDescription

        public final String verificationStateDescription()

        The description of the verification state of the violation.

        Returns:
        The description of the verification state of the violation.
      • lastViolationTime

        public final Instant lastViolationTime()

        The time the most recent violation occurred.

        Returns:
        The time the most recent violation occurred.
      • violationStartTime

        public final Instant violationStartTime()

        The time the violation started.

        Returns:
        The time the violation started.
      • 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)