Class AlertPolicy.Condition.Trigger

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.monitoring.v3.AlertPolicy.Condition.Trigger
All Implemented Interfaces:
AlertPolicy.Condition.TriggerOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
AlertPolicy.Condition

public static final class AlertPolicy.Condition.Trigger extends com.google.protobuf.GeneratedMessage implements AlertPolicy.Condition.TriggerOrBuilder
 Specifies how many time series must fail a predicate to trigger a
 condition. If not specified, then a `{count: 1}` trigger is used.
 
Protobuf type google.monitoring.v3.AlertPolicy.Condition.Trigger
See Also:
  • Field Details

  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getTypeCase

      Specified by:
      getTypeCase in interface AlertPolicy.Condition.TriggerOrBuilder
    • hasCount

      public boolean hasCount()
       The absolute number of time series that must fail
       the predicate for the condition to be triggered.
       
      int32 count = 1;
      Specified by:
      hasCount in interface AlertPolicy.Condition.TriggerOrBuilder
      Returns:
      Whether the count field is set.
    • getCount

      public int getCount()
       The absolute number of time series that must fail
       the predicate for the condition to be triggered.
       
      int32 count = 1;
      Specified by:
      getCount in interface AlertPolicy.Condition.TriggerOrBuilder
      Returns:
      The count.
    • hasPercent

      public boolean hasPercent()
       The percentage of time series that must fail the
       predicate for the condition to be triggered.
       
      double percent = 2;
      Specified by:
      hasPercent in interface AlertPolicy.Condition.TriggerOrBuilder
      Returns:
      Whether the percent field is set.
    • getPercent

      public double getPercent()
       The percentage of time series that must fail the
       predicate for the condition to be triggered.
       
      double percent = 2;
      Specified by:
      getPercent in interface AlertPolicy.Condition.TriggerOrBuilder
      Returns:
      The percent.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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 AlertPolicy.Condition.Trigger parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AlertPolicy.Condition.Trigger parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AlertPolicy.Condition.Trigger parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AlertPolicy.Condition.Trigger parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AlertPolicy.Condition.Trigger parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AlertPolicy.Condition.Trigger parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AlertPolicy.Condition.Trigger parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static AlertPolicy.Condition.Trigger parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static AlertPolicy.Condition.Trigger.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected AlertPolicy.Condition.Trigger.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static AlertPolicy.Condition.Trigger getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<AlertPolicy.Condition.Trigger> parser()
    • getParserForType

      public com.google.protobuf.Parser<AlertPolicy.Condition.Trigger> 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.GeneratedMessage
    • getDefaultInstanceForType

      public AlertPolicy.Condition.Trigger getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder