Package com.google.monitoring.v3
Class ServiceLevelObjective
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.monitoring.v3.ServiceLevelObjective
-
- All Implemented Interfaces:
ServiceLevelObjectiveOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
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 typegoogle.monitoring.v3.ServiceLevelObjective- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classServiceLevelObjective.BuilderA Service-Level Objective (SLO) describes a level of desired good service.static classServiceLevelObjective.PeriodCasestatic classServiceLevelObjective.View`ServiceLevelObjective.View` determines what form of `ServiceLevelObjective` is returned from `GetServiceLevelObjective`, `ListServiceLevelObjectives`, and `ListServiceLevelObjectiveVersions` RPCs.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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
-
-
Field Summary
Fields Modifier and Type Field Description static intCALENDAR_PERIOD_FIELD_NUMBERstatic intDISPLAY_NAME_FIELD_NUMBERstatic intGOAL_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intROLLING_PERIOD_FIELD_NUMBERstatic intSERVICE_LEVEL_INDICATOR_FIELD_NUMBERstatic intUSER_LABELS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsUserLabels(String key)Labels which have been used to annotate the service-level objective.booleanequals(Object obj)com.google.type.CalendarPeriodgetCalendarPeriod()A calendar period, semantically "since the start of the current `<calendar_period>`".intgetCalendarPeriodValue()A calendar period, semantically "since the start of the current `<calendar_period>`".static ServiceLevelObjectivegetDefaultInstance()ServiceLevelObjectivegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetDisplayName()Name used for UI elements listing this SLO.com.google.protobuf.ByteStringgetDisplayNameBytes()Name used for UI elements listing this SLO.doublegetGoal()The fraction of service that must be good in order for this objective to be met.StringgetName()Resource name for this `ServiceLevelObjective`.com.google.protobuf.ByteStringgetNameBytes()Resource name for this `ServiceLevelObjective`.com.google.protobuf.Parser<ServiceLevelObjective>getParserForType()ServiceLevelObjective.PeriodCasegetPeriodCase()com.google.protobuf.DurationgetRollingPeriod()A rolling time period, semantically "in the past `<rolling_period>`".com.google.protobuf.DurationOrBuildergetRollingPeriodOrBuilder()A rolling time period, semantically "in the past `<rolling_period>`".intgetSerializedSize()ServiceLevelIndicatorgetServiceLevelIndicator()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.ServiceLevelIndicatorOrBuildergetServiceLevelIndicatorOrBuilder()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.intgetUserLabelsCount()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.StringgetUserLabelsOrDefault(String key, String defaultValue)Labels which have been used to annotate the service-level objective.StringgetUserLabelsOrThrow(String key)Labels which have been used to annotate the service-level objective.booleanhasCalendarPeriod()A calendar period, semantically "since the start of the current `<calendar_period>`".inthashCode()booleanhasRollingPeriod()A rolling time period, semantically "in the past `<rolling_period>`".booleanhasServiceLevelIndicator()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.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)booleanisInitialized()static ServiceLevelObjective.BuildernewBuilder()static ServiceLevelObjective.BuildernewBuilder(ServiceLevelObjective prototype)ServiceLevelObjective.BuildernewBuilderForType()protected ServiceLevelObjective.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static ServiceLevelObjectiveparseDelimitedFrom(InputStream input)static ServiceLevelObjectiveparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ServiceLevelObjectiveparseFrom(byte[] data)static ServiceLevelObjectiveparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ServiceLevelObjectiveparseFrom(com.google.protobuf.ByteString data)static ServiceLevelObjectiveparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ServiceLevelObjectiveparseFrom(com.google.protobuf.CodedInputStream input)static ServiceLevelObjectiveparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ServiceLevelObjectiveparseFrom(InputStream input)static ServiceLevelObjectiveparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ServiceLevelObjectiveparseFrom(ByteBuffer data)static ServiceLevelObjectiveparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<ServiceLevelObjective>parser()ServiceLevelObjective.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SERVICE_LEVEL_INDICATOR_FIELD_NUMBER
public static final int SERVICE_LEVEL_INDICATOR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GOAL_FIELD_NUMBER
public static final int GOAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ROLLING_PERIOD_FIELD_NUMBER
public static final int ROLLING_PERIOD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CALENDAR_PERIOD_FIELD_NUMBER
public static final int CALENDAR_PERIOD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
USER_LABELS_FIELD_NUMBER
public static final int USER_LABELS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getPeriodCase
public ServiceLevelObjective.PeriodCase getPeriodCase()
- Specified by:
getPeriodCasein interfaceServiceLevelObjectiveOrBuilder
-
getName
public String getName()
Resource name for this `ServiceLevelObjective`. The format is: projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]string name = 1;- Specified by:
getNamein interfaceServiceLevelObjectiveOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Resource name for this `ServiceLevelObjective`. The format is: projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]string name = 1;- Specified by:
getNameBytesin interfaceServiceLevelObjectiveOrBuilder- Returns:
- The bytes for name.
-
getDisplayName
public String getDisplayName()
Name used for UI elements listing this SLO.
string display_name = 11;- Specified by:
getDisplayNamein interfaceServiceLevelObjectiveOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
Name used for UI elements listing this SLO.
string display_name = 11;- Specified by:
getDisplayNameBytesin interfaceServiceLevelObjectiveOrBuilder- Returns:
- The bytes for displayName.
-
hasServiceLevelIndicator
public 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;- Specified by:
hasServiceLevelIndicatorin interfaceServiceLevelObjectiveOrBuilder- Returns:
- Whether the serviceLevelIndicator field is set.
-
getServiceLevelIndicator
public 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;- Specified by:
getServiceLevelIndicatorin interfaceServiceLevelObjectiveOrBuilder- Returns:
- The serviceLevelIndicator.
-
getServiceLevelIndicatorOrBuilder
public 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;- Specified by:
getServiceLevelIndicatorOrBuilderin interfaceServiceLevelObjectiveOrBuilder
-
getGoal
public 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;- Specified by:
getGoalin interfaceServiceLevelObjectiveOrBuilder- Returns:
- The goal.
-
hasRollingPeriod
public 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;- Specified by:
hasRollingPeriodin interfaceServiceLevelObjectiveOrBuilder- Returns:
- Whether the rollingPeriod field is set.
-
getRollingPeriod
public 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;- Specified by:
getRollingPeriodin interfaceServiceLevelObjectiveOrBuilder- Returns:
- The rollingPeriod.
-
getRollingPeriodOrBuilder
public 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;- Specified by:
getRollingPeriodOrBuilderin interfaceServiceLevelObjectiveOrBuilder
-
hasCalendarPeriod
public 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;- Specified by:
hasCalendarPeriodin interfaceServiceLevelObjectiveOrBuilder- Returns:
- Whether the calendarPeriod field is set.
-
getCalendarPeriodValue
public 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;- Specified by:
getCalendarPeriodValuein interfaceServiceLevelObjectiveOrBuilder- Returns:
- The enum numeric value on the wire for calendarPeriod.
-
getCalendarPeriod
public 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;- Specified by:
getCalendarPeriodin interfaceServiceLevelObjectiveOrBuilder- Returns:
- The calendarPeriod.
-
getUserLabelsCount
public int getUserLabelsCount()
Description copied from interface: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;- Specified by:
getUserLabelsCountin interfaceServiceLevelObjectiveOrBuilder
-
containsUserLabels
public 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;- Specified by:
containsUserLabelsin interfaceServiceLevelObjectiveOrBuilder
-
getUserLabels
@Deprecated public Map<String,String> getUserLabels()
Deprecated.UsegetUserLabelsMap()instead.- Specified by:
getUserLabelsin interfaceServiceLevelObjectiveOrBuilder
-
getUserLabelsMap
public 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;- Specified by:
getUserLabelsMapin interfaceServiceLevelObjectiveOrBuilder
-
getUserLabelsOrDefault
public 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;- Specified by:
getUserLabelsOrDefaultin interfaceServiceLevelObjectiveOrBuilder
-
getUserLabelsOrThrow
public 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;- Specified by:
getUserLabelsOrThrowin interfaceServiceLevelObjectiveOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ServiceLevelObjective parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ServiceLevelObjective parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ServiceLevelObjective parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ServiceLevelObjective parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ServiceLevelObjective parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ServiceLevelObjective parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ServiceLevelObjective parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ServiceLevelObjective parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ServiceLevelObjective parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ServiceLevelObjective parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static ServiceLevelObjective parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ServiceLevelObjective parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public ServiceLevelObjective.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ServiceLevelObjective.Builder newBuilder()
-
newBuilder
public static ServiceLevelObjective.Builder newBuilder(ServiceLevelObjective prototype)
-
toBuilder
public ServiceLevelObjective.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ServiceLevelObjective.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static ServiceLevelObjective getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<ServiceLevelObjective> parser()
-
getParserForType
public com.google.protobuf.Parser<ServiceLevelObjective> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ServiceLevelObjective getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-