Send feedback
Class ServiceLevelIndicator.Builder (3.3.6)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.3.6 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
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ServiceLevelIndicator . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public ServiceLevelIndicator build ()
Returns
buildPartial()
public ServiceLevelIndicator buildPartial ()
Returns
clear()
public ServiceLevelIndicator . Builder clear ()
Returns
Overrides
clearBasicSli()
public ServiceLevelIndicator . Builder clearBasicSli ()
Basic SLI on a well-known service type.
.google.monitoring.v3.BasicSli basic_sli = 4;
Returns
clearField(Descriptors.FieldDescriptor field)
public ServiceLevelIndicator . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ServiceLevelIndicator . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clearRequestBased()
public ServiceLevelIndicator . Builder clearRequestBased ()
Request-based SLIs
.google.monitoring.v3.RequestBasedSli request_based = 1;
Returns
clearType()
public ServiceLevelIndicator . Builder clearType ()
Returns
clearWindowsBased()
public ServiceLevelIndicator . Builder clearWindowsBased ()
Windows-based SLIs
.google.monitoring.v3.WindowsBasedSli windows_based = 2;
Returns
clone()
public ServiceLevelIndicator . Builder clone ()
Returns
Overrides
getBasicSli()
public BasicSli getBasicSli ()
Basic SLI on a well-known service type.
.google.monitoring.v3.BasicSli basic_sli = 4;
Returns
getBasicSliBuilder()
public BasicSli . Builder getBasicSliBuilder ()
Basic SLI on a well-known service type.
.google.monitoring.v3.BasicSli basic_sli = 4;
Returns
getBasicSliOrBuilder()
public BasicSliOrBuilder getBasicSliOrBuilder ()
Basic SLI on a well-known service type.
.google.monitoring.v3.BasicSli basic_sli = 4;
Returns
getDefaultInstanceForType()
public ServiceLevelIndicator getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
getRequestBased()
public RequestBasedSli getRequestBased ()
Request-based SLIs
.google.monitoring.v3.RequestBasedSli request_based = 1;
Returns
getRequestBasedBuilder()
public RequestBasedSli . Builder getRequestBasedBuilder ()
Request-based SLIs
.google.monitoring.v3.RequestBasedSli request_based = 1;
Returns
getRequestBasedOrBuilder()
public RequestBasedSliOrBuilder getRequestBasedOrBuilder ()
Request-based SLIs
.google.monitoring.v3.RequestBasedSli request_based = 1;
Returns
getTypeCase()
public ServiceLevelIndicator . TypeCase getTypeCase ()
Returns
getWindowsBased()
public WindowsBasedSli getWindowsBased ()
Windows-based SLIs
.google.monitoring.v3.WindowsBasedSli windows_based = 2;
Returns
getWindowsBasedBuilder()
public WindowsBasedSli . Builder getWindowsBasedBuilder ()
Windows-based SLIs
.google.monitoring.v3.WindowsBasedSli windows_based = 2;
Returns
getWindowsBasedOrBuilder()
public WindowsBasedSliOrBuilder getWindowsBasedOrBuilder ()
Windows-based SLIs
.google.monitoring.v3.WindowsBasedSli windows_based = 2;
Returns
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 ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
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;
Parameter
Returns
mergeFrom(ServiceLevelIndicator other)
public ServiceLevelIndicator . Builder mergeFrom ( ServiceLevelIndicator other )
Parameter
Returns
public ServiceLevelIndicator . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ServiceLevelIndicator . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeRequestBased(RequestBasedSli value)
public ServiceLevelIndicator . Builder mergeRequestBased ( RequestBasedSli value )
Request-based SLIs
.google.monitoring.v3.RequestBasedSli request_based = 1;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ServiceLevelIndicator . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
mergeWindowsBased(WindowsBasedSli value)
public ServiceLevelIndicator . Builder mergeWindowsBased ( WindowsBasedSli value )
Windows-based SLIs
.google.monitoring.v3.WindowsBasedSli windows_based = 2;
Parameter
Returns
setBasicSli(BasicSli value)
public ServiceLevelIndicator . Builder setBasicSli ( BasicSli value )
Basic SLI on a well-known service type.
.google.monitoring.v3.BasicSli basic_sli = 4;
Parameter
Returns
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;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ServiceLevelIndicator . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ServiceLevelIndicator . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setRequestBased(RequestBasedSli value)
public ServiceLevelIndicator . Builder setRequestBased ( RequestBasedSli value )
Request-based SLIs
.google.monitoring.v3.RequestBasedSli request_based = 1;
Parameter
Returns
setRequestBased(RequestBasedSli.Builder builderForValue)
public ServiceLevelIndicator . Builder setRequestBased ( RequestBasedSli . Builder builderForValue )
Request-based SLIs
.google.monitoring.v3.RequestBasedSli request_based = 1;
Parameter
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final ServiceLevelIndicator . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setWindowsBased(WindowsBasedSli value)
public ServiceLevelIndicator . Builder setWindowsBased ( WindowsBasedSli value )
Windows-based SLIs
.google.monitoring.v3.WindowsBasedSli windows_based = 2;
Parameter
Returns
setWindowsBased(WindowsBasedSli.Builder builderForValue)
public ServiceLevelIndicator . Builder setWindowsBased ( WindowsBasedSli . Builder builderForValue )
Windows-based SLIs
.google.monitoring.v3.WindowsBasedSli windows_based = 2;
Parameter
Returns
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."],[],[]]