Reference documentation and code samples for the Cloud Monitoring V3 API class Google::Cloud::Monitoring::V3::ServiceLevelObjective.
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."
Inherits
- Object
 
Extended By
- Google::Protobuf::MessageExts::ClassMethods
 
Includes
- Google::Protobuf::MessageExts
 
Methods
#calendar_period
def calendar_period() -> ::Google::Type::CalendarPeriod-  (::Google::Type::CalendarPeriod) — A calendar period, semantically "since the start of the current 
<calendar_period>". At this time, onlyDAY,WEEK,FORTNIGHT, andMONTHare supported. 
#calendar_period=
def calendar_period=(value) -> ::Google::Type::CalendarPeriod-  value (::Google::Type::CalendarPeriod) — A calendar period, semantically "since the start of the current 
<calendar_period>". At this time, onlyDAY,WEEK,FORTNIGHT, andMONTHare supported. 
-  (::Google::Type::CalendarPeriod) — A calendar period, semantically "since the start of the current 
<calendar_period>". At this time, onlyDAY,WEEK,FORTNIGHT, andMONTHare supported. 
#display_name
def display_name() -> ::String- (::String) — Name used for UI elements listing this SLO.
 
#display_name=
def display_name=(value) -> ::String- value (::String) — Name used for UI elements listing this SLO.
 
- (::String) — Name used for UI elements listing this SLO.
 
#goal
def goal() -> ::Float-  (::Float) — The fraction of service that must be good in order for this objective to be met. 
0 < goal <= 0.999. 
#goal=
def goal=(value) -> ::Float-  value (::Float) — The fraction of service that must be good in order for this objective to be met. 
0 < goal <= 0.999. 
-  (::Float) — The fraction of service that must be good in order for this objective to be met. 
0 < goal <= 0.999. 
#name
def name() -> ::String-  (::String) — 
Resource name for this
ServiceLevelObjective. The format is:projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME] 
#name=
def name=(value) -> ::String-  value (::String) — 
Resource name for this
ServiceLevelObjective. The format is:projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME] 
-  (::String) — 
Resource name for this
ServiceLevelObjective. The format is:projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME] 
#rolling_period
def rolling_period() -> ::Google::Protobuf::Duration-  (::Google::Protobuf::Duration) — A rolling time period, semantically "in the past 
<rolling_period>". Must be an integer multiple of 1 day no larger than 30 days. 
#rolling_period=
def rolling_period=(value) -> ::Google::Protobuf::Duration-  value (::Google::Protobuf::Duration) — 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) — A rolling time period, semantically "in the past 
<rolling_period>". Must be an integer multiple of 1 day no larger than 30 days. 
#service_level_indicator
def service_level_indicator() -> ::Google::Cloud::Monitoring::V3::ServiceLevelIndicator-  (::Google::Cloud::Monitoring::V3::ServiceLevelIndicator) — 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. 
#service_level_indicator=
def service_level_indicator=(value) -> ::Google::Cloud::Monitoring::V3::ServiceLevelIndicator-  value (::Google::Cloud::Monitoring::V3::ServiceLevelIndicator) — 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::Cloud::Monitoring::V3::ServiceLevelIndicator) — 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. 
#user_labels
def user_labels() -> ::Google::Protobuf::Map{::String => ::String}- (::Google::Protobuf::Map{::String => ::String}) — 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.
 
#user_labels=
def user_labels=(value) -> ::Google::Protobuf::Map{::String => ::String}- value (::Google::Protobuf::Map{::String => ::String}) — 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.
 
- (::Google::Protobuf::Map{::String => ::String}) — 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.