Class ServiceLevelIndicator

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.monitoring.v3.ServiceLevelIndicator
All Implemented Interfaces:
ServiceLevelIndicatorOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class ServiceLevelIndicator extends com.google.protobuf.GeneratedMessage implements ServiceLevelIndicatorOrBuilder
 A Service-Level Indicator (SLI) describes the "performance" of a service. For
 some services, the SLI is well-defined. In such cases, the SLI can be
 described easily by referencing the well-known SLI and providing the needed
 parameters. Alternatively, a "custom" SLI can be defined with a query to the
 underlying metric store. An SLI is defined to be `good_service /
 total_service` over any queried time interval. The value of performance
 always falls into the range `0 <= performance <= 1`. A custom SLI describes
 how to compute this ratio, whether this is by dividing values from a pair of
 time series, cutting a `Distribution` into good and bad counts, or counting
 time windows in which the service complies with a criterion. For separation
 of concerns, a single Service-Level Indicator measures performance for only
 one aspect of service quality, such as fraction of successful queries or
 fast-enough queries.
 
Protobuf type google.monitoring.v3.ServiceLevelIndicator
See Also:
  • Field Details

    • BASIC_SLI_FIELD_NUMBER

      public static final int BASIC_SLI_FIELD_NUMBER
      See Also:
    • REQUEST_BASED_FIELD_NUMBER

      public static final int REQUEST_BASED_FIELD_NUMBER
      See Also:
    • WINDOWS_BASED_FIELD_NUMBER

      public static final int WINDOWS_BASED_FIELD_NUMBER
      See Also:
  • 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

      public ServiceLevelIndicator.TypeCase getTypeCase()
      Specified by:
      getTypeCase in interface ServiceLevelIndicatorOrBuilder
    • hasBasicSli

      public boolean hasBasicSli()
       Basic SLI on a well-known service type.
       
      .google.monitoring.v3.BasicSli basic_sli = 4;
      Specified by:
      hasBasicSli in interface ServiceLevelIndicatorOrBuilder
      Returns:
      Whether the basicSli field is set.
    • getBasicSli

      public BasicSli getBasicSli()
       Basic SLI on a well-known service type.
       
      .google.monitoring.v3.BasicSli basic_sli = 4;
      Specified by:
      getBasicSli in interface ServiceLevelIndicatorOrBuilder
      Returns:
      The basicSli.
    • getBasicSliOrBuilder

      public BasicSliOrBuilder getBasicSliOrBuilder()
       Basic SLI on a well-known service type.
       
      .google.monitoring.v3.BasicSli basic_sli = 4;
      Specified by:
      getBasicSliOrBuilder in interface ServiceLevelIndicatorOrBuilder
    • hasRequestBased

      public boolean hasRequestBased()
       Request-based SLIs
       
      .google.monitoring.v3.RequestBasedSli request_based = 1;
      Specified by:
      hasRequestBased in interface ServiceLevelIndicatorOrBuilder
      Returns:
      Whether the requestBased field is set.
    • getRequestBased

      public RequestBasedSli getRequestBased()
       Request-based SLIs
       
      .google.monitoring.v3.RequestBasedSli request_based = 1;
      Specified by:
      getRequestBased in interface ServiceLevelIndicatorOrBuilder
      Returns:
      The requestBased.
    • getRequestBasedOrBuilder

      public RequestBasedSliOrBuilder getRequestBasedOrBuilder()
       Request-based SLIs
       
      .google.monitoring.v3.RequestBasedSli request_based = 1;
      Specified by:
      getRequestBasedOrBuilder in interface ServiceLevelIndicatorOrBuilder
    • hasWindowsBased

      public boolean hasWindowsBased()
       Windows-based SLIs
       
      .google.monitoring.v3.WindowsBasedSli windows_based = 2;
      Specified by:
      hasWindowsBased in interface ServiceLevelIndicatorOrBuilder
      Returns:
      Whether the windowsBased field is set.
    • getWindowsBased

      public WindowsBasedSli getWindowsBased()
       Windows-based SLIs
       
      .google.monitoring.v3.WindowsBasedSli windows_based = 2;
      Specified by:
      getWindowsBased in interface ServiceLevelIndicatorOrBuilder
      Returns:
      The windowsBased.
    • getWindowsBasedOrBuilder

      public WindowsBasedSliOrBuilder getWindowsBasedOrBuilder()
       Windows-based SLIs
       
      .google.monitoring.v3.WindowsBasedSli windows_based = 2;
      Specified by:
      getWindowsBasedOrBuilder in interface ServiceLevelIndicatorOrBuilder
    • 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 ServiceLevelIndicator parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static ServiceLevelIndicator.Builder newBuilder()
    • newBuilder

      public static ServiceLevelIndicator.Builder newBuilder(ServiceLevelIndicator prototype)
    • toBuilder

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

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

      public static ServiceLevelIndicator getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ServiceLevelIndicator> parser()
    • getParserForType

      public com.google.protobuf.Parser<ServiceLevelIndicator> 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 ServiceLevelIndicator getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder