proto_docs/google/monitoring/v3/alert.rb in google-cloud-monitoring-v3-0.4.3 vs proto_docs/google/monitoring/v3/alert.rb in google-cloud-monitoring-v3-0.5.0

- old
+ new

@@ -31,11 +31,11 @@ # format is: # # projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID] # # `[ALERT_POLICY_ID]` is assigned by Stackdriver Monitoring when the policy - # is created. When calling the + # is created. When calling the # {::Google::Cloud::Monitoring::V3::AlertPolicyService::Client#create_alert_policy alertPolicies.create} # method, do not include the `name` field in the alerting policy passed as # part of the request. # @!attribute [rw] display_name # @return [::String] @@ -102,10 +102,13 @@ # in a call to create or update, this field will be ignored. # @!attribute [rw] mutation_record # @return [::Google::Cloud::Monitoring::V3::MutationRecord] # 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. class AlertPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A content string and a MIME type that describes the content string's @@ -166,10 +169,14 @@ # A condition that compares a time series against a threshold. # @!attribute [rw] condition_absent # @return [::Google::Cloud::Monitoring::V3::AlertPolicy::Condition::MetricAbsence] # A condition that checks that a time series continues to # receive new data points. + # @!attribute [rw] condition_matched_log + # @return [::Google::Cloud::Monitoring::V3::AlertPolicy::Condition::LogMatch] + # A condition that checks for log messages matching given constraints. If + # set, no other conditions can be present. # @!attribute [rw] condition_monitoring_query_language # @return [::Google::Cloud::Monitoring::V3::AlertPolicy::Condition::MonitoringQueryLanguageCondition] # A condition that uses the Monitoring Query Language to define # alerts. class Condition @@ -325,10 +332,46 @@ class MetricAbsence include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end + # A condition type that checks whether a log message in the [scoping + # project](https://cloud.google.com/monitoring/api/v3#project_name) + # satisfies the given filter. Logs from other projects in the metrics + # scope are not evaluated. + # @!attribute [rw] filter + # @return [::String] + # Required. A logs-based filter. See [Advanced Logs + # Queries](/logging/docs/view/advanced-queries) for how this filter + # should be constructed. + # @!attribute [rw] label_extractors + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. A map from a label key to an extractor expression, which is + # used to extract the value for this label key. Each entry in this map is + # a specification for how data should be extracted from log entries that + # match `filter`. Each combination of extracted values is treated as a + # separate rule for the purposes of triggering notifications. Label keys + # and corresponding values can be used in notifications generated by this + # condition. + # + # Please see [the documentation on logs-based metric + # `valueExtractor`s](/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor) + # for syntax and examples. + class LogMatch + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class LabelExtractorsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + # A condition type that allows alert policies to be defined using # [Monitoring Query Language](https://cloud.google.com/monitoring/mql). # @!attribute [rw] query # @return [::String] # [Monitoring Query Language](https://cloud.google.com/monitoring/mql) @@ -352,9 +395,31 @@ # condition will trigger if the comparison is true for any of the # time series that have been identified by `filter` and `aggregations`, # or by the ratio, if `denominator_filter` and `denominator_aggregations` # are specified. class MonitoringQueryLanguageCondition + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Control over how the notification channels in `notification_channels` + # are notified when this alert fires. + # @!attribute [rw] notification_rate_limit + # @return [::Google::Cloud::Monitoring::V3::AlertPolicy::AlertStrategy::NotificationRateLimit] + # Required for alert policies with a `LogMatch` condition. + # + # This limit is not implemented for alert policies that are not log-based. + class AlertStrategy + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Control over the rate of notifications sent to this alert policy's + # notification channels. + # @!attribute [rw] period + # @return [::Google::Protobuf::Duration] + # Not more than one notification per `period`. + class NotificationRateLimit include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end