public final class BasicSli extends GeneratedMessageV3 implements BasicSliOrBuilder
An SLI measuring performance on a well-known service type. Performance will
be computed on the basis of pre-defined metrics. The type of the
service_resource
determines the metrics to use and the
service_resource.labels
and metric_labels
are used to construct a
monitoring filter to filter that metric down to just the data relevant to
this service.
Protobuf type google.monitoring.v3.BasicSli
Static Fields
AVAILABILITY_FIELD_NUMBER
public static final int AVAILABILITY_FIELD_NUMBER
Field Value
LATENCY_FIELD_NUMBER
public static final int LATENCY_FIELD_NUMBER
Field Value
LOCATION_FIELD_NUMBER
public static final int LOCATION_FIELD_NUMBER
Field Value
METHOD_FIELD_NUMBER
public static final int METHOD_FIELD_NUMBER
Field Value
VERSION_FIELD_NUMBER
public static final int VERSION_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static BasicSli getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static BasicSli.Builder newBuilder()
Returns
newBuilder(BasicSli prototype)
public static BasicSli.Builder newBuilder(BasicSli prototype)
Parameter
Returns
public static BasicSli parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static BasicSli parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static BasicSli parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static BasicSli parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static BasicSli parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static BasicSli parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static BasicSli parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static BasicSli parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static BasicSli parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static BasicSli parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static BasicSli parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static BasicSli parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<BasicSli> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getAvailability()
public BasicSli.AvailabilityCriteria getAvailability()
Good service is defined to be the count of requests made to this service
that return successfully.
.google.monitoring.v3.BasicSli.AvailabilityCriteria availability = 2;
Returns
getAvailabilityOrBuilder()
public BasicSli.AvailabilityCriteriaOrBuilder getAvailabilityOrBuilder()
Good service is defined to be the count of requests made to this service
that return successfully.
.google.monitoring.v3.BasicSli.AvailabilityCriteria availability = 2;
Returns
getDefaultInstanceForType()
public BasicSli getDefaultInstanceForType()
Returns
getLatency()
public BasicSli.LatencyCriteria getLatency()
Good service is defined to be the count of requests made to this service
that are fast enough with respect to latency.threshold
.
.google.monitoring.v3.BasicSli.LatencyCriteria latency = 3;
Returns
getLatencyOrBuilder()
public BasicSli.LatencyCriteriaOrBuilder getLatencyOrBuilder()
Good service is defined to be the count of requests made to this service
that are fast enough with respect to latency.threshold
.
.google.monitoring.v3.BasicSli.LatencyCriteria latency = 3;
Returns
getLocation(int index)
public String getLocation(int index)
OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
from other locations will not be used to calculate performance for this
SLI. If omitted, this SLI applies to all locations in which the Service has
activity. For service types that don't support breaking down by location,
setting this field will result in an error.
repeated string location = 8;
Parameter
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
String | The location at the given index.
|
getLocationBytes(int index)
public ByteString getLocationBytes(int index)
OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
from other locations will not be used to calculate performance for this
SLI. If omitted, this SLI applies to all locations in which the Service has
activity. For service types that don't support breaking down by location,
setting this field will result in an error.
repeated string location = 8;
Parameter
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
ByteString | The bytes of the location at the given index.
|
getLocationCount()
public int getLocationCount()
OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
from other locations will not be used to calculate performance for this
SLI. If omitted, this SLI applies to all locations in which the Service has
activity. For service types that don't support breaking down by location,
setting this field will result in an error.
repeated string location = 8;
Returns
Type | Description |
int | The count of location.
|
getLocationList()
public ProtocolStringList getLocationList()
OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
from other locations will not be used to calculate performance for this
SLI. If omitted, this SLI applies to all locations in which the Service has
activity. For service types that don't support breaking down by location,
setting this field will result in an error.
repeated string location = 8;
Returns
getMethod(int index)
public String getMethod(int index)
OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
other methods will not be used to calculate performance for this SLI. If
omitted, this SLI applies to all the Service's methods. For service types
that don't support breaking down by method, setting this field will result
in an error.
repeated string method = 7;
Parameter
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
String | The method at the given index.
|
getMethodBytes(int index)
public ByteString getMethodBytes(int index)
OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
other methods will not be used to calculate performance for this SLI. If
omitted, this SLI applies to all the Service's methods. For service types
that don't support breaking down by method, setting this field will result
in an error.
repeated string method = 7;
Parameter
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
ByteString | The bytes of the method at the given index.
|
getMethodCount()
public int getMethodCount()
OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
other methods will not be used to calculate performance for this SLI. If
omitted, this SLI applies to all the Service's methods. For service types
that don't support breaking down by method, setting this field will result
in an error.
repeated string method = 7;
Returns
Type | Description |
int | The count of method.
|
getMethodList()
public ProtocolStringList getMethodList()
OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
other methods will not be used to calculate performance for this SLI. If
omitted, this SLI applies to all the Service's methods. For service types
that don't support breaking down by method, setting this field will result
in an error.
repeated string method = 7;
Returns
getParserForType()
public Parser<BasicSli> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getSliCriteriaCase()
public BasicSli.SliCriteriaCase getSliCriteriaCase()
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
getVersion(int index)
public String getVersion(int index)
OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
from other API versions will not be used to calculate performance for this
SLI. If omitted, this SLI applies to all API versions. For service types
that don't support breaking down by version, setting this field will result
in an error.
repeated string version = 9;
Parameter
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
String | The version at the given index.
|
getVersionBytes(int index)
public ByteString getVersionBytes(int index)
OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
from other API versions will not be used to calculate performance for this
SLI. If omitted, this SLI applies to all API versions. For service types
that don't support breaking down by version, setting this field will result
in an error.
repeated string version = 9;
Parameter
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
ByteString | The bytes of the version at the given index.
|
getVersionCount()
public int getVersionCount()
OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
from other API versions will not be used to calculate performance for this
SLI. If omitted, this SLI applies to all API versions. For service types
that don't support breaking down by version, setting this field will result
in an error.
repeated string version = 9;
Returns
Type | Description |
int | The count of version.
|
getVersionList()
public ProtocolStringList getVersionList()
OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
from other API versions will not be used to calculate performance for this
SLI. If omitted, this SLI applies to all API versions. For service types
that don't support breaking down by version, setting this field will result
in an error.
repeated string version = 9;
Returns
hasAvailability()
public boolean hasAvailability()
Good service is defined to be the count of requests made to this service
that return successfully.
.google.monitoring.v3.BasicSli.AvailabilityCriteria availability = 2;
Returns
Type | Description |
boolean | Whether the availability field is set.
|
hasLatency()
public boolean hasLatency()
Good service is defined to be the count of requests made to this service
that are fast enough with respect to latency.threshold
.
.google.monitoring.v3.BasicSli.LatencyCriteria latency = 3;
Returns
Type | Description |
boolean | Whether the latency field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public BasicSli.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected BasicSli.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public BasicSli.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions