Skip to content

Commit 7317835

Browse files
feat(monitoring): update the api
#### monitoring:v3 The following keys were added: - schemas.AlertStrategy.properties.autoClose (Total Keys: 2)
1 parent 5242af6 commit 7317835

File tree

4 files changed

+30
-19
lines changed

4 files changed

+30
-19
lines changed

docs/dyn/monitoring_v3.projects.alertPolicies.html

+18-12
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ <h3>Method Details</h3>
112112

113113
{ # A description of the conditions under which some aspect of your system is considered to be &quot;unhealthy&quot; and the ways to notify people or services about this state. For an overview of alert policies, see Introduction to Alerting (https://cloud.google.com/monitoring/alerts/).
114114
&quot;alertStrategy&quot;: { # Control over how the notification channels in notification_channels are notified when this alert fires. # Control over how this alert policy&#x27;s notification channels are notified.
115+
&quot;autoClose&quot;: &quot;A String&quot;, # If an alert policy that was active has no data for this log, any open incidents will close
115116
&quot;notificationRateLimit&quot;: { # Control over the rate of notifications sent to this alert policy&#x27;s notification channels. # Required for alert policies with a LogMatch condition.This limit is not implemented for alert policies that are not log-based.
116117
&quot;period&quot;: &quot;A String&quot;, # Not more than one notification per period.
117118
},
@@ -138,8 +139,8 @@ <h3>Method Details</h3>
138139
},
139140
},
140141
&quot;conditionMatchedLog&quot;: { # 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. # A condition that checks for log messages matching given constraints. If set, no other conditions can be present.
141-
&quot;filter&quot;: &quot;A String&quot;, # Required. A logs-based filter. See Advanced Logs Queries for how this filter should be constructed.
142-
&quot;labelExtractors&quot;: { # 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 valueExtractors for syntax and examples.
142+
&quot;filter&quot;: &quot;A String&quot;, # Required. A logs-based filter. See Advanced Logs Queries (https://cloud.google.com/logging/docs/view/advanced-queries) for how this filter should be constructed.
143+
&quot;labelExtractors&quot;: { # 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 valueExtractors (https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor) for syntax and examples.
143144
&quot;a_key&quot;: &quot;A String&quot;,
144145
},
145146
},
@@ -228,6 +229,7 @@ <h3>Method Details</h3>
228229

229230
{ # A description of the conditions under which some aspect of your system is considered to be &quot;unhealthy&quot; and the ways to notify people or services about this state. For an overview of alert policies, see Introduction to Alerting (https://cloud.google.com/monitoring/alerts/).
230231
&quot;alertStrategy&quot;: { # Control over how the notification channels in notification_channels are notified when this alert fires. # Control over how this alert policy&#x27;s notification channels are notified.
232+
&quot;autoClose&quot;: &quot;A String&quot;, # If an alert policy that was active has no data for this log, any open incidents will close
231233
&quot;notificationRateLimit&quot;: { # Control over the rate of notifications sent to this alert policy&#x27;s notification channels. # Required for alert policies with a LogMatch condition.This limit is not implemented for alert policies that are not log-based.
232234
&quot;period&quot;: &quot;A String&quot;, # Not more than one notification per period.
233235
},
@@ -254,8 +256,8 @@ <h3>Method Details</h3>
254256
},
255257
},
256258
&quot;conditionMatchedLog&quot;: { # 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. # A condition that checks for log messages matching given constraints. If set, no other conditions can be present.
257-
&quot;filter&quot;: &quot;A String&quot;, # Required. A logs-based filter. See Advanced Logs Queries for how this filter should be constructed.
258-
&quot;labelExtractors&quot;: { # 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 valueExtractors for syntax and examples.
259+
&quot;filter&quot;: &quot;A String&quot;, # Required. A logs-based filter. See Advanced Logs Queries (https://cloud.google.com/logging/docs/view/advanced-queries) for how this filter should be constructed.
260+
&quot;labelExtractors&quot;: { # 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 valueExtractors (https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor) for syntax and examples.
259261
&quot;a_key&quot;: &quot;A String&quot;,
260262
},
261263
},
@@ -369,6 +371,7 @@ <h3>Method Details</h3>
369371

370372
{ # A description of the conditions under which some aspect of your system is considered to be &quot;unhealthy&quot; and the ways to notify people or services about this state. For an overview of alert policies, see Introduction to Alerting (https://cloud.google.com/monitoring/alerts/).
371373
&quot;alertStrategy&quot;: { # Control over how the notification channels in notification_channels are notified when this alert fires. # Control over how this alert policy&#x27;s notification channels are notified.
374+
&quot;autoClose&quot;: &quot;A String&quot;, # If an alert policy that was active has no data for this log, any open incidents will close
372375
&quot;notificationRateLimit&quot;: { # Control over the rate of notifications sent to this alert policy&#x27;s notification channels. # Required for alert policies with a LogMatch condition.This limit is not implemented for alert policies that are not log-based.
373376
&quot;period&quot;: &quot;A String&quot;, # Not more than one notification per period.
374377
},
@@ -395,8 +398,8 @@ <h3>Method Details</h3>
395398
},
396399
},
397400
&quot;conditionMatchedLog&quot;: { # 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. # A condition that checks for log messages matching given constraints. If set, no other conditions can be present.
398-
&quot;filter&quot;: &quot;A String&quot;, # Required. A logs-based filter. See Advanced Logs Queries for how this filter should be constructed.
399-
&quot;labelExtractors&quot;: { # 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 valueExtractors for syntax and examples.
401+
&quot;filter&quot;: &quot;A String&quot;, # Required. A logs-based filter. See Advanced Logs Queries (https://cloud.google.com/logging/docs/view/advanced-queries) for how this filter should be constructed.
402+
&quot;labelExtractors&quot;: { # 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 valueExtractors (https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor) for syntax and examples.
400403
&quot;a_key&quot;: &quot;A String&quot;,
401404
},
402405
},
@@ -498,6 +501,7 @@ <h3>Method Details</h3>
498501
&quot;alertPolicies&quot;: [ # The returned alert policies.
499502
{ # A description of the conditions under which some aspect of your system is considered to be &quot;unhealthy&quot; and the ways to notify people or services about this state. For an overview of alert policies, see Introduction to Alerting (https://cloud.google.com/monitoring/alerts/).
500503
&quot;alertStrategy&quot;: { # Control over how the notification channels in notification_channels are notified when this alert fires. # Control over how this alert policy&#x27;s notification channels are notified.
504+
&quot;autoClose&quot;: &quot;A String&quot;, # If an alert policy that was active has no data for this log, any open incidents will close
501505
&quot;notificationRateLimit&quot;: { # Control over the rate of notifications sent to this alert policy&#x27;s notification channels. # Required for alert policies with a LogMatch condition.This limit is not implemented for alert policies that are not log-based.
502506
&quot;period&quot;: &quot;A String&quot;, # Not more than one notification per period.
503507
},
@@ -524,8 +528,8 @@ <h3>Method Details</h3>
524528
},
525529
},
526530
&quot;conditionMatchedLog&quot;: { # 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. # A condition that checks for log messages matching given constraints. If set, no other conditions can be present.
527-
&quot;filter&quot;: &quot;A String&quot;, # Required. A logs-based filter. See Advanced Logs Queries for how this filter should be constructed.
528-
&quot;labelExtractors&quot;: { # 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 valueExtractors for syntax and examples.
531+
&quot;filter&quot;: &quot;A String&quot;, # Required. A logs-based filter. See Advanced Logs Queries (https://cloud.google.com/logging/docs/view/advanced-queries) for how this filter should be constructed.
532+
&quot;labelExtractors&quot;: { # 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 valueExtractors (https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor) for syntax and examples.
529533
&quot;a_key&quot;: &quot;A String&quot;,
530534
},
531535
},
@@ -634,6 +638,7 @@ <h3>Method Details</h3>
634638

635639
{ # A description of the conditions under which some aspect of your system is considered to be &quot;unhealthy&quot; and the ways to notify people or services about this state. For an overview of alert policies, see Introduction to Alerting (https://cloud.google.com/monitoring/alerts/).
636640
&quot;alertStrategy&quot;: { # Control over how the notification channels in notification_channels are notified when this alert fires. # Control over how this alert policy&#x27;s notification channels are notified.
641+
&quot;autoClose&quot;: &quot;A String&quot;, # If an alert policy that was active has no data for this log, any open incidents will close
637642
&quot;notificationRateLimit&quot;: { # Control over the rate of notifications sent to this alert policy&#x27;s notification channels. # Required for alert policies with a LogMatch condition.This limit is not implemented for alert policies that are not log-based.
638643
&quot;period&quot;: &quot;A String&quot;, # Not more than one notification per period.
639644
},
@@ -660,8 +665,8 @@ <h3>Method Details</h3>
660665
},
661666
},
662667
&quot;conditionMatchedLog&quot;: { # 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. # A condition that checks for log messages matching given constraints. If set, no other conditions can be present.
663-
&quot;filter&quot;: &quot;A String&quot;, # Required. A logs-based filter. See Advanced Logs Queries for how this filter should be constructed.
664-
&quot;labelExtractors&quot;: { # 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 valueExtractors for syntax and examples.
668+
&quot;filter&quot;: &quot;A String&quot;, # Required. A logs-based filter. See Advanced Logs Queries (https://cloud.google.com/logging/docs/view/advanced-queries) for how this filter should be constructed.
669+
&quot;labelExtractors&quot;: { # 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 valueExtractors (https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor) for syntax and examples.
665670
&quot;a_key&quot;: &quot;A String&quot;,
666671
},
667672
},
@@ -751,6 +756,7 @@ <h3>Method Details</h3>
751756

752757
{ # A description of the conditions under which some aspect of your system is considered to be &quot;unhealthy&quot; and the ways to notify people or services about this state. For an overview of alert policies, see Introduction to Alerting (https://cloud.google.com/monitoring/alerts/).
753758
&quot;alertStrategy&quot;: { # Control over how the notification channels in notification_channels are notified when this alert fires. # Control over how this alert policy&#x27;s notification channels are notified.
759+
&quot;autoClose&quot;: &quot;A String&quot;, # If an alert policy that was active has no data for this log, any open incidents will close
754760
&quot;notificationRateLimit&quot;: { # Control over the rate of notifications sent to this alert policy&#x27;s notification channels. # Required for alert policies with a LogMatch condition.This limit is not implemented for alert policies that are not log-based.
755761
&quot;period&quot;: &quot;A String&quot;, # Not more than one notification per period.
756762
},
@@ -777,8 +783,8 @@ <h3>Method Details</h3>
777783
},
778784
},
779785
&quot;conditionMatchedLog&quot;: { # 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. # A condition that checks for log messages matching given constraints. If set, no other conditions can be present.
780-
&quot;filter&quot;: &quot;A String&quot;, # Required. A logs-based filter. See Advanced Logs Queries for how this filter should be constructed.
781-
&quot;labelExtractors&quot;: { # 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 valueExtractors for syntax and examples.
786+
&quot;filter&quot;: &quot;A String&quot;, # Required. A logs-based filter. See Advanced Logs Queries (https://cloud.google.com/logging/docs/view/advanced-queries) for how this filter should be constructed.
787+
&quot;labelExtractors&quot;: { # 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 valueExtractors (https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor) for syntax and examples.
782788
&quot;a_key&quot;: &quot;A String&quot;,
783789
},
784790
},

0 commit comments

Comments
 (0)