google-cloud-monitoring 0.38.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +2 -1
- data/AUTHENTICATION.md +51 -54
- data/LICENSE.md +203 -0
- data/MIGRATING.md +361 -0
- data/README.md +34 -50
- data/lib/google-cloud-monitoring.rb +6 -5
- data/lib/google/cloud/monitoring.rb +255 -443
- data/lib/google/cloud/monitoring/dashboard.rb +88 -117
- data/lib/google/cloud/monitoring/{v3/doc/google/protobuf/wrappers.rb → dashboard/version.rb} +12 -9
- data/lib/google/cloud/monitoring/version.rb +6 -2
- metadata +71 -128
- data/LICENSE +0 -201
- data/lib/google/cloud/monitoring/dashboard/v1.rb +0 -148
- data/lib/google/cloud/monitoring/dashboard/v1/credentials.rb +0 -46
- data/lib/google/cloud/monitoring/dashboard/v1/dashboards_service_client.rb +0 -457
- data/lib/google/cloud/monitoring/dashboard/v1/dashboards_service_client_config.json +0 -51
- data/lib/google/cloud/monitoring/dashboard/v1/doc/google/monitoring/dashboard/v1/common.rb +0 -394
- data/lib/google/cloud/monitoring/dashboard/v1/doc/google/monitoring/dashboard/v1/dashboard.rb +0 -53
- data/lib/google/cloud/monitoring/dashboard/v1/doc/google/monitoring/dashboard/v1/dashboards_service.rb +0 -82
- data/lib/google/cloud/monitoring/dashboard/v1/doc/google/monitoring/dashboard/v1/layouts.rb +0 -71
- data/lib/google/cloud/monitoring/dashboard/v1/doc/google/monitoring/dashboard/v1/metrics.rb +0 -151
- data/lib/google/cloud/monitoring/dashboard/v1/doc/google/monitoring/dashboard/v1/scorecard.rb +0 -102
- data/lib/google/cloud/monitoring/dashboard/v1/doc/google/monitoring/dashboard/v1/text.rb +0 -43
- data/lib/google/cloud/monitoring/dashboard/v1/doc/google/monitoring/dashboard/v1/widget.rb +0 -41
- data/lib/google/cloud/monitoring/dashboard/v1/doc/google/monitoring/dashboard/v1/xychart.rb +0 -141
- data/lib/google/cloud/monitoring/dashboard/v1/doc/google/protobuf/duration.rb +0 -91
- data/lib/google/cloud/monitoring/dashboard/v1/doc/google/protobuf/empty.rb +0 -29
- data/lib/google/cloud/monitoring/v3.rb +0 -532
- data/lib/google/cloud/monitoring/v3/alert_policy_service_client.rb +0 -553
- data/lib/google/cloud/monitoring/v3/alert_policy_service_client_config.json +0 -51
- data/lib/google/cloud/monitoring/v3/credentials.rb +0 -44
- data/lib/google/cloud/monitoring/v3/doc/google/api/distribution.rb +0 -200
- data/lib/google/cloud/monitoring/v3/doc/google/api/label.rb +0 -42
- data/lib/google/cloud/monitoring/v3/doc/google/api/metric.rb +0 -245
- data/lib/google/cloud/monitoring/v3/doc/google/api/monitored_resource.rb +0 -108
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/alert.rb +0 -344
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/alert_service.rb +0 -138
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/common.rb +0 -449
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/group.rb +0 -75
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/group_service.rb +0 -167
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/metric.rb +0 -85
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/metric_service.rb +0 -230
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/mutation_record.rb +0 -29
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/notification.rb +0 -156
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/notification_service.rb +0 -221
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/service.rb +0 -361
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/service_service.rb +0 -197
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/uptime.rb +0 -364
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/uptime_service.rb +0 -136
- data/lib/google/cloud/monitoring/v3/doc/google/protobuf/any.rb +0 -131
- data/lib/google/cloud/monitoring/v3/doc/google/protobuf/duration.rb +0 -91
- data/lib/google/cloud/monitoring/v3/doc/google/protobuf/empty.rb +0 -29
- data/lib/google/cloud/monitoring/v3/doc/google/protobuf/field_mask.rb +0 -222
- data/lib/google/cloud/monitoring/v3/doc/google/protobuf/struct.rb +0 -74
- data/lib/google/cloud/monitoring/v3/doc/google/protobuf/timestamp.rb +0 -113
- data/lib/google/cloud/monitoring/v3/doc/google/rpc/status.rb +0 -39
- data/lib/google/cloud/monitoring/v3/group_service_client.rb +0 -606
- data/lib/google/cloud/monitoring/v3/group_service_client_config.json +0 -56
- data/lib/google/cloud/monitoring/v3/metric_service_client.rb +0 -750
- data/lib/google/cloud/monitoring/v3/metric_service_client_config.json +0 -66
- data/lib/google/cloud/monitoring/v3/notification_channel_service_client.rb +0 -811
- data/lib/google/cloud/monitoring/v3/notification_channel_service_client_config.json +0 -76
- data/lib/google/cloud/monitoring/v3/service_monitoring_service_client.rb +0 -788
- data/lib/google/cloud/monitoring/v3/service_monitoring_service_client_config.json +0 -76
- data/lib/google/cloud/monitoring/v3/uptime_check_service_client.rb +0 -550
- data/lib/google/cloud/monitoring/v3/uptime_check_service_client_config.json +0 -56
- data/lib/google/monitoring/dashboard/v1/common_pb.rb +0 -95
- data/lib/google/monitoring/dashboard/v1/dashboard_pb.rb +0 -29
- data/lib/google/monitoring/dashboard/v1/dashboards_service_pb.rb +0 -51
- data/lib/google/monitoring/dashboard/v1/dashboards_service_services_pb.rb +0 -76
- data/lib/google/monitoring/dashboard/v1/drilldowns_pb.rb +0 -17
- data/lib/google/monitoring/dashboard/v1/layouts_pb.rb +0 -41
- data/lib/google/monitoring/dashboard/v1/metrics_pb.rb +0 -76
- data/lib/google/monitoring/dashboard/v1/scorecard_pb.rb +0 -38
- data/lib/google/monitoring/dashboard/v1/service_pb.rb +0 -17
- data/lib/google/monitoring/dashboard/v1/text_pb.rb +0 -28
- data/lib/google/monitoring/dashboard/v1/widget_pb.rb +0 -32
- data/lib/google/monitoring/dashboard/v1/xychart_pb.rb +0 -66
- data/lib/google/monitoring/v3/alert_pb.rb +0 -87
- data/lib/google/monitoring/v3/alert_service_pb.rb +0 -53
- data/lib/google/monitoring/v3/alert_service_services_pb.rb +0 -63
- data/lib/google/monitoring/v3/common_pb.rb +0 -95
- data/lib/google/monitoring/v3/dropped_labels_pb.rb +0 -19
- data/lib/google/monitoring/v3/group_pb.rb +0 -24
- data/lib/google/monitoring/v3/group_service_pb.rb +0 -73
- data/lib/google/monitoring/v3/group_service_services_pb.rb +0 -66
- data/lib/google/monitoring/v3/metric_pb.rb +0 -82
- data/lib/google/monitoring/v3/metric_service_pb.rb +0 -130
- data/lib/google/monitoring/v3/metric_service_services_pb.rb +0 -66
- data/lib/google/monitoring/v3/mutation_record_pb.rb +0 -21
- data/lib/google/monitoring/v3/notification_pb.rb +0 -47
- data/lib/google/monitoring/v3/notification_service_pb.rb +0 -90
- data/lib/google/monitoring/v3/notification_service_services_pb.rb +0 -94
- data/lib/google/monitoring/v3/service_pb.rb +0 -149
- data/lib/google/monitoring/v3/service_service_pb.rb +0 -86
- data/lib/google/monitoring/v3/service_service_services_pb.rb +0 -65
- data/lib/google/monitoring/v3/span_context_pb.rb +0 -19
- data/lib/google/monitoring/v3/uptime_pb.rb +0 -123
- data/lib/google/monitoring/v3/uptime_service_pb.rb +0 -63
- data/lib/google/monitoring/v3/uptime_service_services_pb.rb +0 -67
@@ -1,56 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"interfaces": {
|
3
|
-
"google.monitoring.v3.UptimeCheckService": {
|
4
|
-
"retry_codes": {
|
5
|
-
"idempotent": [
|
6
|
-
"DEADLINE_EXCEEDED",
|
7
|
-
"UNAVAILABLE"
|
8
|
-
],
|
9
|
-
"non_idempotent": []
|
10
|
-
},
|
11
|
-
"retry_params": {
|
12
|
-
"default": {
|
13
|
-
"initial_retry_delay_millis": 100,
|
14
|
-
"retry_delay_multiplier": 1.3,
|
15
|
-
"max_retry_delay_millis": 60000,
|
16
|
-
"initial_rpc_timeout_millis": 20000,
|
17
|
-
"rpc_timeout_multiplier": 1.0,
|
18
|
-
"max_rpc_timeout_millis": 20000,
|
19
|
-
"total_timeout_millis": 600000
|
20
|
-
}
|
21
|
-
},
|
22
|
-
"methods": {
|
23
|
-
"ListUptimeCheckConfigs": {
|
24
|
-
"timeout_millis": 60000,
|
25
|
-
"retry_codes_name": "idempotent",
|
26
|
-
"retry_params_name": "default"
|
27
|
-
},
|
28
|
-
"GetUptimeCheckConfig": {
|
29
|
-
"timeout_millis": 60000,
|
30
|
-
"retry_codes_name": "idempotent",
|
31
|
-
"retry_params_name": "default"
|
32
|
-
},
|
33
|
-
"CreateUptimeCheckConfig": {
|
34
|
-
"timeout_millis": 60000,
|
35
|
-
"retry_codes_name": "non_idempotent",
|
36
|
-
"retry_params_name": "default"
|
37
|
-
},
|
38
|
-
"UpdateUptimeCheckConfig": {
|
39
|
-
"timeout_millis": 60000,
|
40
|
-
"retry_codes_name": "non_idempotent",
|
41
|
-
"retry_params_name": "default"
|
42
|
-
},
|
43
|
-
"DeleteUptimeCheckConfig": {
|
44
|
-
"timeout_millis": 60000,
|
45
|
-
"retry_codes_name": "idempotent",
|
46
|
-
"retry_params_name": "default"
|
47
|
-
},
|
48
|
-
"ListUptimeCheckIps": {
|
49
|
-
"timeout_millis": 60000,
|
50
|
-
"retry_codes_name": "idempotent",
|
51
|
-
"retry_params_name": "default"
|
52
|
-
}
|
53
|
-
}
|
54
|
-
}
|
55
|
-
}
|
56
|
-
}
|
@@ -1,95 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/monitoring/dashboard/v1/common.proto
|
3
|
-
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
require 'google/protobuf/duration_pb'
|
8
|
-
Google::Protobuf::DescriptorPool.generated_pool.build 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
|
-
|
80
|
-
module Google
|
81
|
-
module Monitoring
|
82
|
-
module Dashboard
|
83
|
-
end
|
84
|
-
end
|
85
|
-
end
|
86
|
-
module Google::Monitoring::Dashboard::V1
|
87
|
-
Aggregation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.Aggregation").msgclass
|
88
|
-
Aggregation::Aligner = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.Aggregation.Aligner").enummodule
|
89
|
-
Aggregation::Reducer = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.Aggregation.Reducer").enummodule
|
90
|
-
PickTimeSeriesFilter = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.PickTimeSeriesFilter").msgclass
|
91
|
-
PickTimeSeriesFilter::Method = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method").enummodule
|
92
|
-
PickTimeSeriesFilter::Direction = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction").enummodule
|
93
|
-
StatisticalTimeSeriesFilter = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter").msgclass
|
94
|
-
StatisticalTimeSeriesFilter::Method = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method").enummodule
|
95
|
-
end
|
@@ -1,29 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/monitoring/dashboard/v1/dashboard.proto
|
3
|
-
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
require 'google/monitoring/dashboard/v1/layouts_pb'
|
8
|
-
Google::Protobuf::DescriptorPool.generated_pool.build 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
|
-
|
21
|
-
module Google
|
22
|
-
module Monitoring
|
23
|
-
module Dashboard
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
module Google::Monitoring::Dashboard::V1
|
28
|
-
Dashboard = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.Dashboard").msgclass
|
29
|
-
end
|
@@ -1,51 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/monitoring/dashboard/v1/dashboards_service.proto
|
3
|
-
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
require 'google/api/annotations_pb'
|
8
|
-
require 'google/api/field_behavior_pb'
|
9
|
-
require 'google/monitoring/dashboard/v1/dashboard_pb'
|
10
|
-
require 'google/protobuf/empty_pb'
|
11
|
-
require 'google/protobuf/field_mask_pb'
|
12
|
-
require 'google/api/client_pb'
|
13
|
-
Google::Protobuf::DescriptorPool.generated_pool.build 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
|
-
|
38
|
-
module Google
|
39
|
-
module Monitoring
|
40
|
-
module Dashboard
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
module Google::Monitoring::Dashboard::V1
|
45
|
-
CreateDashboardRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.CreateDashboardRequest").msgclass
|
46
|
-
ListDashboardsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.ListDashboardsRequest").msgclass
|
47
|
-
ListDashboardsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.ListDashboardsResponse").msgclass
|
48
|
-
GetDashboardRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.GetDashboardRequest").msgclass
|
49
|
-
DeleteDashboardRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.DeleteDashboardRequest").msgclass
|
50
|
-
UpdateDashboardRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.UpdateDashboardRequest").msgclass
|
51
|
-
end
|
@@ -1,76 +0,0 @@
|
|
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
|
-
|
21
|
-
require 'grpc'
|
22
|
-
require 'google/monitoring/dashboard/v1/dashboards_service_pb'
|
23
|
-
|
24
|
-
module Google
|
25
|
-
module Monitoring
|
26
|
-
module Dashboard
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
30
|
-
module Google::Monitoring::Dashboard::V1
|
31
|
-
module DashboardsService
|
32
|
-
# Manages Stackdriver dashboards. A dashboard is an arrangement of data display
|
33
|
-
# widgets in a specific layout.
|
34
|
-
class Service
|
35
|
-
|
36
|
-
include GRPC::GenericService
|
37
|
-
|
38
|
-
self.marshal_class_method = :encode
|
39
|
-
self.unmarshal_class_method = :decode
|
40
|
-
self.service_name = 'google.monitoring.dashboard.v1.DashboardsService'
|
41
|
-
|
42
|
-
# Creates a new custom dashboard.
|
43
|
-
#
|
44
|
-
# This method requires the `monitoring.dashboards.create` permission
|
45
|
-
# on the specified project. For more information, see
|
46
|
-
# [Google Cloud IAM](https://cloud.google.com/iam).
|
47
|
-
rpc :CreateDashboard, CreateDashboardRequest, Dashboard
|
48
|
-
# Lists the existing dashboards.
|
49
|
-
#
|
50
|
-
# This method requires the `monitoring.dashboards.list` permission
|
51
|
-
# on the specified project. For more information, see
|
52
|
-
# [Google Cloud IAM](https://cloud.google.com/iam).
|
53
|
-
rpc :ListDashboards, ListDashboardsRequest, ListDashboardsResponse
|
54
|
-
# Fetches a specific dashboard.
|
55
|
-
#
|
56
|
-
# This method requires the `monitoring.dashboards.get` permission
|
57
|
-
# on the specified dashboard. For more information, see
|
58
|
-
# [Google Cloud IAM](https://cloud.google.com/iam).
|
59
|
-
rpc :GetDashboard, GetDashboardRequest, Dashboard
|
60
|
-
# Deletes an existing custom dashboard.
|
61
|
-
#
|
62
|
-
# This method requires the `monitoring.dashboards.delete` permission
|
63
|
-
# on the specified dashboard. For more information, see
|
64
|
-
# [Google Cloud IAM](https://cloud.google.com/iam).
|
65
|
-
rpc :DeleteDashboard, DeleteDashboardRequest, Google::Protobuf::Empty
|
66
|
-
# Replaces an existing custom dashboard with a new definition.
|
67
|
-
#
|
68
|
-
# This method requires the `monitoring.dashboards.update` permission
|
69
|
-
# on the specified dashboard. For more information, see
|
70
|
-
# [Google Cloud IAM](https://cloud.google.com/iam).
|
71
|
-
rpc :UpdateDashboard, UpdateDashboardRequest, Dashboard
|
72
|
-
end
|
73
|
-
|
74
|
-
Stub = Service.rpc_stub_class
|
75
|
-
end
|
76
|
-
end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/monitoring/dashboard/v1/drilldowns.proto
|
3
|
-
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
-
end
|
9
|
-
|
10
|
-
module Google
|
11
|
-
module Monitoring
|
12
|
-
module Dashboard
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
module Google::Monitoring::Dashboard::V1
|
17
|
-
end
|
@@ -1,41 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/monitoring/dashboard/v1/layouts.proto
|
3
|
-
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
require 'google/monitoring/dashboard/v1/widget_pb'
|
8
|
-
Google::Protobuf::DescriptorPool.generated_pool.build 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
|
-
|
29
|
-
module Google
|
30
|
-
module Monitoring
|
31
|
-
module Dashboard
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
module Google::Monitoring::Dashboard::V1
|
36
|
-
GridLayout = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.GridLayout").msgclass
|
37
|
-
RowLayout = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.RowLayout").msgclass
|
38
|
-
RowLayout::Row = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.RowLayout.Row").msgclass
|
39
|
-
ColumnLayout = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.ColumnLayout").msgclass
|
40
|
-
ColumnLayout::Column = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.ColumnLayout.Column").msgclass
|
41
|
-
end
|
@@ -1,76 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/monitoring/dashboard/v1/metrics.proto
|
3
|
-
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
require 'google/api/field_behavior_pb'
|
8
|
-
require 'google/monitoring/dashboard/v1/common_pb'
|
9
|
-
Google::Protobuf::DescriptorPool.generated_pool.build 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
|
-
|
61
|
-
module Google
|
62
|
-
module Monitoring
|
63
|
-
module Dashboard
|
64
|
-
end
|
65
|
-
end
|
66
|
-
end
|
67
|
-
module Google::Monitoring::Dashboard::V1
|
68
|
-
TimeSeriesQuery = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.TimeSeriesQuery").msgclass
|
69
|
-
TimeSeriesFilter = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.TimeSeriesFilter").msgclass
|
70
|
-
TimeSeriesFilterRatio = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.TimeSeriesFilterRatio").msgclass
|
71
|
-
TimeSeriesFilterRatio::RatioPart = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart").msgclass
|
72
|
-
Threshold = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.Threshold").msgclass
|
73
|
-
Threshold::Color = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.Threshold.Color").enummodule
|
74
|
-
Threshold::Direction = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.Threshold.Direction").enummodule
|
75
|
-
SparkChartType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.SparkChartType").enummodule
|
76
|
-
end
|