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,82 +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
- # The `CreateDashboard` request.
21
- # @!attribute [rw] parent
22
- # @return [String]
23
- # Required. The project on which to execute the request. The format is
24
- # `"projects/{project_id_or_number}"`. The \\{project_id_or_number} must match
25
- # the dashboard resource name.
26
- # @!attribute [rw] dashboard
27
- # @return [Google::Monitoring::Dashboard::V1::Dashboard]
28
- # Required. The initial dashboard specification.
29
- class CreateDashboardRequest; end
30
-
31
- # The `ListDashboards` request.
32
- # @!attribute [rw] parent
33
- # @return [String]
34
- # Required. The scope of the dashboards to list. A project scope must be
35
- # specified in the form of `"projects/{project_id_or_number}"`.
36
- # @!attribute [rw] page_size
37
- # @return [Integer]
38
- # A positive number that is the maximum number of results to return.
39
- # If unspecified, a default of 1000 is used.
40
- # @!attribute [rw] page_token
41
- # @return [String]
42
- # If this field is not empty then it must contain the `nextPageToken` value
43
- # returned by a previous call to this method. Using this field causes the
44
- # method to return additional results from the previous method call.
45
- class ListDashboardsRequest; end
46
-
47
- # The `ListDashboards` request.
48
- # @!attribute [rw] dashboards
49
- # @return [Array<Google::Monitoring::Dashboard::V1::Dashboard>]
50
- # The list of requested dashboards.
51
- # @!attribute [rw] next_page_token
52
- # @return [String]
53
- # If there are more results than have been returned, then this field is set
54
- # to a non-empty value. To see the additional results,
55
- # use that value as `pageToken` in the next call to this method.
56
- class ListDashboardsResponse; end
57
-
58
- # The `GetDashboard` request.
59
- # @!attribute [rw] name
60
- # @return [String]
61
- # Required. The resource name of the Dashboard. The format is one of
62
- # `"dashboards/{dashboard_id}"` (for system dashboards) or
63
- # `"projects/{project_id_or_number}/dashboards/{dashboard_id}"`
64
- # (for custom dashboards).
65
- class GetDashboardRequest; end
66
-
67
- # The `DeleteDashboard` request.
68
- # @!attribute [rw] name
69
- # @return [String]
70
- # Required. The resource name of the Dashboard. The format is
71
- # `"projects/{project_id_or_number}/dashboards/{dashboard_id}"`.
72
- class DeleteDashboardRequest; end
73
-
74
- # The `UpdateDashboard` request.
75
- # @!attribute [rw] dashboard
76
- # @return [Google::Monitoring::Dashboard::V1::Dashboard]
77
- # Required. The dashboard that will replace the existing dashboard.
78
- class UpdateDashboardRequest; end
79
- end
80
- end
81
- end
82
- end
@@ -1,71 +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 basic layout divides the available space into vertical columns of equal
21
- # width and arranges a list of widgets using a row-first strategy.
22
- # @!attribute [rw] columns
23
- # @return [Integer]
24
- # The number of columns into which the view's width is divided. If omitted
25
- # or set to zero, a system default will be used while rendering.
26
- # @!attribute [rw] widgets
27
- # @return [Array<Google::Monitoring::Dashboard::V1::Widget>]
28
- # The informational elements that are arranged into the columns row-first.
29
- class GridLayout; end
30
-
31
- # A simplified layout that divides the available space into rows
32
- # and arranges a set of widgets horizontally in each row.
33
- # @!attribute [rw] rows
34
- # @return [Array<Google::Monitoring::Dashboard::V1::RowLayout::Row>]
35
- # The rows of content to display.
36
- class RowLayout
37
- # Defines the layout properties and content for a row.
38
- # @!attribute [rw] weight
39
- # @return [Integer]
40
- # The relative weight of this row. The row weight is used to adjust the
41
- # height of rows on the screen (relative to peers). Greater the weight,
42
- # greater the height of the row on the screen. If omitted, a value
43
- # of 1 is used while rendering.
44
- # @!attribute [rw] widgets
45
- # @return [Array<Google::Monitoring::Dashboard::V1::Widget>]
46
- # The display widgets arranged horizontally in this row.
47
- class Row; end
48
- end
49
-
50
- # A simplified layout that divides the available space into vertical columns
51
- # and arranges a set of widgets vertically in each column.
52
- # @!attribute [rw] columns
53
- # @return [Array<Google::Monitoring::Dashboard::V1::ColumnLayout::Column>]
54
- # The columns of content to display.
55
- class ColumnLayout
56
- # Defines the layout properties and content for a column.
57
- # @!attribute [rw] weight
58
- # @return [Integer]
59
- # The relative weight of this column. The column weight is used to adjust
60
- # the width of columns on the screen (relative to peers).
61
- # Greater the weight, greater the width of the column on the screen.
62
- # If omitted, a value of 1 is used while rendering.
63
- # @!attribute [rw] widgets
64
- # @return [Array<Google::Monitoring::Dashboard::V1::Widget>]
65
- # The display widgets arranged vertically in this column.
66
- class Column; end
67
- end
68
- end
69
- end
70
- end
71
- end
@@ -1,151 +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
- # TimeSeriesQuery collects the set of supported methods for querying time
21
- # series data from the Stackdriver metrics API.
22
- # @!attribute [rw] time_series_filter
23
- # @return [Google::Monitoring::Dashboard::V1::TimeSeriesFilter]
24
- # Filter parameters to fetch time series.
25
- # @!attribute [rw] time_series_filter_ratio
26
- # @return [Google::Monitoring::Dashboard::V1::TimeSeriesFilterRatio]
27
- # Parameters to fetch a ratio between two time series filters.
28
- # @!attribute [rw] unit_override
29
- # @return [String]
30
- # The unit of data contained in fetched time series. If non-empty, this
31
- # unit will override any unit that accompanies fetched data. The format is
32
- # the same as the
33
- # [`unit`](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.metricDescriptors)
34
- # field in `MetricDescriptor`.
35
- class TimeSeriesQuery; end
36
-
37
- # A filter that defines a subset of time series data that is displayed in a
38
- # widget. Time series data is fetched using the
39
- # [`ListTimeSeries`](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list)
40
- # method.
41
- # @!attribute [rw] filter
42
- # @return [String]
43
- # Required. The [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies the
44
- # metric types, resources, and projects to query.
45
- # @!attribute [rw] aggregation
46
- # @return [Google::Monitoring::Dashboard::V1::Aggregation]
47
- # By default, the raw time series data is returned.
48
- # Use this field to combine multiple time series for different views of the
49
- # data.
50
- # @!attribute [rw] pick_time_series_filter
51
- # @return [Google::Monitoring::Dashboard::V1::PickTimeSeriesFilter]
52
- # Ranking based time series filter.
53
- # @!attribute [rw] statistical_time_series_filter
54
- # @return [Google::Monitoring::Dashboard::V1::StatisticalTimeSeriesFilter]
55
- # Statistics based time series filter.
56
- class TimeSeriesFilter; end
57
-
58
- # A pair of time series filters that define a ratio computation. The output
59
- # time series is the pair-wise division of each aligned element from the
60
- # numerator and denominator time series.
61
- # @!attribute [rw] numerator
62
- # @return [Google::Monitoring::Dashboard::V1::TimeSeriesFilterRatio::RatioPart]
63
- # The numerator of the ratio.
64
- # @!attribute [rw] denominator
65
- # @return [Google::Monitoring::Dashboard::V1::TimeSeriesFilterRatio::RatioPart]
66
- # The denominator of the ratio.
67
- # @!attribute [rw] secondary_aggregation
68
- # @return [Google::Monitoring::Dashboard::V1::Aggregation]
69
- # Apply a second aggregation after the ratio is computed.
70
- # @!attribute [rw] pick_time_series_filter
71
- # @return [Google::Monitoring::Dashboard::V1::PickTimeSeriesFilter]
72
- # Ranking based time series filter.
73
- # @!attribute [rw] statistical_time_series_filter
74
- # @return [Google::Monitoring::Dashboard::V1::StatisticalTimeSeriesFilter]
75
- # Statistics based time series filter.
76
- class TimeSeriesFilterRatio
77
- # Describes a query to build the numerator or denominator of a
78
- # TimeSeriesFilterRatio.
79
- # @!attribute [rw] filter
80
- # @return [String]
81
- # Required. The [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies the
82
- # metric types, resources, and projects to query.
83
- # @!attribute [rw] aggregation
84
- # @return [Google::Monitoring::Dashboard::V1::Aggregation]
85
- # By default, the raw time series data is returned.
86
- # Use this field to combine multiple time series for different views of the
87
- # data.
88
- class RatioPart; end
89
- end
90
-
91
- # Defines a threshold for categorizing time series values.
92
- # @!attribute [rw] label
93
- # @return [String]
94
- # A label for the threshold.
95
- # @!attribute [rw] value
96
- # @return [Float]
97
- # The value of the threshold. The value should be defined in the native scale
98
- # of the metric.
99
- # @!attribute [rw] color
100
- # @return [Google::Monitoring::Dashboard::V1::Threshold::Color]
101
- # The state color for this threshold. Color is not allowed in a XyChart.
102
- # @!attribute [rw] direction
103
- # @return [Google::Monitoring::Dashboard::V1::Threshold::Direction]
104
- # The direction for the current threshold. Direction is not allowed in a
105
- # XyChart.
106
- class Threshold
107
- # The color suggests an interpretation to the viewer when actual values cross
108
- # the threshold. Comments on each color provide UX guidance on how users can
109
- # be expected to interpret a given state color.
110
- module Color
111
- # Color is unspecified. Not allowed in well-formed requests.
112
- COLOR_UNSPECIFIED = 0
113
-
114
- # Crossing the threshold is "concerning" behavior.
115
- YELLOW = 4
116
-
117
- # Crossing the threshold is "emergency" behavior.
118
- RED = 6
119
- end
120
-
121
- # Whether the threshold is considered crossed by an actual value above or
122
- # below its threshold value.
123
- module Direction
124
- # Not allowed in well-formed requests.
125
- DIRECTION_UNSPECIFIED = 0
126
-
127
- # The threshold will be considered crossed if the actual value is above
128
- # the threshold value.
129
- ABOVE = 1
130
-
131
- # The threshold will be considered crossed if the actual value is below
132
- # the threshold value.
133
- BELOW = 2
134
- end
135
- end
136
-
137
- # Defines the possible types of spark chart supported by the `Scorecard`.
138
- module SparkChartType
139
- # Not allowed in well-formed requests.
140
- SPARK_CHART_TYPE_UNSPECIFIED = 0
141
-
142
- # The sparkline will be rendered as a small line chart.
143
- SPARK_LINE = 1
144
-
145
- # The sparkbar will be rendered as a small bar chart.
146
- SPARK_BAR = 2
147
- end
148
- end
149
- end
150
- end
151
- end
@@ -1,102 +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 widget showing the latest value of a metric, and how this value relates to
21
- # one or more thresholds.
22
- # @!attribute [rw] time_series_query
23
- # @return [Google::Monitoring::Dashboard::V1::TimeSeriesQuery]
24
- # Fields for querying time series data from the
25
- # Stackdriver metrics API.
26
- # @!attribute [rw] gauge_view
27
- # @return [Google::Monitoring::Dashboard::V1::Scorecard::GaugeView]
28
- # Will cause the scorecard to show a gauge chart.
29
- # @!attribute [rw] spark_chart_view
30
- # @return [Google::Monitoring::Dashboard::V1::Scorecard::SparkChartView]
31
- # Will cause the scorecard to show a spark chart.
32
- # @!attribute [rw] thresholds
33
- # @return [Array<Google::Monitoring::Dashboard::V1::Threshold>]
34
- # The thresholds used to determine the state of the scorecard given the
35
- # time series' current value. For an actual value x, the scorecard is in a
36
- # danger state if x is less than or equal to a danger threshold that triggers
37
- # below, or greater than or equal to a danger threshold that triggers above.
38
- # Similarly, if x is above/below a warning threshold that triggers
39
- # above/below, then the scorecard is in a warning state - unless x also puts
40
- # it in a danger state. (Danger trumps warning.)
41
- #
42
- # As an example, consider a scorecard with the following four thresholds:
43
- # {
44
- # value: 90,
45
- # category: 'DANGER',
46
- # trigger: 'ABOVE',
47
- # },
48
- # {
49
- # value: 70,
50
- # category: 'WARNING',
51
- # trigger: 'ABOVE',
52
- # },
53
- # {
54
- # value: 10,
55
- # category: 'DANGER',
56
- # trigger: 'BELOW',
57
- # },
58
- # {
59
- # value: 20,
60
- # category: 'WARNING',
61
- # trigger: 'BELOW',
62
- # }
63
- #
64
- # Then: values less than or equal to 10 would put the scorecard in a DANGER
65
- # state, values greater than 10 but less than or equal to 20 a WARNING state,
66
- # values strictly between 20 and 70 an OK state, values greater than or equal
67
- # to 70 but less than 90 a WARNING state, and values greater than or equal to
68
- # 90 a DANGER state.
69
- class Scorecard
70
- # A gauge chart shows where the current value sits within a pre-defined
71
- # range. The upper and lower bounds should define the possible range of
72
- # values for the scorecard's query (inclusive).
73
- # @!attribute [rw] lower_bound
74
- # @return [Float]
75
- # The lower bound for this gauge chart. The value of the chart should
76
- # always be greater than or equal to this.
77
- # @!attribute [rw] upper_bound
78
- # @return [Float]
79
- # The upper bound for this gauge chart. The value of the chart should
80
- # always be less than or equal to this.
81
- class GaugeView; end
82
-
83
- # A sparkChart is a small chart suitable for inclusion in a table-cell or
84
- # inline in text. This message contains the configuration for a sparkChart
85
- # to show up on a Scorecard, showing recent trends of the scorecard's
86
- # timeseries.
87
- # @!attribute [rw] spark_chart_type
88
- # @return [Google::Monitoring::Dashboard::V1::SparkChartType]
89
- # The type of sparkchart to show in this chartView.
90
- # @!attribute [rw] min_alignment_period
91
- # @return [Google::Protobuf::Duration]
92
- # The lower bound on data point frequency in the chart implemented by
93
- # specifying the minimum alignment period to use in a time series query.
94
- # For example, if the data is published once every 10 minutes it would not
95
- # make sense to fetch and align data at one minute intervals. This field is
96
- # optional and exists only as a hint.
97
- class SparkChartView; end
98
- end
99
- end
100
- end
101
- end
102
- end
@@ -1,43 +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 widget that displays textual content.
21
- # @!attribute [rw] content
22
- # @return [String]
23
- # The text content to be displayed.
24
- # @!attribute [rw] format
25
- # @return [Google::Monitoring::Dashboard::V1::Text::Format]
26
- # How the text content is formatted.
27
- class Text
28
- # The format type of the text content.
29
- module Format
30
- # Format is unspecified. Defaults to MARKDOWN.
31
- FORMAT_UNSPECIFIED = 0
32
-
33
- # The text contains Markdown formatting.
34
- MARKDOWN = 1
35
-
36
- # The text contains no special formatting.
37
- RAW = 2
38
- end
39
- end
40
- end
41
- end
42
- end
43
- end