Send feedback
Class ServiceLevelIndicator.Builder (3.31.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.31.0 keyboard_arrow_down
public static final class ServiceLevelIndicator . Builder extends GeneratedMessageV3 . Builder<ServiceLevelIndicator . Builder > 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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ServiceLevelIndicator . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public ServiceLevelIndicator build ()
buildPartial()
public ServiceLevelIndicator buildPartial ()
clear()
public ServiceLevelIndicator . Builder clear ()
Overrides
clearBasicSli()
public ServiceLevelIndicator . Builder clearBasicSli ()
Basic SLI on a well-known service type.
.google.monitoring.v3.BasicSli basic_sli = 4;
clearField(Descriptors.FieldDescriptor field)
public ServiceLevelIndicator . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ServiceLevelIndicator . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clearRequestBased()
public ServiceLevelIndicator . Builder clearRequestBased ()
Request-based SLIs
.google.monitoring.v3.RequestBasedSli request_based = 1;
clearType()
public ServiceLevelIndicator . Builder clearType ()
clearWindowsBased()
public ServiceLevelIndicator . Builder clearWindowsBased ()
Windows-based SLIs
.google.monitoring.v3.WindowsBasedSli windows_based = 2;
clone()
public ServiceLevelIndicator . Builder clone ()
Overrides
getBasicSli()
public BasicSli getBasicSli ()
Basic SLI on a well-known service type.
.google.monitoring.v3.BasicSli basic_sli = 4;
Returns Type Description BasicSli
The basicSli.
getBasicSliBuilder()
public BasicSli . Builder getBasicSliBuilder ()
Basic SLI on a well-known service type.
.google.monitoring.v3.BasicSli basic_sli = 4;
getBasicSliOrBuilder()
public BasicSliOrBuilder getBasicSliOrBuilder ()
Basic SLI on a well-known service type.
.google.monitoring.v3.BasicSli basic_sli = 4;
getDefaultInstanceForType()
public ServiceLevelIndicator getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getRequestBased()
public RequestBasedSli getRequestBased ()
Request-based SLIs
.google.monitoring.v3.RequestBasedSli request_based = 1;
getRequestBasedBuilder()
public RequestBasedSli . Builder getRequestBasedBuilder ()
Request-based SLIs
.google.monitoring.v3.RequestBasedSli request_based = 1;
getRequestBasedOrBuilder()
public RequestBasedSliOrBuilder getRequestBasedOrBuilder ()
Request-based SLIs
.google.monitoring.v3.RequestBasedSli request_based = 1;
getTypeCase()
public ServiceLevelIndicator . TypeCase getTypeCase ()
getWindowsBased()
public WindowsBasedSli getWindowsBased ()
Windows-based SLIs
.google.monitoring.v3.WindowsBasedSli windows_based = 2;
getWindowsBasedBuilder()
public WindowsBasedSli . Builder getWindowsBasedBuilder ()
Windows-based SLIs
.google.monitoring.v3.WindowsBasedSli windows_based = 2;
getWindowsBasedOrBuilder()
public WindowsBasedSliOrBuilder getWindowsBasedOrBuilder ()
Windows-based SLIs
.google.monitoring.v3.WindowsBasedSli windows_based = 2;
hasBasicSli()
public boolean hasBasicSli ()
Basic SLI on a well-known service type.
.google.monitoring.v3.BasicSli basic_sli = 4;
Returns Type Description boolean
Whether the basicSli field is set.
hasRequestBased()
public boolean hasRequestBased ()
Request-based SLIs
.google.monitoring.v3.RequestBasedSli request_based = 1;
Returns Type Description boolean
Whether the requestBased field is set.
hasWindowsBased()
public boolean hasWindowsBased ()
Windows-based SLIs
.google.monitoring.v3.WindowsBasedSli windows_based = 2;
Returns Type Description boolean
Whether the windowsBased field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeBasicSli(BasicSli value)
public ServiceLevelIndicator . Builder mergeBasicSli ( BasicSli value )
Basic SLI on a well-known service type.
.google.monitoring.v3.BasicSli basic_sli = 4;
mergeFrom(ServiceLevelIndicator other)
public ServiceLevelIndicator . Builder mergeFrom ( ServiceLevelIndicator other )
public ServiceLevelIndicator . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public ServiceLevelIndicator . Builder mergeFrom ( Message other )
Parameter Name Description other
Message
Overrides
mergeRequestBased(RequestBasedSli value)
public ServiceLevelIndicator . Builder mergeRequestBased ( RequestBasedSli value )
Request-based SLIs
.google.monitoring.v3.RequestBasedSli request_based = 1;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ServiceLevelIndicator . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
mergeWindowsBased(WindowsBasedSli value)
public ServiceLevelIndicator . Builder mergeWindowsBased ( WindowsBasedSli value )
Windows-based SLIs
.google.monitoring.v3.WindowsBasedSli windows_based = 2;
setBasicSli(BasicSli value)
public ServiceLevelIndicator . Builder setBasicSli ( BasicSli value )
Basic SLI on a well-known service type.
.google.monitoring.v3.BasicSli basic_sli = 4;
setBasicSli(BasicSli.Builder builderForValue)
public ServiceLevelIndicator . Builder setBasicSli ( BasicSli . Builder builderForValue )
Basic SLI on a well-known service type.
.google.monitoring.v3.BasicSli basic_sli = 4;
setField(Descriptors.FieldDescriptor field, Object value)
public ServiceLevelIndicator . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ServiceLevelIndicator . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setRequestBased(RequestBasedSli value)
public ServiceLevelIndicator . Builder setRequestBased ( RequestBasedSli value )
Request-based SLIs
.google.monitoring.v3.RequestBasedSli request_based = 1;
setRequestBased(RequestBasedSli.Builder builderForValue)
public ServiceLevelIndicator . Builder setRequestBased ( RequestBasedSli . Builder builderForValue )
Request-based SLIs
.google.monitoring.v3.RequestBasedSli request_based = 1;
setUnknownFields(UnknownFieldSet unknownFields)
public final ServiceLevelIndicator . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setWindowsBased(WindowsBasedSli value)
public ServiceLevelIndicator . Builder setWindowsBased ( WindowsBasedSli value )
Windows-based SLIs
.google.monitoring.v3.WindowsBasedSli windows_based = 2;
setWindowsBased(WindowsBasedSli.Builder builderForValue)
public ServiceLevelIndicator . Builder setWindowsBased ( WindowsBasedSli . Builder builderForValue )
Windows-based SLIs
.google.monitoring.v3.WindowsBasedSli windows_based = 2;
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]