|
| 1 | +# Copyright 2019 Google LLC |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +# NOTE: This file is auto generated by the elixir code generator program. |
| 16 | +# Do not edit this file manually. |
| 17 | + |
| 18 | +defmodule GoogleApi.AlloyDB.V1.Model.ObservabilityInstanceConfig do |
| 19 | + @moduledoc """ |
| 20 | + Observability Instance specific configuration. |
| 21 | +
|
| 22 | + ## Attributes |
| 23 | +
|
| 24 | + * `enabled` (*type:* `boolean()`, *default:* `nil`) - Observability feature status for an instance. This flag is turned "off" by default. |
| 25 | + * `maxQueryStringLength` (*type:* `integer()`, *default:* `nil`) - Query string length. The default value is 10k. |
| 26 | + * `preserveComments` (*type:* `boolean()`, *default:* `nil`) - Preserve comments in query string for an instance. This flag is turned "off" by default. |
| 27 | + * `queryPlansPerMinute` (*type:* `integer()`, *default:* `nil`) - Number of query execution plans captured by Insights per minute for all queries combined. The default value is 200. Any integer between 0 to 200 is considered valid. |
| 28 | + * `recordApplicationTags` (*type:* `boolean()`, *default:* `nil`) - Record application tags for an instance. This flag is turned "off" by default. |
| 29 | + * `trackActiveQueries` (*type:* `boolean()`, *default:* `nil`) - Track actively running queries on the instance. If not set, this flag is "off" by default. |
| 30 | + * `trackWaitEventTypes` (*type:* `boolean()`, *default:* `nil`) - Output only. Track wait event types during query execution for an instance. This flag is turned "on" by default but tracking is enabled only after observability enabled flag is also turned on. This is read-only flag and only modifiable by internal API. |
| 31 | + * `trackWaitEvents` (*type:* `boolean()`, *default:* `nil`) - Track wait events during query execution for an instance. This flag is turned "on" by default but tracking is enabled only after observability enabled flag is also turned on. |
| 32 | + """ |
| 33 | + |
| 34 | + use GoogleApi.Gax.ModelBase |
| 35 | + |
| 36 | + @type t :: %__MODULE__{ |
| 37 | + :enabled => boolean() | nil, |
| 38 | + :maxQueryStringLength => integer() | nil, |
| 39 | + :preserveComments => boolean() | nil, |
| 40 | + :queryPlansPerMinute => integer() | nil, |
| 41 | + :recordApplicationTags => boolean() | nil, |
| 42 | + :trackActiveQueries => boolean() | nil, |
| 43 | + :trackWaitEventTypes => boolean() | nil, |
| 44 | + :trackWaitEvents => boolean() | nil |
| 45 | + } |
| 46 | + |
| 47 | + field(:enabled) |
| 48 | + field(:maxQueryStringLength) |
| 49 | + field(:preserveComments) |
| 50 | + field(:queryPlansPerMinute) |
| 51 | + field(:recordApplicationTags) |
| 52 | + field(:trackActiveQueries) |
| 53 | + field(:trackWaitEventTypes) |
| 54 | + field(:trackWaitEvents) |
| 55 | +end |
| 56 | + |
| 57 | +defimpl Poison.Decoder, for: GoogleApi.AlloyDB.V1.Model.ObservabilityInstanceConfig do |
| 58 | + def decode(value, options) do |
| 59 | + GoogleApi.AlloyDB.V1.Model.ObservabilityInstanceConfig.decode(value, options) |
| 60 | + end |
| 61 | +end |
| 62 | + |
| 63 | +defimpl Poison.Encoder, for: GoogleApi.AlloyDB.V1.Model.ObservabilityInstanceConfig do |
| 64 | + def encode(value, options) do |
| 65 | + GoogleApi.Gax.ModelBase.encode(value, options) |
| 66 | + end |
| 67 | +end |
0 commit comments