google-cloud-monitoring 0.28.0 → 0.29.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 +4 -4
  2. data/.yardopts +1 -0
  3. data/README.md +38 -12
  4. data/lib/google/cloud/monitoring.rb +52 -2
  5. data/lib/google/cloud/monitoring/v3.rb +124 -52
  6. data/lib/google/cloud/monitoring/v3/alert_policy_service_client.rb +67 -29
  7. data/lib/google/cloud/monitoring/v3/credentials.rb +43 -0
  8. data/lib/google/cloud/monitoring/v3/doc/google/api/metric.rb +7 -11
  9. data/lib/google/cloud/monitoring/v3/doc/google/api/monitored_resource.rb +27 -3
  10. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/alert.rb +7 -8
  11. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/alert_service.rb +135 -0
  12. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/group_service.rb +145 -0
  13. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/metric.rb +17 -12
  14. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/metric_service.rb +227 -0
  15. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/notification_service.rb +213 -0
  16. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/uptime.rb +49 -29
  17. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/uptime_service.rb +131 -0
  18. data/lib/google/cloud/monitoring/v3/doc/google/protobuf/any.rb +124 -0
  19. data/lib/google/cloud/monitoring/v3/doc/google/protobuf/empty.rb +28 -0
  20. data/lib/google/cloud/monitoring/v3/doc/google/protobuf/struct.rb +73 -0
  21. data/lib/google/cloud/monitoring/v3/doc/google/rpc/status.rb +83 -0
  22. data/lib/google/cloud/monitoring/v3/doc/overview.rb +26 -1
  23. data/lib/google/cloud/monitoring/v3/group_service_client.rb +78 -35
  24. data/lib/google/cloud/monitoring/v3/metric_service_client.rb +99 -47
  25. data/lib/google/cloud/monitoring/v3/notification_channel_service_client.rb +87 -39
  26. data/lib/google/cloud/monitoring/v3/uptime_check_service_client.rb +90 -47
  27. data/lib/google/monitoring/v3/alert_service_services_pb.rb +1 -1
  28. data/lib/google/monitoring/v3/dropped_labels_pb.rb +19 -0
  29. data/lib/google/monitoring/v3/group_service_services_pb.rb +2 -2
  30. data/lib/google/monitoring/v3/metric_pb.rb +3 -0
  31. data/lib/google/monitoring/v3/metric_service_pb.rb +2 -0
  32. data/lib/google/monitoring/v3/metric_service_services_pb.rb +1 -1
  33. data/lib/google/monitoring/v3/notification_service_services_pb.rb +1 -1
  34. data/lib/google/monitoring/v3/span_context_pb.rb +18 -0
  35. data/lib/google/monitoring/v3/uptime_pb.rb +10 -9
  36. data/lib/google/monitoring/v3/uptime_service_pb.rb +1 -0
  37. data/lib/google/monitoring/v3/uptime_service_services_pb.rb +1 -1
  38. metadata +59 -6
  39. data/lib/google/cloud/monitoring/credentials.rb +0 -33
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/monitoring/v3/metric_service.proto for package 'google.monitoring.v3'
3
3
  # Original file comments:
4
- # Copyright 2016 Google Inc.
4
+ # Copyright 2018 Google LLC
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/monitoring/v3/notification_service.proto for package 'google.monitoring.v3'
3
3
  # Original file comments:
4
- # Copyright 2018 Google Inc.
4
+ # Copyright 2018 Google LLC
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -0,0 +1,18 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/monitoring/v3/span_context.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_message "google.monitoring.v3.SpanContext" do
8
+ optional :span_name, :string, 1
9
+ end
10
+ end
11
+
12
+ module Google
13
+ module Monitoring
14
+ module V3
15
+ SpanContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.SpanContext").msgclass
16
+ end
17
+ end
18
+ end
@@ -6,6 +6,13 @@ require 'google/protobuf'
6
6
  require 'google/api/monitored_resource_pb'
7
7
  require 'google/protobuf/duration_pb'
8
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
+ add_message "google.monitoring.v3.InternalChecker" do
10
+ optional :project_id, :string, 1
11
+ optional :network, :string, 2
12
+ optional :gcp_zone, :string, 3
13
+ optional :checker_id, :string, 4
14
+ optional :display_name, :string, 5
15
+ end
9
16
  add_message "google.monitoring.v3.UptimeCheckConfig" do
10
17
  optional :name, :string, 1
11
18
  optional :display_name, :string, 2
@@ -13,7 +20,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
13
20
  optional :timeout, :message, 8, "google.protobuf.Duration"
14
21
  repeated :content_matchers, :message, 9, "google.monitoring.v3.UptimeCheckConfig.ContentMatcher"
15
22
  repeated :selected_regions, :enum, 10, "google.monitoring.v3.UptimeCheckRegion"
16
- repeated :internal_checkers, :message, 14, "google.monitoring.v3.UptimeCheckConfig.InternalChecker"
23
+ optional :is_internal, :bool, 15
24
+ repeated :internal_checkers, :message, 14, "google.monitoring.v3.InternalChecker"
17
25
  oneof :resource do
18
26
  optional :monitored_resource, :message, 3, "google.api.MonitoredResource"
19
27
  optional :resource_group, :message, 4, "google.monitoring.v3.UptimeCheckConfig.ResourceGroup"
@@ -45,13 +53,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
45
53
  add_message "google.monitoring.v3.UptimeCheckConfig.ContentMatcher" do
46
54
  optional :content, :string, 1
47
55
  end
48
- add_message "google.monitoring.v3.UptimeCheckConfig.InternalChecker" do
49
- optional :project_id, :string, 1
50
- optional :network, :string, 2
51
- optional :gcp_zone, :string, 3
52
- optional :checker_id, :string, 4
53
- optional :display_name, :string, 5
54
- end
55
56
  add_message "google.monitoring.v3.UptimeCheckIp" do
56
57
  optional :region, :enum, 1, "google.monitoring.v3.UptimeCheckRegion"
57
58
  optional :location, :string, 2
@@ -74,13 +75,13 @@ end
74
75
  module Google
75
76
  module Monitoring
76
77
  module V3
78
+ InternalChecker = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.InternalChecker").msgclass
77
79
  UptimeCheckConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckConfig").msgclass
78
80
  UptimeCheckConfig::ResourceGroup = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckConfig.ResourceGroup").msgclass
79
81
  UptimeCheckConfig::HttpCheck = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckConfig.HttpCheck").msgclass
80
82
  UptimeCheckConfig::HttpCheck::BasicAuthentication = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication").msgclass
81
83
  UptimeCheckConfig::TcpCheck = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckConfig.TcpCheck").msgclass
82
84
  UptimeCheckConfig::ContentMatcher = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckConfig.ContentMatcher").msgclass
83
- UptimeCheckConfig::InternalChecker = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckConfig.InternalChecker").msgclass
84
85
  UptimeCheckIp = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckIp").msgclass
85
86
  UptimeCheckRegion = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckRegion").enummodule
86
87
  GroupResourceType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.GroupResourceType").enummodule
@@ -16,6 +16,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
16
16
  add_message "google.monitoring.v3.ListUptimeCheckConfigsResponse" do
17
17
  repeated :uptime_check_configs, :message, 1, "google.monitoring.v3.UptimeCheckConfig"
18
18
  optional :next_page_token, :string, 2
19
+ optional :total_size, :int32, 3
19
20
  end
20
21
  add_message "google.monitoring.v3.GetUptimeCheckConfigRequest" do
21
22
  optional :name, :string, 1
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/monitoring/v3/uptime_service.proto for package 'google.monitoring.v3'
3
3
  # Original file comments:
4
- # Copyright 2017 Google Inc.
4
+ # Copyright 2018 Google LLC
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-monitoring
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.0
4
+ version: 0.29.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-19 00:00:00.000000000 Z
11
+ date: 2018-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax
@@ -16,14 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.0'
19
+ version: '1.3'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.0'
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: googleapis-common-protos-types
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 1.0.2
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 1.0.2
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: minitest
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -38,6 +52,20 @@ dependencies:
38
52
  - - "~>"
39
53
  - !ruby/object:Gem::Version
40
54
  version: '5.10'
55
+ - !ruby/object:Gem::Dependency
56
+ name: redcarpet
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.0'
41
69
  - !ruby/object:Gem::Dependency
42
70
  name: rubocop
43
71
  requirement: !ruby/object:Gem::Requirement
@@ -66,6 +94,20 @@ dependencies:
66
94
  - - "~>"
67
95
  - !ruby/object:Gem::Version
68
96
  version: '0.9'
97
+ - !ruby/object:Gem::Dependency
98
+ name: yard
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '0.9'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '0.9'
69
111
  description: google-cloud-monitoring is the official library for Stackdriver Monitoring
70
112
  API.
71
113
  email: googleapis-packages@google.com
@@ -78,25 +120,34 @@ files:
78
120
  - README.md
79
121
  - lib/google-cloud-monitoring.rb
80
122
  - lib/google/cloud/monitoring.rb
81
- - lib/google/cloud/monitoring/credentials.rb
82
123
  - lib/google/cloud/monitoring/v3.rb
83
124
  - lib/google/cloud/monitoring/v3/alert_policy_service_client.rb
84
125
  - lib/google/cloud/monitoring/v3/alert_policy_service_client_config.json
126
+ - lib/google/cloud/monitoring/v3/credentials.rb
85
127
  - lib/google/cloud/monitoring/v3/doc/google/api/distribution.rb
86
128
  - lib/google/cloud/monitoring/v3/doc/google/api/label.rb
87
129
  - lib/google/cloud/monitoring/v3/doc/google/api/metric.rb
88
130
  - lib/google/cloud/monitoring/v3/doc/google/api/monitored_resource.rb
89
131
  - lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/alert.rb
132
+ - lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/alert_service.rb
90
133
  - lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/common.rb
91
134
  - lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/group.rb
135
+ - lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/group_service.rb
92
136
  - lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/metric.rb
137
+ - lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/metric_service.rb
93
138
  - lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/mutation_record.rb
94
139
  - lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/notification.rb
140
+ - lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/notification_service.rb
95
141
  - lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/uptime.rb
142
+ - lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/uptime_service.rb
143
+ - lib/google/cloud/monitoring/v3/doc/google/protobuf/any.rb
96
144
  - lib/google/cloud/monitoring/v3/doc/google/protobuf/duration.rb
145
+ - lib/google/cloud/monitoring/v3/doc/google/protobuf/empty.rb
97
146
  - lib/google/cloud/monitoring/v3/doc/google/protobuf/field_mask.rb
147
+ - lib/google/cloud/monitoring/v3/doc/google/protobuf/struct.rb
98
148
  - lib/google/cloud/monitoring/v3/doc/google/protobuf/timestamp.rb
99
149
  - lib/google/cloud/monitoring/v3/doc/google/protobuf/wrappers.rb
150
+ - lib/google/cloud/monitoring/v3/doc/google/rpc/status.rb
100
151
  - lib/google/cloud/monitoring/v3/doc/overview.rb
101
152
  - lib/google/cloud/monitoring/v3/group_service_client.rb
102
153
  - lib/google/cloud/monitoring/v3/group_service_client_config.json
@@ -110,6 +161,7 @@ files:
110
161
  - lib/google/monitoring/v3/alert_service_pb.rb
111
162
  - lib/google/monitoring/v3/alert_service_services_pb.rb
112
163
  - lib/google/monitoring/v3/common_pb.rb
164
+ - lib/google/monitoring/v3/dropped_labels_pb.rb
113
165
  - lib/google/monitoring/v3/group_pb.rb
114
166
  - lib/google/monitoring/v3/group_service_pb.rb
115
167
  - lib/google/monitoring/v3/group_service_services_pb.rb
@@ -120,6 +172,7 @@ files:
120
172
  - lib/google/monitoring/v3/notification_pb.rb
121
173
  - lib/google/monitoring/v3/notification_service_pb.rb
122
174
  - lib/google/monitoring/v3/notification_service_services_pb.rb
175
+ - lib/google/monitoring/v3/span_context_pb.rb
123
176
  - lib/google/monitoring/v3/uptime_pb.rb
124
177
  - lib/google/monitoring/v3/uptime_service_pb.rb
125
178
  - lib/google/monitoring/v3/uptime_service_services_pb.rb
@@ -143,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
196
  version: '0'
144
197
  requirements: []
145
198
  rubyforge_project:
146
- rubygems_version: 2.7.6
199
+ rubygems_version: 2.7.7
147
200
  signing_key:
148
201
  specification_version: 4
149
202
  summary: API Client library for Stackdriver Monitoring API
@@ -1,33 +0,0 @@
1
- # Copyright 2018 Google LLC
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # https://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- require "googleauth"
16
-
17
- module Google
18
- module Cloud
19
- module Monitoring
20
- class Credentials < Google::Auth::Credentials
21
- SCOPE = [
22
- "https://www.googleapis.com/auth/cloud-platform",
23
- "https://www.googleapis.com/auth/monitoring",
24
- "https://www.googleapis.com/auth/monitoring.read",
25
- "https://www.googleapis.com/auth/monitoring.write"
26
- ].freeze
27
- PATH_ENV_VARS = %w(MONITORING_KEYFILE GOOGLE_CLOUD_KEYFILE GCLOUD_KEYFILE)
28
- JSON_ENV_VARS = %w(MONITORING_KEYFILE_JSON GOOGLE_CLOUD_KEYFILE_JSON GCLOUD_KEYFILE_JSON)
29
- DEFAULT_PATHS = ["~/.config/gcloud/application_default_credentials.json"]
30
- end
31
- end
32
- end
33
- end