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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
AVAILABILITY_FIELD_NUMBER
public static final int AVAILABILITY_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
LATENCY_FIELD_NUMBER
public static final int LATENCY_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
LOCATION_FIELD_NUMBER
public static final int LOCATION_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
METHOD_FIELD_NUMBER
public static final int METHOD_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
VERSION_FIELD_NUMBER
public static final int VERSION_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static BasicSli getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static BasicSli.Builder newBuilder()
newBuilder(BasicSli prototype)
public static BasicSli.Builder newBuilder(BasicSli prototype)
Parameter |
Name |
Description |
prototype |
BasicSli
|
public static BasicSli parseDelimitedFrom(InputStream input)
public static BasicSli parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static BasicSli parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static BasicSli parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static BasicSli parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static BasicSli parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static BasicSli parseFrom(CodedInputStream input)
public static BasicSli parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static BasicSli parseFrom(InputStream input)
public static BasicSli parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static BasicSli parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static BasicSli parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<BasicSli> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
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;
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;
getDefaultInstanceForType()
public BasicSli getDefaultInstanceForType()
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;
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;
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;
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;
getParserForType()
public Parser<BasicSli> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getSliCriteriaCase()
public BasicSli.SliCriteriaCase getSliCriteriaCase()
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;
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 |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public BasicSli.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected BasicSli.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public BasicSli.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides