Class OutlierDetectionEvent

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.envoy.data.cluster.v2alpha.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:
  • Field Details

    • TYPE_FIELD_NUMBER

      public static final int TYPE_FIELD_NUMBER
      See Also:
    • TIMESTAMP_FIELD_NUMBER

      public static final int TIMESTAMP_FIELD_NUMBER
      See Also:
    • SECS_SINCE_LAST_ACTION_FIELD_NUMBER

      public static final int SECS_SINCE_LAST_ACTION_FIELD_NUMBER
      See Also:
    • CLUSTER_NAME_FIELD_NUMBER

      public static final int CLUSTER_NAME_FIELD_NUMBER
      See Also:
    • UPSTREAM_URL_FIELD_NUMBER

      public static final int UPSTREAM_URL_FIELD_NUMBER
      See Also:
    • ACTION_FIELD_NUMBER

      public static final int ACTION_FIELD_NUMBER
      See Also:
    • NUM_EJECTIONS_FIELD_NUMBER

      public static final int NUM_EJECTIONS_FIELD_NUMBER
      See Also:
    • ENFORCED_FIELD_NUMBER

      public static final int ENFORCED_FIELD_NUMBER
      See Also:
    • EJECT_SUCCESS_RATE_EVENT_FIELD_NUMBER

      public static final int EJECT_SUCCESS_RATE_EVENT_FIELD_NUMBER
      See Also:
    • EJECT_CONSECUTIVE_EVENT_FIELD_NUMBER

      public static final int EJECT_CONSECUTIVE_EVENT_FIELD_NUMBER
      See Also:
    • EJECT_FAILURE_PERCENTAGE_EVENT_FIELD_NUMBER

      public static final int EJECT_FAILURE_PERCENTAGE_EVENT_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance 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
    • getEventCase

      public OutlierDetectionEvent.EventCase getEventCase()
      Specified by:
      getEventCase in interface OutlierDetectionEventOrBuilder
    • 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.
    • getTimestampOrBuilder

      public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder()
       Timestamp for event.
       
      .google.protobuf.Timestamp timestamp = 2;
      Specified by:
      getTimestampOrBuilder in interface OutlierDetectionEventOrBuilder
    • 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.
    • getEjectSuccessRateEvent

      public OutlierEjectSuccessRate getEjectSuccessRateEvent()
      .envoy.data.cluster.v2alpha.OutlierEjectSuccessRate eject_success_rate_event = 9;
      Specified by:
      getEjectSuccessRateEvent in interface OutlierDetectionEventOrBuilder
      Returns:
      The ejectSuccessRateEvent.
    • getEjectSuccessRateEventOrBuilder

      public OutlierEjectSuccessRateOrBuilder getEjectSuccessRateEventOrBuilder()
      .envoy.data.cluster.v2alpha.OutlierEjectSuccessRate eject_success_rate_event = 9;
      Specified by:
      getEjectSuccessRateEventOrBuilder in interface OutlierDetectionEventOrBuilder
    • 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.
    • getEjectConsecutiveEvent

      public OutlierEjectConsecutive getEjectConsecutiveEvent()
      .envoy.data.cluster.v2alpha.OutlierEjectConsecutive eject_consecutive_event = 10;
      Specified by:
      getEjectConsecutiveEvent in interface OutlierDetectionEventOrBuilder
      Returns:
      The ejectConsecutiveEvent.
    • getEjectConsecutiveEventOrBuilder

      public OutlierEjectConsecutiveOrBuilder getEjectConsecutiveEventOrBuilder()
      .envoy.data.cluster.v2alpha.OutlierEjectConsecutive eject_consecutive_event = 10;
      Specified by:
      getEjectConsecutiveEventOrBuilder in interface OutlierDetectionEventOrBuilder
    • 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.
    • getEjectFailurePercentageEvent

      public OutlierEjectFailurePercentage getEjectFailurePercentageEvent()
      .envoy.data.cluster.v2alpha.OutlierEjectFailurePercentage eject_failure_percentage_event = 11;
      Specified by:
      getEjectFailurePercentageEvent in interface OutlierDetectionEventOrBuilder
      Returns:
      The ejectFailurePercentageEvent.
    • getEjectFailurePercentageEventOrBuilder

      public OutlierEjectFailurePercentageOrBuilder getEjectFailurePercentageEventOrBuilder()
      .envoy.data.cluster.v2alpha.OutlierEjectFailurePercentage eject_failure_percentage_event = 11;
      Specified by:
      getEjectFailurePercentageEventOrBuilder in interface OutlierDetectionEventOrBuilder
    • 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
    • parseFrom

      public static OutlierDetectionEvent parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static OutlierDetectionEvent parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static OutlierDetectionEvent parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static OutlierDetectionEvent parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static OutlierDetectionEvent parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static OutlierDetectionEvent parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static OutlierDetectionEvent.Builder newBuilder()
    • newBuilder

      public static OutlierDetectionEvent.Builder newBuilder(OutlierDetectionEvent prototype)
    • 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
    • getDefaultInstance

      public static OutlierDetectionEvent getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<OutlierDetectionEvent> parser()
    • 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