public final class ServiceLevelObjective extends com.google.protobuf.GeneratedMessageV3 implements ServiceLevelObjectiveOrBuilder
A Service-Level Objective (SLO) describes a level of desired good service. It consists of a service-level indicator (SLI), a performance goal, and a period over which the objective is to be evaluated against that goal. The SLO can use SLIs defined in a number of different manners. Typical SLOs might include "99% of requests in each rolling week have latency below 200 milliseconds" or "99.5% of requests in each calendar month return successfully."Protobuf type
google.monitoring.v3.ServiceLevelObjective| Modifier and Type | Class and Description |
|---|---|
static class |
ServiceLevelObjective.Builder
A Service-Level Objective (SLO) describes a level of desired good service.
|
static class |
ServiceLevelObjective.PeriodCase |
static class |
ServiceLevelObjective.View
`ServiceLevelObjective.View` determines what form of
`ServiceLevelObjective` is returned from `GetServiceLevelObjective`,
`ListServiceLevelObjectives`, and `ListServiceLevelObjectiveVersions` RPCs.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CALENDAR_PERIOD_FIELD_NUMBER |
static int |
DISPLAY_NAME_FIELD_NUMBER |
static int |
GOAL_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
ROLLING_PERIOD_FIELD_NUMBER |
static int |
SERVICE_LEVEL_INDICATOR_FIELD_NUMBER |
static int |
USER_LABELS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsUserLabels(String key)
Labels which have been used to annotate the service-level objective.
|
boolean |
equals(Object obj) |
com.google.type.CalendarPeriod |
getCalendarPeriod()
A calendar period, semantically "since the start of the current
`<calendar_period>`".
|
int |
getCalendarPeriodValue()
A calendar period, semantically "since the start of the current
`<calendar_period>`".
|
static ServiceLevelObjective |
getDefaultInstance() |
ServiceLevelObjective |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getDisplayName()
Name used for UI elements listing this SLO.
|
com.google.protobuf.ByteString |
getDisplayNameBytes()
Name used for UI elements listing this SLO.
|
double |
getGoal()
The fraction of service that must be good in order for this objective to be
met.
|
String |
getName()
Identifier.
|
com.google.protobuf.ByteString |
getNameBytes()
Identifier.
|
com.google.protobuf.Parser<ServiceLevelObjective> |
getParserForType() |
ServiceLevelObjective.PeriodCase |
getPeriodCase() |
com.google.protobuf.Duration |
getRollingPeriod()
A rolling time period, semantically "in the past `<rolling_period>`".
|
com.google.protobuf.DurationOrBuilder |
getRollingPeriodOrBuilder()
A rolling time period, semantically "in the past `<rolling_period>`".
|
int |
getSerializedSize() |
ServiceLevelIndicator |
getServiceLevelIndicator()
The definition of good service, used to measure and calculate the quality
of the `Service`'s performance with respect to a single aspect of service
quality.
|
ServiceLevelIndicatorOrBuilder |
getServiceLevelIndicatorOrBuilder()
The definition of good service, used to measure and calculate the quality
of the `Service`'s performance with respect to a single aspect of service
quality.
|
Map<String,String> |
getUserLabels()
Deprecated.
|
int |
getUserLabelsCount()
Labels which have been used to annotate the service-level objective.
|
Map<String,String> |
getUserLabelsMap()
Labels which have been used to annotate the service-level objective.
|
String |
getUserLabelsOrDefault(String key,
String defaultValue)
Labels which have been used to annotate the service-level objective.
|
String |
getUserLabelsOrThrow(String key)
Labels which have been used to annotate the service-level objective.
|
boolean |
hasCalendarPeriod()
A calendar period, semantically "since the start of the current
`<calendar_period>`".
|
int |
hashCode() |
boolean |
hasRollingPeriod()
A rolling time period, semantically "in the past `<rolling_period>`".
|
boolean |
hasServiceLevelIndicator()
The definition of good service, used to measure and calculate the quality
of the `Service`'s performance with respect to a single aspect of service
quality.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
boolean |
isInitialized() |
static ServiceLevelObjective.Builder |
newBuilder() |
static ServiceLevelObjective.Builder |
newBuilder(ServiceLevelObjective prototype) |
ServiceLevelObjective.Builder |
newBuilderForType() |
protected ServiceLevelObjective.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static ServiceLevelObjective |
parseDelimitedFrom(InputStream input) |
static ServiceLevelObjective |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ServiceLevelObjective |
parseFrom(byte[] data) |
static ServiceLevelObjective |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ServiceLevelObjective |
parseFrom(ByteBuffer data) |
static ServiceLevelObjective |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ServiceLevelObjective |
parseFrom(com.google.protobuf.ByteString data) |
static ServiceLevelObjective |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ServiceLevelObjective |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ServiceLevelObjective |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ServiceLevelObjective |
parseFrom(InputStream input) |
static ServiceLevelObjective |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ServiceLevelObjective> |
parser() |
ServiceLevelObjective.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
public static final int SERVICE_LEVEL_INDICATOR_FIELD_NUMBER
public static final int GOAL_FIELD_NUMBER
public static final int ROLLING_PERIOD_FIELD_NUMBER
public static final int CALENDAR_PERIOD_FIELD_NUMBER
public static final int USER_LABELS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public ServiceLevelObjective.PeriodCase getPeriodCase()
getPeriodCase in interface ServiceLevelObjectiveOrBuilderpublic String getName()
Identifier. Resource name for this `ServiceLevelObjective`. The format is:
projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];getName in interface ServiceLevelObjectiveOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Identifier. Resource name for this `ServiceLevelObjective`. The format is:
projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];getNameBytes in interface ServiceLevelObjectiveOrBuilderpublic String getDisplayName()
Name used for UI elements listing this SLO.
string display_name = 11;getDisplayName in interface ServiceLevelObjectiveOrBuilderpublic com.google.protobuf.ByteString getDisplayNameBytes()
Name used for UI elements listing this SLO.
string display_name = 11;getDisplayNameBytes in interface ServiceLevelObjectiveOrBuilderpublic boolean hasServiceLevelIndicator()
The definition of good service, used to measure and calculate the quality of the `Service`'s performance with respect to a single aspect of service quality.
.google.monitoring.v3.ServiceLevelIndicator service_level_indicator = 3;hasServiceLevelIndicator in interface ServiceLevelObjectiveOrBuilderpublic ServiceLevelIndicator getServiceLevelIndicator()
The definition of good service, used to measure and calculate the quality of the `Service`'s performance with respect to a single aspect of service quality.
.google.monitoring.v3.ServiceLevelIndicator service_level_indicator = 3;getServiceLevelIndicator in interface ServiceLevelObjectiveOrBuilderpublic ServiceLevelIndicatorOrBuilder getServiceLevelIndicatorOrBuilder()
The definition of good service, used to measure and calculate the quality of the `Service`'s performance with respect to a single aspect of service quality.
.google.monitoring.v3.ServiceLevelIndicator service_level_indicator = 3;getServiceLevelIndicatorOrBuilder in interface ServiceLevelObjectiveOrBuilderpublic double getGoal()
The fraction of service that must be good in order for this objective to be met. `0 < goal <= 0.999`.
double goal = 4;getGoal in interface ServiceLevelObjectiveOrBuilderpublic boolean hasRollingPeriod()
A rolling time period, semantically "in the past `<rolling_period>`". Must be an integer multiple of 1 day no larger than 30 days.
.google.protobuf.Duration rolling_period = 5;hasRollingPeriod in interface ServiceLevelObjectiveOrBuilderpublic com.google.protobuf.Duration getRollingPeriod()
A rolling time period, semantically "in the past `<rolling_period>`". Must be an integer multiple of 1 day no larger than 30 days.
.google.protobuf.Duration rolling_period = 5;getRollingPeriod in interface ServiceLevelObjectiveOrBuilderpublic com.google.protobuf.DurationOrBuilder getRollingPeriodOrBuilder()
A rolling time period, semantically "in the past `<rolling_period>`". Must be an integer multiple of 1 day no larger than 30 days.
.google.protobuf.Duration rolling_period = 5;getRollingPeriodOrBuilder in interface ServiceLevelObjectiveOrBuilderpublic boolean hasCalendarPeriod()
A calendar period, semantically "since the start of the current `<calendar_period>`". At this time, only `DAY`, `WEEK`, `FORTNIGHT`, and `MONTH` are supported.
.google.type.CalendarPeriod calendar_period = 6;hasCalendarPeriod in interface ServiceLevelObjectiveOrBuilderpublic int getCalendarPeriodValue()
A calendar period, semantically "since the start of the current `<calendar_period>`". At this time, only `DAY`, `WEEK`, `FORTNIGHT`, and `MONTH` are supported.
.google.type.CalendarPeriod calendar_period = 6;getCalendarPeriodValue in interface ServiceLevelObjectiveOrBuilderpublic com.google.type.CalendarPeriod getCalendarPeriod()
A calendar period, semantically "since the start of the current `<calendar_period>`". At this time, only `DAY`, `WEEK`, `FORTNIGHT`, and `MONTH` are supported.
.google.type.CalendarPeriod calendar_period = 6;getCalendarPeriod in interface ServiceLevelObjectiveOrBuilderpublic int getUserLabelsCount()
ServiceLevelObjectiveOrBuilderLabels which have been used to annotate the service-level objective. Label keys must start with a letter. Label keys and values may contain lowercase letters, numbers, underscores, and dashes. Label keys and values have a maximum length of 63 characters, and must be less than 128 bytes in size. Up to 64 label entries may be stored. For labels which do not have a semantic value, the empty string may be supplied for the label value.
map<string, string> user_labels = 12;getUserLabelsCount in interface ServiceLevelObjectiveOrBuilderpublic boolean containsUserLabels(String key)
Labels which have been used to annotate the service-level objective. Label keys must start with a letter. Label keys and values may contain lowercase letters, numbers, underscores, and dashes. Label keys and values have a maximum length of 63 characters, and must be less than 128 bytes in size. Up to 64 label entries may be stored. For labels which do not have a semantic value, the empty string may be supplied for the label value.
map<string, string> user_labels = 12;containsUserLabels in interface ServiceLevelObjectiveOrBuilder@Deprecated public Map<String,String> getUserLabels()
getUserLabelsMap() instead.getUserLabels in interface ServiceLevelObjectiveOrBuilderpublic Map<String,String> getUserLabelsMap()
Labels which have been used to annotate the service-level objective. Label keys must start with a letter. Label keys and values may contain lowercase letters, numbers, underscores, and dashes. Label keys and values have a maximum length of 63 characters, and must be less than 128 bytes in size. Up to 64 label entries may be stored. For labels which do not have a semantic value, the empty string may be supplied for the label value.
map<string, string> user_labels = 12;getUserLabelsMap in interface ServiceLevelObjectiveOrBuilderpublic String getUserLabelsOrDefault(String key, String defaultValue)
Labels which have been used to annotate the service-level objective. Label keys must start with a letter. Label keys and values may contain lowercase letters, numbers, underscores, and dashes. Label keys and values have a maximum length of 63 characters, and must be less than 128 bytes in size. Up to 64 label entries may be stored. For labels which do not have a semantic value, the empty string may be supplied for the label value.
map<string, string> user_labels = 12;getUserLabelsOrDefault in interface ServiceLevelObjectiveOrBuilderpublic String getUserLabelsOrThrow(String key)
Labels which have been used to annotate the service-level objective. Label keys must start with a letter. Label keys and values may contain lowercase letters, numbers, underscores, and dashes. Label keys and values have a maximum length of 63 characters, and must be less than 128 bytes in size. Up to 64 label entries may be stored. For labels which do not have a semantic value, the empty string may be supplied for the label value.
map<string, string> user_labels = 12;getUserLabelsOrThrow in interface ServiceLevelObjectiveOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static ServiceLevelObjective parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ServiceLevelObjective parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ServiceLevelObjective parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ServiceLevelObjective parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ServiceLevelObjective parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ServiceLevelObjective parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ServiceLevelObjective parseFrom(InputStream input) throws IOException
IOExceptionpublic static ServiceLevelObjective parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ServiceLevelObjective parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ServiceLevelObjective parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ServiceLevelObjective parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ServiceLevelObjective parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ServiceLevelObjective.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ServiceLevelObjective.Builder newBuilder()
public static ServiceLevelObjective.Builder newBuilder(ServiceLevelObjective prototype)
public ServiceLevelObjective.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ServiceLevelObjective.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static ServiceLevelObjective getDefaultInstance()
public static com.google.protobuf.Parser<ServiceLevelObjective> parser()
public com.google.protobuf.Parser<ServiceLevelObjective> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public ServiceLevelObjective getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.