public final class ServiceLevelIndicator extends com.google.protobuf.GeneratedMessageV3 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| Modifier and Type | Class and Description |
|---|---|
static class |
ServiceLevelIndicator.Builder
A Service-Level Indicator (SLI) describes the "performance" of a service.
|
static class |
ServiceLevelIndicator.TypeCase |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
BASIC_SLI_FIELD_NUMBER |
static int |
REQUEST_BASED_FIELD_NUMBER |
static int |
WINDOWS_BASED_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
BasicSli |
getBasicSli()
Basic SLI on a well-known service type.
|
BasicSliOrBuilder |
getBasicSliOrBuilder()
Basic SLI on a well-known service type.
|
static ServiceLevelIndicator |
getDefaultInstance() |
ServiceLevelIndicator |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<ServiceLevelIndicator> |
getParserForType() |
RequestBasedSli |
getRequestBased()
Request-based SLIs
.google.monitoring.v3.RequestBasedSli request_based = 1; |
RequestBasedSliOrBuilder |
getRequestBasedOrBuilder()
Request-based SLIs
.google.monitoring.v3.RequestBasedSli request_based = 1; |
int |
getSerializedSize() |
ServiceLevelIndicator.TypeCase |
getTypeCase() |
WindowsBasedSli |
getWindowsBased()
Windows-based SLIs
.google.monitoring.v3.WindowsBasedSli windows_based = 2; |
WindowsBasedSliOrBuilder |
getWindowsBasedOrBuilder()
Windows-based SLIs
.google.monitoring.v3.WindowsBasedSli windows_based = 2; |
boolean |
hasBasicSli()
Basic SLI on a well-known service type.
|
int |
hashCode() |
boolean |
hasRequestBased()
Request-based SLIs
.google.monitoring.v3.RequestBasedSli request_based = 1; |
boolean |
hasWindowsBased()
Windows-based SLIs
.google.monitoring.v3.WindowsBasedSli windows_based = 2; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ServiceLevelIndicator.Builder |
newBuilder() |
static ServiceLevelIndicator.Builder |
newBuilder(ServiceLevelIndicator prototype) |
ServiceLevelIndicator.Builder |
newBuilderForType() |
protected ServiceLevelIndicator.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static ServiceLevelIndicator |
parseDelimitedFrom(InputStream input) |
static ServiceLevelIndicator |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ServiceLevelIndicator |
parseFrom(byte[] data) |
static ServiceLevelIndicator |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ServiceLevelIndicator |
parseFrom(ByteBuffer data) |
static ServiceLevelIndicator |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ServiceLevelIndicator |
parseFrom(com.google.protobuf.ByteString data) |
static ServiceLevelIndicator |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ServiceLevelIndicator |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ServiceLevelIndicator |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ServiceLevelIndicator |
parseFrom(InputStream input) |
static ServiceLevelIndicator |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ServiceLevelIndicator> |
parser() |
ServiceLevelIndicator.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int BASIC_SLI_FIELD_NUMBER
public static final int REQUEST_BASED_FIELD_NUMBER
public static final int WINDOWS_BASED_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public ServiceLevelIndicator.TypeCase getTypeCase()
getTypeCase in interface ServiceLevelIndicatorOrBuilderpublic boolean hasBasicSli()
Basic SLI on a well-known service type.
.google.monitoring.v3.BasicSli basic_sli = 4;hasBasicSli in interface ServiceLevelIndicatorOrBuilderpublic BasicSli getBasicSli()
Basic SLI on a well-known service type.
.google.monitoring.v3.BasicSli basic_sli = 4;getBasicSli in interface ServiceLevelIndicatorOrBuilderpublic BasicSliOrBuilder getBasicSliOrBuilder()
Basic SLI on a well-known service type.
.google.monitoring.v3.BasicSli basic_sli = 4;getBasicSliOrBuilder in interface ServiceLevelIndicatorOrBuilderpublic boolean hasRequestBased()
Request-based SLIs
.google.monitoring.v3.RequestBasedSli request_based = 1;hasRequestBased in interface ServiceLevelIndicatorOrBuilderpublic RequestBasedSli getRequestBased()
Request-based SLIs
.google.monitoring.v3.RequestBasedSli request_based = 1;getRequestBased in interface ServiceLevelIndicatorOrBuilderpublic RequestBasedSliOrBuilder getRequestBasedOrBuilder()
Request-based SLIs
.google.monitoring.v3.RequestBasedSli request_based = 1;getRequestBasedOrBuilder in interface ServiceLevelIndicatorOrBuilderpublic boolean hasWindowsBased()
Windows-based SLIs
.google.monitoring.v3.WindowsBasedSli windows_based = 2;hasWindowsBased in interface ServiceLevelIndicatorOrBuilderpublic WindowsBasedSli getWindowsBased()
Windows-based SLIs
.google.monitoring.v3.WindowsBasedSli windows_based = 2;getWindowsBased in interface ServiceLevelIndicatorOrBuilderpublic WindowsBasedSliOrBuilder getWindowsBasedOrBuilder()
Windows-based SLIs
.google.monitoring.v3.WindowsBasedSli windows_based = 2;getWindowsBasedOrBuilder in interface ServiceLevelIndicatorOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static ServiceLevelIndicator parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ServiceLevelIndicator parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ServiceLevelIndicator parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ServiceLevelIndicator parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ServiceLevelIndicator parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ServiceLevelIndicator parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ServiceLevelIndicator parseFrom(InputStream input) throws IOException
IOExceptionpublic static ServiceLevelIndicator parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ServiceLevelIndicator parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ServiceLevelIndicator parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ServiceLevelIndicator parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ServiceLevelIndicator parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ServiceLevelIndicator.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ServiceLevelIndicator.Builder newBuilder()
public static ServiceLevelIndicator.Builder newBuilder(ServiceLevelIndicator prototype)
public ServiceLevelIndicator.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ServiceLevelIndicator.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static ServiceLevelIndicator getDefaultInstance()
public static com.google.protobuf.Parser<ServiceLevelIndicator> parser()
public com.google.protobuf.Parser<ServiceLevelIndicator> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public ServiceLevelIndicator getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.