Class ServiceLevelIndicator.Builder (3.14.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ServiceLevelIndicator.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ServiceLevelIndicator.Builder
Overrides

build()

public ServiceLevelIndicator build()
Returns
TypeDescription
ServiceLevelIndicator

buildPartial()

public ServiceLevelIndicator buildPartial()
Returns
TypeDescription
ServiceLevelIndicator

clear()

public ServiceLevelIndicator.Builder clear()
Returns
TypeDescription
ServiceLevelIndicator.Builder
Overrides

clearBasicSli()

public ServiceLevelIndicator.Builder clearBasicSli()

Basic SLI on a well-known service type.

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

Returns
TypeDescription
ServiceLevelIndicator.Builder

clearField(Descriptors.FieldDescriptor field)

public ServiceLevelIndicator.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ServiceLevelIndicator.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ServiceLevelIndicator.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ServiceLevelIndicator.Builder
Overrides

clearRequestBased()

public ServiceLevelIndicator.Builder clearRequestBased()

Request-based SLIs

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

Returns
TypeDescription
ServiceLevelIndicator.Builder

clearType()

public ServiceLevelIndicator.Builder clearType()
Returns
TypeDescription
ServiceLevelIndicator.Builder

clearWindowsBased()

public ServiceLevelIndicator.Builder clearWindowsBased()

Windows-based SLIs

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

Returns
TypeDescription
ServiceLevelIndicator.Builder

clone()

public ServiceLevelIndicator.Builder clone()
Returns
TypeDescription
ServiceLevelIndicator.Builder
Overrides

getBasicSli()

public BasicSli getBasicSli()

Basic SLI on a well-known service type.

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

Returns
TypeDescription
BasicSli

The basicSli.

getBasicSliBuilder()

public BasicSli.Builder getBasicSliBuilder()

Basic SLI on a well-known service type.

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

Returns
TypeDescription
BasicSli.Builder

getBasicSliOrBuilder()

public BasicSliOrBuilder getBasicSliOrBuilder()

Basic SLI on a well-known service type.

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

Returns
TypeDescription
BasicSliOrBuilder

getDefaultInstanceForType()

public ServiceLevelIndicator getDefaultInstanceForType()
Returns
TypeDescription
ServiceLevelIndicator

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getRequestBased()

public RequestBasedSli getRequestBased()

Request-based SLIs

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

Returns
TypeDescription
RequestBasedSli

The requestBased.

getRequestBasedBuilder()

public RequestBasedSli.Builder getRequestBasedBuilder()

Request-based SLIs

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

Returns
TypeDescription
RequestBasedSli.Builder

getRequestBasedOrBuilder()

public RequestBasedSliOrBuilder getRequestBasedOrBuilder()

Request-based SLIs

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

Returns
TypeDescription
RequestBasedSliOrBuilder

getTypeCase()

public ServiceLevelIndicator.TypeCase getTypeCase()
Returns
TypeDescription
ServiceLevelIndicator.TypeCase

getWindowsBased()

public WindowsBasedSli getWindowsBased()

Windows-based SLIs

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

Returns
TypeDescription
WindowsBasedSli

The windowsBased.

getWindowsBasedBuilder()

public WindowsBasedSli.Builder getWindowsBasedBuilder()

Windows-based SLIs

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

Returns
TypeDescription
WindowsBasedSli.Builder

getWindowsBasedOrBuilder()

public WindowsBasedSliOrBuilder getWindowsBasedOrBuilder()

Windows-based SLIs

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

Returns
TypeDescription
WindowsBasedSliOrBuilder

hasBasicSli()

public boolean hasBasicSli()

Basic SLI on a well-known service type.

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

Returns
TypeDescription
boolean

Whether the basicSli field is set.

hasRequestBased()

public boolean hasRequestBased()

Request-based SLIs

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

Returns
TypeDescription
boolean

Whether the requestBased field is set.

hasWindowsBased()

public boolean hasWindowsBased()

Windows-based SLIs

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

Returns
TypeDescription
boolean

Whether the windowsBased field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueBasicSli
Returns
TypeDescription
ServiceLevelIndicator.Builder

mergeFrom(ServiceLevelIndicator other)

public ServiceLevelIndicator.Builder mergeFrom(ServiceLevelIndicator other)
Parameter
NameDescription
otherServiceLevelIndicator
Returns
TypeDescription
ServiceLevelIndicator.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ServiceLevelIndicator.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ServiceLevelIndicator.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ServiceLevelIndicator.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ServiceLevelIndicator.Builder
Overrides

mergeRequestBased(RequestBasedSli value)

public ServiceLevelIndicator.Builder mergeRequestBased(RequestBasedSli value)

Request-based SLIs

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

Parameter
NameDescription
valueRequestBasedSli
Returns
TypeDescription
ServiceLevelIndicator.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ServiceLevelIndicator.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ServiceLevelIndicator.Builder
Overrides

mergeWindowsBased(WindowsBasedSli value)

public ServiceLevelIndicator.Builder mergeWindowsBased(WindowsBasedSli value)

Windows-based SLIs

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

Parameter
NameDescription
valueWindowsBasedSli
Returns
TypeDescription
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
NameDescription
valueBasicSli
Returns
TypeDescription
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
NameDescription
builderForValueBasicSli.Builder
Returns
TypeDescription
ServiceLevelIndicator.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ServiceLevelIndicator.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ServiceLevelIndicator.Builder
Overrides

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

public ServiceLevelIndicator.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ServiceLevelIndicator.Builder
Overrides

setRequestBased(RequestBasedSli value)

public ServiceLevelIndicator.Builder setRequestBased(RequestBasedSli value)

Request-based SLIs

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

Parameter
NameDescription
valueRequestBasedSli
Returns
TypeDescription
ServiceLevelIndicator.Builder

setRequestBased(RequestBasedSli.Builder builderForValue)

public ServiceLevelIndicator.Builder setRequestBased(RequestBasedSli.Builder builderForValue)

Request-based SLIs

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

Parameter
NameDescription
builderForValueRequestBasedSli.Builder
Returns
TypeDescription
ServiceLevelIndicator.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ServiceLevelIndicator.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ServiceLevelIndicator.Builder
Overrides

setWindowsBased(WindowsBasedSli value)

public ServiceLevelIndicator.Builder setWindowsBased(WindowsBasedSli value)

Windows-based SLIs

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

Parameter
NameDescription
valueWindowsBasedSli
Returns
TypeDescription
ServiceLevelIndicator.Builder

setWindowsBased(WindowsBasedSli.Builder builderForValue)

public ServiceLevelIndicator.Builder setWindowsBased(WindowsBasedSli.Builder builderForValue)

Windows-based SLIs

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

Parameter
NameDescription
builderForValueWindowsBasedSli.Builder
Returns
TypeDescription
ServiceLevelIndicator.Builder