Class ServiceLevelIndicator.Builder (3.46.0)

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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ServiceLevelIndicator.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ServiceLevelIndicator.Builder
Overrides

build()

public ServiceLevelIndicator build()
Returns
Type Description
ServiceLevelIndicator

buildPartial()

public ServiceLevelIndicator buildPartial()
Returns
Type Description
ServiceLevelIndicator

clear()

public ServiceLevelIndicator.Builder clear()
Returns
Type Description
ServiceLevelIndicator.Builder
Overrides

clearBasicSli()

public ServiceLevelIndicator.Builder clearBasicSli()

Basic SLI on a well-known service type.

.google.monitoring.v3.BasicSli basic_sli = 4;

Returns
Type Description
ServiceLevelIndicator.Builder

clearField(Descriptors.FieldDescriptor field)

public ServiceLevelIndicator.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ServiceLevelIndicator.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ServiceLevelIndicator.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ServiceLevelIndicator.Builder
Overrides

clearRequestBased()

public ServiceLevelIndicator.Builder clearRequestBased()

Request-based SLIs

.google.monitoring.v3.RequestBasedSli request_based = 1;

Returns
Type Description
ServiceLevelIndicator.Builder

clearType()

public ServiceLevelIndicator.Builder clearType()
Returns
Type Description
ServiceLevelIndicator.Builder

clearWindowsBased()

public ServiceLevelIndicator.Builder clearWindowsBased()

Windows-based SLIs

.google.monitoring.v3.WindowsBasedSli windows_based = 2;

Returns
Type Description
ServiceLevelIndicator.Builder

clone()

public ServiceLevelIndicator.Builder clone()
Returns
Type Description
ServiceLevelIndicator.Builder
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;

Returns
Type Description
BasicSli.Builder

getBasicSliOrBuilder()

public BasicSliOrBuilder getBasicSliOrBuilder()

Basic SLI on a well-known service type.

.google.monitoring.v3.BasicSli basic_sli = 4;

Returns
Type Description
BasicSliOrBuilder

getDefaultInstanceForType()

public ServiceLevelIndicator getDefaultInstanceForType()
Returns
Type Description
ServiceLevelIndicator

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getRequestBased()

public RequestBasedSli getRequestBased()

Request-based SLIs

.google.monitoring.v3.RequestBasedSli request_based = 1;

Returns
Type Description
RequestBasedSli

The requestBased.

getRequestBasedBuilder()

public RequestBasedSli.Builder getRequestBasedBuilder()

Request-based SLIs

.google.monitoring.v3.RequestBasedSli request_based = 1;

Returns
Type Description
RequestBasedSli.Builder

getRequestBasedOrBuilder()

public RequestBasedSliOrBuilder getRequestBasedOrBuilder()

Request-based SLIs

.google.monitoring.v3.RequestBasedSli request_based = 1;

Returns
Type Description
RequestBasedSliOrBuilder

getTypeCase()

public ServiceLevelIndicator.TypeCase getTypeCase()
Returns
Type Description
ServiceLevelIndicator.TypeCase

getWindowsBased()

public WindowsBasedSli getWindowsBased()

Windows-based SLIs

.google.monitoring.v3.WindowsBasedSli windows_based = 2;

Returns
Type Description
WindowsBasedSli

The windowsBased.

getWindowsBasedBuilder()

public WindowsBasedSli.Builder getWindowsBasedBuilder()

Windows-based SLIs

.google.monitoring.v3.WindowsBasedSli windows_based = 2;

Returns
Type Description
WindowsBasedSli.Builder

getWindowsBasedOrBuilder()

public WindowsBasedSliOrBuilder getWindowsBasedOrBuilder()

Windows-based SLIs

.google.monitoring.v3.WindowsBasedSli windows_based = 2;

Returns
Type Description
WindowsBasedSliOrBuilder

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
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
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
Name Description
value BasicSli
Returns
Type Description
ServiceLevelIndicator.Builder

mergeFrom(ServiceLevelIndicator other)

public ServiceLevelIndicator.Builder mergeFrom(ServiceLevelIndicator other)
Parameter
Name Description
other ServiceLevelIndicator
Returns
Type Description
ServiceLevelIndicator.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ServiceLevelIndicator.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ServiceLevelIndicator.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ServiceLevelIndicator.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ServiceLevelIndicator.Builder
Overrides

mergeRequestBased(RequestBasedSli value)

public ServiceLevelIndicator.Builder mergeRequestBased(RequestBasedSli value)

Request-based SLIs

.google.monitoring.v3.RequestBasedSli request_based = 1;

Parameter
Name Description
value RequestBasedSli
Returns
Type Description
ServiceLevelIndicator.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ServiceLevelIndicator.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ServiceLevelIndicator.Builder
Overrides

mergeWindowsBased(WindowsBasedSli value)

public ServiceLevelIndicator.Builder mergeWindowsBased(WindowsBasedSli value)

Windows-based SLIs

.google.monitoring.v3.WindowsBasedSli windows_based = 2;

Parameter
Name Description
value WindowsBasedSli
Returns
Type Description
ServiceLevelIndicator.Builder

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
Name Description
value BasicSli
Returns
Type Description
ServiceLevelIndicator.Builder

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
Name Description
builderForValue BasicSli.Builder
Returns
Type Description
ServiceLevelIndicator.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ServiceLevelIndicator.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ServiceLevelIndicator.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ServiceLevelIndicator.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ServiceLevelIndicator.Builder
Overrides

setRequestBased(RequestBasedSli value)

public ServiceLevelIndicator.Builder setRequestBased(RequestBasedSli value)

Request-based SLIs

.google.monitoring.v3.RequestBasedSli request_based = 1;

Parameter
Name Description
value RequestBasedSli
Returns
Type Description
ServiceLevelIndicator.Builder

setRequestBased(RequestBasedSli.Builder builderForValue)

public ServiceLevelIndicator.Builder setRequestBased(RequestBasedSli.Builder builderForValue)

Request-based SLIs

.google.monitoring.v3.RequestBasedSli request_based = 1;

Parameter
Name Description
builderForValue RequestBasedSli.Builder
Returns
Type Description
ServiceLevelIndicator.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ServiceLevelIndicator.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ServiceLevelIndicator.Builder
Overrides

setWindowsBased(WindowsBasedSli value)

public ServiceLevelIndicator.Builder setWindowsBased(WindowsBasedSli value)

Windows-based SLIs

.google.monitoring.v3.WindowsBasedSli windows_based = 2;

Parameter
Name Description
value WindowsBasedSli
Returns
Type Description
ServiceLevelIndicator.Builder

setWindowsBased(WindowsBasedSli.Builder builderForValue)

public ServiceLevelIndicator.Builder setWindowsBased(WindowsBasedSli.Builder builderForValue)

Windows-based SLIs

.google.monitoring.v3.WindowsBasedSli windows_based = 2;

Parameter
Name Description
builderForValue WindowsBasedSli.Builder
Returns
Type Description
ServiceLevelIndicator.Builder