proto_docs/google/monitoring/v3/alert.rb in google-cloud-monitoring-v3-0.13.0 vs proto_docs/google/monitoring/v3/alert.rb in google-cloud-monitoring-v3-0.14.0

- old
+ new

@@ -121,10 +121,15 @@ # A read-only record of the most recent change to the alerting policy. If # provided in a call to create or update, this field will be ignored. # @!attribute [rw] alert_strategy # @return [::Google::Cloud::Monitoring::V3::AlertPolicy::AlertStrategy] # Control over how this alert policy's notification channels are notified. + # @!attribute [rw] severity + # @return [::Google::Cloud::Monitoring::V3::AlertPolicy::Severity] + # Optional. The severity of an alert policy indicates how important incidents + # generated by that policy are. The severity level will be displayed on the + # Incident detail page and in notifications. class AlertPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A content string and a MIME type that describes the content string's @@ -337,10 +342,11 @@ # Required. The length of time into the future to forecast whether a # time series will violate the threshold. If the predicted value is # found to violate the threshold, and the violation is observed in all # forecasts made for the configured `duration`, then the time series is # considered to be failing. + # The forecast horizon can range from 1 hour to 60 hours. class ForecastOptions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end @@ -667,9 +673,28 @@ # Combine conditions using logical `AND` operator, but unlike the regular # `AND` option, an incident is created only if all conditions are met # simultaneously on at least one resource. AND_WITH_MATCHING_RESOURCE = 3 + end + + # An enumeration of possible severity level for an Alert Policy. + module Severity + # No severity is specified. This is the default value. + SEVERITY_UNSPECIFIED = 0 + + # This is the highest severity level. Use this if the problem could + # cause significant damage or downtime. + CRITICAL = 1 + + # This is the medium severity level. Use this if the problem could + # cause minor damage or downtime. + ERROR = 2 + + # This is the lowest severity level. Use this if the problem is not causing + # any damage or downtime, but could potentially lead to a problem in the + # future. + WARNING = 3 end end end end end