Package com.google.monitoring.v3
Interface ServiceLevelObjectiveOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ServiceLevelObjective
,ServiceLevelObjective.Builder
public interface ServiceLevelObjectiveOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
containsUserLabels(String key)
Labels which have been used to annotate the service-level objective.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>`".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()
Resource name for this `ServiceLevelObjective`.com.google.protobuf.ByteString
getNameBytes()
Resource name for this `ServiceLevelObjective`.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>`".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>`".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.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getName
String getName()
Resource name for this `ServiceLevelObjective`. The format is: projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
string name = 1;
- Returns:
- The name.
-
getNameBytes
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;
- 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.999`.
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
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;
- 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
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;
-
getUserLabels
@Deprecated Map<String,String> getUserLabels()
Deprecated.UsegetUserLabelsMap()
instead.
-
getUserLabelsMap
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;
-
getUserLabelsOrDefault
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;
-
getUserLabelsOrThrow
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;
-
getPeriodCase
ServiceLevelObjective.PeriodCase getPeriodCase()
-
-