Skip to content

Commit 1234eeb

Browse files
feat: Automated regeneration of Monitoring client (googleapis#12318)
Auto-created at 2024-10-12 13:22:09 +0000 using the toys pull request generator.
1 parent e275c9c commit 1234eeb

File tree

14 files changed

+26
-23
lines changed

14 files changed

+26
-23
lines changed

clients/monitoring/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_monitoring, "~> 0.60"}]
14+
[{:google_api_monitoring, "~> 0.61"}]
1515
end
1616
```
1717

clients/monitoring/lib/google_api/monitoring/v3/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.Monitoring.V3 do
2020
API client metadata for GoogleApi.Monitoring.V3.
2121
"""
2222

23-
@discovery_revision "20240929"
23+
@discovery_revision "20241003"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/monitoring/lib/google_api/monitoring/v3/model/alert_policy.ex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717

1818
defmodule GoogleApi.Monitoring.V3.Model.AlertPolicy do
1919
@moduledoc """
20-
A description of the conditions under which some aspect of your system is considered to be "unhealthy" 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/).
20+
A description of the conditions under which some aspect of your system is considered to be "unhealthy" and the ways to notify people or services about this state. For an overview of alerting policies, see Introduction to Alerting (https://cloud.google.com/monitoring/alerts/).
2121
2222
## Attributes
2323
24-
* `alertStrategy` (*type:* `GoogleApi.Monitoring.V3.Model.AlertStrategy.t`, *default:* `nil`) - Control over how this alert policy's notification channels are notified.
24+
* `alertStrategy` (*type:* `GoogleApi.Monitoring.V3.Model.AlertStrategy.t`, *default:* `nil`) - Control over how this alerting policy's notification channels are notified.
2525
* `combiner` (*type:* `String.t`, *default:* `nil`) - How to combine the results of multiple conditions to determine if an incident should be opened. If condition_time_series_query_language is present, this must be COMBINE_UNSPECIFIED.
2626
* `conditions` (*type:* `list(GoogleApi.Monitoring.V3.Model.Condition.t)`, *default:* `nil`) - A list of conditions for the policy. The conditions are combined by AND or OR according to the combiner field. If the combined conditions evaluate to true, then an incident is created. A policy can have from one to six conditions. If condition_time_series_query_language is present, it must be the only condition. If condition_monitoring_query_language is present, it must be the only condition.
2727
* `creationRecord` (*type:* `GoogleApi.Monitoring.V3.Model.MutationRecord.t`, *default:* `nil`) - A read-only record of the creation of the alerting policy. If provided in a call to create or update, this field will be ignored.
@@ -31,9 +31,9 @@ defmodule GoogleApi.Monitoring.V3.Model.AlertPolicy do
3131
* `mutationRecord` (*type:* `GoogleApi.Monitoring.V3.Model.MutationRecord.t`, *default:* `nil`) - 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.
3232
* `name` (*type:* `String.t`, *default:* `nil`) - Identifier. Required if the policy exists. The resource name for this policy. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID] [ALERT_POLICY_ID] is assigned by Cloud Monitoring when the policy is created. When calling the alertPolicies.create method, do not include the name field in the alerting policy passed as part of the request.
3333
* `notificationChannels` (*type:* `list(String.t)`, *default:* `nil`) - Identifies the notification channels to which notifications should be sent when incidents are opened or closed or when new violations occur on an already opened incident. Each element of this array corresponds to the name field in each of the NotificationChannel objects that are returned from the ListNotificationChannels method. The format of the entries in this field is: projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
34-
* `severity` (*type:* `String.t`, *default:* `nil`) - 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.
34+
* `severity` (*type:* `String.t`, *default:* `nil`) - Optional. The severity of an alerting policy indicates how important incidents generated by that policy are. The severity level will be displayed on the Incident detail page and in notifications.
3535
* `userLabels` (*type:* `map()`, *default:* `nil`) - User-supplied key/value data to be used for organizing and identifying the AlertPolicy objects.The field can contain up to 64 entries. Each key and value is limited to 63 Unicode characters or 128 bytes, whichever is smaller. Labels and values can contain only lowercase letters, numerals, underscores, and dashes. Keys must begin with a letter.Note that Prometheus {alert name} is a valid Prometheus label names (https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels), whereas Prometheus {rule group} is an unrestricted UTF-8 string. This means that they cannot be stored as-is in user labels, because they may contain characters that are not allowed in user-label values.
36-
* `validity` (*type:* `GoogleApi.Monitoring.V3.Model.Status.t`, *default:* `nil`) - Read-only description of how the alert policy is invalid. This field is only set when the alert policy is invalid. An invalid alert policy will not generate incidents.
36+
* `validity` (*type:* `GoogleApi.Monitoring.V3.Model.Status.t`, *default:* `nil`) - Read-only description of how the alerting policy is invalid. This field is only set when the alerting policy is invalid. An invalid alerting policy will not generate incidents.
3737
"""
3838

3939
use GoogleApi.Gax.ModelBase

clients/monitoring/lib/google_api/monitoring/v3/model/alert_strategy.ex

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ defmodule GoogleApi.Monitoring.V3.Model.AlertStrategy do
2121
2222
## Attributes
2323
24-
* `autoClose` (*type:* `String.t`, *default:* `nil`) - If an alert policy that was active has no data for this long, any open incidents will close
24+
* `autoClose` (*type:* `String.t`, *default:* `nil`) - If an alerting policy that was active has no data for this long, any open incidents will close
2525
* `notificationChannelStrategy` (*type:* `list(GoogleApi.Monitoring.V3.Model.NotificationChannelStrategy.t)`, *default:* `nil`) - Control how notifications will be sent out, on a per-channel basis.
26-
* `notificationRateLimit` (*type:* `GoogleApi.Monitoring.V3.Model.NotificationRateLimit.t`, *default:* `nil`) - Required for log-based alert policies, i.e. policies with a LogMatch condition.This limit is not implemented for alert policies that do not have a LogMatch condition.
26+
* `notificationPrompts` (*type:* `list(String.t)`, *default:* `nil`) - For log-based alert policies, the notification prompts is always OPENED. For non log-based alert policies, the notification prompts can be OPENED or OPENED, CLOSED.
27+
* `notificationRateLimit` (*type:* `GoogleApi.Monitoring.V3.Model.NotificationRateLimit.t`, *default:* `nil`) - Required for log-based alerting policies, i.e. policies with a LogMatch condition.This limit is not implemented for alerting policies that do not have a LogMatch condition.
2728
"""
2829

2930
use GoogleApi.Gax.ModelBase
@@ -32,6 +33,7 @@ defmodule GoogleApi.Monitoring.V3.Model.AlertStrategy do
3233
:autoClose => String.t() | nil,
3334
:notificationChannelStrategy =>
3435
list(GoogleApi.Monitoring.V3.Model.NotificationChannelStrategy.t()) | nil,
36+
:notificationPrompts => list(String.t()) | nil,
3537
:notificationRateLimit => GoogleApi.Monitoring.V3.Model.NotificationRateLimit.t() | nil
3638
}
3739

@@ -42,6 +44,7 @@ defmodule GoogleApi.Monitoring.V3.Model.AlertStrategy do
4244
type: :list
4345
)
4446

47+
field(:notificationPrompts, type: :list)
4548
field(:notificationRateLimit, as: GoogleApi.Monitoring.V3.Model.NotificationRateLimit)
4649
end
4750

clients/monitoring/lib/google_api/monitoring/v3/model/condition.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ defmodule GoogleApi.Monitoring.V3.Model.Condition do
2525
* `conditionMatchedLog` (*type:* `GoogleApi.Monitoring.V3.Model.LogMatch.t`, *default:* `nil`) - A condition that checks for log messages matching given constraints. If set, no other conditions can be present.
2626
* `conditionMonitoringQueryLanguage` (*type:* `GoogleApi.Monitoring.V3.Model.MonitoringQueryLanguageCondition.t`, *default:* `nil`) - A condition that uses the Monitoring Query Language to define alerts.
2727
* `conditionPrometheusQueryLanguage` (*type:* `GoogleApi.Monitoring.V3.Model.PrometheusQueryLanguageCondition.t`, *default:* `nil`) - A condition that uses the Prometheus query language to define alerts.
28-
* `conditionSql` (*type:* `GoogleApi.Monitoring.V3.Model.SqlCondition.t`, *default:* `nil`) - A condition that uses SQL to define alerts in Logs Analytics.
28+
* `conditionSql` (*type:* `GoogleApi.Monitoring.V3.Model.SqlCondition.t`, *default:* `nil`) - A condition that periodically evaluates a SQL query result.
2929
* `conditionThreshold` (*type:* `GoogleApi.Monitoring.V3.Model.MetricThreshold.t`, *default:* `nil`) - A condition that compares a time series against a threshold.
3030
* `displayName` (*type:* `String.t`, *default:* `nil`) - A short name or phrase used to identify the condition in dashboards, notifications, and incidents. To avoid confusion, don't use the same display name for multiple conditions in the same policy.
3131
* `name` (*type:* `String.t`, *default:* `nil`) - Required if the condition exists. The unique resource name for this condition. Its format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID] [CONDITION_ID] is assigned by Cloud Monitoring when the condition is created as part of a new or updated alerting policy.When calling the alertPolicies.create method, do not include the name field in the conditions of the requested alerting policy. Cloud Monitoring creates the condition identifiers and includes them in the new policy.When calling the alertPolicies.update method to update a policy, including a condition name causes the existing condition to be updated. Conditions without names are added to the updated policy. Existing conditions are deleted if they are not updated.Best practice is to preserve [CONDITION_ID] if you make only small changes, such as those to condition thresholds, durations, or trigger values. Otherwise, treat the change as a new condition and let the existing condition be deleted.

clients/monitoring/lib/google_api/monitoring/v3/model/daily.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ defmodule GoogleApi.Monitoring.V3.Model.Daily do
2222
## Attributes
2323
2424
* `executionTime` (*type:* `GoogleApi.Monitoring.V3.Model.TimeOfDay.t`, *default:* `nil`) - Optional. The time of day (in UTC) at which the query should run. If left unspecified, the server picks an arbitrary time of day and runs the query at the same time each day.
25-
* `periodicity` (*type:* `integer()`, *default:* `nil`) - Required. LINT.IfChange The number of days between runs. Must be greater than or equal to 1 day and less than or equal to 31 days. LINT.ThenChange(//depot/google3/cloud/monitoring/api/alerts/policy_validation.cc)
25+
* `periodicity` (*type:* `integer()`, *default:* `nil`) - Required. The number of days between runs. Must be greater than or equal to 1 day and less than or equal to 31 days.
2626
"""
2727

2828
use GoogleApi.Gax.ModelBase

clients/monitoring/lib/google_api/monitoring/v3/model/hourly.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ defmodule GoogleApi.Monitoring.V3.Model.Hourly do
2121
2222
## Attributes
2323
24-
* `minuteOffset` (*type:* `integer()`, *default:* `nil`) - Optional. LINT.IfChange The number of minutes after the hour (in UTC) to run the query. Must be between 0 and 59 inclusive. If left unspecified, then an arbitrary offset is used. LINT.ThenChange(//depot/google3/cloud/monitoring/api/alerts/policy_validation.cc)
25-
* `periodicity` (*type:* `integer()`, *default:* `nil`) - Required. LINT.IfChange The number of hours between runs. Must be greater than or equal to 1 hour and less than or equal to 48 hours. LINT.ThenChange(//depot/google3/cloud/monitoring/api/alerts/policy_validation.cc)
24+
* `minuteOffset` (*type:* `integer()`, *default:* `nil`) - Optional. The number of minutes after the hour (in UTC) to run the query. Must be greater than or equal to 0 minutes and less than or equal to 59 minutes. If left unspecified, then an arbitrary offset is used.
25+
* `periodicity` (*type:* `integer()`, *default:* `nil`) - Required. The number of hours between runs. Must be greater than or equal to 1 hour and less than or equal to 48 hours.
2626
"""
2727

2828
use GoogleApi.Gax.ModelBase

clients/monitoring/lib/google_api/monitoring/v3/model/minutes.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defmodule GoogleApi.Monitoring.V3.Model.Minutes do
2121
2222
## Attributes
2323
24-
* `periodicity` (*type:* `integer()`, *default:* `nil`) - Required. LINT.IfChange Number of minutes between runs. The interval must be between 5 minutes and 1440 minutes. LINT.ThenChange(//depot/google3/cloud/monitoring/api/alerts/policy_validation.cc)
24+
* `periodicity` (*type:* `integer()`, *default:* `nil`) - Required. Number of minutes between runs. The interval must be greater than or equal to 5 minutes and less than or equal to 1440 minutes.
2525
"""
2626

2727
use GoogleApi.Gax.ModelBase

clients/monitoring/lib/google_api/monitoring/v3/model/monitoring_query_language_condition.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
defmodule GoogleApi.Monitoring.V3.Model.MonitoringQueryLanguageCondition do
1919
@moduledoc """
20-
A condition type that allows alert policies to be defined using Monitoring Query Language (https://cloud.google.com/monitoring/mql).
20+
A condition type that allows alerting policies to be defined using Monitoring Query Language (https://cloud.google.com/monitoring/mql).
2121
2222
## Attributes
2323

clients/monitoring/lib/google_api/monitoring/v3/model/notification_rate_limit.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
defmodule GoogleApi.Monitoring.V3.Model.NotificationRateLimit do
1919
@moduledoc """
20-
Control over the rate of notifications sent to this alert policy's notification channels.
20+
Control over the rate of notifications sent to this alerting policy's notification channels.
2121
2222
## Attributes
2323

0 commit comments

Comments
 (0)