google-cloud-monitoring-v3 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/monitoring/v3/metric_service/client.rb +96 -0
  3. data/lib/google/cloud/monitoring/v3/version.rb +1 -1
  4. data/lib/google/monitoring/v3/alert_pb.rb +2 -2
  5. data/lib/google/monitoring/v3/alert_service_pb.rb +2 -2
  6. data/lib/google/monitoring/v3/alert_service_services_pb.rb +1 -1
  7. data/lib/google/monitoring/v3/common_pb.rb +8 -2
  8. data/lib/google/monitoring/v3/group_pb.rb +1 -1
  9. data/lib/google/monitoring/v3/group_service_pb.rb +2 -2
  10. data/lib/google/monitoring/v3/group_service_services_pb.rb +1 -1
  11. data/lib/google/monitoring/v3/metric_pb.rb +2 -2
  12. data/lib/google/monitoring/v3/metric_service_pb.rb +2 -2
  13. data/lib/google/monitoring/v3/metric_service_services_pb.rb +13 -1
  14. data/lib/google/monitoring/v3/mutation_record_pb.rb +1 -1
  15. data/lib/google/monitoring/v3/notification_pb.rb +4 -2
  16. data/lib/google/monitoring/v3/notification_service_pb.rb +2 -2
  17. data/lib/google/monitoring/v3/notification_service_services_pb.rb +1 -1
  18. data/lib/google/monitoring/v3/query_service_pb.rb +2 -2
  19. data/lib/google/monitoring/v3/query_service_services_pb.rb +1 -1
  20. data/lib/google/monitoring/v3/service_pb.rb +3 -2
  21. data/lib/google/monitoring/v3/service_service_pb.rb +2 -2
  22. data/lib/google/monitoring/v3/service_service_services_pb.rb +1 -1
  23. data/lib/google/monitoring/v3/uptime_pb.rb +2 -2
  24. data/lib/google/monitoring/v3/uptime_service_pb.rb +2 -2
  25. data/lib/google/monitoring/v3/uptime_service_services_pb.rb +1 -1
  26. data/proto_docs/google/monitoring/v3/alert.rb +5 -5
  27. data/proto_docs/google/monitoring/v3/common.rb +24 -0
  28. data/proto_docs/google/monitoring/v3/notification.rb +4 -0
  29. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5c4a4b754aa2a207389ae00d3da7aa82d1e54e649ddfa4d352993b3e1e4c55c5
4
- data.tar.gz: edb8e5a5d6a9f9a8d2eca79d702615fc181d93c830a7013c815d10577d9356da
3
+ metadata.gz: 5e2adcdd895a09b496d0690535f9e8b610ebf955a5826ece302aab758ac9e4e4
4
+ data.tar.gz: 02dd20945c0b716859a9cb5be7c8898a368e469afe92d78e45246933fe36929d
5
5
  SHA512:
6
- metadata.gz: 204e30228200cc150bb96602586058e541e59865432b5c671710931d9c88b0dd45bd9e47ff0f52c6aa04265e7a4a019b8c6de79e50000ff71be93cd172f33438
7
- data.tar.gz: 6d0eea897a6f29e661d1a02c59700fe303501e50c88638069b16ec53fdd0f96ef0594474aa277a668bea55fcfbc2e9bd01149c793f5fdb42358d556d5364df84
6
+ metadata.gz: c09357f07ce077d4c8249eac7277e4cb7ab801a170108502b00fcfc906e99b2c8e2df25469c270157fb663e367569fc5f8340ee9da5f2b825a7136ece5c7a983
7
+ data.tar.gz: 340f1e694260e5ed7996812d68afb121536a5e9ae1fa97788a6fd61fc20a4aadac7a484a7be1a0f9b79be769c700e7fbec1dff4804fbcae6787453a588666ae7
@@ -499,6 +499,8 @@ module Google
499
499
 
500
500
  ##
501
501
  # Creates a new metric descriptor.
502
+ # The creation is executed asynchronously and callers may check the returned
503
+ # operation to track its progress.
502
504
  # User-created metric descriptors define
503
505
  # [custom metrics](https://cloud.google.com/monitoring/custom-metrics).
504
506
  #
@@ -840,6 +842,93 @@ module Google
840
842
  raise ::Google::Cloud::Error.from_error(e)
841
843
  end
842
844
 
845
+ ##
846
+ # Creates or adds data to one or more service time series. A service time
847
+ # series is a time series for a metric from a Google Cloud service. The
848
+ # response is empty if all time series in the request were written. If any
849
+ # time series could not be written, a corresponding failure message is
850
+ # included in the error response. This endpoint rejects writes to
851
+ # user-defined metrics.
852
+ # This method is only for use by Google Cloud services. Use
853
+ # {::Google::Cloud::Monitoring::V3::MetricService::Client#create_time_series projects.timeSeries.create}
854
+ # instead.
855
+ #
856
+ # @overload create_service_time_series(request, options = nil)
857
+ # Pass arguments to `create_service_time_series` via a request object, either of type
858
+ # {::Google::Cloud::Monitoring::V3::CreateTimeSeriesRequest} or an equivalent Hash.
859
+ #
860
+ # @param request [::Google::Cloud::Monitoring::V3::CreateTimeSeriesRequest, ::Hash]
861
+ # A request object representing the call parameters. Required. To specify no
862
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
863
+ # @param options [::Gapic::CallOptions, ::Hash]
864
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
865
+ #
866
+ # @overload create_service_time_series(name: nil, time_series: nil)
867
+ # Pass arguments to `create_service_time_series` via keyword arguments. Note that at
868
+ # least one keyword argument is required. To specify no parameters, or to keep all
869
+ # the default parameter values, pass an empty Hash as a request object (see above).
870
+ #
871
+ # @param name [::String]
872
+ # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
873
+ # which to execute the request. The format is:
874
+ #
875
+ # projects/[PROJECT_ID_OR_NUMBER]
876
+ # @param time_series [::Array<::Google::Cloud::Monitoring::V3::TimeSeries, ::Hash>]
877
+ # Required. The new data to be added to a list of time series.
878
+ # Adds at most one data point to each of several time series. The new data
879
+ # point must be more recent than any other point in its time series. Each
880
+ # `TimeSeries` value must fully specify a unique time series by supplying
881
+ # all label values for the metric and the monitored resource.
882
+ #
883
+ # The maximum number of `TimeSeries` objects per `Create` request is 200.
884
+ #
885
+ # @yield [response, operation] Access the result along with the RPC operation
886
+ # @yieldparam response [::Google::Protobuf::Empty]
887
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
888
+ #
889
+ # @return [::Google::Protobuf::Empty]
890
+ #
891
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
892
+ #
893
+ def create_service_time_series request, options = nil
894
+ raise ::ArgumentError, "request must be provided" if request.nil?
895
+
896
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Monitoring::V3::CreateTimeSeriesRequest
897
+
898
+ # Converts hash and nil to an options object
899
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
900
+
901
+ # Customize the options with defaults
902
+ metadata = @config.rpcs.create_service_time_series.metadata.to_h
903
+
904
+ # Set x-goog-api-client and x-goog-user-project headers
905
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
906
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
907
+ gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
908
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
909
+
910
+ header_params = {
911
+ "name" => request.name
912
+ }
913
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
914
+ metadata[:"x-goog-request-params"] ||= request_params_header
915
+
916
+ options.apply_defaults timeout: @config.rpcs.create_service_time_series.timeout,
917
+ metadata: metadata,
918
+ retry_policy: @config.rpcs.create_service_time_series.retry_policy
919
+
920
+ options.apply_defaults timeout: @config.timeout,
921
+ metadata: @config.metadata,
922
+ retry_policy: @config.retry_policy
923
+
924
+ @metric_service_stub.call_rpc :create_service_time_series, request, options: options do |response, operation|
925
+ yield response, operation if block_given?
926
+ return response
927
+ end
928
+ rescue ::GRPC::BadStatus => e
929
+ raise ::Google::Cloud::Error.from_error(e)
930
+ end
931
+
843
932
  ##
844
933
  # Configuration class for the MetricService API.
845
934
  #
@@ -1015,6 +1104,11 @@ module Google
1015
1104
  # @return [::Gapic::Config::Method]
1016
1105
  #
1017
1106
  attr_reader :create_time_series
1107
+ ##
1108
+ # RPC-specific configuration for `create_service_time_series`
1109
+ # @return [::Gapic::Config::Method]
1110
+ #
1111
+ attr_reader :create_service_time_series
1018
1112
 
1019
1113
  # @private
1020
1114
  def initialize parent_rpcs = nil
@@ -1034,6 +1128,8 @@ module Google
1034
1128
  @list_time_series = ::Gapic::Config::Method.new list_time_series_config
1035
1129
  create_time_series_config = parent_rpcs.create_time_series if parent_rpcs.respond_to? :create_time_series
1036
1130
  @create_time_series = ::Gapic::Config::Method.new create_time_series_config
1131
+ create_service_time_series_config = parent_rpcs.create_service_time_series if parent_rpcs.respond_to? :create_service_time_series
1132
+ @create_service_time_series = ::Gapic::Config::Method.new create_service_time_series_config
1037
1133
 
1038
1134
  yield self if block_given?
1039
1135
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Monitoring
23
23
  module V3
24
- VERSION = "0.5.0"
24
+ VERSION = "0.6.0"
25
25
  end
26
26
  end
27
27
  end
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/monitoring/v3/alert.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/field_behavior_pb'
7
5
  require 'google/api/resource_pb'
8
6
  require 'google/monitoring/v3/common_pb'
@@ -10,6 +8,8 @@ require 'google/monitoring/v3/mutation_record_pb'
10
8
  require 'google/protobuf/duration_pb'
11
9
  require 'google/protobuf/wrappers_pb'
12
10
  require 'google/rpc/status_pb'
11
+ require 'google/protobuf'
12
+
13
13
  Google::Protobuf::DescriptorPool.generated_pool.build do
14
14
  add_file("google/monitoring/v3/alert.proto", :syntax => :proto3) do
15
15
  add_message "google.monitoring.v3.AlertPolicy" do
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/monitoring/v3/alert_service.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/api/field_behavior_pb'
@@ -10,6 +8,8 @@ require 'google/api/resource_pb'
10
8
  require 'google/monitoring/v3/alert_pb'
11
9
  require 'google/protobuf/empty_pb'
12
10
  require 'google/protobuf/field_mask_pb'
11
+ require 'google/protobuf'
12
+
13
13
  Google::Protobuf::DescriptorPool.generated_pool.build do
14
14
  add_file("google/monitoring/v3/alert_service.proto", :syntax => :proto3) do
15
15
  add_message "google.monitoring.v3.CreateAlertPolicyRequest" do
@@ -35,7 +35,7 @@ module Google
35
35
  # [Cloud Console](https://console.cloud.google.com/).
36
36
  class Service
37
37
 
38
- include GRPC::GenericService
38
+ include ::GRPC::GenericService
39
39
 
40
40
  self.marshal_class_method = :encode
41
41
  self.unmarshal_class_method = :decode
@@ -1,11 +1,11 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/monitoring/v3/common.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/distribution_pb'
7
5
  require 'google/protobuf/duration_pb'
8
6
  require 'google/protobuf/timestamp_pb'
7
+ require 'google/protobuf'
8
+
9
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
10
  add_file("google/monitoring/v3/common.proto", :syntax => :proto3) do
11
11
  add_message "google.monitoring.v3.TypedValue" do
@@ -73,6 +73,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
73
73
  value :COMPARISON_EQ, 5
74
74
  value :COMPARISON_NE, 6
75
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
76
81
  end
77
82
  end
78
83
 
@@ -86,6 +91,7 @@ module Google
86
91
  Aggregation::Aligner = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.Aggregation.Aligner").enummodule
87
92
  Aggregation::Reducer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.Aggregation.Reducer").enummodule
88
93
  ComparisonType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ComparisonType").enummodule
94
+ ServiceTier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ServiceTier").enummodule
89
95
  end
90
96
  end
91
97
  end
@@ -1,9 +1,9 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/monitoring/v3/group.proto
3
3
 
4
+ require 'google/api/resource_pb'
4
5
  require 'google/protobuf'
5
6
 
6
- require 'google/api/resource_pb'
7
7
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
8
  add_file("google/monitoring/v3/group.proto", :syntax => :proto3) do
9
9
  add_message "google.monitoring.v3.Group" do
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/monitoring/v3/group_service.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/api/field_behavior_pb'
@@ -11,6 +9,8 @@ require 'google/api/resource_pb'
11
9
  require 'google/monitoring/v3/common_pb'
12
10
  require 'google/monitoring/v3/group_pb'
13
11
  require 'google/protobuf/empty_pb'
12
+ require 'google/protobuf'
13
+
14
14
  Google::Protobuf::DescriptorPool.generated_pool.build do
15
15
  add_file("google/monitoring/v3/group_service.proto", :syntax => :proto3) do
16
16
  add_message "google.monitoring.v3.ListGroupsRequest" do
@@ -38,7 +38,7 @@ module Google
38
38
  # from the infrastructure.
39
39
  class Service
40
40
 
41
- include GRPC::GenericService
41
+ include ::GRPC::GenericService
42
42
 
43
43
  self.marshal_class_method = :encode
44
44
  self.unmarshal_class_method = :decode
@@ -1,14 +1,14 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/monitoring/v3/metric.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/distribution_pb'
7
5
  require 'google/api/label_pb'
8
6
  require 'google/api/metric_pb'
9
7
  require 'google/api/monitored_resource_pb'
10
8
  require 'google/monitoring/v3/common_pb'
11
9
  require 'google/protobuf/duration_pb'
10
+ require 'google/protobuf'
11
+
12
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
13
13
  add_file("google/monitoring/v3/metric.proto", :syntax => :proto3) do
14
14
  add_message "google.monitoring.v3.Point" do
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/monitoring/v3/metric_service.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/api/field_behavior_pb'
@@ -15,6 +13,8 @@ require 'google/monitoring/v3/metric_pb'
15
13
  require 'google/protobuf/duration_pb'
16
14
  require 'google/protobuf/empty_pb'
17
15
  require 'google/rpc/status_pb'
16
+ require 'google/protobuf'
17
+
18
18
  Google::Protobuf::DescriptorPool.generated_pool.build do
19
19
  add_file("google/monitoring/v3/metric_service.proto", :syntax => :proto3) do
20
20
  add_message "google.monitoring.v3.ListMonitoredResourceDescriptorsRequest" do
@@ -28,7 +28,7 @@ module Google
28
28
  # time series data.
29
29
  class Service
30
30
 
31
- include GRPC::GenericService
31
+ include ::GRPC::GenericService
32
32
 
33
33
  self.marshal_class_method = :encode
34
34
  self.unmarshal_class_method = :decode
@@ -43,6 +43,8 @@ module Google
43
43
  # Gets a single metric descriptor. This method does not require a Workspace.
44
44
  rpc :GetMetricDescriptor, ::Google::Cloud::Monitoring::V3::GetMetricDescriptorRequest, ::Google::Api::MetricDescriptor
45
45
  # Creates a new metric descriptor.
46
+ # The creation is executed asynchronously and callers may check the returned
47
+ # operation to track its progress.
46
48
  # User-created metric descriptors define
47
49
  # [custom metrics](https://cloud.google.com/monitoring/custom-metrics).
48
50
  rpc :CreateMetricDescriptor, ::Google::Cloud::Monitoring::V3::CreateMetricDescriptorRequest, ::Google::Api::MetricDescriptor
@@ -57,6 +59,16 @@ module Google
57
59
  # If any time series could not be written, a corresponding failure message is
58
60
  # included in the error response.
59
61
  rpc :CreateTimeSeries, ::Google::Cloud::Monitoring::V3::CreateTimeSeriesRequest, ::Google::Protobuf::Empty
62
+ # Creates or adds data to one or more service time series. A service time
63
+ # series is a time series for a metric from a Google Cloud service. The
64
+ # response is empty if all time series in the request were written. If any
65
+ # time series could not be written, a corresponding failure message is
66
+ # included in the error response. This endpoint rejects writes to
67
+ # user-defined metrics.
68
+ # This method is only for use by Google Cloud services. Use
69
+ # [projects.timeSeries.create][google.monitoring.v3.MetricService.CreateTimeSeries]
70
+ # instead.
71
+ rpc :CreateServiceTimeSeries, ::Google::Cloud::Monitoring::V3::CreateTimeSeriesRequest, ::Google::Protobuf::Empty
60
72
  end
61
73
 
62
74
  Stub = Service.rpc_stub_class
@@ -1,9 +1,9 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/monitoring/v3/mutation_record.proto
3
3
 
4
+ require 'google/protobuf/timestamp_pb'
4
5
  require 'google/protobuf'
5
6
 
6
- require 'google/protobuf/timestamp_pb'
7
7
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
8
  add_file("google/monitoring/v3/mutation_record.proto", :syntax => :proto3) do
9
9
  add_message "google.monitoring.v3.MutationRecord" do
@@ -1,13 +1,14 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/monitoring/v3/notification.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/label_pb'
7
5
  require 'google/api/launch_stage_pb'
8
6
  require 'google/api/resource_pb'
7
+ require 'google/monitoring/v3/common_pb'
9
8
  require 'google/monitoring/v3/mutation_record_pb'
10
9
  require 'google/protobuf/wrappers_pb'
10
+ require 'google/protobuf'
11
+
11
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
13
  add_file("google/monitoring/v3/notification.proto", :syntax => :proto3) do
13
14
  add_message "google.monitoring.v3.NotificationChannelDescriptor" do
@@ -16,6 +17,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
16
17
  optional :display_name, :string, 2
17
18
  optional :description, :string, 3
18
19
  repeated :labels, :message, 4, "google.api.LabelDescriptor"
20
+ repeated :supported_tiers, :enum, 5, "google.monitoring.v3.ServiceTier"
19
21
  optional :launch_stage, :enum, 7, "google.api.LaunchStage"
20
22
  end
21
23
  add_message "google.monitoring.v3.NotificationChannel" do
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/monitoring/v3/notification_service.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/api/field_behavior_pb'
@@ -12,6 +10,8 @@ require 'google/protobuf/empty_pb'
12
10
  require 'google/protobuf/field_mask_pb'
13
11
  require 'google/protobuf/struct_pb'
14
12
  require 'google/protobuf/timestamp_pb'
13
+ require 'google/protobuf'
14
+
15
15
  Google::Protobuf::DescriptorPool.generated_pool.build do
16
16
  add_file("google/monitoring/v3/notification_service.proto", :syntax => :proto3) do
17
17
  add_message "google.monitoring.v3.ListNotificationChannelDescriptorsRequest" do
@@ -28,7 +28,7 @@ module Google
28
28
  # controls how messages related to incidents are sent.
29
29
  class Service
30
30
 
31
- include GRPC::GenericService
31
+ include ::GRPC::GenericService
32
32
 
33
33
  self.marshal_class_method = :encode
34
34
  self.unmarshal_class_method = :decode
@@ -1,13 +1,13 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/monitoring/v3/query_service.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/label_pb'
8
6
  require 'google/monitoring/v3/metric_pb'
9
7
  require 'google/monitoring/v3/metric_service_pb'
10
8
  require 'google/api/client_pb'
9
+ require 'google/protobuf'
10
+
11
11
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
12
  add_file("google/monitoring/v3/query_service.proto", :syntax => :proto3) do
13
13
  end
@@ -29,7 +29,7 @@ module Google
29
29
  # the time-varying values of a metric.
30
30
  class Service
31
31
 
32
- include GRPC::GenericService
32
+ include ::GRPC::GenericService
33
33
 
34
34
  self.marshal_class_method = :encode
35
35
  self.unmarshal_class_method = :decode
@@ -1,12 +1,13 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/monitoring/v3/service.proto
3
3
 
4
- require 'google/protobuf'
5
-
4
+ require 'google/api/field_behavior_pb'
6
5
  require 'google/api/resource_pb'
7
6
  require 'google/protobuf/duration_pb'
8
7
  require 'google/protobuf/timestamp_pb'
9
8
  require 'google/type/calendar_period_pb'
9
+ require 'google/protobuf'
10
+
10
11
  Google::Protobuf::DescriptorPool.generated_pool.build do
11
12
  add_file("google/monitoring/v3/service.proto", :syntax => :proto3) do
12
13
  add_message "google.monitoring.v3.Service" do
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/monitoring/v3/service_service.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/api/field_behavior_pb'
@@ -10,6 +8,8 @@ require 'google/api/resource_pb'
10
8
  require 'google/monitoring/v3/service_pb'
11
9
  require 'google/protobuf/empty_pb'
12
10
  require 'google/protobuf/field_mask_pb'
11
+ require 'google/protobuf'
12
+
13
13
  Google::Protobuf::DescriptorPool.generated_pool.build do
14
14
  add_file("google/monitoring/v3/service_service.proto", :syntax => :proto3) do
15
15
  add_message "google.monitoring.v3.CreateServiceRequest" do
@@ -30,7 +30,7 @@ module Google
30
30
  # of categorized Health Metrics.
31
31
  class Service
32
32
 
33
- include GRPC::GenericService
33
+ include ::GRPC::GenericService
34
34
 
35
35
  self.marshal_class_method = :encode
36
36
  self.unmarshal_class_method = :decode
@@ -1,11 +1,11 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/monitoring/v3/uptime.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/monitored_resource_pb'
7
5
  require 'google/api/resource_pb'
8
6
  require 'google/protobuf/duration_pb'
7
+ require 'google/protobuf'
8
+
9
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
10
  add_file("google/monitoring/v3/uptime.proto", :syntax => :proto3) do
11
11
  add_message "google.monitoring.v3.InternalChecker" do
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/monitoring/v3/uptime_service.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/api/field_behavior_pb'
@@ -12,6 +10,8 @@ require 'google/monitoring/v3/uptime_pb'
12
10
  require 'google/protobuf/duration_pb'
13
11
  require 'google/protobuf/empty_pb'
14
12
  require 'google/protobuf/field_mask_pb'
13
+ require 'google/protobuf'
14
+
15
15
  Google::Protobuf::DescriptorPool.generated_pool.build do
16
16
  add_file("google/monitoring/v3/uptime_service.proto", :syntax => :proto3) do
17
17
  add_message "google.monitoring.v3.ListUptimeCheckConfigsRequest" do
@@ -34,7 +34,7 @@ module Google
34
34
  # and then clicking on "Uptime".
35
35
  class Service
36
36
 
37
- include GRPC::GenericService
37
+ include ::GRPC::GenericService
38
38
 
39
39
  self.marshal_class_method = :encode
40
40
  self.unmarshal_class_method = :decode
@@ -218,7 +218,7 @@ module Google
218
218
  # well as how to combine the retrieved time series together (such as
219
219
  # when aggregating multiple streams on each resource to a single
220
220
  # stream for each resource or when aggregating streams across all
221
- # members of a group of resrouces). Multiple aggregations
221
+ # members of a group of resources). Multiple aggregations
222
222
  # are applied in the order specified.
223
223
  #
224
224
  # This field is similar to the one in the [`ListTimeSeries`
@@ -307,7 +307,7 @@ module Google
307
307
  # well as how to combine the retrieved time series together (such as
308
308
  # when aggregating multiple streams on each resource to a single
309
309
  # stream for each resource or when aggregating streams across all
310
- # members of a group of resrouces). Multiple aggregations
310
+ # members of a group of resources). Multiple aggregations
311
311
  # are applied in the order specified.
312
312
  #
313
313
  # This field is similar to the one in the [`ListTimeSeries`
@@ -341,8 +341,8 @@ module Google
341
341
  # @!attribute [rw] filter
342
342
  # @return [::String]
343
343
  # Required. A logs-based filter. See [Advanced Logs
344
- # Queries](/logging/docs/view/advanced-queries) for how this filter
345
- # should be constructed.
344
+ # Queries](https://cloud.google.com/logging/docs/view/advanced-queries)
345
+ # for how this filter should be constructed.
346
346
  # @!attribute [rw] label_extractors
347
347
  # @return [::Google::Protobuf::Map{::String => ::String}]
348
348
  # Optional. A map from a label key to an extractor expression, which is
@@ -354,7 +354,7 @@ module Google
354
354
  # condition.
355
355
  #
356
356
  # Please see [the documentation on logs-based metric
357
- # `valueExtractor`s](/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
357
+ # `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
358
358
  # for syntax and examples.
359
359
  class LogMatch
360
360
  include ::Google::Protobuf::MessageExts
@@ -459,6 +459,30 @@ module Google
459
459
  # True if the left argument is not equal to the right argument.
460
460
  COMPARISON_NE = 6
461
461
  end
462
+
463
+ # The tier of service for a Workspace. Please see the
464
+ # [service tiers
465
+ # documentation](https://cloud.google.com/monitoring/workspaces/tiers) for more
466
+ # details.
467
+ module ServiceTier
468
+ # An invalid sentinel value, used to indicate that a tier has not
469
+ # been provided explicitly.
470
+ SERVICE_TIER_UNSPECIFIED = 0
471
+
472
+ # The Stackdriver Basic tier, a free tier of service that provides basic
473
+ # features, a moderate allotment of logs, and access to built-in metrics.
474
+ # A number of features are not available in this tier. For more details,
475
+ # see [the service tiers
476
+ # documentation](https://cloud.google.com/monitoring/workspaces/tiers).
477
+ SERVICE_TIER_BASIC = 1
478
+
479
+ # The Stackdriver Premium tier, a higher, more expensive tier of service
480
+ # that provides access to all Stackdriver features, lets you use Stackdriver
481
+ # with AWS accounts, and has a larger allotments for logs and metrics. For
482
+ # more details, see [the service tiers
483
+ # documentation](https://cloud.google.com/monitoring/workspaces/tiers).
484
+ SERVICE_TIER_PREMIUM = 2
485
+ end
462
486
  end
463
487
  end
464
488
  end
@@ -52,6 +52,10 @@ module Google
52
52
  # The set of labels that must be defined to identify a particular
53
53
  # channel of the corresponding type. Each label includes a
54
54
  # description for how that field should be populated.
55
+ # @!attribute [rw] supported_tiers
56
+ # @return [::Array<::Google::Cloud::Monitoring::V3::ServiceTier>]
57
+ # The tiers that support this notification channel; the project service tier
58
+ # must be one of the supported_tiers.
55
59
  # @!attribute [rw] launch_stage
56
60
  # @return [::Google::Api::LaunchStage]
57
61
  # The product launch stage for channels of this type.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-monitoring-v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.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: 2021-08-30 00:00:00.000000000 Z
11
+ date: 2021-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common