Class OutlierDetectionEvent

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, OutlierDetectionEventOrBuilder, Serializable

    public final class OutlierDetectionEvent
    extends com.google.protobuf.GeneratedMessageV3
    implements OutlierDetectionEventOrBuilder
     [#next-free-field: 12]
     
    Protobuf type envoy.data.cluster.v2alpha.OutlierDetectionEvent
    See Also:
    Serialized Form
    • Field Detail

      • SECS_SINCE_LAST_ACTION_FIELD_NUMBER

        public static final int SECS_SINCE_LAST_ACTION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CLUSTER_NAME_FIELD_NUMBER

        public static final int CLUSTER_NAME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • UPSTREAM_URL_FIELD_NUMBER

        public static final int UPSTREAM_URL_FIELD_NUMBER
        See Also:
        Constant Field Values
      • NUM_EJECTIONS_FIELD_NUMBER

        public static final int NUM_EJECTIONS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • EJECT_SUCCESS_RATE_EVENT_FIELD_NUMBER

        public static final int EJECT_SUCCESS_RATE_EVENT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • EJECT_CONSECUTIVE_EVENT_FIELD_NUMBER

        public static final int EJECT_CONSECUTIVE_EVENT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • EJECT_FAILURE_PERCENTAGE_EVENT_FIELD_NUMBER

        public static final int EJECT_FAILURE_PERCENTAGE_EVENT_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getTypeValue

        public int getTypeValue()
         In case of eject represents type of ejection that took place.
         
        .envoy.data.cluster.v2alpha.OutlierEjectionType type = 1 [(.validate.rules) = { ... }
        Specified by:
        getTypeValue in interface OutlierDetectionEventOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • getType

        public OutlierEjectionType getType()
         In case of eject represents type of ejection that took place.
         
        .envoy.data.cluster.v2alpha.OutlierEjectionType type = 1 [(.validate.rules) = { ... }
        Specified by:
        getType in interface OutlierDetectionEventOrBuilder
        Returns:
        The type.
      • hasTimestamp

        public boolean hasTimestamp()
         Timestamp for event.
         
        .google.protobuf.Timestamp timestamp = 2;
        Specified by:
        hasTimestamp in interface OutlierDetectionEventOrBuilder
        Returns:
        Whether the timestamp field is set.
      • getTimestamp

        public com.google.protobuf.Timestamp getTimestamp()
         Timestamp for event.
         
        .google.protobuf.Timestamp timestamp = 2;
        Specified by:
        getTimestamp in interface OutlierDetectionEventOrBuilder
        Returns:
        The timestamp.
      • hasSecsSinceLastAction

        public boolean hasSecsSinceLastAction()
         The time in seconds since the last action (either an ejection or unejection) took place.
         
        .google.protobuf.UInt64Value secs_since_last_action = 3;
        Specified by:
        hasSecsSinceLastAction in interface OutlierDetectionEventOrBuilder
        Returns:
        Whether the secsSinceLastAction field is set.
      • getSecsSinceLastAction

        public com.google.protobuf.UInt64Value getSecsSinceLastAction()
         The time in seconds since the last action (either an ejection or unejection) took place.
         
        .google.protobuf.UInt64Value secs_since_last_action = 3;
        Specified by:
        getSecsSinceLastAction in interface OutlierDetectionEventOrBuilder
        Returns:
        The secsSinceLastAction.
      • getSecsSinceLastActionOrBuilder

        public com.google.protobuf.UInt64ValueOrBuilder getSecsSinceLastActionOrBuilder()
         The time in seconds since the last action (either an ejection or unejection) took place.
         
        .google.protobuf.UInt64Value secs_since_last_action = 3;
        Specified by:
        getSecsSinceLastActionOrBuilder in interface OutlierDetectionEventOrBuilder
      • getClusterName

        public String getClusterName()
         The :ref:`cluster <envoy_api_msg_Cluster>` that owns the ejected host.
         
        string cluster_name = 4 [(.validate.rules) = { ... }
        Specified by:
        getClusterName in interface OutlierDetectionEventOrBuilder
        Returns:
        The clusterName.
      • getClusterNameBytes

        public com.google.protobuf.ByteString getClusterNameBytes()
         The :ref:`cluster <envoy_api_msg_Cluster>` that owns the ejected host.
         
        string cluster_name = 4 [(.validate.rules) = { ... }
        Specified by:
        getClusterNameBytes in interface OutlierDetectionEventOrBuilder
        Returns:
        The bytes for clusterName.
      • getUpstreamUrl

        public String getUpstreamUrl()
         The URL of the ejected host. E.g., ``tcp://1.2.3.4:80``.
         
        string upstream_url = 5 [(.validate.rules) = { ... }
        Specified by:
        getUpstreamUrl in interface OutlierDetectionEventOrBuilder
        Returns:
        The upstreamUrl.
      • getUpstreamUrlBytes

        public com.google.protobuf.ByteString getUpstreamUrlBytes()
         The URL of the ejected host. E.g., ``tcp://1.2.3.4:80``.
         
        string upstream_url = 5 [(.validate.rules) = { ... }
        Specified by:
        getUpstreamUrlBytes in interface OutlierDetectionEventOrBuilder
        Returns:
        The bytes for upstreamUrl.
      • getActionValue

        public int getActionValue()
         The action that took place.
         
        .envoy.data.cluster.v2alpha.Action action = 6 [(.validate.rules) = { ... }
        Specified by:
        getActionValue in interface OutlierDetectionEventOrBuilder
        Returns:
        The enum numeric value on the wire for action.
      • getAction

        public Action getAction()
         The action that took place.
         
        .envoy.data.cluster.v2alpha.Action action = 6 [(.validate.rules) = { ... }
        Specified by:
        getAction in interface OutlierDetectionEventOrBuilder
        Returns:
        The action.
      • getNumEjections

        public int getNumEjections()
         If ``action`` is ``eject``, specifies the number of times the host has been ejected (local to
         that Envoy and gets reset if the host gets removed from the upstream cluster for any reason and
         then re-added).
         
        uint32 num_ejections = 7;
        Specified by:
        getNumEjections in interface OutlierDetectionEventOrBuilder
        Returns:
        The numEjections.
      • getEnforced

        public boolean getEnforced()
         If ``action`` is ``eject``, specifies if the ejection was enforced. ``true`` means the host was
         ejected. ``false`` means the event was logged but the host was not actually ejected.
         
        bool enforced = 8;
        Specified by:
        getEnforced in interface OutlierDetectionEventOrBuilder
        Returns:
        The enforced.
      • hasEjectSuccessRateEvent

        public boolean hasEjectSuccessRateEvent()
        .envoy.data.cluster.v2alpha.OutlierEjectSuccessRate eject_success_rate_event = 9;
        Specified by:
        hasEjectSuccessRateEvent in interface OutlierDetectionEventOrBuilder
        Returns:
        Whether the ejectSuccessRateEvent field is set.
      • hasEjectConsecutiveEvent

        public boolean hasEjectConsecutiveEvent()
        .envoy.data.cluster.v2alpha.OutlierEjectConsecutive eject_consecutive_event = 10;
        Specified by:
        hasEjectConsecutiveEvent in interface OutlierDetectionEventOrBuilder
        Returns:
        Whether the ejectConsecutiveEvent field is set.
      • hasEjectFailurePercentageEvent

        public boolean hasEjectFailurePercentageEvent()
        .envoy.data.cluster.v2alpha.OutlierEjectFailurePercentage eject_failure_percentage_event = 11;
        Specified by:
        hasEjectFailurePercentageEvent in interface OutlierDetectionEventOrBuilder
        Returns:
        Whether the ejectFailurePercentageEvent field is set.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static OutlierDetectionEvent parseFrom​(ByteBuffer data)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static OutlierDetectionEvent parseFrom​(ByteBuffer data,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static OutlierDetectionEvent parseFrom​(com.google.protobuf.ByteString data)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static OutlierDetectionEvent parseFrom​(com.google.protobuf.ByteString data,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static OutlierDetectionEvent parseFrom​(byte[] data)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static OutlierDetectionEvent parseFrom​(byte[] data,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

        public OutlierDetectionEvent.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public OutlierDetectionEvent.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected OutlierDetectionEvent.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<OutlierDetectionEvent> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public OutlierDetectionEvent getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder