google-cloud-monitoring-dashboard-v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +169 -0
  4. data/LICENSE.md +203 -0
  5. data/README.md +71 -0
  6. data/lib/google-cloud-monitoring-dashboard-v1.rb +21 -0
  7. data/lib/google/cloud/monitoring/dashboard/v1.rb +37 -0
  8. data/lib/google/cloud/monitoring/dashboard/v1/dashboards_service.rb +51 -0
  9. data/lib/google/cloud/monitoring/dashboard/v1/dashboards_service/client.rb +699 -0
  10. data/lib/google/cloud/monitoring/dashboard/v1/dashboards_service/credentials.rb +56 -0
  11. data/lib/google/cloud/monitoring/dashboard/v1/version.rb +30 -0
  12. data/lib/google/monitoring/dashboard/v1/common_pb.rb +98 -0
  13. data/lib/google/monitoring/dashboard/v1/dashboard_pb.rb +32 -0
  14. data/lib/google/monitoring/dashboard/v1/dashboards_service_pb.rb +54 -0
  15. data/lib/google/monitoring/dashboard/v1/dashboards_service_services_pb.rb +77 -0
  16. data/lib/google/monitoring/dashboard/v1/drilldowns_pb.rb +20 -0
  17. data/lib/google/monitoring/dashboard/v1/layouts_pb.rb +44 -0
  18. data/lib/google/monitoring/dashboard/v1/metrics_pb.rb +79 -0
  19. data/lib/google/monitoring/dashboard/v1/scorecard_pb.rb +41 -0
  20. data/lib/google/monitoring/dashboard/v1/service_pb.rb +20 -0
  21. data/lib/google/monitoring/dashboard/v1/text_pb.rb +31 -0
  22. data/lib/google/monitoring/dashboard/v1/widget_pb.rb +35 -0
  23. data/lib/google/monitoring/dashboard/v1/xychart_pb.rb +69 -0
  24. data/proto_docs/README.md +4 -0
  25. data/proto_docs/google/api/field_behavior.rb +59 -0
  26. data/proto_docs/google/api/resource.rb +247 -0
  27. data/proto_docs/google/monitoring/dashboard/v1/common.rb +409 -0
  28. data/proto_docs/google/monitoring/dashboard/v1/dashboard.rb +62 -0
  29. data/proto_docs/google/monitoring/dashboard/v1/dashboards_service.rb +106 -0
  30. data/proto_docs/google/monitoring/dashboard/v1/layouts.rb +92 -0
  31. data/proto_docs/google/monitoring/dashboard/v1/metrics.rb +172 -0
  32. data/proto_docs/google/monitoring/dashboard/v1/scorecard.rb +117 -0
  33. data/proto_docs/google/monitoring/dashboard/v1/text.rb +52 -0
  34. data/proto_docs/google/monitoring/dashboard/v1/widget.rb +50 -0
  35. data/proto_docs/google/monitoring/dashboard/v1/xychart.rb +159 -0
  36. data/proto_docs/google/protobuf/duration.rb +98 -0
  37. data/proto_docs/google/protobuf/empty.rb +36 -0
  38. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  39. metadata +221 -0
@@ -0,0 +1,56 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "googleauth"
20
+
21
+ module Google
22
+ module Cloud
23
+ module Monitoring
24
+ module Dashboard
25
+ module V1
26
+ module DashboardsService
27
+ # Credentials for the DashboardsService API.
28
+ class Credentials < ::Google::Auth::Credentials
29
+ self.scope = [
30
+ "https://www.googleapis.com/auth/cloud-platform",
31
+ "https://www.googleapis.com/auth/monitoring",
32
+ "https://www.googleapis.com/auth/monitoring.read",
33
+ "https://www.googleapis.com/auth/monitoring.write"
34
+ ]
35
+ self.env_vars = [
36
+ "MONITORING_DASHBOARD_CREDENTIALS",
37
+ "MONITORING_DASHBOARD_KEYFILE",
38
+ "GOOGLE_CLOUD_CREDENTIALS",
39
+ "GOOGLE_CLOUD_KEYFILE",
40
+ "GCLOUD_KEYFILE",
41
+ "MONITORING_DASHBOARD_CREDENTIALS_JSON",
42
+ "MONITORING_DASHBOARD_KEYFILE_JSON",
43
+ "GOOGLE_CLOUD_CREDENTIALS_JSON",
44
+ "GOOGLE_CLOUD_KEYFILE_JSON",
45
+ "GCLOUD_KEYFILE_JSON"
46
+ ]
47
+ self.paths = [
48
+ "~/.config/google_cloud/application_default_credentials.json"
49
+ ]
50
+ end
51
+ end
52
+ end
53
+ end
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Monitoring
23
+ module Dashboard
24
+ module V1
25
+ VERSION = "0.1.0"
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,98 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/monitoring/dashboard/v1/common.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/protobuf/duration_pb'
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_file("google/monitoring/dashboard/v1/common.proto", :syntax => :proto3) do
9
+ add_message "google.monitoring.dashboard.v1.Aggregation" do
10
+ optional :alignment_period, :message, 1, "google.protobuf.Duration"
11
+ optional :per_series_aligner, :enum, 2, "google.monitoring.dashboard.v1.Aggregation.Aligner"
12
+ optional :cross_series_reducer, :enum, 4, "google.monitoring.dashboard.v1.Aggregation.Reducer"
13
+ repeated :group_by_fields, :string, 5
14
+ end
15
+ add_enum "google.monitoring.dashboard.v1.Aggregation.Aligner" do
16
+ value :ALIGN_NONE, 0
17
+ value :ALIGN_DELTA, 1
18
+ value :ALIGN_RATE, 2
19
+ value :ALIGN_INTERPOLATE, 3
20
+ value :ALIGN_NEXT_OLDER, 4
21
+ value :ALIGN_MIN, 10
22
+ value :ALIGN_MAX, 11
23
+ value :ALIGN_MEAN, 12
24
+ value :ALIGN_COUNT, 13
25
+ value :ALIGN_SUM, 14
26
+ value :ALIGN_STDDEV, 15
27
+ value :ALIGN_COUNT_TRUE, 16
28
+ value :ALIGN_COUNT_FALSE, 24
29
+ value :ALIGN_FRACTION_TRUE, 17
30
+ value :ALIGN_PERCENTILE_99, 18
31
+ value :ALIGN_PERCENTILE_95, 19
32
+ value :ALIGN_PERCENTILE_50, 20
33
+ value :ALIGN_PERCENTILE_05, 21
34
+ value :ALIGN_PERCENT_CHANGE, 23
35
+ end
36
+ add_enum "google.monitoring.dashboard.v1.Aggregation.Reducer" do
37
+ value :REDUCE_NONE, 0
38
+ value :REDUCE_MEAN, 1
39
+ value :REDUCE_MIN, 2
40
+ value :REDUCE_MAX, 3
41
+ value :REDUCE_SUM, 4
42
+ value :REDUCE_STDDEV, 5
43
+ value :REDUCE_COUNT, 6
44
+ value :REDUCE_COUNT_TRUE, 7
45
+ value :REDUCE_COUNT_FALSE, 15
46
+ value :REDUCE_FRACTION_TRUE, 8
47
+ value :REDUCE_PERCENTILE_99, 9
48
+ value :REDUCE_PERCENTILE_95, 10
49
+ value :REDUCE_PERCENTILE_50, 11
50
+ value :REDUCE_PERCENTILE_05, 12
51
+ end
52
+ add_message "google.monitoring.dashboard.v1.PickTimeSeriesFilter" do
53
+ optional :ranking_method, :enum, 1, "google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method"
54
+ optional :num_time_series, :int32, 2
55
+ optional :direction, :enum, 3, "google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction"
56
+ end
57
+ add_enum "google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method" do
58
+ value :METHOD_UNSPECIFIED, 0
59
+ value :METHOD_MEAN, 1
60
+ value :METHOD_MAX, 2
61
+ value :METHOD_MIN, 3
62
+ value :METHOD_SUM, 4
63
+ value :METHOD_LATEST, 5
64
+ end
65
+ add_enum "google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction" do
66
+ value :DIRECTION_UNSPECIFIED, 0
67
+ value :TOP, 1
68
+ value :BOTTOM, 2
69
+ end
70
+ add_message "google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter" do
71
+ optional :ranking_method, :enum, 1, "google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method"
72
+ optional :num_time_series, :int32, 2
73
+ end
74
+ add_enum "google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method" do
75
+ value :METHOD_UNSPECIFIED, 0
76
+ value :METHOD_CLUSTER_OUTLIER, 1
77
+ end
78
+ end
79
+ end
80
+
81
+ module Google
82
+ module Cloud
83
+ module Monitoring
84
+ module Dashboard
85
+ module V1
86
+ Aggregation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.Aggregation").msgclass
87
+ Aggregation::Aligner = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.Aggregation.Aligner").enummodule
88
+ Aggregation::Reducer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.Aggregation.Reducer").enummodule
89
+ PickTimeSeriesFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.PickTimeSeriesFilter").msgclass
90
+ PickTimeSeriesFilter::Method = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method").enummodule
91
+ PickTimeSeriesFilter::Direction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction").enummodule
92
+ StatisticalTimeSeriesFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter").msgclass
93
+ StatisticalTimeSeriesFilter::Method = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method").enummodule
94
+ end
95
+ end
96
+ end
97
+ end
98
+ end
@@ -0,0 +1,32 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/monitoring/dashboard/v1/dashboard.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/monitoring/dashboard/v1/layouts_pb'
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_file("google/monitoring/dashboard/v1/dashboard.proto", :syntax => :proto3) do
9
+ add_message "google.monitoring.dashboard.v1.Dashboard" do
10
+ optional :name, :string, 1
11
+ optional :display_name, :string, 2
12
+ optional :etag, :string, 4
13
+ oneof :layout do
14
+ optional :grid_layout, :message, 5, "google.monitoring.dashboard.v1.GridLayout"
15
+ optional :row_layout, :message, 8, "google.monitoring.dashboard.v1.RowLayout"
16
+ optional :column_layout, :message, 9, "google.monitoring.dashboard.v1.ColumnLayout"
17
+ end
18
+ end
19
+ end
20
+ end
21
+
22
+ module Google
23
+ module Cloud
24
+ module Monitoring
25
+ module Dashboard
26
+ module V1
27
+ Dashboard = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.Dashboard").msgclass
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,54 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/monitoring/dashboard/v1/dashboards_service.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'google/api/field_behavior_pb'
8
+ require 'google/monitoring/dashboard/v1/dashboard_pb'
9
+ require 'google/protobuf/empty_pb'
10
+ require 'google/protobuf/field_mask_pb'
11
+ require 'google/api/client_pb'
12
+ Google::Protobuf::DescriptorPool.generated_pool.build do
13
+ add_file("google/monitoring/dashboard/v1/dashboards_service.proto", :syntax => :proto3) do
14
+ add_message "google.monitoring.dashboard.v1.CreateDashboardRequest" do
15
+ optional :parent, :string, 1
16
+ optional :dashboard, :message, 2, "google.monitoring.dashboard.v1.Dashboard"
17
+ end
18
+ add_message "google.monitoring.dashboard.v1.ListDashboardsRequest" do
19
+ optional :parent, :string, 1
20
+ optional :page_size, :int32, 2
21
+ optional :page_token, :string, 3
22
+ end
23
+ add_message "google.monitoring.dashboard.v1.ListDashboardsResponse" do
24
+ repeated :dashboards, :message, 1, "google.monitoring.dashboard.v1.Dashboard"
25
+ optional :next_page_token, :string, 2
26
+ end
27
+ add_message "google.monitoring.dashboard.v1.GetDashboardRequest" do
28
+ optional :name, :string, 1
29
+ end
30
+ add_message "google.monitoring.dashboard.v1.DeleteDashboardRequest" do
31
+ optional :name, :string, 1
32
+ end
33
+ add_message "google.monitoring.dashboard.v1.UpdateDashboardRequest" do
34
+ optional :dashboard, :message, 1, "google.monitoring.dashboard.v1.Dashboard"
35
+ end
36
+ end
37
+ end
38
+
39
+ module Google
40
+ module Cloud
41
+ module Monitoring
42
+ module Dashboard
43
+ module V1
44
+ CreateDashboardRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.CreateDashboardRequest").msgclass
45
+ ListDashboardsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.ListDashboardsRequest").msgclass
46
+ ListDashboardsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.ListDashboardsResponse").msgclass
47
+ GetDashboardRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.GetDashboardRequest").msgclass
48
+ DeleteDashboardRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.DeleteDashboardRequest").msgclass
49
+ UpdateDashboardRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.UpdateDashboardRequest").msgclass
50
+ end
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,77 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/monitoring/dashboard/v1/dashboards_service.proto for package 'Google.Cloud.Monitoring.Dashboard.V1'
3
+ # Original file comments:
4
+ # Copyright 2019 Google LLC.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+ #
19
+
20
+ require 'grpc'
21
+ require 'google/monitoring/dashboard/v1/dashboards_service_pb'
22
+
23
+ module Google
24
+ module Cloud
25
+ module Monitoring
26
+ module Dashboard
27
+ module V1
28
+ module DashboardsService
29
+ # Manages Stackdriver dashboards. A dashboard is an arrangement of data display
30
+ # widgets in a specific layout.
31
+ class Service
32
+
33
+ include GRPC::GenericService
34
+
35
+ self.marshal_class_method = :encode
36
+ self.unmarshal_class_method = :decode
37
+ self.service_name = 'google.monitoring.dashboard.v1.DashboardsService'
38
+
39
+ # Creates a new custom dashboard.
40
+ #
41
+ # This method requires the `monitoring.dashboards.create` permission
42
+ # on the specified project. For more information, see
43
+ # [Google Cloud IAM](https://cloud.google.com/iam).
44
+ rpc :CreateDashboard, Google::Cloud::Monitoring::Dashboard::V1::CreateDashboardRequest, Google::Cloud::Monitoring::Dashboard::V1::Dashboard
45
+ # Lists the existing dashboards.
46
+ #
47
+ # This method requires the `monitoring.dashboards.list` permission
48
+ # on the specified project. For more information, see
49
+ # [Google Cloud IAM](https://cloud.google.com/iam).
50
+ rpc :ListDashboards, Google::Cloud::Monitoring::Dashboard::V1::ListDashboardsRequest, Google::Cloud::Monitoring::Dashboard::V1::ListDashboardsResponse
51
+ # Fetches a specific dashboard.
52
+ #
53
+ # This method requires the `monitoring.dashboards.get` permission
54
+ # on the specified dashboard. For more information, see
55
+ # [Google Cloud IAM](https://cloud.google.com/iam).
56
+ rpc :GetDashboard, Google::Cloud::Monitoring::Dashboard::V1::GetDashboardRequest, Google::Cloud::Monitoring::Dashboard::V1::Dashboard
57
+ # Deletes an existing custom dashboard.
58
+ #
59
+ # This method requires the `monitoring.dashboards.delete` permission
60
+ # on the specified dashboard. For more information, see
61
+ # [Google Cloud IAM](https://cloud.google.com/iam).
62
+ rpc :DeleteDashboard, Google::Cloud::Monitoring::Dashboard::V1::DeleteDashboardRequest, Google::Protobuf::Empty
63
+ # Replaces an existing custom dashboard with a new definition.
64
+ #
65
+ # This method requires the `monitoring.dashboards.update` permission
66
+ # on the specified dashboard. For more information, see
67
+ # [Google Cloud IAM](https://cloud.google.com/iam).
68
+ rpc :UpdateDashboard, Google::Cloud::Monitoring::Dashboard::V1::UpdateDashboardRequest, Google::Cloud::Monitoring::Dashboard::V1::Dashboard
69
+ end
70
+
71
+ Stub = Service.rpc_stub_class
72
+ end
73
+ end
74
+ end
75
+ end
76
+ end
77
+ end
@@ -0,0 +1,20 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/monitoring/dashboard/v1/drilldowns.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_file("google/monitoring/dashboard/v1/drilldowns.proto", :syntax => :proto3) do
8
+ end
9
+ end
10
+
11
+ module Google
12
+ module Cloud
13
+ module Monitoring
14
+ module Dashboard
15
+ module V1
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,44 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/monitoring/dashboard/v1/layouts.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/monitoring/dashboard/v1/widget_pb'
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_file("google/monitoring/dashboard/v1/layouts.proto", :syntax => :proto3) do
9
+ add_message "google.monitoring.dashboard.v1.GridLayout" do
10
+ optional :columns, :int64, 1
11
+ repeated :widgets, :message, 2, "google.monitoring.dashboard.v1.Widget"
12
+ end
13
+ add_message "google.monitoring.dashboard.v1.RowLayout" do
14
+ repeated :rows, :message, 1, "google.monitoring.dashboard.v1.RowLayout.Row"
15
+ end
16
+ add_message "google.monitoring.dashboard.v1.RowLayout.Row" do
17
+ optional :weight, :int64, 1
18
+ repeated :widgets, :message, 2, "google.monitoring.dashboard.v1.Widget"
19
+ end
20
+ add_message "google.monitoring.dashboard.v1.ColumnLayout" do
21
+ repeated :columns, :message, 1, "google.monitoring.dashboard.v1.ColumnLayout.Column"
22
+ end
23
+ add_message "google.monitoring.dashboard.v1.ColumnLayout.Column" do
24
+ optional :weight, :int64, 1
25
+ repeated :widgets, :message, 2, "google.monitoring.dashboard.v1.Widget"
26
+ end
27
+ end
28
+ end
29
+
30
+ module Google
31
+ module Cloud
32
+ module Monitoring
33
+ module Dashboard
34
+ module V1
35
+ GridLayout = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.GridLayout").msgclass
36
+ RowLayout = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.RowLayout").msgclass
37
+ RowLayout::Row = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.RowLayout.Row").msgclass
38
+ ColumnLayout = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.ColumnLayout").msgclass
39
+ ColumnLayout::Column = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.ColumnLayout.Column").msgclass
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,79 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/monitoring/dashboard/v1/metrics.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/field_behavior_pb'
7
+ require 'google/monitoring/dashboard/v1/common_pb'
8
+ Google::Protobuf::DescriptorPool.generated_pool.build do
9
+ add_file("google/monitoring/dashboard/v1/metrics.proto", :syntax => :proto3) do
10
+ add_message "google.monitoring.dashboard.v1.TimeSeriesQuery" do
11
+ optional :unit_override, :string, 5
12
+ oneof :source do
13
+ optional :time_series_filter, :message, 1, "google.monitoring.dashboard.v1.TimeSeriesFilter"
14
+ optional :time_series_filter_ratio, :message, 2, "google.monitoring.dashboard.v1.TimeSeriesFilterRatio"
15
+ end
16
+ end
17
+ add_message "google.monitoring.dashboard.v1.TimeSeriesFilter" do
18
+ optional :filter, :string, 1
19
+ optional :aggregation, :message, 2, "google.monitoring.dashboard.v1.Aggregation"
20
+ oneof :output_filter do
21
+ optional :pick_time_series_filter, :message, 4, "google.monitoring.dashboard.v1.PickTimeSeriesFilter"
22
+ optional :statistical_time_series_filter, :message, 5, "google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter"
23
+ end
24
+ end
25
+ add_message "google.monitoring.dashboard.v1.TimeSeriesFilterRatio" do
26
+ optional :numerator, :message, 1, "google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart"
27
+ optional :denominator, :message, 2, "google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart"
28
+ optional :secondary_aggregation, :message, 3, "google.monitoring.dashboard.v1.Aggregation"
29
+ oneof :output_filter do
30
+ optional :pick_time_series_filter, :message, 4, "google.monitoring.dashboard.v1.PickTimeSeriesFilter"
31
+ optional :statistical_time_series_filter, :message, 5, "google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter"
32
+ end
33
+ end
34
+ add_message "google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart" do
35
+ optional :filter, :string, 1
36
+ optional :aggregation, :message, 2, "google.monitoring.dashboard.v1.Aggregation"
37
+ end
38
+ add_message "google.monitoring.dashboard.v1.Threshold" do
39
+ optional :label, :string, 1
40
+ optional :value, :double, 2
41
+ optional :color, :enum, 3, "google.monitoring.dashboard.v1.Threshold.Color"
42
+ optional :direction, :enum, 4, "google.monitoring.dashboard.v1.Threshold.Direction"
43
+ end
44
+ add_enum "google.monitoring.dashboard.v1.Threshold.Color" do
45
+ value :COLOR_UNSPECIFIED, 0
46
+ value :YELLOW, 4
47
+ value :RED, 6
48
+ end
49
+ add_enum "google.monitoring.dashboard.v1.Threshold.Direction" do
50
+ value :DIRECTION_UNSPECIFIED, 0
51
+ value :ABOVE, 1
52
+ value :BELOW, 2
53
+ end
54
+ add_enum "google.monitoring.dashboard.v1.SparkChartType" do
55
+ value :SPARK_CHART_TYPE_UNSPECIFIED, 0
56
+ value :SPARK_LINE, 1
57
+ value :SPARK_BAR, 2
58
+ end
59
+ end
60
+ end
61
+
62
+ module Google
63
+ module Cloud
64
+ module Monitoring
65
+ module Dashboard
66
+ module V1
67
+ TimeSeriesQuery = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.TimeSeriesQuery").msgclass
68
+ TimeSeriesFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.TimeSeriesFilter").msgclass
69
+ TimeSeriesFilterRatio = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.TimeSeriesFilterRatio").msgclass
70
+ TimeSeriesFilterRatio::RatioPart = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart").msgclass
71
+ Threshold = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.Threshold").msgclass
72
+ Threshold::Color = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.Threshold.Color").enummodule
73
+ Threshold::Direction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.Threshold.Direction").enummodule
74
+ SparkChartType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.SparkChartType").enummodule
75
+ end
76
+ end
77
+ end
78
+ end
79
+ end