google-cloud-database_center-v1beta 0.6.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/database_center/v1beta/database_center/client.rb +146 -0
- data/lib/google/cloud/database_center/v1beta/database_center/rest/client.rb +139 -0
- data/lib/google/cloud/database_center/v1beta/database_center/rest/service_stub.rb +78 -0
- data/lib/google/cloud/database_center/v1beta/version.rb +1 -1
- data/lib/google/cloud/databasecenter/v1beta/service_pb.rb +10 -1
- data/lib/google/cloud/databasecenter/v1beta/service_services_pb.rb +2 -0
- data/proto_docs/google/cloud/databasecenter/v1beta/service.rb +178 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 903f245eea3dc2fec2d02caf4c3af59c781284d728c06d049a6ad6ef067392c4
|
|
4
|
+
data.tar.gz: 112a4ac5018ef852a19443c7772e89a71ed7fb231357a867015e49cb0474f130
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 877706f9e0cfb6054be04acb087f5bcfc85dcb2393902b081a067872983ac195223f1c077a6a8043592b9038d5c8a9ec7137cbe56a285614828bf22e43a912d2
|
|
7
|
+
data.tar.gz: 3121a435fe4047f05732ad9074c4141fa8b1db7c2f363f3fb4340950ac57ca6b5125cc9e02a7d6a89650580cfa89d8ebc1fcebe6fa28d324f6a999ddeaa20beb
|
data/README.md
CHANGED
|
@@ -86,7 +86,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
|
|
|
86
86
|
|
|
87
87
|
## Supported Ruby Versions
|
|
88
88
|
|
|
89
|
-
This library is supported on Ruby 3.
|
|
89
|
+
This library is supported on Ruby 3.2+.
|
|
90
90
|
|
|
91
91
|
Google provides official support for Ruby versions that are actively supported
|
|
92
92
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
|
@@ -731,6 +731,143 @@ module Google
|
|
|
731
731
|
raise ::Google::Cloud::Error.from_error(e)
|
|
732
732
|
end
|
|
733
733
|
|
|
734
|
+
##
|
|
735
|
+
# AggregateQueryStats provides database resource query execution statistics.
|
|
736
|
+
#
|
|
737
|
+
# @overload aggregate_query_stats(request, options = nil)
|
|
738
|
+
# Pass arguments to `aggregate_query_stats` via a request object, either of type
|
|
739
|
+
# {::Google::Cloud::DatabaseCenter::V1beta::AggregateQueryStatsRequest} or an equivalent Hash.
|
|
740
|
+
#
|
|
741
|
+
# @param request [::Google::Cloud::DatabaseCenter::V1beta::AggregateQueryStatsRequest, ::Hash]
|
|
742
|
+
# A request object representing the call parameters. Required. To specify no
|
|
743
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
744
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
745
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
746
|
+
#
|
|
747
|
+
# @overload aggregate_query_stats(parent: nil, order_by: nil, filter: nil, page_size: nil, page_token: nil)
|
|
748
|
+
# Pass arguments to `aggregate_query_stats` via keyword arguments. Note that at
|
|
749
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
750
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
751
|
+
#
|
|
752
|
+
# @param parent [::String]
|
|
753
|
+
# Required. Parent can be a project, a folder, or an organization. The search
|
|
754
|
+
# is limited to the resources within the `parent`.
|
|
755
|
+
#
|
|
756
|
+
# The allowed values are:
|
|
757
|
+
#
|
|
758
|
+
# * projects/\\{PROJECT_ID} (e.g., "projects/foo-bar")
|
|
759
|
+
# * projects/\\{PROJECT_NUMBER} (e.g., "projects/12345678")
|
|
760
|
+
# * folders/\\{FOLDER_NUMBER} (e.g., "folders/1234567")
|
|
761
|
+
# * organizations/\\{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
|
|
762
|
+
# @param order_by [::String]
|
|
763
|
+
# Optional. The expression to order the results by.
|
|
764
|
+
# Example: `order_by="execution_count"`
|
|
765
|
+
# Example: `order_by="execution_count desc"`
|
|
766
|
+
# Supported order by fields are `execution_count`, `rows_processed`,
|
|
767
|
+
# `total_cpu_time`, `avg_cpu_time`.
|
|
768
|
+
# @param filter [::String]
|
|
769
|
+
# Optional. The expression to filter resources.
|
|
770
|
+
#
|
|
771
|
+
# Supported fields are: `full_resource_name`, `resource_type`, `container`,
|
|
772
|
+
# `product.type`, `product.engine`, `product.version`, `location`,
|
|
773
|
+
# `labels`, `issues`, fields of availability_info,
|
|
774
|
+
# data_protection_info,'resource_name', etc.
|
|
775
|
+
#
|
|
776
|
+
# The expression is a list of zero or more restrictions combined via logical
|
|
777
|
+
# operators `AND` and `OR`. When `AND` and `OR` are both used in the
|
|
778
|
+
# expression, parentheses must be appropriately used to group the
|
|
779
|
+
# combinations.
|
|
780
|
+
#
|
|
781
|
+
# Example: `location="us-east1"`
|
|
782
|
+
# Example: `container="projects/123" OR container="projects/456"`
|
|
783
|
+
# Example: `(container="projects/123" OR
|
|
784
|
+
# container="projects/456") AND location="us-east1"`
|
|
785
|
+
# Additional specific fields for query stats are: `metric_window`,
|
|
786
|
+
# `query_hash`, `normalized_query`.
|
|
787
|
+
# Example: `metric_window="LAST_ONE_DAY"`
|
|
788
|
+
# (Possible values for `metric_window` are: `LAST_ONE_DAY`,
|
|
789
|
+
# `LAST_ONE_WEEK`, `LAST_TWO_WEEKS`)
|
|
790
|
+
# Example: `query_hash="12345678"`
|
|
791
|
+
# Example: `normalized_query="SELECT * FROM table"`
|
|
792
|
+
# @param page_size [::Integer]
|
|
793
|
+
# Optional. If unspecified, at most 100 query stats will be returned.
|
|
794
|
+
# The maximum value is 1000; values above 1000 will be coerced to 1000.
|
|
795
|
+
# @param page_token [::String]
|
|
796
|
+
# Optional. A page token, received from a previous
|
|
797
|
+
# `AggregateQueryStatsRequest` call. Provide this to retrieve the subsequent
|
|
798
|
+
# page. All parameters except page_token should match the parameters in the
|
|
799
|
+
# call that provided the page token.
|
|
800
|
+
#
|
|
801
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
802
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::QueryStatsInfo>]
|
|
803
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
804
|
+
#
|
|
805
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::QueryStatsInfo>]
|
|
806
|
+
#
|
|
807
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
808
|
+
#
|
|
809
|
+
# @example Basic example
|
|
810
|
+
# require "google/cloud/database_center/v1beta"
|
|
811
|
+
#
|
|
812
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
813
|
+
# client = Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Client.new
|
|
814
|
+
#
|
|
815
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
816
|
+
# request = Google::Cloud::DatabaseCenter::V1beta::AggregateQueryStatsRequest.new
|
|
817
|
+
#
|
|
818
|
+
# # Call the aggregate_query_stats method.
|
|
819
|
+
# result = client.aggregate_query_stats request
|
|
820
|
+
#
|
|
821
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
822
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
823
|
+
# result.each do |item|
|
|
824
|
+
# # Each element is of type ::Google::Cloud::DatabaseCenter::V1beta::QueryStatsInfo.
|
|
825
|
+
# p item
|
|
826
|
+
# end
|
|
827
|
+
#
|
|
828
|
+
def aggregate_query_stats request, options = nil
|
|
829
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
830
|
+
|
|
831
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DatabaseCenter::V1beta::AggregateQueryStatsRequest
|
|
832
|
+
|
|
833
|
+
# Converts hash and nil to an options object
|
|
834
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
835
|
+
|
|
836
|
+
# Customize the options with defaults
|
|
837
|
+
metadata = @config.rpcs.aggregate_query_stats.metadata.to_h
|
|
838
|
+
|
|
839
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
840
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
841
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
842
|
+
gapic_version: ::Google::Cloud::DatabaseCenter::V1beta::VERSION
|
|
843
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
844
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
845
|
+
|
|
846
|
+
header_params = {}
|
|
847
|
+
if request.parent
|
|
848
|
+
header_params["parent"] = request.parent
|
|
849
|
+
end
|
|
850
|
+
|
|
851
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
852
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
853
|
+
|
|
854
|
+
options.apply_defaults timeout: @config.rpcs.aggregate_query_stats.timeout,
|
|
855
|
+
metadata: metadata,
|
|
856
|
+
retry_policy: @config.rpcs.aggregate_query_stats.retry_policy
|
|
857
|
+
|
|
858
|
+
options.apply_defaults timeout: @config.timeout,
|
|
859
|
+
metadata: @config.metadata,
|
|
860
|
+
retry_policy: @config.retry_policy
|
|
861
|
+
|
|
862
|
+
@database_center_stub.call_rpc :aggregate_query_stats, request, options: options do |response, operation|
|
|
863
|
+
response = ::Gapic::PagedEnumerable.new @database_center_stub, :aggregate_query_stats, request, response, operation, options
|
|
864
|
+
yield response, operation if block_given?
|
|
865
|
+
throw :response, response
|
|
866
|
+
end
|
|
867
|
+
rescue ::GRPC::BadStatus => e
|
|
868
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
869
|
+
end
|
|
870
|
+
|
|
734
871
|
##
|
|
735
872
|
# QueryIssues provides a list of issues and recommendations
|
|
736
873
|
# that a user has access to and that are within the requested scope.
|
|
@@ -949,6 +1086,7 @@ module Google
|
|
|
949
1086
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
950
1087
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
951
1088
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
1089
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
952
1090
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
953
1091
|
# trigger a retry.
|
|
954
1092
|
# @return [::Hash]
|
|
@@ -1032,6 +1170,7 @@ module Google
|
|
|
1032
1170
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
1033
1171
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
1034
1172
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
1173
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
1035
1174
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
1036
1175
|
# trigger a retry.
|
|
1037
1176
|
#
|
|
@@ -1057,6 +1196,11 @@ module Google
|
|
|
1057
1196
|
#
|
|
1058
1197
|
attr_reader :aggregate_issue_stats
|
|
1059
1198
|
##
|
|
1199
|
+
# RPC-specific configuration for `aggregate_query_stats`
|
|
1200
|
+
# @return [::Gapic::Config::Method]
|
|
1201
|
+
#
|
|
1202
|
+
attr_reader :aggregate_query_stats
|
|
1203
|
+
##
|
|
1060
1204
|
# RPC-specific configuration for `query_issues`
|
|
1061
1205
|
# @return [::Gapic::Config::Method]
|
|
1062
1206
|
#
|
|
@@ -1072,6 +1216,8 @@ module Google
|
|
|
1072
1216
|
@query_database_resource_groups = ::Gapic::Config::Method.new query_database_resource_groups_config
|
|
1073
1217
|
aggregate_issue_stats_config = parent_rpcs.aggregate_issue_stats if parent_rpcs.respond_to? :aggregate_issue_stats
|
|
1074
1218
|
@aggregate_issue_stats = ::Gapic::Config::Method.new aggregate_issue_stats_config
|
|
1219
|
+
aggregate_query_stats_config = parent_rpcs.aggregate_query_stats if parent_rpcs.respond_to? :aggregate_query_stats
|
|
1220
|
+
@aggregate_query_stats = ::Gapic::Config::Method.new aggregate_query_stats_config
|
|
1075
1221
|
query_issues_config = parent_rpcs.query_issues if parent_rpcs.respond_to? :query_issues
|
|
1076
1222
|
@query_issues = ::Gapic::Config::Method.new query_issues_config
|
|
1077
1223
|
|
|
@@ -728,6 +728,136 @@ module Google
|
|
|
728
728
|
raise ::Google::Cloud::Error.from_error(e)
|
|
729
729
|
end
|
|
730
730
|
|
|
731
|
+
##
|
|
732
|
+
# AggregateQueryStats provides database resource query execution statistics.
|
|
733
|
+
#
|
|
734
|
+
# @overload aggregate_query_stats(request, options = nil)
|
|
735
|
+
# Pass arguments to `aggregate_query_stats` via a request object, either of type
|
|
736
|
+
# {::Google::Cloud::DatabaseCenter::V1beta::AggregateQueryStatsRequest} or an equivalent Hash.
|
|
737
|
+
#
|
|
738
|
+
# @param request [::Google::Cloud::DatabaseCenter::V1beta::AggregateQueryStatsRequest, ::Hash]
|
|
739
|
+
# A request object representing the call parameters. Required. To specify no
|
|
740
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
741
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
742
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
743
|
+
#
|
|
744
|
+
# @overload aggregate_query_stats(parent: nil, order_by: nil, filter: nil, page_size: nil, page_token: nil)
|
|
745
|
+
# Pass arguments to `aggregate_query_stats` via keyword arguments. Note that at
|
|
746
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
747
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
748
|
+
#
|
|
749
|
+
# @param parent [::String]
|
|
750
|
+
# Required. Parent can be a project, a folder, or an organization. The search
|
|
751
|
+
# is limited to the resources within the `parent`.
|
|
752
|
+
#
|
|
753
|
+
# The allowed values are:
|
|
754
|
+
#
|
|
755
|
+
# * projects/\\{PROJECT_ID} (e.g., "projects/foo-bar")
|
|
756
|
+
# * projects/\\{PROJECT_NUMBER} (e.g., "projects/12345678")
|
|
757
|
+
# * folders/\\{FOLDER_NUMBER} (e.g., "folders/1234567")
|
|
758
|
+
# * organizations/\\{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
|
|
759
|
+
# @param order_by [::String]
|
|
760
|
+
# Optional. The expression to order the results by.
|
|
761
|
+
# Example: `order_by="execution_count"`
|
|
762
|
+
# Example: `order_by="execution_count desc"`
|
|
763
|
+
# Supported order by fields are `execution_count`, `rows_processed`,
|
|
764
|
+
# `total_cpu_time`, `avg_cpu_time`.
|
|
765
|
+
# @param filter [::String]
|
|
766
|
+
# Optional. The expression to filter resources.
|
|
767
|
+
#
|
|
768
|
+
# Supported fields are: `full_resource_name`, `resource_type`, `container`,
|
|
769
|
+
# `product.type`, `product.engine`, `product.version`, `location`,
|
|
770
|
+
# `labels`, `issues`, fields of availability_info,
|
|
771
|
+
# data_protection_info,'resource_name', etc.
|
|
772
|
+
#
|
|
773
|
+
# The expression is a list of zero or more restrictions combined via logical
|
|
774
|
+
# operators `AND` and `OR`. When `AND` and `OR` are both used in the
|
|
775
|
+
# expression, parentheses must be appropriately used to group the
|
|
776
|
+
# combinations.
|
|
777
|
+
#
|
|
778
|
+
# Example: `location="us-east1"`
|
|
779
|
+
# Example: `container="projects/123" OR container="projects/456"`
|
|
780
|
+
# Example: `(container="projects/123" OR
|
|
781
|
+
# container="projects/456") AND location="us-east1"`
|
|
782
|
+
# Additional specific fields for query stats are: `metric_window`,
|
|
783
|
+
# `query_hash`, `normalized_query`.
|
|
784
|
+
# Example: `metric_window="LAST_ONE_DAY"`
|
|
785
|
+
# (Possible values for `metric_window` are: `LAST_ONE_DAY`,
|
|
786
|
+
# `LAST_ONE_WEEK`, `LAST_TWO_WEEKS`)
|
|
787
|
+
# Example: `query_hash="12345678"`
|
|
788
|
+
# Example: `normalized_query="SELECT * FROM table"`
|
|
789
|
+
# @param page_size [::Integer]
|
|
790
|
+
# Optional. If unspecified, at most 100 query stats will be returned.
|
|
791
|
+
# The maximum value is 1000; values above 1000 will be coerced to 1000.
|
|
792
|
+
# @param page_token [::String]
|
|
793
|
+
# Optional. A page token, received from a previous
|
|
794
|
+
# `AggregateQueryStatsRequest` call. Provide this to retrieve the subsequent
|
|
795
|
+
# page. All parameters except page_token should match the parameters in the
|
|
796
|
+
# call that provided the page token.
|
|
797
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
798
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::QueryStatsInfo>]
|
|
799
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
800
|
+
#
|
|
801
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DatabaseCenter::V1beta::QueryStatsInfo>]
|
|
802
|
+
#
|
|
803
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
804
|
+
#
|
|
805
|
+
# @example Basic example
|
|
806
|
+
# require "google/cloud/database_center/v1beta"
|
|
807
|
+
#
|
|
808
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
809
|
+
# client = Google::Cloud::DatabaseCenter::V1beta::DatabaseCenter::Rest::Client.new
|
|
810
|
+
#
|
|
811
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
812
|
+
# request = Google::Cloud::DatabaseCenter::V1beta::AggregateQueryStatsRequest.new
|
|
813
|
+
#
|
|
814
|
+
# # Call the aggregate_query_stats method.
|
|
815
|
+
# result = client.aggregate_query_stats request
|
|
816
|
+
#
|
|
817
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
818
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
819
|
+
# result.each do |item|
|
|
820
|
+
# # Each element is of type ::Google::Cloud::DatabaseCenter::V1beta::QueryStatsInfo.
|
|
821
|
+
# p item
|
|
822
|
+
# end
|
|
823
|
+
#
|
|
824
|
+
def aggregate_query_stats request, options = nil
|
|
825
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
826
|
+
|
|
827
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DatabaseCenter::V1beta::AggregateQueryStatsRequest
|
|
828
|
+
|
|
829
|
+
# Converts hash and nil to an options object
|
|
830
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
831
|
+
|
|
832
|
+
# Customize the options with defaults
|
|
833
|
+
call_metadata = @config.rpcs.aggregate_query_stats.metadata.to_h
|
|
834
|
+
|
|
835
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
836
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
837
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
838
|
+
gapic_version: ::Google::Cloud::DatabaseCenter::V1beta::VERSION,
|
|
839
|
+
transports_version_send: [:rest]
|
|
840
|
+
|
|
841
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
842
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
843
|
+
|
|
844
|
+
options.apply_defaults timeout: @config.rpcs.aggregate_query_stats.timeout,
|
|
845
|
+
metadata: call_metadata,
|
|
846
|
+
retry_policy: @config.rpcs.aggregate_query_stats.retry_policy
|
|
847
|
+
|
|
848
|
+
options.apply_defaults timeout: @config.timeout,
|
|
849
|
+
metadata: @config.metadata,
|
|
850
|
+
retry_policy: @config.retry_policy
|
|
851
|
+
|
|
852
|
+
@database_center_stub.aggregate_query_stats request, options do |result, operation|
|
|
853
|
+
result = ::Gapic::Rest::PagedEnumerable.new @database_center_stub, :aggregate_query_stats, "query_stats", request, result, options
|
|
854
|
+
yield result, operation if block_given?
|
|
855
|
+
throw :response, result
|
|
856
|
+
end
|
|
857
|
+
rescue ::Gapic::Rest::Error => e
|
|
858
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
859
|
+
end
|
|
860
|
+
|
|
731
861
|
##
|
|
732
862
|
# QueryIssues provides a list of issues and recommendations
|
|
733
863
|
# that a user has access to and that are within the requested scope.
|
|
@@ -921,6 +1051,7 @@ module Google
|
|
|
921
1051
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
922
1052
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
923
1053
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
1054
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
924
1055
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
925
1056
|
# trigger a retry.
|
|
926
1057
|
# @return [::Hash]
|
|
@@ -993,6 +1124,7 @@ module Google
|
|
|
993
1124
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
994
1125
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
995
1126
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
1127
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
996
1128
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
997
1129
|
# trigger a retry.
|
|
998
1130
|
#
|
|
@@ -1018,6 +1150,11 @@ module Google
|
|
|
1018
1150
|
#
|
|
1019
1151
|
attr_reader :aggregate_issue_stats
|
|
1020
1152
|
##
|
|
1153
|
+
# RPC-specific configuration for `aggregate_query_stats`
|
|
1154
|
+
# @return [::Gapic::Config::Method]
|
|
1155
|
+
#
|
|
1156
|
+
attr_reader :aggregate_query_stats
|
|
1157
|
+
##
|
|
1021
1158
|
# RPC-specific configuration for `query_issues`
|
|
1022
1159
|
# @return [::Gapic::Config::Method]
|
|
1023
1160
|
#
|
|
@@ -1033,6 +1170,8 @@ module Google
|
|
|
1033
1170
|
@query_database_resource_groups = ::Gapic::Config::Method.new query_database_resource_groups_config
|
|
1034
1171
|
aggregate_issue_stats_config = parent_rpcs.aggregate_issue_stats if parent_rpcs.respond_to? :aggregate_issue_stats
|
|
1035
1172
|
@aggregate_issue_stats = ::Gapic::Config::Method.new aggregate_issue_stats_config
|
|
1173
|
+
aggregate_query_stats_config = parent_rpcs.aggregate_query_stats if parent_rpcs.respond_to? :aggregate_query_stats
|
|
1174
|
+
@aggregate_query_stats = ::Gapic::Config::Method.new aggregate_query_stats_config
|
|
1036
1175
|
query_issues_config = parent_rpcs.query_issues if parent_rpcs.respond_to? :query_issues
|
|
1037
1176
|
@query_issues = ::Gapic::Config::Method.new query_issues_config
|
|
1038
1177
|
|
|
@@ -233,6 +233,46 @@ module Google
|
|
|
233
233
|
end
|
|
234
234
|
end
|
|
235
235
|
|
|
236
|
+
##
|
|
237
|
+
# Baseline implementation for the aggregate_query_stats REST call
|
|
238
|
+
#
|
|
239
|
+
# @param request_pb [::Google::Cloud::DatabaseCenter::V1beta::AggregateQueryStatsRequest]
|
|
240
|
+
# A request object representing the call parameters. Required.
|
|
241
|
+
# @param options [::Gapic::CallOptions]
|
|
242
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
243
|
+
#
|
|
244
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
245
|
+
# @yieldparam result [::Google::Cloud::DatabaseCenter::V1beta::AggregateQueryStatsResponse]
|
|
246
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
247
|
+
#
|
|
248
|
+
# @return [::Google::Cloud::DatabaseCenter::V1beta::AggregateQueryStatsResponse]
|
|
249
|
+
# A result object deserialized from the server's reply
|
|
250
|
+
def aggregate_query_stats request_pb, options = nil
|
|
251
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
252
|
+
|
|
253
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_aggregate_query_stats_request request_pb
|
|
254
|
+
query_string_params = if query_string_params.any?
|
|
255
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
256
|
+
else
|
|
257
|
+
{}
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
response = @client_stub.make_http_request(
|
|
261
|
+
verb,
|
|
262
|
+
uri: uri,
|
|
263
|
+
body: body || "",
|
|
264
|
+
params: query_string_params,
|
|
265
|
+
method_name: "aggregate_query_stats",
|
|
266
|
+
options: options
|
|
267
|
+
)
|
|
268
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
269
|
+
result = ::Google::Cloud::DatabaseCenter::V1beta::AggregateQueryStatsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
270
|
+
catch :response do
|
|
271
|
+
yield result, operation if block_given?
|
|
272
|
+
result
|
|
273
|
+
end
|
|
274
|
+
end
|
|
275
|
+
|
|
236
276
|
##
|
|
237
277
|
# Baseline implementation for the query_issues REST call
|
|
238
278
|
#
|
|
@@ -351,6 +391,44 @@ module Google
|
|
|
351
391
|
transcoder.transcode request_pb
|
|
352
392
|
end
|
|
353
393
|
|
|
394
|
+
##
|
|
395
|
+
# @private
|
|
396
|
+
#
|
|
397
|
+
# GRPC transcoding helper method for the aggregate_query_stats REST call
|
|
398
|
+
#
|
|
399
|
+
# @param request_pb [::Google::Cloud::DatabaseCenter::V1beta::AggregateQueryStatsRequest]
|
|
400
|
+
# A request object representing the call parameters. Required.
|
|
401
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
402
|
+
# Uri, Body, Query string parameters
|
|
403
|
+
def self.transcode_aggregate_query_stats_request request_pb
|
|
404
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
405
|
+
.with_bindings(
|
|
406
|
+
uri_method: :post,
|
|
407
|
+
uri_template: "/v1beta/{parent}:aggregateQueryStats",
|
|
408
|
+
body: "*",
|
|
409
|
+
matches: [
|
|
410
|
+
["parent", %r{^organizations/[^/]+/?$}, false]
|
|
411
|
+
]
|
|
412
|
+
)
|
|
413
|
+
.with_bindings(
|
|
414
|
+
uri_method: :post,
|
|
415
|
+
uri_template: "/v1beta/{parent}:aggregateQueryStats",
|
|
416
|
+
body: "*",
|
|
417
|
+
matches: [
|
|
418
|
+
["parent", %r{^folders/[^/]+/?$}, false]
|
|
419
|
+
]
|
|
420
|
+
)
|
|
421
|
+
.with_bindings(
|
|
422
|
+
uri_method: :post,
|
|
423
|
+
uri_template: "/v1beta/{parent}:aggregateQueryStats",
|
|
424
|
+
body: "*",
|
|
425
|
+
matches: [
|
|
426
|
+
["parent", %r{^projects/[^/]+/?$}, false]
|
|
427
|
+
]
|
|
428
|
+
)
|
|
429
|
+
transcoder.transcode request_pb
|
|
430
|
+
end
|
|
431
|
+
|
|
354
432
|
##
|
|
355
433
|
# @private
|
|
356
434
|
#
|
|
@@ -7,16 +7,18 @@ require 'google/protobuf'
|
|
|
7
7
|
require 'google/api/annotations_pb'
|
|
8
8
|
require 'google/api/client_pb'
|
|
9
9
|
require 'google/api/field_behavior_pb'
|
|
10
|
+
require 'google/api/resource_pb'
|
|
10
11
|
require 'google/cloud/databasecenter/v1beta/affiliation_pb'
|
|
11
12
|
require 'google/cloud/databasecenter/v1beta/machine_config_pb'
|
|
12
13
|
require 'google/cloud/databasecenter/v1beta/maintenance_pb'
|
|
13
14
|
require 'google/cloud/databasecenter/v1beta/metric_data_pb'
|
|
14
15
|
require 'google/cloud/databasecenter/v1beta/product_pb'
|
|
15
16
|
require 'google/cloud/databasecenter/v1beta/signals_pb'
|
|
17
|
+
require 'google/protobuf/duration_pb'
|
|
16
18
|
require 'google/type/date_pb'
|
|
17
19
|
|
|
18
20
|
|
|
19
|
-
descriptor_data = "\n0google/cloud/databasecenter/v1beta/service.proto\x12\"google.cloud.databasecenter.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x34google/cloud/databasecenter/v1beta/affiliation.proto\x1a\x37google/cloud/databasecenter/v1beta/machine_config.proto\x1a\x34google/cloud/databasecenter/v1beta/maintenance.proto\x1a\x34google/cloud/databasecenter/v1beta/metric_data.proto\x1a\x30google/cloud/databasecenter/v1beta/product.proto\x1a\x30google/cloud/databasecenter/v1beta/signals.proto\x1a\x16google/type/date.proto\"\\\n\x14QueryProductsRequest\x12\x13\n\x06parent\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tpage_size\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\x89\x01\n\x15QueryProductsResponse\x12=\n\x08products\x18\x01 \x03(\x0b\x32+.google.cloud.databasecenter.v1beta.Product\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x0bunreachable\x18\x03 \x03(\tB\x03\xe0\x41\x06\"\xbb\x02\n\"QueryDatabaseResourceGroupsRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12T\n\x12signal_type_groups\x18\x03 \x03(\x0b\x32\x33.google.cloud.databasecenter.v1beta.SignalTypeGroupB\x03\xe0\x41\x01\x12M\n\x0esignal_filters\x18\x04 \x03(\x0b\x32\x30.google.cloud.databasecenter.v1beta.SignalFilterB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x07 \x01(\tB\x03\xe0\x41\x01\"\xac\x01\n#QueryDatabaseResourceGroupsResponse\x12R\n\x0fresource_groups\x18\x01 \x03(\x0b\x32\x39.google.cloud.databasecenter.v1beta.DatabaseResourceGroup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x0bunreachable\x18\x03 \x03(\tB\x03\xe0\x41\x06\"\xac\x01\n\x15\x44\x61tabaseResourceGroup\x12L\n\x0eroot_resources\x18\x01 \x03(\x0b\x32\x34.google.cloud.databasecenter.v1beta.DatabaseResource\x12\x45\n\rsignal_groups\x18\x02 \x03(\x0b\x32..google.cloud.databasecenter.v1beta.IssueCount\"\xa2\x08\n\x10\x44\x61tabaseResource\x12M\n\x0f\x63hild_resources\x18\x01 \x03(\x0b\x32\x34.google.cloud.databasecenter.v1beta.DatabaseResource\x12\x1a\n\x12\x66ull_resource_name\x18\x03 \x01(\t\x12\x11\n\tcontainer\x18\x04 \x01(\t\x12<\n\x07product\x18\x05 \x01(\x0b\x32+.google.cloud.databasecenter.v1beta.Product\x12\x10\n\x08location\x18\x06 \x01(\t\x12\x39\n\x06labels\x18\x07 \x03(\x0b\x32).google.cloud.databasecenter.v1beta.Label\x12\x35\n\x04tags\x18\x10 \x03(\x0b\x32\'.google.cloud.databasecenter.v1beta.Tag\x12\x15\n\rresource_type\x18\x08 \x01(\t\x12N\n\x11sub_resource_type\x18\t \x01(\x0e\x32\x33.google.cloud.databasecenter.v1beta.SubResourceType\x12I\n\x0emachine_config\x18\x0c \x01(\x0b\x32\x31.google.cloud.databasecenter.v1beta.MachineConfig\x12\x46\n\rsignal_groups\x18\n \x03(\x0b\x32/.google.cloud.databasecenter.v1beta.SignalGroup\x12<\n\x07metrics\x18\r \x01(\x0b\x32+.google.cloud.databasecenter.v1beta.Metrics\x12O\n\x11resource_category\x18\x0e \x01(\x0e\x32\x34.google.cloud.databasecenter.v1beta.ResourceCategory\x12\x15\n\rresource_name\x18\x0f \x01(\t\x12P\n\x0f\x62\x61\x63kupdr_config\x18\x11 \x01(\x0b\x32\x32.google.cloud.databasecenter.v1beta.BackupDRConfigB\x03\xe0\x41\x01\x12<\n\x07\x65\x64ition\x18\x12 \x01(\x0e\x32+.google.cloud.databasecenter.v1beta.Edition\x12R\n\x10maintenance_info\x18\x13 \x01(\x0b\x32\x33.google.cloud.databasecenter.v1beta.MaintenanceInfoB\x03\xe0\x41\x01\x12J\n\x0c\x61\x66\x66iliations\x18\x14 \x03(\x0b\x32/.google.cloud.databasecenter.v1beta.AffiliationB\x03\xe0\x41\x01\"\xe2\x01\n\x1a\x41ggregateIssueStatsRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12T\n\x12signal_type_groups\x18\x03 \x03(\x0b\x32\x33.google.cloud.databasecenter.v1beta.SignalTypeGroupB\x03\xe0\x41\x01\x12\x32\n\rbaseline_date\x18\x04 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x10\n\x0e_baseline_date\"\xcb\x01\n\x1b\x41ggregateIssueStatsResponse\x12N\n\x11issue_group_stats\x18\x01 \x03(\x0b\x32\x33.google.cloud.databasecenter.v1beta.IssueGroupStats\x12\x1d\n\x15total_resources_count\x18\x02 \x01(\x05\x12#\n\x1btotal_resource_groups_count\x18\x03 \x01(\x05\x12\x18\n\x0bunreachable\x18\x04 \x03(\tB\x03\xe0\x41\x06\"\xec\x01\n\x0fIssueGroupStats\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x1d\n\x15resource_groups_count\x18\x02 \x01(\x05\x12\x17\n\x0fresources_count\x18\x03 \x01(\x05\x12%\n\x1dhealthy_resource_groups_count\x18\x04 \x01(\x05\x12\x1f\n\x17healthy_resources_count\x18\x05 \x01(\x05\x12\x43\n\x0bissue_stats\x18\x06 \x03(\x0b\x32..google.cloud.databasecenter.v1beta.IssueStats\"\xb1\x02\n\nIssueStats\x12\x43\n\x0bsignal_type\x18\x01 \x01(\x0e\x32..google.cloud.databasecenter.v1beta.SignalType\x12\x16\n\x0eresource_count\x18\x02 \x01(\x05\x12Q\n\rdelta_details\x18\x03 \x01(\x0b\x32\x30.google.cloud.databasecenter.v1beta.DeltaDetailsB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12N\n\x0eissue_severity\x18\x04 \x01(\x0e\x32\x31.google.cloud.databasecenter.v1beta.IssueSeverityH\x01\x88\x01\x01\x42\x10\n\x0e_delta_detailsB\x11\n\x0f_issue_severity\"3\n\x05Label\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x0e\n\x06source\x18\x03 \x01(\t\"\xe6\x01\n\x15\x41ggregateFleetRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08group_by\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x05 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x32\n\rbaseline_date\x18\x07 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x10\n\x0e_baseline_date\"\xd3\x01\n\x16\x41ggregateFleetResponse\x12\x43\n\x04rows\x18\x01 \x03(\x0b\x32\x35.google.cloud.databasecenter.v1beta.AggregateFleetRow\x12#\n\x1bresource_groups_total_count\x18\x02 \x01(\x05\x12\x1c\n\x14resource_total_count\x18\x03 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x04 \x01(\t\x12\x18\n\x0bunreachable\x18\x05 \x03(\tB\x03\xe0\x41\x06\"\xf2\x01\n\x11\x41ggregateFleetRow\x12@\n\tdimension\x18\x01 \x03(\x0b\x32-.google.cloud.databasecenter.v1beta.Dimension\x12\x1d\n\x15resource_groups_count\x18\x02 \x01(\x05\x12\x17\n\x0fresources_count\x18\x03 \x01(\x05\x12Q\n\rdelta_details\x18\x04 \x01(\x0b\x32\x30.google.cloud.databasecenter.v1beta.DeltaDetailsB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x10\n\x0e_delta_details\"\xa1\x06\n\tDimension\x12\x13\n\tcontainer\x18\x02 \x01(\tH\x00\x12G\n\x0cproduct_type\x18\x03 \x01(\x0e\x32/.google.cloud.databasecenter.v1beta.ProductTypeH\x00\x12\x44\n\x0eproduct_engine\x18\x04 \x01(\x0e\x32*.google.cloud.databasecenter.v1beta.EngineH\x00\x12\x19\n\x0fproduct_version\x18\x05 \x01(\tH\x00\x12\x12\n\x08location\x18\x06 \x01(\tH\x00\x12\x17\n\rresource_type\x18\x07 \x01(\tH\x00\x12P\n\x11sub_resource_type\x18\x08 \x01(\x0e\x32\x33.google.cloud.databasecenter.v1beta.SubResourceTypeH\x00\x12Q\n\x11resource_category\x18\t \x01(\x0e\x32\x34.google.cloud.databasecenter.v1beta.ResourceCategoryH\x00\x12M\n\x0fmanagement_type\x18\n \x01(\x0e\x32\x32.google.cloud.databasecenter.v1beta.ManagementTypeH\x00\x12>\n\x07\x65\x64ition\x18\x0b \x01(\x0e\x32+.google.cloud.databasecenter.v1beta.EditionH\x00\x12\x11\n\x07tag_key\x18\x0c \x01(\tH\x00\x12\x13\n\ttag_value\x18\r \x01(\tH\x00\x12\x14\n\ntag_source\x18\x0e \x01(\tH\x00\x12\x17\n\rtag_inherited\x18\x0f \x01(\x08H\x00\x12\x13\n\tlabel_key\x18\x10 \x01(\tH\x00\x12\x15\n\x0blabel_value\x18\x11 \x01(\tH\x00\x12\x16\n\x0clabel_source\x18\x12 \x01(\tH\x00\x12\"\n\x18has_maintenance_schedule\x18\x13 \x01(\x08H\x00\x12(\n\x1ehas_deny_maintenance_schedules\x18\x14 \x01(\x08H\x00\x42\x0b\n\tdimension\"D\n\x0e\x42\x61\x63kupDRConfig\x12\x1d\n\x10\x62\x61\x63kupdr_managed\x18\x01 \x01(\x08H\x00\x88\x01\x01\x42\x13\n\x11_backupdr_managed\"\xe7\x01\n\x12QueryIssuesRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12_\n\x17signal_products_filters\x18\x03 \x03(\x0b\x32\x39.google.cloud.databasecenter.v1beta.SignalProductsFiltersB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x05 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x06 \x01(\tB\x03\xe0\x41\x01\"\xa5\x01\n\x15SignalProductsFilters\x12H\n\x0bsignal_type\x18\x01 \x01(\x0e\x32..google.cloud.databasecenter.v1beta.SignalTypeB\x03\xe0\x41\x01\x12\x42\n\x08products\x18\x02 \x03(\x0b\x32+.google.cloud.databasecenter.v1beta.ProductB\x03\xe0\x41\x01\"\x9c\x01\n\x13QueryIssuesResponse\x12R\n\x0fresource_issues\x18\x01 \x03(\x0b\x32\x39.google.cloud.databasecenter.v1beta.DatabaseResourceIssue\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x0bunreachable\x18\x03 \x03(\tB\x03\xe0\x41\x06\"\x9b\x01\n\x15\x44\x61tabaseResourceIssue\x12:\n\x06signal\x18\x01 \x01(\x0b\x32*.google.cloud.databasecenter.v1beta.Signal\x12\x46\n\x08resource\x18\x02 \x01(\x0b\x32\x34.google.cloud.databasecenter.v1beta.DatabaseResource\"D\n\x03Tag\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x0e\n\x06source\x18\x03 \x01(\t\x12\x11\n\tinherited\x18\x04 \x01(\x08\"\x90\x01\n\x0fResourceDetails\x12\x1a\n\x12\x66ull_resource_name\x18\x01 \x01(\t\x12\x11\n\tcontainer\x18\x02 \x01(\t\x12<\n\x07product\x18\x03 \x01(\x0b\x32+.google.cloud.databasecenter.v1beta.Product\x12\x10\n\x08location\x18\x04 \x01(\t\"\xb2\x01\n\x0c\x44\x65ltaDetails\x12P\n\x13increased_resources\x18\x01 \x03(\x0b\x32\x33.google.cloud.databasecenter.v1beta.ResourceDetails\x12P\n\x13\x64\x65\x63reased_resources\x18\x02 \x03(\x0b\x32\x33.google.cloud.databasecenter.v1beta.ResourceDetails*m\n\x07\x45\x64ition\x12\x17\n\x13\x45\x44ITION_UNSPECIFIED\x10\x00\x12\x16\n\x12\x45\x44ITION_ENTERPRISE\x10\x01\x12\x1b\n\x17\x45\x44ITION_ENTERPRISE_PLUS\x10\x02\x12\x14\n\x10\x45\x44ITION_STANDARD\x10\x03*\xc0\x02\n\x0fSubResourceType\x12!\n\x1dSUB_RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12\x1d\n\x19SUB_RESOURCE_TYPE_PRIMARY\x10\x01\x12\x1f\n\x1bSUB_RESOURCE_TYPE_SECONDARY\x10\x02\x12\"\n\x1eSUB_RESOURCE_TYPE_READ_REPLICA\x10\x03\x12&\n\"SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY\x10\x05\x12\x1f\n\x1bSUB_RESOURCE_TYPE_READ_POOL\x10\x06\x12!\n\x1dSUB_RESOURCE_TYPE_RESERVATION\x10\x07\x12\x1d\n\x19SUB_RESOURCE_TYPE_DATASET\x10\x08\x12\x1b\n\x17SUB_RESOURCE_TYPE_OTHER\x10\x04*t\n\x0eManagementType\x12\x1f\n\x1bMANAGEMENT_TYPE_UNSPECIFIED\x10\x00\x12\x1f\n\x1bMANAGEMENT_TYPE_GCP_MANAGED\x10\x01\x12 \n\x1cMANAGEMENT_TYPE_SELF_MANAGED\x10\x02*|\n\x10ResourceCategory\x12!\n\x1dRESOURCE_CATEGORY_UNSPECIFIED\x10\x00\x12\x0c\n\x08INSTANCE\x10\x01\x12\x0b\n\x07\x43LUSTER\x10\x02\x12\x0c\n\x08\x44\x41TABASE\x10\x03\x12\x0b\n\x07\x44\x41TASET\x10\x04\x12\x0f\n\x0bRESERVATION\x10\x05\x32\xff\x07\n\x0e\x44\x61tabaseCenter\x12\xa3\x01\n\rQueryProducts\x12\x38.google.cloud.databasecenter.v1beta.QueryProductsRequest\x1a\x39.google.cloud.databasecenter.v1beta.QueryProductsResponse\"\x1d\x82\xd3\xe4\x93\x02\x17\x12\x15/v1beta:queryProducts\x12\xa7\x01\n\x0e\x41ggregateFleet\x12\x39.google.cloud.databasecenter.v1beta.AggregateFleetRequest\x1a:.google.cloud.databasecenter.v1beta.AggregateFleetResponse\"\x1e\x82\xd3\xe4\x93\x02\x18\x12\x16/v1beta:aggregateFleet\x12\xde\x01\n\x1bQueryDatabaseResourceGroups\x12\x46.google.cloud.databasecenter.v1beta.QueryDatabaseResourceGroupsRequest\x1aG.google.cloud.databasecenter.v1beta.QueryDatabaseResourceGroupsResponse\".\x82\xd3\xe4\x93\x02(\"#/v1beta:queryDatabaseResourceGroups:\x01*\x12\xbe\x01\n\x13\x41ggregateIssueStats\x12>.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest\x1a?.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse\"&\x82\xd3\xe4\x93\x02 \"\x1b/v1beta:aggregateIssueStats:\x01*\x12\xa7\x01\n\x0bQueryIssues\x12\x36.google.cloud.databasecenter.v1beta.QueryIssuesRequest\x1a\x37.google.cloud.databasecenter.v1beta.QueryIssuesResponse\"\'\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x18\"\x13/v1beta:queryIssues:\x01*\x1aQ\xca\x41\x1d\x64\x61tabasecenter.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xfa\x01\n&com.google.cloud.databasecenter.v1betaB\x0cServiceProtoP\x01ZNcloud.google.com/go/databasecenter/apiv1beta/databasecenterpb;databasecenterpb\xaa\x02\"Google.Cloud.DatabaseCenter.V1Beta\xca\x02\"Google\\Cloud\\DatabaseCenter\\V1beta\xea\x02%Google::Cloud::DatabaseCenter::V1betab\x06proto3"
|
|
21
|
+
descriptor_data = "\n0google/cloud/databasecenter/v1beta/service.proto\x12\"google.cloud.databasecenter.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x34google/cloud/databasecenter/v1beta/affiliation.proto\x1a\x37google/cloud/databasecenter/v1beta/machine_config.proto\x1a\x34google/cloud/databasecenter/v1beta/maintenance.proto\x1a\x34google/cloud/databasecenter/v1beta/metric_data.proto\x1a\x30google/cloud/databasecenter/v1beta/product.proto\x1a\x30google/cloud/databasecenter/v1beta/signals.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x16google/type/date.proto\"\\\n\x14QueryProductsRequest\x12\x13\n\x06parent\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tpage_size\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\x89\x01\n\x15QueryProductsResponse\x12=\n\x08products\x18\x01 \x03(\x0b\x32+.google.cloud.databasecenter.v1beta.Product\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x0bunreachable\x18\x03 \x03(\tB\x03\xe0\x41\x06\"\xbb\x02\n\"QueryDatabaseResourceGroupsRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12T\n\x12signal_type_groups\x18\x03 \x03(\x0b\x32\x33.google.cloud.databasecenter.v1beta.SignalTypeGroupB\x03\xe0\x41\x01\x12M\n\x0esignal_filters\x18\x04 \x03(\x0b\x32\x30.google.cloud.databasecenter.v1beta.SignalFilterB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x07 \x01(\tB\x03\xe0\x41\x01\"\xac\x01\n#QueryDatabaseResourceGroupsResponse\x12R\n\x0fresource_groups\x18\x01 \x03(\x0b\x32\x39.google.cloud.databasecenter.v1beta.DatabaseResourceGroup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x0bunreachable\x18\x03 \x03(\tB\x03\xe0\x41\x06\"\xac\x01\n\x15\x44\x61tabaseResourceGroup\x12L\n\x0eroot_resources\x18\x01 \x03(\x0b\x32\x34.google.cloud.databasecenter.v1beta.DatabaseResource\x12\x45\n\rsignal_groups\x18\x02 \x03(\x0b\x32..google.cloud.databasecenter.v1beta.IssueCount\"\xa2\x08\n\x10\x44\x61tabaseResource\x12M\n\x0f\x63hild_resources\x18\x01 \x03(\x0b\x32\x34.google.cloud.databasecenter.v1beta.DatabaseResource\x12\x1a\n\x12\x66ull_resource_name\x18\x03 \x01(\t\x12\x11\n\tcontainer\x18\x04 \x01(\t\x12<\n\x07product\x18\x05 \x01(\x0b\x32+.google.cloud.databasecenter.v1beta.Product\x12\x10\n\x08location\x18\x06 \x01(\t\x12\x39\n\x06labels\x18\x07 \x03(\x0b\x32).google.cloud.databasecenter.v1beta.Label\x12\x35\n\x04tags\x18\x10 \x03(\x0b\x32\'.google.cloud.databasecenter.v1beta.Tag\x12\x15\n\rresource_type\x18\x08 \x01(\t\x12N\n\x11sub_resource_type\x18\t \x01(\x0e\x32\x33.google.cloud.databasecenter.v1beta.SubResourceType\x12I\n\x0emachine_config\x18\x0c \x01(\x0b\x32\x31.google.cloud.databasecenter.v1beta.MachineConfig\x12\x46\n\rsignal_groups\x18\n \x03(\x0b\x32/.google.cloud.databasecenter.v1beta.SignalGroup\x12<\n\x07metrics\x18\r \x01(\x0b\x32+.google.cloud.databasecenter.v1beta.Metrics\x12O\n\x11resource_category\x18\x0e \x01(\x0e\x32\x34.google.cloud.databasecenter.v1beta.ResourceCategory\x12\x15\n\rresource_name\x18\x0f \x01(\t\x12P\n\x0f\x62\x61\x63kupdr_config\x18\x11 \x01(\x0b\x32\x32.google.cloud.databasecenter.v1beta.BackupDRConfigB\x03\xe0\x41\x01\x12<\n\x07\x65\x64ition\x18\x12 \x01(\x0e\x32+.google.cloud.databasecenter.v1beta.Edition\x12R\n\x10maintenance_info\x18\x13 \x01(\x0b\x32\x33.google.cloud.databasecenter.v1beta.MaintenanceInfoB\x03\xe0\x41\x01\x12J\n\x0c\x61\x66\x66iliations\x18\x14 \x03(\x0b\x32/.google.cloud.databasecenter.v1beta.AffiliationB\x03\xe0\x41\x01\"\xe2\x01\n\x1a\x41ggregateIssueStatsRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12T\n\x12signal_type_groups\x18\x03 \x03(\x0b\x32\x33.google.cloud.databasecenter.v1beta.SignalTypeGroupB\x03\xe0\x41\x01\x12\x32\n\rbaseline_date\x18\x04 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x10\n\x0e_baseline_date\"\x8e\x01\n\x1a\x41ggregateQueryStatsRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08order_by\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x99\x01\n\x1b\x41ggregateQueryStatsResponse\x12G\n\x0bquery_stats\x18\x01 \x03(\x0b\x32\x32.google.cloud.databasecenter.v1beta.QueryStatsInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x0bunreachable\x18\x03 \x03(\tB\x03\xe0\x41\x06\"\xcb\x01\n\x1b\x41ggregateIssueStatsResponse\x12N\n\x11issue_group_stats\x18\x01 \x03(\x0b\x32\x33.google.cloud.databasecenter.v1beta.IssueGroupStats\x12\x1d\n\x15total_resources_count\x18\x02 \x01(\x05\x12#\n\x1btotal_resource_groups_count\x18\x03 \x01(\x05\x12\x18\n\x0bunreachable\x18\x04 \x03(\tB\x03\xe0\x41\x06\"\xec\x01\n\x0fIssueGroupStats\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x1d\n\x15resource_groups_count\x18\x02 \x01(\x05\x12\x17\n\x0fresources_count\x18\x03 \x01(\x05\x12%\n\x1dhealthy_resource_groups_count\x18\x04 \x01(\x05\x12\x1f\n\x17healthy_resources_count\x18\x05 \x01(\x05\x12\x43\n\x0bissue_stats\x18\x06 \x03(\x0b\x32..google.cloud.databasecenter.v1beta.IssueStats\"\xb1\x02\n\nIssueStats\x12\x43\n\x0bsignal_type\x18\x01 \x01(\x0e\x32..google.cloud.databasecenter.v1beta.SignalType\x12\x16\n\x0eresource_count\x18\x02 \x01(\x05\x12Q\n\rdelta_details\x18\x03 \x01(\x0b\x32\x30.google.cloud.databasecenter.v1beta.DeltaDetailsB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12N\n\x0eissue_severity\x18\x04 \x01(\x0e\x32\x31.google.cloud.databasecenter.v1beta.IssueSeverityH\x01\x88\x01\x01\x42\x10\n\x0e_delta_detailsB\x11\n\x0f_issue_severity\"3\n\x05Label\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x0e\n\x06source\x18\x03 \x01(\t\"\xe6\x01\n\x15\x41ggregateFleetRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08group_by\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x05 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x32\n\rbaseline_date\x18\x07 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x10\n\x0e_baseline_date\"\xa5\x01\n\x0eQueryStatsInfo\x12N\n\x16\x61ggregated_query_stats\x18\x01 \x01(\x0b\x32..google.cloud.databasecenter.v1beta.QueryStats\x12\x43\n\x0bquery_stats\x18\x02 \x03(\x0b\x32..google.cloud.databasecenter.v1beta.QueryStats\"}\n\nResourceId\x12\x1a\n\x12\x66ull_resource_name\x18\x01 \x01(\t\x12\x15\n\rresource_type\x18\x02 \x01(\t\x12<\n\x07product\x18\x03 \x01(\x0b\x32+.google.cloud.databasecenter.v1beta.Product\"\xc2\x02\n\nQueryStats\x12\x12\n\nquery_hash\x18\x01 \x01(\t\x12\x18\n\x10normalized_query\x18\x02 \x01(\t\x12\x1d\n\rresource_type\x18\x04 \x01(\tB\x06\xfa\x41\x03\n\x01*\x12\x44\n\x0cresource_ids\x18\x05 \x03(\x0b\x32..google.cloud.databasecenter.v1beta.ResourceId\x12G\n\rquery_metrics\x18\x06 \x01(\x0b\x32\x30.google.cloud.databasecenter.v1beta.QueryMetrics\x12X\n\x16inefficient_query_info\x18\x07 \x01(\x0b\x32\x38.google.cloud.databasecenter.v1beta.InefficientQueryInfo\"\xe5\x02\n\x0cQueryMetrics\x12\x17\n\x0f\x65xecution_count\x18\x01 \x01(\x03\x12/\n\x0c\x61vg_cpu_time\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x31\n\x0etotal_cpu_time\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x16\n\x0erows_processed\x18\x04 \x01(\x03\x12V\n\x0emetrics_window\x18\x05 \x01(\x0e\x32>.google.cloud.databasecenter.v1beta.QueryMetrics.MetricsWindow\"h\n\rMetricsWindow\x12\x1e\n\x1aMETRICS_WINDOW_UNSPECIFIED\x10\x00\x12\x10\n\x0cLAST_ONE_DAY\x10\x01\x12\x11\n\rLAST_ONE_WEEK\x10\x02\x12\x12\n\x0eLAST_TWO_WEEKS\x10\x03\"\xd3\x01\n\x16\x41ggregateFleetResponse\x12\x43\n\x04rows\x18\x01 \x03(\x0b\x32\x35.google.cloud.databasecenter.v1beta.AggregateFleetRow\x12#\n\x1bresource_groups_total_count\x18\x02 \x01(\x05\x12\x1c\n\x14resource_total_count\x18\x03 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x04 \x01(\t\x12\x18\n\x0bunreachable\x18\x05 \x03(\tB\x03\xe0\x41\x06\"\xf2\x01\n\x11\x41ggregateFleetRow\x12@\n\tdimension\x18\x01 \x03(\x0b\x32-.google.cloud.databasecenter.v1beta.Dimension\x12\x1d\n\x15resource_groups_count\x18\x02 \x01(\x05\x12\x17\n\x0fresources_count\x18\x03 \x01(\x05\x12Q\n\rdelta_details\x18\x04 \x01(\x0b\x32\x30.google.cloud.databasecenter.v1beta.DeltaDetailsB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x10\n\x0e_delta_details\"\xa1\x06\n\tDimension\x12\x13\n\tcontainer\x18\x02 \x01(\tH\x00\x12G\n\x0cproduct_type\x18\x03 \x01(\x0e\x32/.google.cloud.databasecenter.v1beta.ProductTypeH\x00\x12\x44\n\x0eproduct_engine\x18\x04 \x01(\x0e\x32*.google.cloud.databasecenter.v1beta.EngineH\x00\x12\x19\n\x0fproduct_version\x18\x05 \x01(\tH\x00\x12\x12\n\x08location\x18\x06 \x01(\tH\x00\x12\x17\n\rresource_type\x18\x07 \x01(\tH\x00\x12P\n\x11sub_resource_type\x18\x08 \x01(\x0e\x32\x33.google.cloud.databasecenter.v1beta.SubResourceTypeH\x00\x12Q\n\x11resource_category\x18\t \x01(\x0e\x32\x34.google.cloud.databasecenter.v1beta.ResourceCategoryH\x00\x12M\n\x0fmanagement_type\x18\n \x01(\x0e\x32\x32.google.cloud.databasecenter.v1beta.ManagementTypeH\x00\x12>\n\x07\x65\x64ition\x18\x0b \x01(\x0e\x32+.google.cloud.databasecenter.v1beta.EditionH\x00\x12\x11\n\x07tag_key\x18\x0c \x01(\tH\x00\x12\x13\n\ttag_value\x18\r \x01(\tH\x00\x12\x14\n\ntag_source\x18\x0e \x01(\tH\x00\x12\x17\n\rtag_inherited\x18\x0f \x01(\x08H\x00\x12\x13\n\tlabel_key\x18\x10 \x01(\tH\x00\x12\x15\n\x0blabel_value\x18\x11 \x01(\tH\x00\x12\x16\n\x0clabel_source\x18\x12 \x01(\tH\x00\x12\"\n\x18has_maintenance_schedule\x18\x13 \x01(\x08H\x00\x12(\n\x1ehas_deny_maintenance_schedules\x18\x14 \x01(\x08H\x00\x42\x0b\n\tdimension\"D\n\x0e\x42\x61\x63kupDRConfig\x12\x1d\n\x10\x62\x61\x63kupdr_managed\x18\x01 \x01(\x08H\x00\x88\x01\x01\x42\x13\n\x11_backupdr_managed\"\xe7\x01\n\x12QueryIssuesRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12_\n\x17signal_products_filters\x18\x03 \x03(\x0b\x32\x39.google.cloud.databasecenter.v1beta.SignalProductsFiltersB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x05 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x06 \x01(\tB\x03\xe0\x41\x01\"\xa5\x01\n\x15SignalProductsFilters\x12H\n\x0bsignal_type\x18\x01 \x01(\x0e\x32..google.cloud.databasecenter.v1beta.SignalTypeB\x03\xe0\x41\x01\x12\x42\n\x08products\x18\x02 \x03(\x0b\x32+.google.cloud.databasecenter.v1beta.ProductB\x03\xe0\x41\x01\"\x9c\x01\n\x13QueryIssuesResponse\x12R\n\x0fresource_issues\x18\x01 \x03(\x0b\x32\x39.google.cloud.databasecenter.v1beta.DatabaseResourceIssue\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x0bunreachable\x18\x03 \x03(\tB\x03\xe0\x41\x06\"\x9b\x01\n\x15\x44\x61tabaseResourceIssue\x12:\n\x06signal\x18\x01 \x01(\x0b\x32*.google.cloud.databasecenter.v1beta.Signal\x12\x46\n\x08resource\x18\x02 \x01(\x0b\x32\x34.google.cloud.databasecenter.v1beta.DatabaseResource\"D\n\x03Tag\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x0e\n\x06source\x18\x03 \x01(\t\x12\x11\n\tinherited\x18\x04 \x01(\x08\"\x90\x01\n\x0fResourceDetails\x12\x1a\n\x12\x66ull_resource_name\x18\x01 \x01(\t\x12\x11\n\tcontainer\x18\x02 \x01(\t\x12<\n\x07product\x18\x03 \x01(\x0b\x32+.google.cloud.databasecenter.v1beta.Product\x12\x10\n\x08location\x18\x04 \x01(\t\"\xb2\x01\n\x0c\x44\x65ltaDetails\x12P\n\x13increased_resources\x18\x01 \x03(\x0b\x32\x33.google.cloud.databasecenter.v1beta.ResourceDetails\x12P\n\x13\x64\x65\x63reased_resources\x18\x02 \x03(\x0b\x32\x33.google.cloud.databasecenter.v1beta.ResourceDetails*m\n\x07\x45\x64ition\x12\x17\n\x13\x45\x44ITION_UNSPECIFIED\x10\x00\x12\x16\n\x12\x45\x44ITION_ENTERPRISE\x10\x01\x12\x1b\n\x17\x45\x44ITION_ENTERPRISE_PLUS\x10\x02\x12\x14\n\x10\x45\x44ITION_STANDARD\x10\x03*\xc0\x02\n\x0fSubResourceType\x12!\n\x1dSUB_RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12\x1d\n\x19SUB_RESOURCE_TYPE_PRIMARY\x10\x01\x12\x1f\n\x1bSUB_RESOURCE_TYPE_SECONDARY\x10\x02\x12\"\n\x1eSUB_RESOURCE_TYPE_READ_REPLICA\x10\x03\x12&\n\"SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY\x10\x05\x12\x1f\n\x1bSUB_RESOURCE_TYPE_READ_POOL\x10\x06\x12!\n\x1dSUB_RESOURCE_TYPE_RESERVATION\x10\x07\x12\x1d\n\x19SUB_RESOURCE_TYPE_DATASET\x10\x08\x12\x1b\n\x17SUB_RESOURCE_TYPE_OTHER\x10\x04*t\n\x0eManagementType\x12\x1f\n\x1bMANAGEMENT_TYPE_UNSPECIFIED\x10\x00\x12\x1f\n\x1bMANAGEMENT_TYPE_GCP_MANAGED\x10\x01\x12 \n\x1cMANAGEMENT_TYPE_SELF_MANAGED\x10\x02*|\n\x10ResourceCategory\x12!\n\x1dRESOURCE_CATEGORY_UNSPECIFIED\x10\x00\x12\x0c\n\x08INSTANCE\x10\x01\x12\x0b\n\x07\x43LUSTER\x10\x02\x12\x0c\n\x08\x44\x41TABASE\x10\x03\x12\x0b\n\x07\x44\x41TASET\x10\x04\x12\x0f\n\x0bRESERVATION\x10\x05\x32\xc6\n\n\x0e\x44\x61tabaseCenter\x12\xa3\x01\n\rQueryProducts\x12\x38.google.cloud.databasecenter.v1beta.QueryProductsRequest\x1a\x39.google.cloud.databasecenter.v1beta.QueryProductsResponse\"\x1d\x82\xd3\xe4\x93\x02\x17\x12\x15/v1beta:queryProducts\x12\xa7\x01\n\x0e\x41ggregateFleet\x12\x39.google.cloud.databasecenter.v1beta.AggregateFleetRequest\x1a:.google.cloud.databasecenter.v1beta.AggregateFleetResponse\"\x1e\x82\xd3\xe4\x93\x02\x18\x12\x16/v1beta:aggregateFleet\x12\xde\x01\n\x1bQueryDatabaseResourceGroups\x12\x46.google.cloud.databasecenter.v1beta.QueryDatabaseResourceGroupsRequest\x1aG.google.cloud.databasecenter.v1beta.QueryDatabaseResourceGroupsResponse\".\x82\xd3\xe4\x93\x02(\"#/v1beta:queryDatabaseResourceGroups:\x01*\x12\xbe\x01\n\x13\x41ggregateIssueStats\x12>.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest\x1a?.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse\"&\x82\xd3\xe4\x93\x02 \"\x1b/v1beta:aggregateIssueStats:\x01*\x12\xc4\x02\n\x13\x41ggregateQueryStats\x12>.google.cloud.databasecenter.v1beta.AggregateQueryStatsRequest\x1a?.google.cloud.databasecenter.v1beta.AggregateQueryStatsResponse\"\xab\x01\x82\xd3\xe4\x93\x02\xa4\x01\"4/v1beta/{parent=organizations/*}:aggregateQueryStats:\x01*Z3\"./v1beta/{parent=folders/*}:aggregateQueryStats:\x01*Z4\"//v1beta/{parent=projects/*}:aggregateQueryStats:\x01*\x12\xa7\x01\n\x0bQueryIssues\x12\x36.google.cloud.databasecenter.v1beta.QueryIssuesRequest\x1a\x37.google.cloud.databasecenter.v1beta.QueryIssuesResponse\"\'\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x18\"\x13/v1beta:queryIssues:\x01*\x1aQ\xca\x41\x1d\x64\x61tabasecenter.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xfa\x01\n&com.google.cloud.databasecenter.v1betaB\x0cServiceProtoP\x01ZNcloud.google.com/go/databasecenter/apiv1beta/databasecenterpb;databasecenterpb\xaa\x02\"Google.Cloud.DatabaseCenter.V1Beta\xca\x02\"Google\\Cloud\\DatabaseCenter\\V1beta\xea\x02%Google::Cloud::DatabaseCenter::V1betab\x06proto3"
|
|
20
22
|
|
|
21
23
|
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
22
24
|
pool.add_serialized_file(descriptor_data)
|
|
@@ -32,11 +34,18 @@ module Google
|
|
|
32
34
|
DatabaseResourceGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.DatabaseResourceGroup").msgclass
|
|
33
35
|
DatabaseResource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.DatabaseResource").msgclass
|
|
34
36
|
AggregateIssueStatsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest").msgclass
|
|
37
|
+
AggregateQueryStatsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.AggregateQueryStatsRequest").msgclass
|
|
38
|
+
AggregateQueryStatsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.AggregateQueryStatsResponse").msgclass
|
|
35
39
|
AggregateIssueStatsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse").msgclass
|
|
36
40
|
IssueGroupStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.IssueGroupStats").msgclass
|
|
37
41
|
IssueStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.IssueStats").msgclass
|
|
38
42
|
Label = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.Label").msgclass
|
|
39
43
|
AggregateFleetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.AggregateFleetRequest").msgclass
|
|
44
|
+
QueryStatsInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.QueryStatsInfo").msgclass
|
|
45
|
+
ResourceId = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.ResourceId").msgclass
|
|
46
|
+
QueryStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.QueryStats").msgclass
|
|
47
|
+
QueryMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.QueryMetrics").msgclass
|
|
48
|
+
QueryMetrics::MetricsWindow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.QueryMetrics.MetricsWindow").enummodule
|
|
40
49
|
AggregateFleetResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.AggregateFleetResponse").msgclass
|
|
41
50
|
AggregateFleetRow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.AggregateFleetRow").msgclass
|
|
42
51
|
Dimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.databasecenter.v1beta.Dimension").msgclass
|
|
@@ -43,6 +43,8 @@ module Google
|
|
|
43
43
|
rpc :QueryDatabaseResourceGroups, ::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsRequest, ::Google::Cloud::DatabaseCenter::V1beta::QueryDatabaseResourceGroupsResponse
|
|
44
44
|
# AggregateIssueStats provides database resource issues statistics.
|
|
45
45
|
rpc :AggregateIssueStats, ::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsRequest, ::Google::Cloud::DatabaseCenter::V1beta::AggregateIssueStatsResponse
|
|
46
|
+
# AggregateQueryStats provides database resource query execution statistics.
|
|
47
|
+
rpc :AggregateQueryStats, ::Google::Cloud::DatabaseCenter::V1beta::AggregateQueryStatsRequest, ::Google::Cloud::DatabaseCenter::V1beta::AggregateQueryStatsResponse
|
|
46
48
|
# QueryIssues provides a list of issues and recommendations
|
|
47
49
|
# that a user has access to and that are within the requested scope.
|
|
48
50
|
rpc :QueryIssues, ::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesRequest, ::Google::Cloud::DatabaseCenter::V1beta::QueryIssuesResponse
|
|
@@ -357,6 +357,85 @@ module Google
|
|
|
357
357
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
358
358
|
end
|
|
359
359
|
|
|
360
|
+
# AggregateQueryStatsRequest represents the input to the AggregateQueryStats
|
|
361
|
+
# method.
|
|
362
|
+
# @!attribute [rw] parent
|
|
363
|
+
# @return [::String]
|
|
364
|
+
# Required. Parent can be a project, a folder, or an organization. The search
|
|
365
|
+
# is limited to the resources within the `parent`.
|
|
366
|
+
#
|
|
367
|
+
# The allowed values are:
|
|
368
|
+
#
|
|
369
|
+
# * projects/\\{PROJECT_ID} (e.g., "projects/foo-bar")
|
|
370
|
+
# * projects/\\{PROJECT_NUMBER} (e.g., "projects/12345678")
|
|
371
|
+
# * folders/\\{FOLDER_NUMBER} (e.g., "folders/1234567")
|
|
372
|
+
# * organizations/\\{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
|
|
373
|
+
# @!attribute [rw] order_by
|
|
374
|
+
# @return [::String]
|
|
375
|
+
# Optional. The expression to order the results by.
|
|
376
|
+
# Example: `order_by="execution_count"`
|
|
377
|
+
# Example: `order_by="execution_count desc"`
|
|
378
|
+
# Supported order by fields are `execution_count`, `rows_processed`,
|
|
379
|
+
# `total_cpu_time`, `avg_cpu_time`.
|
|
380
|
+
# @!attribute [rw] filter
|
|
381
|
+
# @return [::String]
|
|
382
|
+
# Optional. The expression to filter resources.
|
|
383
|
+
#
|
|
384
|
+
# Supported fields are: `full_resource_name`, `resource_type`, `container`,
|
|
385
|
+
# `product.type`, `product.engine`, `product.version`, `location`,
|
|
386
|
+
# `labels`, `issues`, fields of availability_info,
|
|
387
|
+
# data_protection_info,'resource_name', etc.
|
|
388
|
+
#
|
|
389
|
+
# The expression is a list of zero or more restrictions combined via logical
|
|
390
|
+
# operators `AND` and `OR`. When `AND` and `OR` are both used in the
|
|
391
|
+
# expression, parentheses must be appropriately used to group the
|
|
392
|
+
# combinations.
|
|
393
|
+
#
|
|
394
|
+
# Example: `location="us-east1"`
|
|
395
|
+
# Example: `container="projects/123" OR container="projects/456"`
|
|
396
|
+
# Example: `(container="projects/123" OR
|
|
397
|
+
# container="projects/456") AND location="us-east1"`
|
|
398
|
+
# Additional specific fields for query stats are: `metric_window`,
|
|
399
|
+
# `query_hash`, `normalized_query`.
|
|
400
|
+
# Example: `metric_window="LAST_ONE_DAY"`
|
|
401
|
+
# (Possible values for `metric_window` are: `LAST_ONE_DAY`,
|
|
402
|
+
# `LAST_ONE_WEEK`, `LAST_TWO_WEEKS`)
|
|
403
|
+
# Example: `query_hash="12345678"`
|
|
404
|
+
# Example: `normalized_query="SELECT * FROM table"`
|
|
405
|
+
# @!attribute [rw] page_size
|
|
406
|
+
# @return [::Integer]
|
|
407
|
+
# Optional. If unspecified, at most 100 query stats will be returned.
|
|
408
|
+
# The maximum value is 1000; values above 1000 will be coerced to 1000.
|
|
409
|
+
# @!attribute [rw] page_token
|
|
410
|
+
# @return [::String]
|
|
411
|
+
# Optional. A page token, received from a previous
|
|
412
|
+
# `AggregateQueryStatsRequest` call. Provide this to retrieve the subsequent
|
|
413
|
+
# page. All parameters except page_token should match the parameters in the
|
|
414
|
+
# call that provided the page token.
|
|
415
|
+
class AggregateQueryStatsRequest
|
|
416
|
+
include ::Google::Protobuf::MessageExts
|
|
417
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
418
|
+
end
|
|
419
|
+
|
|
420
|
+
# The response message containing relevant query stats
|
|
421
|
+
# for database resources.
|
|
422
|
+
# @!attribute [rw] query_stats
|
|
423
|
+
# @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::QueryStatsInfo>]
|
|
424
|
+
# List of query stats where each group contains stats for resources having a
|
|
425
|
+
# particular combination of relevant query stats.
|
|
426
|
+
# @!attribute [rw] next_page_token
|
|
427
|
+
# @return [::String]
|
|
428
|
+
# A token that can be sent as `page_token` to retrieve the next page.
|
|
429
|
+
# If this field is omitted, there are no subsequent pages.
|
|
430
|
+
# @!attribute [rw] unreachable
|
|
431
|
+
# @return [::Array<::String>]
|
|
432
|
+
# Unordered list. List of unreachable regions from where data could not be
|
|
433
|
+
# retrieved.
|
|
434
|
+
class AggregateQueryStatsResponse
|
|
435
|
+
include ::Google::Protobuf::MessageExts
|
|
436
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
437
|
+
end
|
|
438
|
+
|
|
360
439
|
# The response message containing one of more group of relevant health issues
|
|
361
440
|
# for database resources.
|
|
362
441
|
# @!attribute [rw] issue_group_stats
|
|
@@ -534,6 +613,105 @@ module Google
|
|
|
534
613
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
535
614
|
end
|
|
536
615
|
|
|
616
|
+
# QueryStatsInfo contains the aggregated and detailed query stats for a
|
|
617
|
+
# particular combination of relevant query stats for queries having same
|
|
618
|
+
# normalized query.
|
|
619
|
+
# @!attribute [rw] aggregated_query_stats
|
|
620
|
+
# @return [::Google::Cloud::DatabaseCenter::V1beta::QueryStats]
|
|
621
|
+
# Aggregated query stats for the resources for same normalized query.
|
|
622
|
+
# @!attribute [rw] query_stats
|
|
623
|
+
# @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::QueryStats>]
|
|
624
|
+
# List of query stats for the resources in the group.
|
|
625
|
+
# This stats is stats at resource level for the resources having same
|
|
626
|
+
# normalized query.
|
|
627
|
+
class QueryStatsInfo
|
|
628
|
+
include ::Google::Protobuf::MessageExts
|
|
629
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
630
|
+
end
|
|
631
|
+
|
|
632
|
+
# ResourceId contains the identifier for a database resource,
|
|
633
|
+
# including the full resource name, resource type, and product.
|
|
634
|
+
# @!attribute [rw] full_resource_name
|
|
635
|
+
# @return [::String]
|
|
636
|
+
# The full resource name of the resource.
|
|
637
|
+
# @!attribute [rw] resource_type
|
|
638
|
+
# @return [::String]
|
|
639
|
+
# The type of the resource.
|
|
640
|
+
# sqladmin.googleapis.com/Instance
|
|
641
|
+
# alloydb.googleapis.com/Cluster
|
|
642
|
+
# alloydb.googleapis.com/Instance
|
|
643
|
+
# @!attribute [rw] product
|
|
644
|
+
# @return [::Google::Cloud::DatabaseCenter::V1beta::Product]
|
|
645
|
+
# The product of the resource, including the type, engine, and version.
|
|
646
|
+
class ResourceId
|
|
647
|
+
include ::Google::Protobuf::MessageExts
|
|
648
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
649
|
+
end
|
|
650
|
+
|
|
651
|
+
# QueryStats contains the stats for a particular combination of query_hash,
|
|
652
|
+
# query_string and resource_type.
|
|
653
|
+
# @!attribute [rw] query_hash
|
|
654
|
+
# @return [::String]
|
|
655
|
+
# The query hash of the query.
|
|
656
|
+
# @!attribute [rw] normalized_query
|
|
657
|
+
# @return [::String]
|
|
658
|
+
# The query string is normalized query without any PII data.
|
|
659
|
+
# @!attribute [rw] resource_type
|
|
660
|
+
# @return [::String]
|
|
661
|
+
# The type of the resource.
|
|
662
|
+
# sqladmin.googleapis.com/Instance
|
|
663
|
+
# alloydb.googleapis.com/Cluster
|
|
664
|
+
# alloydb.googleapis.com/Instance
|
|
665
|
+
# @!attribute [rw] resource_ids
|
|
666
|
+
# @return [::Array<::Google::Cloud::DatabaseCenter::V1beta::ResourceId>]
|
|
667
|
+
# The resource ids for which the query stats are collected.
|
|
668
|
+
# @!attribute [rw] query_metrics
|
|
669
|
+
# @return [::Google::Cloud::DatabaseCenter::V1beta::QueryMetrics]
|
|
670
|
+
# Metrics related to the query performance.
|
|
671
|
+
# @!attribute [rw] inefficient_query_info
|
|
672
|
+
# @return [::Google::Cloud::DatabaseCenter::V1beta::InefficientQueryInfo]
|
|
673
|
+
# Information about inefficient query.
|
|
674
|
+
class QueryStats
|
|
675
|
+
include ::Google::Protobuf::MessageExts
|
|
676
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
677
|
+
end
|
|
678
|
+
|
|
679
|
+
# QueryMetrics contains the metrics related to the query execution.
|
|
680
|
+
# @!attribute [rw] execution_count
|
|
681
|
+
# @return [::Integer]
|
|
682
|
+
# The number of times the query was executed.
|
|
683
|
+
# @!attribute [rw] avg_cpu_time
|
|
684
|
+
# @return [::Google::Protobuf::Duration]
|
|
685
|
+
# The average execution period of the query across all runs.
|
|
686
|
+
# @!attribute [rw] total_cpu_time
|
|
687
|
+
# @return [::Google::Protobuf::Duration]
|
|
688
|
+
# The total CPU time consumed by the query across all runs.
|
|
689
|
+
# @!attribute [rw] rows_processed
|
|
690
|
+
# @return [::Integer]
|
|
691
|
+
# The average number of rows processed by the query across all runs.
|
|
692
|
+
# @!attribute [rw] metrics_window
|
|
693
|
+
# @return [::Google::Cloud::DatabaseCenter::V1beta::QueryMetrics::MetricsWindow]
|
|
694
|
+
# The window over which the metrics are aggregated.
|
|
695
|
+
class QueryMetrics
|
|
696
|
+
include ::Google::Protobuf::MessageExts
|
|
697
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
698
|
+
|
|
699
|
+
# Enum to represent the window over which the metrics are aggregated.
|
|
700
|
+
module MetricsWindow
|
|
701
|
+
# Unspecified. Default value.
|
|
702
|
+
METRICS_WINDOW_UNSPECIFIED = 0
|
|
703
|
+
|
|
704
|
+
# Metrics are aggregated over the last 1 day.
|
|
705
|
+
LAST_ONE_DAY = 1
|
|
706
|
+
|
|
707
|
+
# Metrics are aggregated over the last 7 days.
|
|
708
|
+
LAST_ONE_WEEK = 2
|
|
709
|
+
|
|
710
|
+
# Metrics are aggregated over the last 14 days.
|
|
711
|
+
LAST_TWO_WEEKS = 3
|
|
712
|
+
end
|
|
713
|
+
end
|
|
714
|
+
|
|
537
715
|
# The response message to aggregate a fleet by some group by
|
|
538
716
|
# fields.
|
|
539
717
|
# @!attribute [rw] rows
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-database_center-v1beta
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -15,14 +15,14 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - "~>"
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: '1.
|
|
18
|
+
version: '1.3'
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - "~>"
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: '1.
|
|
25
|
+
version: '1.3'
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: google-cloud-errors
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|