Package com.google.monitoring.v3
Interface ServiceLevelObjectiveOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ServiceLevelObjective,ServiceLevelObjective.Builder
@Generated
public interface ServiceLevelObjectiveOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsUserLabels(String key) Labels which have been used to annotate the service-level objective.A calendar period, semantically "since the start of the current `<calendar_period>`".intA calendar period, semantically "since the start of the current `<calendar_period>`".Name used for UI elements listing this SLO.com.google.protobuf.ByteStringName used for UI elements listing this SLO.doublegetGoal()The fraction of service that must be good in order for this objective to be met. `0 < goal <= 0.9999`.getName()Identifier.com.google.protobuf.ByteStringIdentifier.com.google.protobuf.DurationA rolling time period, semantically "in the past `<rolling_period>`".com.google.protobuf.DurationOrBuilderA rolling time period, semantically "in the past `<rolling_period>`".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.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.Deprecated.intLabels which have been used to annotate the service-level objective.Labels which have been used to annotate the service-level objective.getUserLabelsOrDefault(String key, String defaultValue) Labels which have been used to annotate the service-level objective.Labels which have been used to annotate the service-level objective.booleanA calendar period, semantically "since the start of the current `<calendar_period>`".booleanA rolling time period, semantically "in the past `<rolling_period>`".booleanThe 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.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getName
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];- Returns:
- The name.
-
getNameBytes
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];- Returns:
- The bytes for name.
-
getDisplayName
String getDisplayName()Name used for UI elements listing this SLO.
string display_name = 11;- Returns:
- The displayName.
-
getDisplayNameBytes
com.google.protobuf.ByteString getDisplayNameBytes()Name used for UI elements listing this SLO.
string display_name = 11;- Returns:
- The bytes for displayName.
-
hasServiceLevelIndicator
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;- Returns:
- Whether the serviceLevelIndicator field is set.
-
getServiceLevelIndicator
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;- Returns:
- The serviceLevelIndicator.
-
getServiceLevelIndicatorOrBuilder
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; -
getGoal
double getGoal()The fraction of service that must be good in order for this objective to be met. `0 < goal <= 0.9999`.
double goal = 4;- Returns:
- The goal.
-
hasRollingPeriod
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;- Returns:
- Whether the rollingPeriod field is set.
-
getRollingPeriod
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;- Returns:
- The rollingPeriod.
-
getRollingPeriodOrBuilder
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; -
hasCalendarPeriod
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;- Returns:
- Whether the calendarPeriod field is set.
-
getCalendarPeriodValue
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;- Returns:
- The enum numeric value on the wire for calendarPeriod.
-
getCalendarPeriod
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;- Returns:
- The calendarPeriod.
-
getUserLabelsCount
int getUserLabelsCount()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
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; -
getUserLabels
Deprecated.UsegetUserLabelsMap()instead. -
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; -
getUserLabelsOrDefault
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
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; -
getPeriodCase
ServiceLevelObjective.PeriodCase getPeriodCase()
-