google-apis-monitoring_v3 0.11.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a82b6e36feff3153fbc1347b374ab0e80248cd2c22cdcd8c6e3c3e7713afd316
4
- data.tar.gz: aeba95ffac929f0321cc4a3cd9700beb00662f99d22e704d82b76bdaf269981d
3
+ metadata.gz: a87c01dab5578fb9429691741fa503bb1757df838b10271d66ca6ae704b1d3fc
4
+ data.tar.gz: e3660a177d48cc81314107a4c8d809d05e11dec75b684e83442116af3154d197
5
5
  SHA512:
6
- metadata.gz: 992208589d9da04d0717b837e58d8a2683efc577623efeb11e70afd9c369d5d22c6235324b3cefafbe09138ac6645d7f26b8ce48c647a9886f09d3d0f662cd0a
7
- data.tar.gz: c1b8752225e2b02c6c3310a484c46336544a01c5d0fce3db545d4a2d49888d3e8d667a0ecd5122062be867b8c9199d28d3b6344170aedc27a3e0736dded32548
6
+ metadata.gz: 4e34fbdc4dfa82ce672b79a911c8a908b44ee6d4bd7fa92f7f3a7791c9a0302b9df084024bca84bb0ee1421e9099ff4a974f3e2114771dfeb028b8ed0add40e6
7
+ data.tar.gz: f395d8d230bfb49e9673ee0d63897ecdf634ac9dfee9f86769ec4517d612dfc73e0cb3392e3e19b30d4f378d57a22af63037b4d53fd1083fe1ac006979a1223a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-monitoring_v3
2
2
 
3
+ ### v0.15.0 (2021-10-02)
4
+
5
+ * Regenerated from discovery document revision 20210926
6
+
7
+ ### v0.14.0 (2021-09-03)
8
+
9
+ * Regenerated from discovery document revision 20210830
10
+
11
+ ### v0.13.0 (2021-07-27)
12
+
13
+ * Regenerated from discovery document revision 20210720
14
+
15
+ ### v0.12.0 (2021-07-16)
16
+
17
+ * Regenerated from discovery document revision 20210712
18
+
3
19
  ### v0.11.0 (2021-07-06)
4
20
 
5
21
  * Regenerated from discovery document revision 20210702
@@ -241,6 +241,12 @@ module Google
241
241
  class AlertStrategy
242
242
  include Google::Apis::Core::Hashable
243
243
 
244
+ # If an alert policy that was active has no data for this long, any open
245
+ # incidents will close
246
+ # Corresponds to the JSON property `autoClose`
247
+ # @return [String]
248
+ attr_accessor :auto_close
249
+
244
250
  # Control over the rate of notifications sent to this alert policy's
245
251
  # notification channels.
246
252
  # Corresponds to the JSON property `notificationRateLimit`
@@ -253,6 +259,7 @@ module Google
253
259
 
254
260
  # Update properties of this object
255
261
  def update!(**args)
262
+ @auto_close = args[:auto_close] if args.key?(:auto_close)
256
263
  @notification_rate_limit = args[:notification_rate_limit] if args.key?(:notification_rate_limit)
257
264
  end
258
265
  end
@@ -674,8 +681,9 @@ module Google
674
681
  # @return [Google::Apis::MonitoringV3::MetricAbsence]
675
682
  attr_accessor :condition_absent
676
683
 
677
- # A condition type that checks whether a log message from any project monitored
678
- # by the alert policy’s workspace satisfies the given filter.
684
+ # A condition type that checks whether a log message in the scoping project (
685
+ # https://cloud.google.com/monitoring/api/v3#project_name) satisfies the given
686
+ # filter. Logs from other projects in the metrics scope are not evaluated.
679
687
  # Corresponds to the JSON property `conditionMatchedLog`
680
688
  # @return [Google::Apis::MonitoringV3::LogMatch]
681
689
  attr_accessor :condition_matched_log
@@ -994,8 +1002,8 @@ module Google
994
1002
  # A DistributionCut defines a TimeSeries and thresholds used for measuring good
995
1003
  # service and total service. The TimeSeries must have ValueType = DISTRIBUTION
996
1004
  # and MetricKind = DELTA or MetricKind = CUMULATIVE. The computed good_service
997
- # will be the count of values x in the Distribution such that range.min <= x <
998
- # range.max.
1005
+ # will be the estimated count of values in the Distribution that fall within the
1006
+ # specified min and max.
999
1007
  class DistributionCut
1000
1008
  include Google::Apis::Core::Hashable
1001
1009
 
@@ -1006,9 +1014,7 @@ module Google
1006
1014
  # @return [String]
1007
1015
  attr_accessor :distribution_filter
1008
1016
 
1009
- # Range of numerical values, inclusive of min and exclusive of max. If the open
1010
- # range "< range.max" is desired, set range.min = -infinity. If the open range ">
1011
- # = range.min" is desired, set range.max = infinity.
1017
+ # Range of numerical values within min and max.
1012
1018
  # Corresponds to the JSON property `range`
1013
1019
  # @return [Google::Apis::MonitoringV3::GoogleMonitoringV3Range]
1014
1020
  attr_accessor :range
@@ -1364,9 +1370,7 @@ module Google
1364
1370
  end
1365
1371
  end
1366
1372
 
1367
- # Range of numerical values, inclusive of min and exclusive of max. If the open
1368
- # range "< range.max" is desired, set range.min = -infinity. If the open range ">
1369
- # = range.min" is desired, set range.max = infinity.
1373
+ # Range of numerical values within min and max.
1370
1374
  class GoogleMonitoringV3Range
1371
1375
  include Google::Apis::Core::Hashable
1372
1376
 
@@ -2162,13 +2166,15 @@ module Google
2162
2166
  end
2163
2167
  end
2164
2168
 
2165
- # A condition type that checks whether a log message from any project monitored
2166
- # by the alert policy’s workspace satisfies the given filter.
2169
+ # A condition type that checks whether a log message in the scoping project (
2170
+ # https://cloud.google.com/monitoring/api/v3#project_name) satisfies the given
2171
+ # filter. Logs from other projects in the metrics scope are not evaluated.
2167
2172
  class LogMatch
2168
2173
  include Google::Apis::Core::Hashable
2169
2174
 
2170
- # Required. A logs-based filter. See Advanced Logs Queries for how this filter
2171
- # should be constructed.
2175
+ # Required. A logs-based filter. See Advanced Logs Queries (https://cloud.google.
2176
+ # com/logging/docs/view/advanced-queries) for how this filter should be
2177
+ # constructed.
2172
2178
  # Corresponds to the JSON property `filter`
2173
2179
  # @return [String]
2174
2180
  attr_accessor :filter
@@ -2179,7 +2185,9 @@ module Google
2179
2185
  # filter. Each combination of extracted values is treated as a separate rule for
2180
2186
  # the purposes of triggering notifications. Label keys and corresponding values
2181
2187
  # can be used in notifications generated by this condition.Please see the
2182
- # documentation on logs-based metric valueExtractors for syntax and examples.
2188
+ # documentation on logs-based metric valueExtractors (https://cloud.google.com/
2189
+ # logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.
2190
+ # value_extractor) for syntax and examples.
2183
2191
  # Corresponds to the JSON property `labelExtractors`
2184
2192
  # @return [Hash<String,String>]
2185
2193
  attr_accessor :label_extractors
@@ -2494,14 +2502,12 @@ module Google
2494
2502
  end
2495
2503
 
2496
2504
  # A MetricRange is used when each window is good when the value x of a single
2497
- # TimeSeries satisfies range.min <= x < range.max. The provided TimeSeries must
2505
+ # TimeSeries satisfies range.min <= x <= range.max. The provided TimeSeries must
2498
2506
  # have ValueType = INT64 or ValueType = DOUBLE and MetricKind = GAUGE.
2499
2507
  class MetricRange
2500
2508
  include Google::Apis::Core::Hashable
2501
2509
 
2502
- # Range of numerical values, inclusive of min and exclusive of max. If the open
2503
- # range "< range.max" is desired, set range.min = -infinity. If the open range ">
2504
- # = range.min" is desired, set range.max = infinity.
2510
+ # Range of numerical values within min and max.
2505
2511
  # Corresponds to the JSON property `range`
2506
2512
  # @return [Google::Apis::MonitoringV3::GoogleMonitoringV3Range]
2507
2513
  attr_accessor :range
@@ -2646,7 +2652,8 @@ module Google
2646
2652
  # Required. The monitored resource type. This field must match the type field of
2647
2653
  # a MonitoredResourceDescriptor object. For example, the type of a Compute
2648
2654
  # Engine VM instance is gce_instance. For a list of types, see Monitoring
2649
- # resource types and Logging resource types.
2655
+ # resource types (https://cloud.google.com/monitoring/api/resources) and Logging
2656
+ # resource types (https://cloud.google.com/logging/docs/api/v2/resource-list).
2650
2657
  # Corresponds to the JSON property `type`
2651
2658
  # @return [String]
2652
2659
  attr_accessor :type
@@ -2708,7 +2715,10 @@ module Google
2708
2715
  attr_accessor :name
2709
2716
 
2710
2717
  # Required. The monitored resource type. For example, the type "
2711
- # cloudsql_database" represents databases in Google Cloud SQL.
2718
+ # cloudsql_database" represents databases in Google Cloud SQL. For a list of
2719
+ # types, see Monitoring resource types (https://cloud.google.com/monitoring/api/
2720
+ # resources) and Logging resource types (https://cloud.google.com/logging/docs/
2721
+ # api/v2/resource-list).
2712
2722
  # Corresponds to the JSON property `type`
2713
2723
  # @return [String]
2714
2724
  attr_accessor :type
@@ -3124,28 +3134,30 @@ module Google
3124
3134
 
3125
3135
  # A closed time interval. It extends from the start time to the end time, and
3126
3136
  # includes both: [startTime, endTime]. Valid time intervals depend on the
3127
- # MetricKind of the metric value. The end time must not be earlier than the
3128
- # start time. When writing data points, the start time must not be more than 25
3129
- # hours in the past and the end time must not be more than five minutes in the
3130
- # future. For GAUGE metrics, the startTime value is technically optional; if no
3131
- # value is specified, the start time defaults to the value of the end time, and
3132
- # the interval represents a single point in time. If both start and end times
3133
- # are specified, they must be identical. Such an interval is valid only for
3134
- # GAUGE metrics, which are point-in-time measurements. The end time of a new
3137
+ # MetricKind (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.
3138
+ # metricDescriptors#MetricKind) of the metric value. The end time must not be
3139
+ # earlier than the start time. When writing data points, the start time must not
3140
+ # be more than 25 hours in the past and the end time must not be more than five
3141
+ # minutes in the future. For GAUGE metrics, the startTime value is technically
3142
+ # optional; if no value is specified, the start time defaults to the value of
3143
+ # the end time, and the interval represents a single point in time. If both
3144
+ # start and end times are specified, they must be identical. Such an interval is
3145
+ # valid only for GAUGE metrics, which are point-in-time measurements. The end
3146
+ # time of a new interval must be at least a millisecond after the end time of
3147
+ # the previous interval. For DELTA metrics, the start time and end time must
3148
+ # specify a non-zero interval, with subsequent points specifying contiguous and
3149
+ # non-overlapping intervals. For DELTA metrics, the start time of the next
3135
3150
  # interval must be at least a millisecond after the end time of the previous
3136
- # interval. For DELTA metrics, the start time and end time must specify a non-
3137
- # zero interval, with subsequent points specifying contiguous and non-
3138
- # overlapping intervals. For DELTA metrics, the start time of the next interval
3139
- # must be at least a millisecond after the end time of the previous interval.
3140
- # For CUMULATIVE metrics, the start time and end time must specify a a non-zero
3141
- # interval, with subsequent points specifying the same start time and increasing
3142
- # end times, until an event resets the cumulative value to zero and sets a new
3143
- # start time for the following points. The new start time must be at least a
3144
- # millisecond after the end time of the previous interval. The start time of a
3145
- # new interval must be at least a millisecond after the end time of the previous
3146
- # interval because intervals are closed. If the start time of a new interval is
3147
- # the same as the end time of the previous interval, then data written at the
3148
- # new start time could overwrite data written at the previous end time.
3151
+ # interval. For CUMULATIVE metrics, the start time and end time must specify a a
3152
+ # non-zero interval, with subsequent points specifying the same start time and
3153
+ # increasing end times, until an event resets the cumulative value to zero and
3154
+ # sets a new start time for the following points. The new start time must be at
3155
+ # least a millisecond after the end time of the previous interval. The start
3156
+ # time of a new interval must be at least a millisecond after the end time of
3157
+ # the previous interval because intervals are closed. If the start time of a new
3158
+ # interval is the same as the end time of the previous interval, then data
3159
+ # written at the new start time could overwrite data written at the previous end
3160
+ # time.
3149
3161
  # Corresponds to the JSON property `interval`
3150
3162
  # @return [Google::Apis::MonitoringV3::TimeInterval]
3151
3163
  attr_accessor :interval
@@ -3174,28 +3186,30 @@ module Google
3174
3186
 
3175
3187
  # A closed time interval. It extends from the start time to the end time, and
3176
3188
  # includes both: [startTime, endTime]. Valid time intervals depend on the
3177
- # MetricKind of the metric value. The end time must not be earlier than the
3178
- # start time. When writing data points, the start time must not be more than 25
3179
- # hours in the past and the end time must not be more than five minutes in the
3180
- # future. For GAUGE metrics, the startTime value is technically optional; if no
3181
- # value is specified, the start time defaults to the value of the end time, and
3182
- # the interval represents a single point in time. If both start and end times
3183
- # are specified, they must be identical. Such an interval is valid only for
3184
- # GAUGE metrics, which are point-in-time measurements. The end time of a new
3189
+ # MetricKind (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.
3190
+ # metricDescriptors#MetricKind) of the metric value. The end time must not be
3191
+ # earlier than the start time. When writing data points, the start time must not
3192
+ # be more than 25 hours in the past and the end time must not be more than five
3193
+ # minutes in the future. For GAUGE metrics, the startTime value is technically
3194
+ # optional; if no value is specified, the start time defaults to the value of
3195
+ # the end time, and the interval represents a single point in time. If both
3196
+ # start and end times are specified, they must be identical. Such an interval is
3197
+ # valid only for GAUGE metrics, which are point-in-time measurements. The end
3198
+ # time of a new interval must be at least a millisecond after the end time of
3199
+ # the previous interval. For DELTA metrics, the start time and end time must
3200
+ # specify a non-zero interval, with subsequent points specifying contiguous and
3201
+ # non-overlapping intervals. For DELTA metrics, the start time of the next
3185
3202
  # interval must be at least a millisecond after the end time of the previous
3186
- # interval. For DELTA metrics, the start time and end time must specify a non-
3187
- # zero interval, with subsequent points specifying contiguous and non-
3188
- # overlapping intervals. For DELTA metrics, the start time of the next interval
3189
- # must be at least a millisecond after the end time of the previous interval.
3190
- # For CUMULATIVE metrics, the start time and end time must specify a a non-zero
3191
- # interval, with subsequent points specifying the same start time and increasing
3192
- # end times, until an event resets the cumulative value to zero and sets a new
3193
- # start time for the following points. The new start time must be at least a
3194
- # millisecond after the end time of the previous interval. The start time of a
3195
- # new interval must be at least a millisecond after the end time of the previous
3196
- # interval because intervals are closed. If the start time of a new interval is
3197
- # the same as the end time of the previous interval, then data written at the
3198
- # new start time could overwrite data written at the previous end time.
3203
+ # interval. For CUMULATIVE metrics, the start time and end time must specify a a
3204
+ # non-zero interval, with subsequent points specifying the same start time and
3205
+ # increasing end times, until an event resets the cumulative value to zero and
3206
+ # sets a new start time for the following points. The new start time must be at
3207
+ # least a millisecond after the end time of the previous interval. The start
3208
+ # time of a new interval must be at least a millisecond after the end time of
3209
+ # the previous interval because intervals are closed. If the start time of a new
3210
+ # interval is the same as the end time of the previous interval, then data
3211
+ # written at the new start time could overwrite data written at the previous end
3212
+ # time.
3199
3213
  # Corresponds to the JSON property `timeInterval`
3200
3214
  # @return [Google::Apis::MonitoringV3::TimeInterval]
3201
3215
  attr_accessor :time_interval
@@ -3323,8 +3337,8 @@ module Google
3323
3337
  # A DistributionCut defines a TimeSeries and thresholds used for measuring good
3324
3338
  # service and total service. The TimeSeries must have ValueType = DISTRIBUTION
3325
3339
  # and MetricKind = DELTA or MetricKind = CUMULATIVE. The computed good_service
3326
- # will be the count of values x in the Distribution such that range.min <= x <
3327
- # range.max.
3340
+ # will be the estimated count of values in the Distribution that fall within the
3341
+ # specified min and max.
3328
3342
  # Corresponds to the JSON property `distributionCut`
3329
3343
  # @return [Google::Apis::MonitoringV3::DistributionCut]
3330
3344
  attr_accessor :distribution_cut
@@ -3734,28 +3748,30 @@ module Google
3734
3748
 
3735
3749
  # A closed time interval. It extends from the start time to the end time, and
3736
3750
  # includes both: [startTime, endTime]. Valid time intervals depend on the
3737
- # MetricKind of the metric value. The end time must not be earlier than the
3738
- # start time. When writing data points, the start time must not be more than 25
3739
- # hours in the past and the end time must not be more than five minutes in the
3740
- # future. For GAUGE metrics, the startTime value is technically optional; if no
3741
- # value is specified, the start time defaults to the value of the end time, and
3742
- # the interval represents a single point in time. If both start and end times
3743
- # are specified, they must be identical. Such an interval is valid only for
3744
- # GAUGE metrics, which are point-in-time measurements. The end time of a new
3751
+ # MetricKind (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.
3752
+ # metricDescriptors#MetricKind) of the metric value. The end time must not be
3753
+ # earlier than the start time. When writing data points, the start time must not
3754
+ # be more than 25 hours in the past and the end time must not be more than five
3755
+ # minutes in the future. For GAUGE metrics, the startTime value is technically
3756
+ # optional; if no value is specified, the start time defaults to the value of
3757
+ # the end time, and the interval represents a single point in time. If both
3758
+ # start and end times are specified, they must be identical. Such an interval is
3759
+ # valid only for GAUGE metrics, which are point-in-time measurements. The end
3760
+ # time of a new interval must be at least a millisecond after the end time of
3761
+ # the previous interval. For DELTA metrics, the start time and end time must
3762
+ # specify a non-zero interval, with subsequent points specifying contiguous and
3763
+ # non-overlapping intervals. For DELTA metrics, the start time of the next
3745
3764
  # interval must be at least a millisecond after the end time of the previous
3746
- # interval. For DELTA metrics, the start time and end time must specify a non-
3747
- # zero interval, with subsequent points specifying contiguous and non-
3748
- # overlapping intervals. For DELTA metrics, the start time of the next interval
3749
- # must be at least a millisecond after the end time of the previous interval.
3750
- # For CUMULATIVE metrics, the start time and end time must specify a a non-zero
3751
- # interval, with subsequent points specifying the same start time and increasing
3752
- # end times, until an event resets the cumulative value to zero and sets a new
3753
- # start time for the following points. The new start time must be at least a
3754
- # millisecond after the end time of the previous interval. The start time of a
3755
- # new interval must be at least a millisecond after the end time of the previous
3756
- # interval because intervals are closed. If the start time of a new interval is
3757
- # the same as the end time of the previous interval, then data written at the
3758
- # new start time could overwrite data written at the previous end time.
3765
+ # interval. For CUMULATIVE metrics, the start time and end time must specify a a
3766
+ # non-zero interval, with subsequent points specifying the same start time and
3767
+ # increasing end times, until an event resets the cumulative value to zero and
3768
+ # sets a new start time for the following points. The new start time must be at
3769
+ # least a millisecond after the end time of the previous interval. The start
3770
+ # time of a new interval must be at least a millisecond after the end time of
3771
+ # the previous interval because intervals are closed. If the start time of a new
3772
+ # interval is the same as the end time of the previous interval, then data
3773
+ # written at the new start time could overwrite data written at the previous end
3774
+ # time.
3759
3775
  class TimeInterval
3760
3776
  include Google::Apis::Core::Hashable
3761
3777
 
@@ -4342,14 +4358,14 @@ module Google
4342
4358
  attr_accessor :good_total_ratio_threshold
4343
4359
 
4344
4360
  # A MetricRange is used when each window is good when the value x of a single
4345
- # TimeSeries satisfies range.min <= x < range.max. The provided TimeSeries must
4361
+ # TimeSeries satisfies range.min <= x <= range.max. The provided TimeSeries must
4346
4362
  # have ValueType = INT64 or ValueType = DOUBLE and MetricKind = GAUGE.
4347
4363
  # Corresponds to the JSON property `metricMeanInRange`
4348
4364
  # @return [Google::Apis::MonitoringV3::MetricRange]
4349
4365
  attr_accessor :metric_mean_in_range
4350
4366
 
4351
4367
  # A MetricRange is used when each window is good when the value x of a single
4352
- # TimeSeries satisfies range.min <= x < range.max. The provided TimeSeries must
4368
+ # TimeSeries satisfies range.min <= x <= range.max. The provided TimeSeries must
4353
4369
  # have ValueType = INT64 or ValueType = DOUBLE and MetricKind = GAUGE.
4354
4370
  # Corresponds to the JSON property `metricSumInRange`
4355
4371
  # @return [Google::Apis::MonitoringV3::MetricRange]
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module MonitoringV3
18
18
  # Version of the google-apis-monitoring_v3 gem
19
- GEM_VERSION = "0.11.0"
19
+ GEM_VERSION = "0.15.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210702"
25
+ REVISION = "20210926"
26
26
  end
27
27
  end
28
28
  end
@@ -671,6 +671,7 @@ module Google
671
671
  class AlertStrategy
672
672
  # @private
673
673
  class Representation < Google::Apis::Core::JsonRepresentation
674
+ property :auto_close, as: 'autoClose'
674
675
  property :notification_rate_limit, as: 'notificationRateLimit', class: Google::Apis::MonitoringV3::NotificationRateLimit, decorator: Google::Apis::MonitoringV3::NotificationRateLimit::Representation
675
676
 
676
677
  end
@@ -26,7 +26,8 @@ module Google
26
26
  # associated with a Workspace, with a few exceptions as noted on the individual
27
27
  # method pages. The table entries below are presented in alphabetical order, not
28
28
  # in order of common use. For explanations of the concepts found in the table
29
- # entries, read the Cloud Monitoring documentation.
29
+ # entries, read the Cloud Monitoring documentation (https://cloud.google.com/
30
+ # monitoring/docs).
30
31
  #
31
32
  # @example
32
33
  # require 'google/apis/monitoring_v3'
@@ -886,8 +887,10 @@ module Google
886
887
  execute_or_queue_command(command, &block)
887
888
  end
888
889
 
889
- # Creates a new metric descriptor. User-created metric descriptors define custom
890
- # metrics (https://cloud.google.com/monitoring/custom-metrics).
890
+ # Creates a new metric descriptor. The creation is executed asynchronously and
891
+ # callers may check the returned operation to track its progress. User-created
892
+ # metric descriptors define custom metrics (https://cloud.google.com/monitoring/
893
+ # custom-metrics).
891
894
  # @param [String] name
892
895
  # Required. The project (https://cloud.google.com/monitoring/api/v3#project_name)
893
896
  # on which to execute the request. The format is: 4 projects/
@@ -1557,6 +1560,46 @@ module Google
1557
1560
  execute_or_queue_command(command, &block)
1558
1561
  end
1559
1562
 
1563
+ # Creates or adds data to one or more service time series. A service time series
1564
+ # is a time series for a metric from a Google Cloud service. The response is
1565
+ # empty if all time series in the request were written. If any time series could
1566
+ # not be written, a corresponding failure message is included in the error
1567
+ # response. This endpoint rejects writes to user-defined metrics. This method is
1568
+ # only for use by Google Cloud services. Use projects.timeSeries.create instead.
1569
+ # @param [String] name
1570
+ # Required. The project (https://cloud.google.com/monitoring/api/v3#project_name)
1571
+ # on which to execute the request. The format is: projects/[
1572
+ # PROJECT_ID_OR_NUMBER]
1573
+ # @param [Google::Apis::MonitoringV3::CreateTimeSeriesRequest] create_time_series_request_object
1574
+ # @param [String] fields
1575
+ # Selector specifying which fields to include in a partial response.
1576
+ # @param [String] quota_user
1577
+ # Available to use for quota purposes for server-side applications. Can be any
1578
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1579
+ # @param [Google::Apis::RequestOptions] options
1580
+ # Request-specific options
1581
+ #
1582
+ # @yield [result, err] Result & error if block supplied
1583
+ # @yieldparam result [Google::Apis::MonitoringV3::Empty] parsed result object
1584
+ # @yieldparam err [StandardError] error object if request failed
1585
+ #
1586
+ # @return [Google::Apis::MonitoringV3::Empty]
1587
+ #
1588
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1589
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1590
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1591
+ def create_project_time_series_service(name, create_time_series_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1592
+ command = make_simple_command(:post, 'v3/{+name}/timeSeries:createService', options)
1593
+ command.request_representation = Google::Apis::MonitoringV3::CreateTimeSeriesRequest::Representation
1594
+ command.request_object = create_time_series_request_object
1595
+ command.response_representation = Google::Apis::MonitoringV3::Empty::Representation
1596
+ command.response_class = Google::Apis::MonitoringV3::Empty
1597
+ command.params['name'] = name unless name.nil?
1598
+ command.query['fields'] = fields unless fields.nil?
1599
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1600
+ execute_or_queue_command(command, &block)
1601
+ end
1602
+
1560
1603
  # Lists time series that match a filter. This method does not require a
1561
1604
  # Workspace.
1562
1605
  # @param [String] name
@@ -25,7 +25,8 @@ module Google
25
25
  # associated with a Workspace, with a few exceptions as noted on the individual
26
26
  # method pages. The table entries below are presented in alphabetical order, not
27
27
  # in order of common use. For explanations of the concepts found in the table
28
- # entries, read the Cloud Monitoring documentation.
28
+ # entries, read the Cloud Monitoring documentation (https://cloud.google.com/
29
+ # monitoring/docs).
29
30
  #
30
31
  # @see https://cloud.google.com/monitoring/api/
31
32
  module MonitoringV3
@@ -33,7 +34,7 @@ module Google
33
34
  # This is NOT the gem version.
34
35
  VERSION = 'V3'
35
36
 
36
- # See, edit, configure, and delete your Google Cloud Platform data
37
+ # See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
37
38
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
38
39
 
39
40
  # View and write monitoring data for all of your Google and third-party Cloud and API projects
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-monitoring_v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.15.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-07-12 00:00:00.000000000 Z
11
+ date: 2021-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-monitoring_v3/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v3/v0.11.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v3/v0.15.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-monitoring_v3
63
63
  post_install_message:
64
64
  rdoc_options: []