google-cloud-monitoring 0.33.1 → 0.34.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -1
- data/lib/google/cloud/monitoring.rb +63 -1
- data/lib/google/cloud/monitoring/dashboard.rb +147 -0
- data/lib/google/cloud/monitoring/dashboard/v1.rb +148 -0
- data/lib/google/cloud/monitoring/dashboard/v1/credentials.rb +46 -0
- data/lib/google/cloud/monitoring/dashboard/v1/dashboards_service_client.rb +454 -0
- data/lib/google/cloud/monitoring/dashboard/v1/dashboards_service_client_config.json +51 -0
- data/lib/google/cloud/monitoring/dashboard/v1/doc/google/monitoring/dashboard/v1/common.rb +394 -0
- data/lib/google/cloud/monitoring/dashboard/v1/doc/google/monitoring/dashboard/v1/dashboard.rb +53 -0
- data/lib/google/cloud/monitoring/dashboard/v1/doc/google/monitoring/dashboard/v1/dashboards_service.rb +82 -0
- data/lib/google/cloud/monitoring/dashboard/v1/doc/google/monitoring/dashboard/v1/layouts.rb +71 -0
- data/lib/google/cloud/monitoring/dashboard/v1/doc/google/monitoring/dashboard/v1/metrics.rb +151 -0
- data/lib/google/cloud/monitoring/dashboard/v1/doc/google/monitoring/dashboard/v1/scorecard.rb +102 -0
- data/lib/google/cloud/monitoring/dashboard/v1/doc/google/monitoring/dashboard/v1/text.rb +43 -0
- data/lib/google/cloud/monitoring/dashboard/v1/doc/google/monitoring/dashboard/v1/widget.rb +41 -0
- data/lib/google/cloud/monitoring/dashboard/v1/doc/google/monitoring/dashboard/v1/xychart.rb +141 -0
- data/lib/google/cloud/monitoring/dashboard/v1/doc/google/protobuf/duration.rb +91 -0
- data/lib/google/cloud/monitoring/dashboard/v1/doc/google/protobuf/empty.rb +29 -0
- data/lib/google/cloud/monitoring/v3.rb +72 -1
- data/lib/google/cloud/monitoring/v3/alert_policy_service_client_config.json +5 -5
- data/lib/google/cloud/monitoring/v3/doc/google/api/metric.rb +29 -45
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/alert.rb +6 -8
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/metric.rb +8 -8
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/metric_service.rb +6 -4
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/service.rb +341 -0
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/service_service.rb +187 -0
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/uptime.rb +16 -12
- data/lib/google/cloud/monitoring/v3/group_service_client_config.json +6 -6
- data/lib/google/cloud/monitoring/v3/metric_service_client.rb +6 -4
- data/lib/google/cloud/monitoring/v3/metric_service_client_config.json +7 -7
- data/lib/google/cloud/monitoring/v3/notification_channel_service_client_config.json +10 -10
- data/lib/google/cloud/monitoring/v3/service_monitoring_service_client.rb +775 -0
- data/lib/google/cloud/monitoring/v3/service_monitoring_service_client_config.json +76 -0
- data/lib/google/cloud/monitoring/version.rb +1 -1
- data/lib/google/monitoring/dashboard/v1/common_pb.rb +95 -0
- data/lib/google/monitoring/dashboard/v1/dashboard_pb.rb +29 -0
- data/lib/google/monitoring/dashboard/v1/dashboards_service_pb.rb +51 -0
- data/lib/google/monitoring/dashboard/v1/dashboards_service_services_pb.rb +76 -0
- data/lib/google/monitoring/dashboard/v1/drilldowns_pb.rb +17 -0
- data/lib/google/monitoring/dashboard/v1/layouts_pb.rb +41 -0
- data/lib/google/monitoring/dashboard/v1/metrics_pb.rb +76 -0
- data/lib/google/monitoring/dashboard/v1/scorecard_pb.rb +38 -0
- data/lib/google/monitoring/dashboard/v1/service_pb.rb +17 -0
- data/lib/google/monitoring/dashboard/v1/text_pb.rb +28 -0
- data/lib/google/monitoring/dashboard/v1/widget_pb.rb +32 -0
- data/lib/google/monitoring/dashboard/v1/xychart_pb.rb +66 -0
- data/lib/google/monitoring/v3/metric_service_pb.rb +11 -0
- data/lib/google/monitoring/v3/notification_pb.rb +1 -0
- data/lib/google/monitoring/v3/service_pb.rb +141 -0
- data/lib/google/monitoring/v3/service_service_pb.rb +85 -0
- data/lib/google/monitoring/v3/service_service_services_pb.rb +66 -0
- metadata +37 -2
@@ -0,0 +1,82 @@
|
|
1
|
+
# Copyright 2019 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
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# Copyright 2019 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
|
@@ -0,0 +1,151 @@
|
|
1
|
+
# Copyright 2019 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
|
@@ -0,0 +1,102 @@
|
|
1
|
+
# Copyright 2019 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
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# Copyright 2019 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
|