google-cloud-monitoring 0.38.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +2 -1
  3. data/AUTHENTICATION.md +51 -54
  4. data/LICENSE.md +203 -0
  5. data/MIGRATING.md +361 -0
  6. data/README.md +34 -50
  7. data/lib/google-cloud-monitoring.rb +6 -5
  8. data/lib/google/cloud/monitoring.rb +255 -443
  9. data/lib/google/cloud/monitoring/dashboard.rb +88 -117
  10. data/lib/google/cloud/monitoring/{v3/doc/google/protobuf/wrappers.rb → dashboard/version.rb} +12 -9
  11. data/lib/google/cloud/monitoring/version.rb +6 -2
  12. metadata +71 -128
  13. data/LICENSE +0 -201
  14. data/lib/google/cloud/monitoring/dashboard/v1.rb +0 -148
  15. data/lib/google/cloud/monitoring/dashboard/v1/credentials.rb +0 -46
  16. data/lib/google/cloud/monitoring/dashboard/v1/dashboards_service_client.rb +0 -457
  17. data/lib/google/cloud/monitoring/dashboard/v1/dashboards_service_client_config.json +0 -51
  18. data/lib/google/cloud/monitoring/dashboard/v1/doc/google/monitoring/dashboard/v1/common.rb +0 -394
  19. data/lib/google/cloud/monitoring/dashboard/v1/doc/google/monitoring/dashboard/v1/dashboard.rb +0 -53
  20. data/lib/google/cloud/monitoring/dashboard/v1/doc/google/monitoring/dashboard/v1/dashboards_service.rb +0 -82
  21. data/lib/google/cloud/monitoring/dashboard/v1/doc/google/monitoring/dashboard/v1/layouts.rb +0 -71
  22. data/lib/google/cloud/monitoring/dashboard/v1/doc/google/monitoring/dashboard/v1/metrics.rb +0 -151
  23. data/lib/google/cloud/monitoring/dashboard/v1/doc/google/monitoring/dashboard/v1/scorecard.rb +0 -102
  24. data/lib/google/cloud/monitoring/dashboard/v1/doc/google/monitoring/dashboard/v1/text.rb +0 -43
  25. data/lib/google/cloud/monitoring/dashboard/v1/doc/google/monitoring/dashboard/v1/widget.rb +0 -41
  26. data/lib/google/cloud/monitoring/dashboard/v1/doc/google/monitoring/dashboard/v1/xychart.rb +0 -141
  27. data/lib/google/cloud/monitoring/dashboard/v1/doc/google/protobuf/duration.rb +0 -91
  28. data/lib/google/cloud/monitoring/dashboard/v1/doc/google/protobuf/empty.rb +0 -29
  29. data/lib/google/cloud/monitoring/v3.rb +0 -532
  30. data/lib/google/cloud/monitoring/v3/alert_policy_service_client.rb +0 -553
  31. data/lib/google/cloud/monitoring/v3/alert_policy_service_client_config.json +0 -51
  32. data/lib/google/cloud/monitoring/v3/credentials.rb +0 -44
  33. data/lib/google/cloud/monitoring/v3/doc/google/api/distribution.rb +0 -200
  34. data/lib/google/cloud/monitoring/v3/doc/google/api/label.rb +0 -42
  35. data/lib/google/cloud/monitoring/v3/doc/google/api/metric.rb +0 -245
  36. data/lib/google/cloud/monitoring/v3/doc/google/api/monitored_resource.rb +0 -108
  37. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/alert.rb +0 -344
  38. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/alert_service.rb +0 -138
  39. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/common.rb +0 -449
  40. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/group.rb +0 -75
  41. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/group_service.rb +0 -167
  42. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/metric.rb +0 -85
  43. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/metric_service.rb +0 -230
  44. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/mutation_record.rb +0 -29
  45. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/notification.rb +0 -156
  46. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/notification_service.rb +0 -221
  47. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/service.rb +0 -361
  48. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/service_service.rb +0 -197
  49. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/uptime.rb +0 -364
  50. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/uptime_service.rb +0 -136
  51. data/lib/google/cloud/monitoring/v3/doc/google/protobuf/any.rb +0 -131
  52. data/lib/google/cloud/monitoring/v3/doc/google/protobuf/duration.rb +0 -91
  53. data/lib/google/cloud/monitoring/v3/doc/google/protobuf/empty.rb +0 -29
  54. data/lib/google/cloud/monitoring/v3/doc/google/protobuf/field_mask.rb +0 -222
  55. data/lib/google/cloud/monitoring/v3/doc/google/protobuf/struct.rb +0 -74
  56. data/lib/google/cloud/monitoring/v3/doc/google/protobuf/timestamp.rb +0 -113
  57. data/lib/google/cloud/monitoring/v3/doc/google/rpc/status.rb +0 -39
  58. data/lib/google/cloud/monitoring/v3/group_service_client.rb +0 -606
  59. data/lib/google/cloud/monitoring/v3/group_service_client_config.json +0 -56
  60. data/lib/google/cloud/monitoring/v3/metric_service_client.rb +0 -750
  61. data/lib/google/cloud/monitoring/v3/metric_service_client_config.json +0 -66
  62. data/lib/google/cloud/monitoring/v3/notification_channel_service_client.rb +0 -811
  63. data/lib/google/cloud/monitoring/v3/notification_channel_service_client_config.json +0 -76
  64. data/lib/google/cloud/monitoring/v3/service_monitoring_service_client.rb +0 -788
  65. data/lib/google/cloud/monitoring/v3/service_monitoring_service_client_config.json +0 -76
  66. data/lib/google/cloud/monitoring/v3/uptime_check_service_client.rb +0 -550
  67. data/lib/google/cloud/monitoring/v3/uptime_check_service_client_config.json +0 -56
  68. data/lib/google/monitoring/dashboard/v1/common_pb.rb +0 -95
  69. data/lib/google/monitoring/dashboard/v1/dashboard_pb.rb +0 -29
  70. data/lib/google/monitoring/dashboard/v1/dashboards_service_pb.rb +0 -51
  71. data/lib/google/monitoring/dashboard/v1/dashboards_service_services_pb.rb +0 -76
  72. data/lib/google/monitoring/dashboard/v1/drilldowns_pb.rb +0 -17
  73. data/lib/google/monitoring/dashboard/v1/layouts_pb.rb +0 -41
  74. data/lib/google/monitoring/dashboard/v1/metrics_pb.rb +0 -76
  75. data/lib/google/monitoring/dashboard/v1/scorecard_pb.rb +0 -38
  76. data/lib/google/monitoring/dashboard/v1/service_pb.rb +0 -17
  77. data/lib/google/monitoring/dashboard/v1/text_pb.rb +0 -28
  78. data/lib/google/monitoring/dashboard/v1/widget_pb.rb +0 -32
  79. data/lib/google/monitoring/dashboard/v1/xychart_pb.rb +0 -66
  80. data/lib/google/monitoring/v3/alert_pb.rb +0 -87
  81. data/lib/google/monitoring/v3/alert_service_pb.rb +0 -53
  82. data/lib/google/monitoring/v3/alert_service_services_pb.rb +0 -63
  83. data/lib/google/monitoring/v3/common_pb.rb +0 -95
  84. data/lib/google/monitoring/v3/dropped_labels_pb.rb +0 -19
  85. data/lib/google/monitoring/v3/group_pb.rb +0 -24
  86. data/lib/google/monitoring/v3/group_service_pb.rb +0 -73
  87. data/lib/google/monitoring/v3/group_service_services_pb.rb +0 -66
  88. data/lib/google/monitoring/v3/metric_pb.rb +0 -82
  89. data/lib/google/monitoring/v3/metric_service_pb.rb +0 -130
  90. data/lib/google/monitoring/v3/metric_service_services_pb.rb +0 -66
  91. data/lib/google/monitoring/v3/mutation_record_pb.rb +0 -21
  92. data/lib/google/monitoring/v3/notification_pb.rb +0 -47
  93. data/lib/google/monitoring/v3/notification_service_pb.rb +0 -90
  94. data/lib/google/monitoring/v3/notification_service_services_pb.rb +0 -94
  95. data/lib/google/monitoring/v3/service_pb.rb +0 -149
  96. data/lib/google/monitoring/v3/service_service_pb.rb +0 -86
  97. data/lib/google/monitoring/v3/service_service_services_pb.rb +0 -65
  98. data/lib/google/monitoring/v3/span_context_pb.rb +0 -19
  99. data/lib/google/monitoring/v3/uptime_pb.rb +0 -123
  100. data/lib/google/monitoring/v3/uptime_service_pb.rb +0 -63
  101. data/lib/google/monitoring/v3/uptime_service_services_pb.rb +0 -67
@@ -1,51 +0,0 @@
1
- {
2
- "interfaces": {
3
- "google.monitoring.dashboard.v1.DashboardsService": {
4
- "retry_codes": {
5
- "idempotent": [
6
- "DEADLINE_EXCEEDED",
7
- "UNAVAILABLE"
8
- ],
9
- "non_idempotent": []
10
- },
11
- "retry_params": {
12
- "default": {
13
- "initial_retry_delay_millis": 100,
14
- "retry_delay_multiplier": 1.3,
15
- "max_retry_delay_millis": 60000,
16
- "initial_rpc_timeout_millis": 20000,
17
- "rpc_timeout_multiplier": 1.0,
18
- "max_rpc_timeout_millis": 20000,
19
- "total_timeout_millis": 600000
20
- }
21
- },
22
- "methods": {
23
- "CreateDashboard": {
24
- "timeout_millis": 60000,
25
- "retry_codes_name": "non_idempotent",
26
- "retry_params_name": "default"
27
- },
28
- "ListDashboards": {
29
- "timeout_millis": 60000,
30
- "retry_codes_name": "idempotent",
31
- "retry_params_name": "default"
32
- },
33
- "GetDashboard": {
34
- "timeout_millis": 60000,
35
- "retry_codes_name": "idempotent",
36
- "retry_params_name": "default"
37
- },
38
- "DeleteDashboard": {
39
- "timeout_millis": 60000,
40
- "retry_codes_name": "non_idempotent",
41
- "retry_params_name": "default"
42
- },
43
- "UpdateDashboard": {
44
- "timeout_millis": 60000,
45
- "retry_codes_name": "non_idempotent",
46
- "retry_params_name": "default"
47
- }
48
- }
49
- }
50
- }
51
- }
@@ -1,394 +0,0 @@
1
- # Copyright 2020 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
-
16
- module Google
17
- module Monitoring
18
- module Dashboard
19
- module V1
20
- # Describes how to combine multiple time series to provide different views of
21
- # the data. Aggregation consists of an alignment step on individual time
22
- # series (`alignment_period` and `per_series_aligner`) followed by an optional
23
- # reduction step of the data across the aligned time series
24
- # (`cross_series_reducer` and `group_by_fields`). For more details, see
25
- # [Aggregation](https://cloud.google.com/monitoring/api/learn_more#aggregation).
26
- # @!attribute [rw] alignment_period
27
- # @return [Google::Protobuf::Duration]
28
- # The alignment period for per-{TimeSeries time series}
29
- # alignment. If present, `alignmentPeriod` must be at least 60
30
- # seconds. After per-time series alignment, each time series will
31
- # contain data points only on the period boundaries. If
32
- # `perSeriesAligner` is not specified or equals `ALIGN_NONE`, then
33
- # this field is ignored. If `perSeriesAligner` is specified and
34
- # does not equal `ALIGN_NONE`, then this field must be defined;
35
- # otherwise an error is returned.
36
- # @!attribute [rw] per_series_aligner
37
- # @return [Google::Monitoring::Dashboard::V1::Aggregation::Aligner]
38
- # The approach to be used to align individual time series. Not all
39
- # alignment functions may be applied to all time series, depending
40
- # on the metric type and value type of the original time
41
- # series. Alignment may change the metric type or the value type of
42
- # the time series.
43
- #
44
- # Time series data must be aligned in order to perform cross-time
45
- # series reduction. If `crossSeriesReducer` is specified, then
46
- # `perSeriesAligner` must be specified and not equal `ALIGN_NONE`
47
- # and `alignmentPeriod` must be specified; otherwise, an error is
48
- # returned.
49
- # @!attribute [rw] cross_series_reducer
50
- # @return [Google::Monitoring::Dashboard::V1::Aggregation::Reducer]
51
- # The approach to be used to combine time series. Not all reducer
52
- # functions may be applied to all time series, depending on the
53
- # metric type and the value type of the original time
54
- # series. Reduction may change the metric type of value type of the
55
- # time series.
56
- #
57
- # Time series data must be aligned in order to perform cross-time
58
- # series reduction. If `crossSeriesReducer` is specified, then
59
- # `perSeriesAligner` must be specified and not equal `ALIGN_NONE`
60
- # and `alignmentPeriod` must be specified; otherwise, an error is
61
- # returned.
62
- # @!attribute [rw] group_by_fields
63
- # @return [Array<String>]
64
- # The set of fields to preserve when `crossSeriesReducer` is
65
- # specified. The `groupByFields` determine how the time series are
66
- # partitioned into subsets prior to applying the aggregation
67
- # function. Each subset contains time series that have the same
68
- # value for each of the grouping fields. Each individual time
69
- # series is a member of exactly one subset. The
70
- # `crossSeriesReducer` is applied to each subset of time series.
71
- # It is not possible to reduce across different resource types, so
72
- # this field implicitly contains `resource.type`. Fields not
73
- # specified in `groupByFields` are aggregated away. If
74
- # `groupByFields` is not specified and all the time series have
75
- # the same resource type, then the time series are aggregated into
76
- # a single output time series. If `crossSeriesReducer` is not
77
- # defined, this field is ignored.
78
- class Aggregation
79
- # The Aligner describes how to bring the data points in a single
80
- # time series into temporal alignment.
81
- module Aligner
82
- # No alignment. Raw data is returned. Not valid if cross-time
83
- # series reduction is requested. The value type of the result is
84
- # the same as the value type of the input.
85
- ALIGN_NONE = 0
86
-
87
- # Align and convert to delta metric type. This alignment is valid
88
- # for cumulative metrics and delta metrics. Aligning an existing
89
- # delta metric to a delta metric requires that the alignment
90
- # period be increased. The value type of the result is the same
91
- # as the value type of the input.
92
- #
93
- # One can think of this aligner as a rate but without time units; that
94
- # is, the output is conceptually (second_point - first_point).
95
- ALIGN_DELTA = 1
96
-
97
- # Align and convert to a rate. This alignment is valid for
98
- # cumulative metrics and delta metrics with numeric values. The output is a
99
- # gauge metric with value type
100
- # {Google::Api::MetricDescriptor::ValueType::DOUBLE DOUBLE}.
101
- #
102
- # One can think of this aligner as conceptually providing the slope of
103
- # the line that passes through the value at the start and end of the
104
- # window. In other words, this is conceptually ((y1 - y0)/(t1 - t0)),
105
- # and the output unit is one that has a "/time" dimension.
106
- #
107
- # If, by rate, you are looking for percentage change, see the
108
- # `ALIGN_PERCENT_CHANGE` aligner option.
109
- ALIGN_RATE = 2
110
-
111
- # Align by interpolating between adjacent points around the
112
- # period boundary. This alignment is valid for gauge
113
- # metrics with numeric values. The value type of the result is the same
114
- # as the value type of the input.
115
- ALIGN_INTERPOLATE = 3
116
-
117
- # Align by shifting the oldest data point before the period
118
- # boundary to the boundary. This alignment is valid for gauge
119
- # metrics. The value type of the result is the same as the
120
- # value type of the input.
121
- ALIGN_NEXT_OLDER = 4
122
-
123
- # Align time series via aggregation. The resulting data point in
124
- # the alignment period is the minimum of all data points in the
125
- # period. This alignment is valid for gauge and delta metrics with numeric
126
- # values. The value type of the result is the same as the value
127
- # type of the input.
128
- ALIGN_MIN = 10
129
-
130
- # Align time series via aggregation. The resulting data point in
131
- # the alignment period is the maximum of all data points in the
132
- # period. This alignment is valid for gauge and delta metrics with numeric
133
- # values. The value type of the result is the same as the value
134
- # type of the input.
135
- ALIGN_MAX = 11
136
-
137
- # Align time series via aggregation. The resulting data point in
138
- # the alignment period is the average or arithmetic mean of all
139
- # data points in the period. This alignment is valid for gauge and delta
140
- # metrics with numeric values. The value type of the output is
141
- # {Google::Api::MetricDescriptor::ValueType::DOUBLE DOUBLE}.
142
- ALIGN_MEAN = 12
143
-
144
- # Align time series via aggregation. The resulting data point in
145
- # the alignment period is the count of all data points in the
146
- # period. This alignment is valid for gauge and delta metrics with numeric
147
- # or Boolean values. The value type of the output is
148
- # {Google::Api::MetricDescriptor::ValueType::INT64 INT64}.
149
- ALIGN_COUNT = 13
150
-
151
- # Align time series via aggregation. The resulting data point in
152
- # the alignment period is the sum of all data points in the
153
- # period. This alignment is valid for gauge and delta metrics with numeric
154
- # and distribution values. The value type of the output is the
155
- # same as the value type of the input.
156
- ALIGN_SUM = 14
157
-
158
- # Align time series via aggregation. The resulting data point in
159
- # the alignment period is the standard deviation of all data
160
- # points in the period. This alignment is valid for gauge and delta metrics
161
- # with numeric values. The value type of the output is
162
- # {Google::Api::MetricDescriptor::ValueType::DOUBLE DOUBLE}.
163
- ALIGN_STDDEV = 15
164
-
165
- # Align time series via aggregation. The resulting data point in
166
- # the alignment period is the count of True-valued data points in the
167
- # period. This alignment is valid for gauge metrics with
168
- # Boolean values. The value type of the output is
169
- # {Google::Api::MetricDescriptor::ValueType::INT64 INT64}.
170
- ALIGN_COUNT_TRUE = 16
171
-
172
- # Align time series via aggregation. The resulting data point in
173
- # the alignment period is the count of False-valued data points in the
174
- # period. This alignment is valid for gauge metrics with
175
- # Boolean values. The value type of the output is
176
- # {Google::Api::MetricDescriptor::ValueType::INT64 INT64}.
177
- ALIGN_COUNT_FALSE = 24
178
-
179
- # Align time series via aggregation. The resulting data point in
180
- # the alignment period is the fraction of True-valued data points in the
181
- # period. This alignment is valid for gauge metrics with Boolean values.
182
- # The output value is in the range [0, 1] and has value type
183
- # {Google::Api::MetricDescriptor::ValueType::DOUBLE DOUBLE}.
184
- ALIGN_FRACTION_TRUE = 17
185
-
186
- # Align time series via aggregation. The resulting data point in
187
- # the alignment period is the 99th percentile of all data
188
- # points in the period. This alignment is valid for gauge and delta metrics
189
- # with distribution values. The output is a gauge metric with value type
190
- # {Google::Api::MetricDescriptor::ValueType::DOUBLE DOUBLE}.
191
- ALIGN_PERCENTILE_99 = 18
192
-
193
- # Align time series via aggregation. The resulting data point in
194
- # the alignment period is the 95th percentile of all data
195
- # points in the period. This alignment is valid for gauge and delta metrics
196
- # with distribution values. The output is a gauge metric with value type
197
- # {Google::Api::MetricDescriptor::ValueType::DOUBLE DOUBLE}.
198
- ALIGN_PERCENTILE_95 = 19
199
-
200
- # Align time series via aggregation. The resulting data point in
201
- # the alignment period is the 50th percentile of all data
202
- # points in the period. This alignment is valid for gauge and delta metrics
203
- # with distribution values. The output is a gauge metric with value type
204
- # {Google::Api::MetricDescriptor::ValueType::DOUBLE DOUBLE}.
205
- ALIGN_PERCENTILE_50 = 20
206
-
207
- # Align time series via aggregation. The resulting data point in
208
- # the alignment period is the 5th percentile of all data
209
- # points in the period. This alignment is valid for gauge and delta metrics
210
- # with distribution values. The output is a gauge metric with value type
211
- # {Google::Api::MetricDescriptor::ValueType::DOUBLE DOUBLE}.
212
- ALIGN_PERCENTILE_05 = 21
213
-
214
- # Align and convert to a percentage change. This alignment is valid for
215
- # gauge and delta metrics with numeric values. This alignment conceptually
216
- # computes the equivalent of "((current - previous)/previous)*100"
217
- # where previous value is determined based on the alignmentPeriod.
218
- # In the event that previous is 0 the calculated value is infinity with the
219
- # exception that if both (current - previous) and previous are 0 the
220
- # calculated value is 0.
221
- # A 10 minute moving mean is computed at each point of the time window
222
- # prior to the above calculation to smooth the metric and prevent false
223
- # positives from very short lived spikes.
224
- # Only applicable for data that is >= 0. Any values < 0 are treated as
225
- # no data. While delta metrics are accepted by this alignment special care
226
- # should be taken that the values for the metric will always be positive.
227
- # The output is a gauge metric with value type
228
- # {Google::Api::MetricDescriptor::ValueType::DOUBLE DOUBLE}.
229
- ALIGN_PERCENT_CHANGE = 23
230
- end
231
-
232
- # A Reducer describes how to aggregate data points from multiple
233
- # time series into a single time series.
234
- module Reducer
235
- # No cross-time series reduction. The output of the aligner is
236
- # returned.
237
- REDUCE_NONE = 0
238
-
239
- # Reduce by computing the mean across time series for each
240
- # alignment period. This reducer is valid for delta and
241
- # gauge metrics with numeric or distribution values. The value type of the
242
- # output is {Google::Api::MetricDescriptor::ValueType::DOUBLE DOUBLE}.
243
- REDUCE_MEAN = 1
244
-
245
- # Reduce by computing the minimum across time series for each
246
- # alignment period. This reducer is valid for delta and
247
- # gauge metrics with numeric values. The value type of the output
248
- # is the same as the value type of the input.
249
- REDUCE_MIN = 2
250
-
251
- # Reduce by computing the maximum across time series for each
252
- # alignment period. This reducer is valid for delta and
253
- # gauge metrics with numeric values. The value type of the output
254
- # is the same as the value type of the input.
255
- REDUCE_MAX = 3
256
-
257
- # Reduce by computing the sum across time series for each
258
- # alignment period. This reducer is valid for delta and
259
- # gauge metrics with numeric and distribution values. The value type of
260
- # the output is the same as the value type of the input.
261
- REDUCE_SUM = 4
262
-
263
- # Reduce by computing the standard deviation across time series
264
- # for each alignment period. This reducer is valid for delta
265
- # and gauge metrics with numeric or distribution values. The value type of
266
- # the output is {Google::Api::MetricDescriptor::ValueType::DOUBLE DOUBLE}.
267
- REDUCE_STDDEV = 5
268
-
269
- # Reduce by computing the count of data points across time series
270
- # for each alignment period. This reducer is valid for delta
271
- # and gauge metrics of numeric, Boolean, distribution, and string value
272
- # type. The value type of the output is
273
- # {Google::Api::MetricDescriptor::ValueType::INT64 INT64}.
274
- REDUCE_COUNT = 6
275
-
276
- # Reduce by computing the count of True-valued data points across time
277
- # series for each alignment period. This reducer is valid for delta
278
- # and gauge metrics of Boolean value type. The value type of
279
- # the output is {Google::Api::MetricDescriptor::ValueType::INT64 INT64}.
280
- REDUCE_COUNT_TRUE = 7
281
-
282
- # Reduce by computing the count of False-valued data points across time
283
- # series for each alignment period. This reducer is valid for delta
284
- # and gauge metrics of Boolean value type. The value type of
285
- # the output is {Google::Api::MetricDescriptor::ValueType::INT64 INT64}.
286
- REDUCE_COUNT_FALSE = 15
287
-
288
- # Reduce by computing the fraction of True-valued data points across time
289
- # series for each alignment period. This reducer is valid for delta
290
- # and gauge metrics of Boolean value type. The output value is in the
291
- # range [0, 1] and has value type
292
- # {Google::Api::MetricDescriptor::ValueType::DOUBLE DOUBLE}.
293
- REDUCE_FRACTION_TRUE = 8
294
-
295
- # Reduce by computing 99th percentile of data points across time series
296
- # for each alignment period. This reducer is valid for gauge and delta
297
- # metrics of numeric and distribution type. The value of the output is
298
- # {Google::Api::MetricDescriptor::ValueType::DOUBLE DOUBLE}
299
- REDUCE_PERCENTILE_99 = 9
300
-
301
- # Reduce by computing 95th percentile of data points across time series
302
- # for each alignment period. This reducer is valid for gauge and delta
303
- # metrics of numeric and distribution type. The value of the output is
304
- # {Google::Api::MetricDescriptor::ValueType::DOUBLE DOUBLE}
305
- REDUCE_PERCENTILE_95 = 10
306
-
307
- # Reduce by computing 50th percentile of data points across time series
308
- # for each alignment period. This reducer is valid for gauge and delta
309
- # metrics of numeric and distribution type. The value of the output is
310
- # {Google::Api::MetricDescriptor::ValueType::DOUBLE DOUBLE}
311
- REDUCE_PERCENTILE_50 = 11
312
-
313
- # Reduce by computing 5th percentile of data points across time series
314
- # for each alignment period. This reducer is valid for gauge and delta
315
- # metrics of numeric and distribution type. The value of the output is
316
- # {Google::Api::MetricDescriptor::ValueType::DOUBLE DOUBLE}
317
- REDUCE_PERCENTILE_05 = 12
318
- end
319
- end
320
-
321
- # Describes a ranking-based time series filter. Each input time series is
322
- # ranked with an aligner. The filter lets through up to `num_time_series` time
323
- # series, selecting them based on the relative ranking.
324
- # @!attribute [rw] ranking_method
325
- # @return [Google::Monitoring::Dashboard::V1::PickTimeSeriesFilter::Method]
326
- # `rankingMethod` is applied to each time series independently to produce the
327
- # value which will be used to compare the time series to other time series.
328
- # @!attribute [rw] num_time_series
329
- # @return [Integer]
330
- # How many time series to return.
331
- # @!attribute [rw] direction
332
- # @return [Google::Monitoring::Dashboard::V1::PickTimeSeriesFilter::Direction]
333
- # How to use the ranking to select time series that pass through the filter.
334
- class PickTimeSeriesFilter
335
- # Describes the ranking directions.
336
- module Direction
337
- # Not allowed in well-formed requests.
338
- DIRECTION_UNSPECIFIED = 0
339
-
340
- # Pass the highest ranking inputs.
341
- TOP = 1
342
-
343
- # Pass the lowest ranking inputs.
344
- BOTTOM = 2
345
- end
346
-
347
- # The value reducers that can be applied to a PickTimeSeriesFilter.
348
- module Method
349
- # Not allowed in well-formed requests.
350
- METHOD_UNSPECIFIED = 0
351
-
352
- # Select the mean of all values.
353
- METHOD_MEAN = 1
354
-
355
- # Select the maximum value.
356
- METHOD_MAX = 2
357
-
358
- # Select the minimum value.
359
- METHOD_MIN = 3
360
-
361
- # Compute the sum of all values.
362
- METHOD_SUM = 4
363
-
364
- # Select the most recent value.
365
- METHOD_LATEST = 5
366
- end
367
- end
368
-
369
- # A filter that ranks streams based on their statistical relation to other
370
- # streams in a request.
371
- # @!attribute [rw] ranking_method
372
- # @return [Google::Monitoring::Dashboard::V1::StatisticalTimeSeriesFilter::Method]
373
- # `rankingMethod` is applied to a set of time series, and then the produced
374
- # value for each individual time series is used to compare a given time
375
- # series to others.
376
- # These are methods that cannot be applied stream-by-stream, but rather
377
- # require the full context of a request to evaluate time series.
378
- # @!attribute [rw] num_time_series
379
- # @return [Integer]
380
- # How many time series to output.
381
- class StatisticalTimeSeriesFilter
382
- # The filter methods that can be applied to a stream.
383
- module Method
384
- # Not allowed in well-formed requests.
385
- METHOD_UNSPECIFIED = 0
386
-
387
- # Compute the outlier score of each stream.
388
- METHOD_CLUSTER_OUTLIER = 1
389
- end
390
- end
391
- end
392
- end
393
- end
394
- end
@@ -1,53 +0,0 @@
1
- # Copyright 2020 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
-
16
- module Google
17
- module Monitoring
18
- module Dashboard
19
- module V1
20
- # A Google Stackdriver dashboard. Dashboards define the content and layout
21
- # of pages in the Stackdriver web application.
22
- # @!attribute [rw] name
23
- # @return [String]
24
- # The resource name of the dashboard.
25
- # @!attribute [rw] display_name
26
- # @return [String]
27
- # The mutable, human-readable name.
28
- # @!attribute [rw] etag
29
- # @return [String]
30
- # `etag` is used for optimistic concurrency control as a way to help
31
- # prevent simultaneous updates of a policy from overwriting each other.
32
- # An `etag` is returned in the response to `GetDashboard`, and
33
- # users are expected to put that etag in the request to `UpdateDashboard` to
34
- # ensure that their change will be applied to the same version of the
35
- # Dashboard configuration. The field should not be passed during
36
- # dashboard creation.
37
- # @!attribute [rw] grid_layout
38
- # @return [Google::Monitoring::Dashboard::V1::GridLayout]
39
- # Content is arranged with a basic layout that re-flows a simple list of
40
- # informational elements like widgets or tiles.
41
- # @!attribute [rw] row_layout
42
- # @return [Google::Monitoring::Dashboard::V1::RowLayout]
43
- # The content is divided into equally spaced rows and the widgets are
44
- # arranged horizontally.
45
- # @!attribute [rw] column_layout
46
- # @return [Google::Monitoring::Dashboard::V1::ColumnLayout]
47
- # The content is divided into equally spaced columns and the widgets are
48
- # arranged vertically.
49
- class Dashboard; end
50
- end
51
- end
52
- end
53
- end