google-cloud-monitoring 0.37.1 → 1.0.2
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 +93 -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 +72 -129
- 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 -345
- 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 -326
- 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 -109
- data/lib/google/monitoring/v3/uptime_service_pb.rb +0 -63
- data/lib/google/monitoring/v3/uptime_service_services_pb.rb +0 -67
@@ -1,38 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/monitoring/dashboard/v1/scorecard.proto
|
3
|
-
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
require 'google/monitoring/dashboard/v1/metrics_pb'
|
8
|
-
require 'google/protobuf/duration_pb'
|
9
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
|
-
add_message "google.monitoring.dashboard.v1.Scorecard" do
|
11
|
-
optional :time_series_query, :message, 1, "google.monitoring.dashboard.v1.TimeSeriesQuery"
|
12
|
-
repeated :thresholds, :message, 6, "google.monitoring.dashboard.v1.Threshold"
|
13
|
-
oneof :data_view do
|
14
|
-
optional :gauge_view, :message, 4, "google.monitoring.dashboard.v1.Scorecard.GaugeView"
|
15
|
-
optional :spark_chart_view, :message, 5, "google.monitoring.dashboard.v1.Scorecard.SparkChartView"
|
16
|
-
end
|
17
|
-
end
|
18
|
-
add_message "google.monitoring.dashboard.v1.Scorecard.GaugeView" do
|
19
|
-
optional :lower_bound, :double, 1
|
20
|
-
optional :upper_bound, :double, 2
|
21
|
-
end
|
22
|
-
add_message "google.monitoring.dashboard.v1.Scorecard.SparkChartView" do
|
23
|
-
optional :spark_chart_type, :enum, 1, "google.monitoring.dashboard.v1.SparkChartType"
|
24
|
-
optional :min_alignment_period, :message, 2, "google.protobuf.Duration"
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
|
-
module Google
|
29
|
-
module Monitoring
|
30
|
-
module Dashboard
|
31
|
-
module V1
|
32
|
-
Scorecard = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.Scorecard").msgclass
|
33
|
-
Scorecard::GaugeView = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.Scorecard.GaugeView").msgclass
|
34
|
-
Scorecard::SparkChartView = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.Scorecard.SparkChartView").msgclass
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/monitoring/dashboard/v1/service.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
|
-
module V1
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
@@ -1,28 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/monitoring/dashboard/v1/text.proto
|
3
|
-
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
-
add_message "google.monitoring.dashboard.v1.Text" do
|
9
|
-
optional :content, :string, 1
|
10
|
-
optional :format, :enum, 2, "google.monitoring.dashboard.v1.Text.Format"
|
11
|
-
end
|
12
|
-
add_enum "google.monitoring.dashboard.v1.Text.Format" do
|
13
|
-
value :FORMAT_UNSPECIFIED, 0
|
14
|
-
value :MARKDOWN, 1
|
15
|
-
value :RAW, 2
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
module Google
|
20
|
-
module Monitoring
|
21
|
-
module Dashboard
|
22
|
-
module V1
|
23
|
-
Text = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.Text").msgclass
|
24
|
-
Text::Format = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.Text.Format").enummodule
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
@@ -1,32 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/monitoring/dashboard/v1/widget.proto
|
3
|
-
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
require 'google/api/field_behavior_pb'
|
8
|
-
require 'google/monitoring/dashboard/v1/scorecard_pb'
|
9
|
-
require 'google/monitoring/dashboard/v1/text_pb'
|
10
|
-
require 'google/monitoring/dashboard/v1/xychart_pb'
|
11
|
-
require 'google/protobuf/empty_pb'
|
12
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
|
-
add_message "google.monitoring.dashboard.v1.Widget" do
|
14
|
-
optional :title, :string, 1
|
15
|
-
oneof :content do
|
16
|
-
optional :xy_chart, :message, 2, "google.monitoring.dashboard.v1.XyChart"
|
17
|
-
optional :scorecard, :message, 3, "google.monitoring.dashboard.v1.Scorecard"
|
18
|
-
optional :text, :message, 4, "google.monitoring.dashboard.v1.Text"
|
19
|
-
optional :blank, :message, 5, "google.protobuf.Empty"
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
module Google
|
25
|
-
module Monitoring
|
26
|
-
module Dashboard
|
27
|
-
module V1
|
28
|
-
Widget = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.Widget").msgclass
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
@@ -1,66 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/monitoring/dashboard/v1/xychart.proto
|
3
|
-
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
require 'google/api/field_behavior_pb'
|
8
|
-
require 'google/monitoring/dashboard/v1/metrics_pb'
|
9
|
-
require 'google/protobuf/duration_pb'
|
10
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
|
-
add_message "google.monitoring.dashboard.v1.XyChart" do
|
12
|
-
repeated :data_sets, :message, 1, "google.monitoring.dashboard.v1.XyChart.DataSet"
|
13
|
-
optional :timeshift_duration, :message, 4, "google.protobuf.Duration"
|
14
|
-
repeated :thresholds, :message, 5, "google.monitoring.dashboard.v1.Threshold"
|
15
|
-
optional :x_axis, :message, 6, "google.monitoring.dashboard.v1.XyChart.Axis"
|
16
|
-
optional :y_axis, :message, 7, "google.monitoring.dashboard.v1.XyChart.Axis"
|
17
|
-
optional :chart_options, :message, 8, "google.monitoring.dashboard.v1.ChartOptions"
|
18
|
-
end
|
19
|
-
add_message "google.monitoring.dashboard.v1.XyChart.DataSet" do
|
20
|
-
optional :time_series_query, :message, 1, "google.monitoring.dashboard.v1.TimeSeriesQuery"
|
21
|
-
optional :plot_type, :enum, 2, "google.monitoring.dashboard.v1.XyChart.DataSet.PlotType"
|
22
|
-
optional :legend_template, :string, 3
|
23
|
-
optional :min_alignment_period, :message, 4, "google.protobuf.Duration"
|
24
|
-
end
|
25
|
-
add_enum "google.monitoring.dashboard.v1.XyChart.DataSet.PlotType" do
|
26
|
-
value :PLOT_TYPE_UNSPECIFIED, 0
|
27
|
-
value :LINE, 1
|
28
|
-
value :STACKED_AREA, 2
|
29
|
-
value :STACKED_BAR, 3
|
30
|
-
value :HEATMAP, 4
|
31
|
-
end
|
32
|
-
add_message "google.monitoring.dashboard.v1.XyChart.Axis" do
|
33
|
-
optional :label, :string, 1
|
34
|
-
optional :scale, :enum, 2, "google.monitoring.dashboard.v1.XyChart.Axis.Scale"
|
35
|
-
end
|
36
|
-
add_enum "google.monitoring.dashboard.v1.XyChart.Axis.Scale" do
|
37
|
-
value :SCALE_UNSPECIFIED, 0
|
38
|
-
value :LINEAR, 1
|
39
|
-
value :LOG10, 2
|
40
|
-
end
|
41
|
-
add_message "google.monitoring.dashboard.v1.ChartOptions" do
|
42
|
-
optional :mode, :enum, 1, "google.monitoring.dashboard.v1.ChartOptions.Mode"
|
43
|
-
end
|
44
|
-
add_enum "google.monitoring.dashboard.v1.ChartOptions.Mode" do
|
45
|
-
value :MODE_UNSPECIFIED, 0
|
46
|
-
value :COLOR, 1
|
47
|
-
value :X_RAY, 2
|
48
|
-
value :STATS, 3
|
49
|
-
end
|
50
|
-
end
|
51
|
-
|
52
|
-
module Google
|
53
|
-
module Monitoring
|
54
|
-
module Dashboard
|
55
|
-
module V1
|
56
|
-
XyChart = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.XyChart").msgclass
|
57
|
-
XyChart::DataSet = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.XyChart.DataSet").msgclass
|
58
|
-
XyChart::DataSet::PlotType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.XyChart.DataSet.PlotType").enummodule
|
59
|
-
XyChart::Axis = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.XyChart.Axis").msgclass
|
60
|
-
XyChart::Axis::Scale = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.XyChart.Axis.Scale").enummodule
|
61
|
-
ChartOptions = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.ChartOptions").msgclass
|
62
|
-
ChartOptions::Mode = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.ChartOptions.Mode").enummodule
|
63
|
-
end
|
64
|
-
end
|
65
|
-
end
|
66
|
-
end
|
@@ -1,87 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/monitoring/v3/alert.proto
|
3
|
-
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
require 'google/api/resource_pb'
|
8
|
-
require 'google/monitoring/v3/common_pb'
|
9
|
-
require 'google/monitoring/v3/mutation_record_pb'
|
10
|
-
require 'google/protobuf/duration_pb'
|
11
|
-
require 'google/protobuf/wrappers_pb'
|
12
|
-
require 'google/rpc/status_pb'
|
13
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
|
-
add_message "google.monitoring.v3.AlertPolicy" do
|
15
|
-
optional :name, :string, 1
|
16
|
-
optional :display_name, :string, 2
|
17
|
-
optional :documentation, :message, 13, "google.monitoring.v3.AlertPolicy.Documentation"
|
18
|
-
map :user_labels, :string, :string, 16
|
19
|
-
repeated :conditions, :message, 12, "google.monitoring.v3.AlertPolicy.Condition"
|
20
|
-
optional :combiner, :enum, 6, "google.monitoring.v3.AlertPolicy.ConditionCombinerType"
|
21
|
-
optional :enabled, :message, 17, "google.protobuf.BoolValue"
|
22
|
-
optional :validity, :message, 18, "google.rpc.Status"
|
23
|
-
repeated :notification_channels, :string, 14
|
24
|
-
optional :creation_record, :message, 10, "google.monitoring.v3.MutationRecord"
|
25
|
-
optional :mutation_record, :message, 11, "google.monitoring.v3.MutationRecord"
|
26
|
-
end
|
27
|
-
add_message "google.monitoring.v3.AlertPolicy.Documentation" do
|
28
|
-
optional :content, :string, 1
|
29
|
-
optional :mime_type, :string, 2
|
30
|
-
end
|
31
|
-
add_message "google.monitoring.v3.AlertPolicy.Condition" do
|
32
|
-
optional :name, :string, 12
|
33
|
-
optional :display_name, :string, 6
|
34
|
-
oneof :condition do
|
35
|
-
optional :condition_threshold, :message, 1, "google.monitoring.v3.AlertPolicy.Condition.MetricThreshold"
|
36
|
-
optional :condition_absent, :message, 2, "google.monitoring.v3.AlertPolicy.Condition.MetricAbsence"
|
37
|
-
optional :condition_time_series_query_language, :message, 14, "google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition"
|
38
|
-
end
|
39
|
-
end
|
40
|
-
add_message "google.monitoring.v3.AlertPolicy.Condition.Trigger" do
|
41
|
-
oneof :type do
|
42
|
-
optional :count, :int32, 1
|
43
|
-
optional :percent, :double, 2
|
44
|
-
end
|
45
|
-
end
|
46
|
-
add_message "google.monitoring.v3.AlertPolicy.Condition.MetricThreshold" do
|
47
|
-
optional :filter, :string, 2
|
48
|
-
repeated :aggregations, :message, 8, "google.monitoring.v3.Aggregation"
|
49
|
-
optional :denominator_filter, :string, 9
|
50
|
-
repeated :denominator_aggregations, :message, 10, "google.monitoring.v3.Aggregation"
|
51
|
-
optional :comparison, :enum, 4, "google.monitoring.v3.ComparisonType"
|
52
|
-
optional :threshold_value, :double, 5
|
53
|
-
optional :duration, :message, 6, "google.protobuf.Duration"
|
54
|
-
optional :trigger, :message, 7, "google.monitoring.v3.AlertPolicy.Condition.Trigger"
|
55
|
-
end
|
56
|
-
add_message "google.monitoring.v3.AlertPolicy.Condition.MetricAbsence" do
|
57
|
-
optional :filter, :string, 1
|
58
|
-
repeated :aggregations, :message, 5, "google.monitoring.v3.Aggregation"
|
59
|
-
optional :duration, :message, 2, "google.protobuf.Duration"
|
60
|
-
optional :trigger, :message, 3, "google.monitoring.v3.AlertPolicy.Condition.Trigger"
|
61
|
-
end
|
62
|
-
add_message "google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition" do
|
63
|
-
optional :query, :string, 1
|
64
|
-
optional :summary, :string, 2
|
65
|
-
end
|
66
|
-
add_enum "google.monitoring.v3.AlertPolicy.ConditionCombinerType" do
|
67
|
-
value :COMBINE_UNSPECIFIED, 0
|
68
|
-
value :AND, 1
|
69
|
-
value :OR, 2
|
70
|
-
value :AND_WITH_MATCHING_RESOURCE, 3
|
71
|
-
end
|
72
|
-
end
|
73
|
-
|
74
|
-
module Google
|
75
|
-
module Monitoring
|
76
|
-
module V3
|
77
|
-
AlertPolicy = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy").msgclass
|
78
|
-
AlertPolicy::Documentation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.Documentation").msgclass
|
79
|
-
AlertPolicy::Condition = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.Condition").msgclass
|
80
|
-
AlertPolicy::Condition::Trigger = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.Condition.Trigger").msgclass
|
81
|
-
AlertPolicy::Condition::MetricThreshold = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.Condition.MetricThreshold").msgclass
|
82
|
-
AlertPolicy::Condition::MetricAbsence = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.Condition.MetricAbsence").msgclass
|
83
|
-
AlertPolicy::Condition::TimeSeriesQueryLanguageCondition = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition").msgclass
|
84
|
-
AlertPolicy::ConditionCombinerType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.ConditionCombinerType").enummodule
|
85
|
-
end
|
86
|
-
end
|
87
|
-
end
|
@@ -1,53 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/monitoring/v3/alert_service.proto
|
3
|
-
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
require 'google/api/annotations_pb'
|
8
|
-
require 'google/api/client_pb'
|
9
|
-
require 'google/api/field_behavior_pb'
|
10
|
-
require 'google/api/resource_pb'
|
11
|
-
require 'google/monitoring/v3/alert_pb'
|
12
|
-
require 'google/protobuf/empty_pb'
|
13
|
-
require 'google/protobuf/field_mask_pb'
|
14
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
15
|
-
add_message "google.monitoring.v3.CreateAlertPolicyRequest" do
|
16
|
-
optional :name, :string, 3
|
17
|
-
optional :alert_policy, :message, 2, "google.monitoring.v3.AlertPolicy"
|
18
|
-
end
|
19
|
-
add_message "google.monitoring.v3.GetAlertPolicyRequest" do
|
20
|
-
optional :name, :string, 3
|
21
|
-
end
|
22
|
-
add_message "google.monitoring.v3.ListAlertPoliciesRequest" do
|
23
|
-
optional :name, :string, 4
|
24
|
-
optional :filter, :string, 5
|
25
|
-
optional :order_by, :string, 6
|
26
|
-
optional :page_size, :int32, 2
|
27
|
-
optional :page_token, :string, 3
|
28
|
-
end
|
29
|
-
add_message "google.monitoring.v3.ListAlertPoliciesResponse" do
|
30
|
-
repeated :alert_policies, :message, 3, "google.monitoring.v3.AlertPolicy"
|
31
|
-
optional :next_page_token, :string, 2
|
32
|
-
end
|
33
|
-
add_message "google.monitoring.v3.UpdateAlertPolicyRequest" do
|
34
|
-
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
35
|
-
optional :alert_policy, :message, 3, "google.monitoring.v3.AlertPolicy"
|
36
|
-
end
|
37
|
-
add_message "google.monitoring.v3.DeleteAlertPolicyRequest" do
|
38
|
-
optional :name, :string, 3
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
module Google
|
43
|
-
module Monitoring
|
44
|
-
module V3
|
45
|
-
CreateAlertPolicyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.CreateAlertPolicyRequest").msgclass
|
46
|
-
GetAlertPolicyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.GetAlertPolicyRequest").msgclass
|
47
|
-
ListAlertPoliciesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ListAlertPoliciesRequest").msgclass
|
48
|
-
ListAlertPoliciesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ListAlertPoliciesResponse").msgclass
|
49
|
-
UpdateAlertPolicyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UpdateAlertPolicyRequest").msgclass
|
50
|
-
DeleteAlertPolicyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.DeleteAlertPolicyRequest").msgclass
|
51
|
-
end
|
52
|
-
end
|
53
|
-
end
|
@@ -1,63 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# Source: google/monitoring/v3/alert_service.proto for package 'google.monitoring.v3'
|
3
|
-
# Original file comments:
|
4
|
-
# Copyright 2020 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/v3/alert_service_pb'
|
22
|
-
|
23
|
-
module Google
|
24
|
-
module Monitoring
|
25
|
-
module V3
|
26
|
-
module AlertPolicyService
|
27
|
-
# The AlertPolicyService API is used to manage (list, create, delete,
|
28
|
-
# edit) alert policies in Stackdriver Monitoring. An alerting policy is
|
29
|
-
# a description of the conditions under which some aspect of your
|
30
|
-
# system is considered to be "unhealthy" and the ways to notify
|
31
|
-
# people or services about this state. In addition to using this API, alert
|
32
|
-
# policies can also be managed through
|
33
|
-
# [Stackdriver Monitoring](https://cloud.google.com/monitoring/docs/),
|
34
|
-
# which can be reached by clicking the "Monitoring" tab in
|
35
|
-
# [Cloud Console](https://console.cloud.google.com/).
|
36
|
-
class Service
|
37
|
-
|
38
|
-
include GRPC::GenericService
|
39
|
-
|
40
|
-
self.marshal_class_method = :encode
|
41
|
-
self.unmarshal_class_method = :decode
|
42
|
-
self.service_name = 'google.monitoring.v3.AlertPolicyService'
|
43
|
-
|
44
|
-
# Lists the existing alerting policies for the project.
|
45
|
-
rpc :ListAlertPolicies, ListAlertPoliciesRequest, ListAlertPoliciesResponse
|
46
|
-
# Gets a single alerting policy.
|
47
|
-
rpc :GetAlertPolicy, GetAlertPolicyRequest, AlertPolicy
|
48
|
-
# Creates a new alerting policy.
|
49
|
-
rpc :CreateAlertPolicy, CreateAlertPolicyRequest, AlertPolicy
|
50
|
-
# Deletes an alerting policy.
|
51
|
-
rpc :DeleteAlertPolicy, DeleteAlertPolicyRequest, Google::Protobuf::Empty
|
52
|
-
# Updates an alerting policy. You can either replace the entire policy with
|
53
|
-
# a new one or replace only certain fields in the current alerting policy by
|
54
|
-
# specifying the fields to be updated via `updateMask`. Returns the
|
55
|
-
# updated alerting policy.
|
56
|
-
rpc :UpdateAlertPolicy, UpdateAlertPolicyRequest, AlertPolicy
|
57
|
-
end
|
58
|
-
|
59
|
-
Stub = Service.rpc_stub_class
|
60
|
-
end
|
61
|
-
end
|
62
|
-
end
|
63
|
-
end
|
@@ -1,95 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/monitoring/v3/common.proto
|
3
|
-
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
require 'google/api/distribution_pb'
|
8
|
-
require 'google/protobuf/duration_pb'
|
9
|
-
require 'google/protobuf/timestamp_pb'
|
10
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
|
-
add_message "google.monitoring.v3.TypedValue" do
|
12
|
-
oneof :value do
|
13
|
-
optional :bool_value, :bool, 1
|
14
|
-
optional :int64_value, :int64, 2
|
15
|
-
optional :double_value, :double, 3
|
16
|
-
optional :string_value, :string, 4
|
17
|
-
optional :distribution_value, :message, 5, "google.api.Distribution"
|
18
|
-
end
|
19
|
-
end
|
20
|
-
add_message "google.monitoring.v3.TimeInterval" do
|
21
|
-
optional :end_time, :message, 2, "google.protobuf.Timestamp"
|
22
|
-
optional :start_time, :message, 1, "google.protobuf.Timestamp"
|
23
|
-
end
|
24
|
-
add_message "google.monitoring.v3.Aggregation" do
|
25
|
-
optional :alignment_period, :message, 1, "google.protobuf.Duration"
|
26
|
-
optional :per_series_aligner, :enum, 2, "google.monitoring.v3.Aggregation.Aligner"
|
27
|
-
optional :cross_series_reducer, :enum, 4, "google.monitoring.v3.Aggregation.Reducer"
|
28
|
-
repeated :group_by_fields, :string, 5
|
29
|
-
end
|
30
|
-
add_enum "google.monitoring.v3.Aggregation.Aligner" do
|
31
|
-
value :ALIGN_NONE, 0
|
32
|
-
value :ALIGN_DELTA, 1
|
33
|
-
value :ALIGN_RATE, 2
|
34
|
-
value :ALIGN_INTERPOLATE, 3
|
35
|
-
value :ALIGN_NEXT_OLDER, 4
|
36
|
-
value :ALIGN_MIN, 10
|
37
|
-
value :ALIGN_MAX, 11
|
38
|
-
value :ALIGN_MEAN, 12
|
39
|
-
value :ALIGN_COUNT, 13
|
40
|
-
value :ALIGN_SUM, 14
|
41
|
-
value :ALIGN_STDDEV, 15
|
42
|
-
value :ALIGN_COUNT_TRUE, 16
|
43
|
-
value :ALIGN_COUNT_FALSE, 24
|
44
|
-
value :ALIGN_FRACTION_TRUE, 17
|
45
|
-
value :ALIGN_PERCENTILE_99, 18
|
46
|
-
value :ALIGN_PERCENTILE_95, 19
|
47
|
-
value :ALIGN_PERCENTILE_50, 20
|
48
|
-
value :ALIGN_PERCENTILE_05, 21
|
49
|
-
value :ALIGN_PERCENT_CHANGE, 23
|
50
|
-
end
|
51
|
-
add_enum "google.monitoring.v3.Aggregation.Reducer" do
|
52
|
-
value :REDUCE_NONE, 0
|
53
|
-
value :REDUCE_MEAN, 1
|
54
|
-
value :REDUCE_MIN, 2
|
55
|
-
value :REDUCE_MAX, 3
|
56
|
-
value :REDUCE_SUM, 4
|
57
|
-
value :REDUCE_STDDEV, 5
|
58
|
-
value :REDUCE_COUNT, 6
|
59
|
-
value :REDUCE_COUNT_TRUE, 7
|
60
|
-
value :REDUCE_COUNT_FALSE, 15
|
61
|
-
value :REDUCE_FRACTION_TRUE, 8
|
62
|
-
value :REDUCE_PERCENTILE_99, 9
|
63
|
-
value :REDUCE_PERCENTILE_95, 10
|
64
|
-
value :REDUCE_PERCENTILE_50, 11
|
65
|
-
value :REDUCE_PERCENTILE_05, 12
|
66
|
-
end
|
67
|
-
add_enum "google.monitoring.v3.ComparisonType" do
|
68
|
-
value :COMPARISON_UNSPECIFIED, 0
|
69
|
-
value :COMPARISON_GT, 1
|
70
|
-
value :COMPARISON_GE, 2
|
71
|
-
value :COMPARISON_LT, 3
|
72
|
-
value :COMPARISON_LE, 4
|
73
|
-
value :COMPARISON_EQ, 5
|
74
|
-
value :COMPARISON_NE, 6
|
75
|
-
end
|
76
|
-
add_enum "google.monitoring.v3.ServiceTier" do
|
77
|
-
value :SERVICE_TIER_UNSPECIFIED, 0
|
78
|
-
value :SERVICE_TIER_BASIC, 1
|
79
|
-
value :SERVICE_TIER_PREMIUM, 2
|
80
|
-
end
|
81
|
-
end
|
82
|
-
|
83
|
-
module Google
|
84
|
-
module Monitoring
|
85
|
-
module V3
|
86
|
-
TypedValue = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.TypedValue").msgclass
|
87
|
-
TimeInterval = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.TimeInterval").msgclass
|
88
|
-
Aggregation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.Aggregation").msgclass
|
89
|
-
Aggregation::Aligner = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.Aggregation.Aligner").enummodule
|
90
|
-
Aggregation::Reducer = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.Aggregation.Reducer").enummodule
|
91
|
-
ComparisonType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ComparisonType").enummodule
|
92
|
-
ServiceTier = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ServiceTier").enummodule
|
93
|
-
end
|
94
|
-
end
|
95
|
-
end
|