From 6553a347933450be8fbc3a258efb9fc4135dba58 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 21 Nov 2024 13:15:53 +0000 Subject: [PATCH] feat: Automated regeneration of Monitoring client --- clients/monitoring/README.md | 2 +- .../monitoring/lib/google_api/monitoring/v3/api/projects.ex | 6 +++--- clients/monitoring/lib/google_api/monitoring/v3/metadata.ex | 2 +- .../v3/model/prometheus_query_language_condition.ex | 3 +++ clients/monitoring/mix.exs | 2 +- 5 files changed, 9 insertions(+), 6 deletions(-) diff --git a/clients/monitoring/README.md b/clients/monitoring/README.md index 9160f2afbd..08945349ec 100644 --- a/clients/monitoring/README.md +++ b/clients/monitoring/README.md @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding ```elixir def deps do - [{:google_api_monitoring, "~> 0.61"}] + [{:google_api_monitoring, "~> 0.62"}] end ``` diff --git a/clients/monitoring/lib/google_api/monitoring/v3/api/projects.ex b/clients/monitoring/lib/google_api/monitoring/v3/api/projects.ex index 407903eab4..da27d7c6c0 100644 --- a/clients/monitoring/lib/google_api/monitoring/v3/api/projects.ex +++ b/clients/monitoring/lib/google_api/monitoring/v3/api/projects.ex @@ -1083,9 +1083,9 @@ defmodule GoogleApi.Monitoring.V3.Api.Projects do * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). - * `:filter` (*type:* `String.t`) - If this field is empty, all custom and system-defined metric descriptors are returned. Otherwise, the filter (https://cloud.google.com/monitoring/api/v3/filters) specifies which metric descriptors are to be returned. For example, the following filter matches all custom metrics (https://cloud.google.com/monitoring/custom-metrics): metric.type = starts_with("custom.googleapis.com/") - * `:pageSize` (*type:* `integer()`) - A positive number that is the maximum number of results to return. The default and maximum value is 10,000. If a page_size <= 0 or > 10,000 is submitted, will instead return a maximum of 10,000 results. - * `:pageToken` (*type:* `String.t`) - If this field is not empty then it must contain the nextPageToken value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call. + * `:filter` (*type:* `String.t`) - Optional. If this field is empty, all custom and system-defined metric descriptors are returned. Otherwise, the filter (https://cloud.google.com/monitoring/api/v3/filters) specifies which metric descriptors are to be returned. For example, the following filter matches all custom metrics (https://cloud.google.com/monitoring/custom-metrics): metric.type = starts_with("custom.googleapis.com/") + * `:pageSize` (*type:* `integer()`) - Optional. A positive number that is the maximum number of results to return. The default and maximum value is 10,000. If a page_size <= 0 or > 10,000 is submitted, will instead return a maximum of 10,000 results. + * `:pageToken` (*type:* `String.t`) - Optional. If this field is not empty then it must contain the nextPageToken value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call. * `opts` (*type:* `keyword()`) - Call options ## Returns diff --git a/clients/monitoring/lib/google_api/monitoring/v3/metadata.ex b/clients/monitoring/lib/google_api/monitoring/v3/metadata.ex index 28a2436a09..29d4ae6a77 100644 --- a/clients/monitoring/lib/google_api/monitoring/v3/metadata.ex +++ b/clients/monitoring/lib/google_api/monitoring/v3/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.Monitoring.V3 do API client metadata for GoogleApi.Monitoring.V3. """ - @discovery_revision "20241017" + @discovery_revision "20241114" def discovery_revision(), do: @discovery_revision end diff --git a/clients/monitoring/lib/google_api/monitoring/v3/model/prometheus_query_language_condition.ex b/clients/monitoring/lib/google_api/monitoring/v3/model/prometheus_query_language_condition.ex index 3a89c6c699..fd4b06e6e3 100644 --- a/clients/monitoring/lib/google_api/monitoring/v3/model/prometheus_query_language_condition.ex +++ b/clients/monitoring/lib/google_api/monitoring/v3/model/prometheus_query_language_condition.ex @@ -22,6 +22,7 @@ defmodule GoogleApi.Monitoring.V3.Model.PrometheusQueryLanguageCondition do ## Attributes * `alertRule` (*type:* `String.t`, *default:* `nil`) - Optional. The alerting rule name of this alert in the corresponding Prometheus configuration file.Some external tools may require this field to be populated correctly in order to refer to the original Prometheus configuration file. The rule group name and the alert name are necessary to update the relevant AlertPolicies in case the definition of the rule group changes in the future.This field is optional. If this field is not empty, then it must be a valid Prometheus label name (https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels). This field may not exceed 2048 Unicode characters in length. + * `disableMetricValidation` (*type:* `boolean()`, *default:* `nil`) - Optional. Whether to disable metric existence validation for this condition.This allows alerting policies to be defined on metrics that do not yet exist, improving advanced customer workflows such as configuring alerting policies using Terraform.Users with the monitoring.alertPolicyViewer role are able to see the name of the non-existent metric in the alerting policy condition. * `duration` (*type:* `String.t`, *default:* `nil`) - Optional. Alerts are considered firing once their PromQL expression was evaluated to be "true" for this long. Alerts whose PromQL expression was not evaluated to be "true" for long enough are considered pending. Must be a non-negative duration or missing. This field is optional. Its default value is zero. * `evaluationInterval` (*type:* `String.t`, *default:* `nil`) - Optional. How often this rule should be evaluated. Must be a positive multiple of 30 seconds or missing. This field is optional. Its default value is 30 seconds. If this PrometheusQueryLanguageCondition was generated from a Prometheus alerting rule, then this value should be taken from the enclosing rule group. * `labels` (*type:* `map()`, *default:* `nil`) - Optional. Labels to add to or overwrite in the PromQL query result. Label names must be valid (https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels). Label values can be templatized by using variables (https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars). The only available variable names are the names of the labels in the PromQL result, including "__name__" and "value". "labels" may be empty. @@ -33,6 +34,7 @@ defmodule GoogleApi.Monitoring.V3.Model.PrometheusQueryLanguageCondition do @type t :: %__MODULE__{ :alertRule => String.t() | nil, + :disableMetricValidation => boolean() | nil, :duration => String.t() | nil, :evaluationInterval => String.t() | nil, :labels => map() | nil, @@ -41,6 +43,7 @@ defmodule GoogleApi.Monitoring.V3.Model.PrometheusQueryLanguageCondition do } field(:alertRule) + field(:disableMetricValidation) field(:duration) field(:evaluationInterval) field(:labels, type: :map) diff --git a/clients/monitoring/mix.exs b/clients/monitoring/mix.exs index 3f4e095b70..db059931e9 100644 --- a/clients/monitoring/mix.exs +++ b/clients/monitoring/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.Monitoring.Mixfile do use Mix.Project - @version "0.61.1" + @version "0.62.0" def project() do [