google-cloud-monitoring-dashboard-v1 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +169 -0
- data/LICENSE.md +203 -0
- data/README.md +71 -0
- data/lib/google-cloud-monitoring-dashboard-v1.rb +21 -0
- data/lib/google/cloud/monitoring/dashboard/v1.rb +37 -0
- data/lib/google/cloud/monitoring/dashboard/v1/dashboards_service.rb +51 -0
- data/lib/google/cloud/monitoring/dashboard/v1/dashboards_service/client.rb +699 -0
- data/lib/google/cloud/monitoring/dashboard/v1/dashboards_service/credentials.rb +56 -0
- data/lib/google/cloud/monitoring/dashboard/v1/version.rb +30 -0
- data/lib/google/monitoring/dashboard/v1/common_pb.rb +98 -0
- data/lib/google/monitoring/dashboard/v1/dashboard_pb.rb +32 -0
- data/lib/google/monitoring/dashboard/v1/dashboards_service_pb.rb +54 -0
- data/lib/google/monitoring/dashboard/v1/dashboards_service_services_pb.rb +77 -0
- data/lib/google/monitoring/dashboard/v1/drilldowns_pb.rb +20 -0
- data/lib/google/monitoring/dashboard/v1/layouts_pb.rb +44 -0
- data/lib/google/monitoring/dashboard/v1/metrics_pb.rb +79 -0
- data/lib/google/monitoring/dashboard/v1/scorecard_pb.rb +41 -0
- data/lib/google/monitoring/dashboard/v1/service_pb.rb +20 -0
- data/lib/google/monitoring/dashboard/v1/text_pb.rb +31 -0
- data/lib/google/monitoring/dashboard/v1/widget_pb.rb +35 -0
- data/lib/google/monitoring/dashboard/v1/xychart_pb.rb +69 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +59 -0
- data/proto_docs/google/api/resource.rb +247 -0
- data/proto_docs/google/monitoring/dashboard/v1/common.rb +409 -0
- data/proto_docs/google/monitoring/dashboard/v1/dashboard.rb +62 -0
- data/proto_docs/google/monitoring/dashboard/v1/dashboards_service.rb +106 -0
- data/proto_docs/google/monitoring/dashboard/v1/layouts.rb +92 -0
- data/proto_docs/google/monitoring/dashboard/v1/metrics.rb +172 -0
- data/proto_docs/google/monitoring/dashboard/v1/scorecard.rb +117 -0
- data/proto_docs/google/monitoring/dashboard/v1/text.rb +52 -0
- data/proto_docs/google/monitoring/dashboard/v1/widget.rb +50 -0
- data/proto_docs/google/monitoring/dashboard/v1/xychart.rb +159 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- metadata +221 -0
@@ -0,0 +1,106 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Monitoring
|
23
|
+
module Dashboard
|
24
|
+
module V1
|
25
|
+
# The `CreateDashboard` request.
|
26
|
+
# @!attribute [rw] parent
|
27
|
+
# @return [::String]
|
28
|
+
# Required. The project on which to execute the request. The format is
|
29
|
+
# `"projects/{project_id_or_number}"`. The \\{project_id_or_number} must match
|
30
|
+
# the dashboard resource name.
|
31
|
+
# @!attribute [rw] dashboard
|
32
|
+
# @return [::Google::Cloud::Monitoring::Dashboard::V1::Dashboard]
|
33
|
+
# Required. The initial dashboard specification.
|
34
|
+
class CreateDashboardRequest
|
35
|
+
include ::Google::Protobuf::MessageExts
|
36
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
37
|
+
end
|
38
|
+
|
39
|
+
# The `ListDashboards` request.
|
40
|
+
# @!attribute [rw] parent
|
41
|
+
# @return [::String]
|
42
|
+
# Required. The scope of the dashboards to list. A project scope must be
|
43
|
+
# specified in the form of `"projects/{project_id_or_number}"`.
|
44
|
+
# @!attribute [rw] page_size
|
45
|
+
# @return [::Integer]
|
46
|
+
# A positive number that is the maximum number of results to return.
|
47
|
+
# If unspecified, a default of 1000 is used.
|
48
|
+
# @!attribute [rw] page_token
|
49
|
+
# @return [::String]
|
50
|
+
# If this field is not empty then it must contain the `nextPageToken` value
|
51
|
+
# returned by a previous call to this method. Using this field causes the
|
52
|
+
# method to return additional results from the previous method call.
|
53
|
+
class ListDashboardsRequest
|
54
|
+
include ::Google::Protobuf::MessageExts
|
55
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
56
|
+
end
|
57
|
+
|
58
|
+
# The `ListDashboards` request.
|
59
|
+
# @!attribute [rw] dashboards
|
60
|
+
# @return [::Array<::Google::Cloud::Monitoring::Dashboard::V1::Dashboard>]
|
61
|
+
# The list of requested dashboards.
|
62
|
+
# @!attribute [rw] next_page_token
|
63
|
+
# @return [::String]
|
64
|
+
# If there are more results than have been returned, then this field is set
|
65
|
+
# to a non-empty value. To see the additional results,
|
66
|
+
# use that value as `pageToken` in the next call to this method.
|
67
|
+
class ListDashboardsResponse
|
68
|
+
include ::Google::Protobuf::MessageExts
|
69
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
70
|
+
end
|
71
|
+
|
72
|
+
# The `GetDashboard` request.
|
73
|
+
# @!attribute [rw] name
|
74
|
+
# @return [::String]
|
75
|
+
# Required. The resource name of the Dashboard. The format is one of
|
76
|
+
# `"dashboards/{dashboard_id}"` (for system dashboards) or
|
77
|
+
# `"projects/{project_id_or_number}/dashboards/{dashboard_id}"`
|
78
|
+
# (for custom dashboards).
|
79
|
+
class GetDashboardRequest
|
80
|
+
include ::Google::Protobuf::MessageExts
|
81
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
82
|
+
end
|
83
|
+
|
84
|
+
# The `DeleteDashboard` request.
|
85
|
+
# @!attribute [rw] name
|
86
|
+
# @return [::String]
|
87
|
+
# Required. The resource name of the Dashboard. The format is
|
88
|
+
# `"projects/{project_id_or_number}/dashboards/{dashboard_id}"`.
|
89
|
+
class DeleteDashboardRequest
|
90
|
+
include ::Google::Protobuf::MessageExts
|
91
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
92
|
+
end
|
93
|
+
|
94
|
+
# The `UpdateDashboard` request.
|
95
|
+
# @!attribute [rw] dashboard
|
96
|
+
# @return [::Google::Cloud::Monitoring::Dashboard::V1::Dashboard]
|
97
|
+
# Required. The dashboard that will replace the existing dashboard.
|
98
|
+
class UpdateDashboardRequest
|
99
|
+
include ::Google::Protobuf::MessageExts
|
100
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
@@ -0,0 +1,92 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Monitoring
|
23
|
+
module Dashboard
|
24
|
+
module V1
|
25
|
+
# A basic layout divides the available space into vertical columns of equal
|
26
|
+
# width and arranges a list of widgets using a row-first strategy.
|
27
|
+
# @!attribute [rw] columns
|
28
|
+
# @return [::Integer]
|
29
|
+
# The number of columns into which the view's width is divided. If omitted
|
30
|
+
# or set to zero, a system default will be used while rendering.
|
31
|
+
# @!attribute [rw] widgets
|
32
|
+
# @return [::Array<::Google::Cloud::Monitoring::Dashboard::V1::Widget>]
|
33
|
+
# The informational elements that are arranged into the columns row-first.
|
34
|
+
class GridLayout
|
35
|
+
include ::Google::Protobuf::MessageExts
|
36
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
37
|
+
end
|
38
|
+
|
39
|
+
# A simplified layout that divides the available space into rows
|
40
|
+
# and arranges a set of widgets horizontally in each row.
|
41
|
+
# @!attribute [rw] rows
|
42
|
+
# @return [::Array<::Google::Cloud::Monitoring::Dashboard::V1::RowLayout::Row>]
|
43
|
+
# The rows of content to display.
|
44
|
+
class RowLayout
|
45
|
+
include ::Google::Protobuf::MessageExts
|
46
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
47
|
+
|
48
|
+
# Defines the layout properties and content for a row.
|
49
|
+
# @!attribute [rw] weight
|
50
|
+
# @return [::Integer]
|
51
|
+
# The relative weight of this row. The row weight is used to adjust the
|
52
|
+
# height of rows on the screen (relative to peers). Greater the weight,
|
53
|
+
# greater the height of the row on the screen. If omitted, a value
|
54
|
+
# of 1 is used while rendering.
|
55
|
+
# @!attribute [rw] widgets
|
56
|
+
# @return [::Array<::Google::Cloud::Monitoring::Dashboard::V1::Widget>]
|
57
|
+
# The display widgets arranged horizontally in this row.
|
58
|
+
class Row
|
59
|
+
include ::Google::Protobuf::MessageExts
|
60
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
# A simplified layout that divides the available space into vertical columns
|
65
|
+
# and arranges a set of widgets vertically in each column.
|
66
|
+
# @!attribute [rw] columns
|
67
|
+
# @return [::Array<::Google::Cloud::Monitoring::Dashboard::V1::ColumnLayout::Column>]
|
68
|
+
# The columns of content to display.
|
69
|
+
class ColumnLayout
|
70
|
+
include ::Google::Protobuf::MessageExts
|
71
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
72
|
+
|
73
|
+
# Defines the layout properties and content for a column.
|
74
|
+
# @!attribute [rw] weight
|
75
|
+
# @return [::Integer]
|
76
|
+
# The relative weight of this column. The column weight is used to adjust
|
77
|
+
# the width of columns on the screen (relative to peers).
|
78
|
+
# Greater the weight, greater the width of the column on the screen.
|
79
|
+
# If omitted, a value of 1 is used while rendering.
|
80
|
+
# @!attribute [rw] widgets
|
81
|
+
# @return [::Array<::Google::Cloud::Monitoring::Dashboard::V1::Widget>]
|
82
|
+
# The display widgets arranged vertically in this column.
|
83
|
+
class Column
|
84
|
+
include ::Google::Protobuf::MessageExts
|
85
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
@@ -0,0 +1,172 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Monitoring
|
23
|
+
module Dashboard
|
24
|
+
module V1
|
25
|
+
# TimeSeriesQuery collects the set of supported methods for querying time
|
26
|
+
# series data from the Stackdriver metrics API.
|
27
|
+
# @!attribute [rw] time_series_filter
|
28
|
+
# @return [::Google::Cloud::Monitoring::Dashboard::V1::TimeSeriesFilter]
|
29
|
+
# Filter parameters to fetch time series.
|
30
|
+
# @!attribute [rw] time_series_filter_ratio
|
31
|
+
# @return [::Google::Cloud::Monitoring::Dashboard::V1::TimeSeriesFilterRatio]
|
32
|
+
# Parameters to fetch a ratio between two time series filters.
|
33
|
+
# @!attribute [rw] unit_override
|
34
|
+
# @return [::String]
|
35
|
+
# The unit of data contained in fetched time series. If non-empty, this
|
36
|
+
# unit will override any unit that accompanies fetched data. The format is
|
37
|
+
# the same as the
|
38
|
+
# [`unit`](/monitoring/api/ref_v3/rest/v3/projects.metricDescriptors)
|
39
|
+
# field in `MetricDescriptor`.
|
40
|
+
class TimeSeriesQuery
|
41
|
+
include ::Google::Protobuf::MessageExts
|
42
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
43
|
+
end
|
44
|
+
|
45
|
+
# A filter that defines a subset of time series data that is displayed in a
|
46
|
+
# widget. Time series data is fetched using the
|
47
|
+
# [`ListTimeSeries`](/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list)
|
48
|
+
# method.
|
49
|
+
# @!attribute [rw] filter
|
50
|
+
# @return [::String]
|
51
|
+
# Required. The [monitoring filter](/monitoring/api/v3/filters) that identifies the
|
52
|
+
# metric types, resources, and projects to query.
|
53
|
+
# @!attribute [rw] aggregation
|
54
|
+
# @return [::Google::Cloud::Monitoring::Dashboard::V1::Aggregation]
|
55
|
+
# By default, the raw time series data is returned.
|
56
|
+
# Use this field to combine multiple time series for different views of the
|
57
|
+
# data.
|
58
|
+
# @!attribute [rw] pick_time_series_filter
|
59
|
+
# @return [::Google::Cloud::Monitoring::Dashboard::V1::PickTimeSeriesFilter]
|
60
|
+
# Ranking based time series filter.
|
61
|
+
# @!attribute [rw] statistical_time_series_filter
|
62
|
+
# @return [::Google::Cloud::Monitoring::Dashboard::V1::StatisticalTimeSeriesFilter]
|
63
|
+
# Statistics based time series filter.
|
64
|
+
class TimeSeriesFilter
|
65
|
+
include ::Google::Protobuf::MessageExts
|
66
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
67
|
+
end
|
68
|
+
|
69
|
+
# A pair of time series filters that define a ratio computation. The output
|
70
|
+
# time series is the pair-wise division of each aligned element from the
|
71
|
+
# numerator and denominator time series.
|
72
|
+
# @!attribute [rw] numerator
|
73
|
+
# @return [::Google::Cloud::Monitoring::Dashboard::V1::TimeSeriesFilterRatio::RatioPart]
|
74
|
+
# The numerator of the ratio.
|
75
|
+
# @!attribute [rw] denominator
|
76
|
+
# @return [::Google::Cloud::Monitoring::Dashboard::V1::TimeSeriesFilterRatio::RatioPart]
|
77
|
+
# The denominator of the ratio.
|
78
|
+
# @!attribute [rw] secondary_aggregation
|
79
|
+
# @return [::Google::Cloud::Monitoring::Dashboard::V1::Aggregation]
|
80
|
+
# Apply a second aggregation after the ratio is computed.
|
81
|
+
# @!attribute [rw] pick_time_series_filter
|
82
|
+
# @return [::Google::Cloud::Monitoring::Dashboard::V1::PickTimeSeriesFilter]
|
83
|
+
# Ranking based time series filter.
|
84
|
+
# @!attribute [rw] statistical_time_series_filter
|
85
|
+
# @return [::Google::Cloud::Monitoring::Dashboard::V1::StatisticalTimeSeriesFilter]
|
86
|
+
# Statistics based time series filter.
|
87
|
+
class TimeSeriesFilterRatio
|
88
|
+
include ::Google::Protobuf::MessageExts
|
89
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
90
|
+
|
91
|
+
# Describes a query to build the numerator or denominator of a
|
92
|
+
# TimeSeriesFilterRatio.
|
93
|
+
# @!attribute [rw] filter
|
94
|
+
# @return [::String]
|
95
|
+
# Required. The [monitoring filter](/monitoring/api/v3/filters) that identifies the
|
96
|
+
# metric types, resources, and projects to query.
|
97
|
+
# @!attribute [rw] aggregation
|
98
|
+
# @return [::Google::Cloud::Monitoring::Dashboard::V1::Aggregation]
|
99
|
+
# By default, the raw time series data is returned.
|
100
|
+
# Use this field to combine multiple time series for different views of the
|
101
|
+
# data.
|
102
|
+
class RatioPart
|
103
|
+
include ::Google::Protobuf::MessageExts
|
104
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
# Defines a threshold for categorizing time series values.
|
109
|
+
# @!attribute [rw] label
|
110
|
+
# @return [::String]
|
111
|
+
# A label for the threshold.
|
112
|
+
# @!attribute [rw] value
|
113
|
+
# @return [::Float]
|
114
|
+
# The value of the threshold. The value should be defined in the native scale
|
115
|
+
# of the metric.
|
116
|
+
# @!attribute [rw] color
|
117
|
+
# @return [::Google::Cloud::Monitoring::Dashboard::V1::Threshold::Color]
|
118
|
+
# The state color for this threshold. Color is not allowed in a XyChart.
|
119
|
+
# @!attribute [rw] direction
|
120
|
+
# @return [::Google::Cloud::Monitoring::Dashboard::V1::Threshold::Direction]
|
121
|
+
# The direction for the current threshold. Direction is not allowed in a
|
122
|
+
# XyChart.
|
123
|
+
class Threshold
|
124
|
+
include ::Google::Protobuf::MessageExts
|
125
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
126
|
+
|
127
|
+
# The color suggests an interpretation to the viewer when actual values cross
|
128
|
+
# the threshold. Comments on each color provide UX guidance on how users can
|
129
|
+
# be expected to interpret a given state color.
|
130
|
+
module Color
|
131
|
+
# Color is unspecified. Not allowed in well-formed requests.
|
132
|
+
COLOR_UNSPECIFIED = 0
|
133
|
+
|
134
|
+
# Crossing the threshold is "concerning" behavior.
|
135
|
+
YELLOW = 4
|
136
|
+
|
137
|
+
# Crossing the threshold is "emergency" behavior.
|
138
|
+
RED = 6
|
139
|
+
end
|
140
|
+
|
141
|
+
# Whether the threshold is considered crossed by an actual value above or
|
142
|
+
# below its threshold value.
|
143
|
+
module Direction
|
144
|
+
# Not allowed in well-formed requests.
|
145
|
+
DIRECTION_UNSPECIFIED = 0
|
146
|
+
|
147
|
+
# The threshold will be considered crossed if the actual value is above
|
148
|
+
# the threshold value.
|
149
|
+
ABOVE = 1
|
150
|
+
|
151
|
+
# The threshold will be considered crossed if the actual value is below
|
152
|
+
# the threshold value.
|
153
|
+
BELOW = 2
|
154
|
+
end
|
155
|
+
end
|
156
|
+
|
157
|
+
# Defines the possible types of spark chart supported by the `Scorecard`.
|
158
|
+
module SparkChartType
|
159
|
+
# Not allowed in well-formed requests.
|
160
|
+
SPARK_CHART_TYPE_UNSPECIFIED = 0
|
161
|
+
|
162
|
+
# The sparkline will be rendered as a small line chart.
|
163
|
+
SPARK_LINE = 1
|
164
|
+
|
165
|
+
# The sparkbar will be rendered as a small bar chart.
|
166
|
+
SPARK_BAR = 2
|
167
|
+
end
|
168
|
+
end
|
169
|
+
end
|
170
|
+
end
|
171
|
+
end
|
172
|
+
end
|
@@ -0,0 +1,117 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Monitoring
|
23
|
+
module Dashboard
|
24
|
+
module V1
|
25
|
+
# A widget showing the latest value of a metric, and how this value relates to
|
26
|
+
# one or more thresholds.
|
27
|
+
# @!attribute [rw] time_series_query
|
28
|
+
# @return [::Google::Cloud::Monitoring::Dashboard::V1::TimeSeriesQuery]
|
29
|
+
# Fields for querying time series data from the
|
30
|
+
# Stackdriver metrics API.
|
31
|
+
# @!attribute [rw] gauge_view
|
32
|
+
# @return [::Google::Cloud::Monitoring::Dashboard::V1::Scorecard::GaugeView]
|
33
|
+
# Will cause the scorecard to show a gauge chart.
|
34
|
+
# @!attribute [rw] spark_chart_view
|
35
|
+
# @return [::Google::Cloud::Monitoring::Dashboard::V1::Scorecard::SparkChartView]
|
36
|
+
# Will cause the scorecard to show a spark chart.
|
37
|
+
# @!attribute [rw] thresholds
|
38
|
+
# @return [::Array<::Google::Cloud::Monitoring::Dashboard::V1::Threshold>]
|
39
|
+
# The thresholds used to determine the state of the scorecard given the
|
40
|
+
# time series' current value. For an actual value x, the scorecard is in a
|
41
|
+
# danger state if x is less than or equal to a danger threshold that triggers
|
42
|
+
# below, or greater than or equal to a danger threshold that triggers above.
|
43
|
+
# Similarly, if x is above/below a warning threshold that triggers
|
44
|
+
# above/below, then the scorecard is in a warning state - unless x also puts
|
45
|
+
# it in a danger state. (Danger trumps warning.)
|
46
|
+
#
|
47
|
+
# As an example, consider a scorecard with the following four thresholds:
|
48
|
+
# {
|
49
|
+
# value: 90,
|
50
|
+
# category: 'DANGER',
|
51
|
+
# trigger: 'ABOVE',
|
52
|
+
# },
|
53
|
+
# {
|
54
|
+
# value: 70,
|
55
|
+
# category: 'WARNING',
|
56
|
+
# trigger: 'ABOVE',
|
57
|
+
# },
|
58
|
+
# {
|
59
|
+
# value: 10,
|
60
|
+
# category: 'DANGER',
|
61
|
+
# trigger: 'BELOW',
|
62
|
+
# },
|
63
|
+
# {
|
64
|
+
# value: 20,
|
65
|
+
# category: 'WARNING',
|
66
|
+
# trigger: 'BELOW',
|
67
|
+
# }
|
68
|
+
#
|
69
|
+
# Then: values less than or equal to 10 would put the scorecard in a DANGER
|
70
|
+
# state, values greater than 10 but less than or equal to 20 a WARNING state,
|
71
|
+
# values strictly between 20 and 70 an OK state, values greater than or equal
|
72
|
+
# to 70 but less than 90 a WARNING state, and values greater than or equal to
|
73
|
+
# 90 a DANGER state.
|
74
|
+
class Scorecard
|
75
|
+
include ::Google::Protobuf::MessageExts
|
76
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
77
|
+
|
78
|
+
# A gauge chart shows where the current value sits within a pre-defined
|
79
|
+
# range. The upper and lower bounds should define the possible range of
|
80
|
+
# values for the scorecard's query (inclusive).
|
81
|
+
# @!attribute [rw] lower_bound
|
82
|
+
# @return [::Float]
|
83
|
+
# The lower bound for this gauge chart. The value of the chart should
|
84
|
+
# always be greater than or equal to this.
|
85
|
+
# @!attribute [rw] upper_bound
|
86
|
+
# @return [::Float]
|
87
|
+
# The upper bound for this gauge chart. The value of the chart should
|
88
|
+
# always be less than or equal to this.
|
89
|
+
class GaugeView
|
90
|
+
include ::Google::Protobuf::MessageExts
|
91
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
92
|
+
end
|
93
|
+
|
94
|
+
# A sparkChart is a small chart suitable for inclusion in a table-cell or
|
95
|
+
# inline in text. This message contains the configuration for a sparkChart
|
96
|
+
# to show up on a Scorecard, showing recent trends of the scorecard's
|
97
|
+
# timeseries.
|
98
|
+
# @!attribute [rw] spark_chart_type
|
99
|
+
# @return [::Google::Cloud::Monitoring::Dashboard::V1::SparkChartType]
|
100
|
+
# The type of sparkchart to show in this chartView.
|
101
|
+
# @!attribute [rw] min_alignment_period
|
102
|
+
# @return [::Google::Protobuf::Duration]
|
103
|
+
# The lower bound on data point frequency in the chart implemented by
|
104
|
+
# specifying the minimum alignment period to use in a time series query.
|
105
|
+
# For example, if the data is published once every 10 minutes it would not
|
106
|
+
# make sense to fetch and align data at one minute intervals. This field is
|
107
|
+
# optional and exists only as a hint.
|
108
|
+
class SparkChartView
|
109
|
+
include ::Google::Protobuf::MessageExts
|
110
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
111
|
+
end
|
112
|
+
end
|
113
|
+
end
|
114
|
+
end
|
115
|
+
end
|
116
|
+
end
|
117
|
+
end
|