google-cloud-monitoring-dashboard-v1 0.14.2 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/monitoring/dashboard/v1/dashboards_service/client.rb +4 -3
  3. data/lib/google/cloud/monitoring/dashboard/v1/dashboards_service/rest/client.rb +4 -3
  4. data/lib/google/cloud/monitoring/dashboard/v1/version.rb +1 -1
  5. data/lib/google/monitoring/dashboard/v1/alertchart_pb.rb +1 -1
  6. data/lib/google/monitoring/dashboard/v1/common_pb.rb +3 -1
  7. data/lib/google/monitoring/dashboard/v1/dashboard_filter_pb.rb +1 -1
  8. data/lib/google/monitoring/dashboard/v1/dashboard_pb.rb +1 -1
  9. data/lib/google/monitoring/dashboard/v1/dashboards_service_pb.rb +1 -1
  10. data/lib/google/monitoring/dashboard/v1/error_reporting_panel_pb.rb +42 -0
  11. data/lib/google/monitoring/dashboard/v1/incident_list_pb.rb +48 -0
  12. data/lib/google/monitoring/dashboard/v1/metrics_pb.rb +1 -1
  13. data/lib/google/monitoring/dashboard/v1/piechart_pb.rb +52 -0
  14. data/lib/google/monitoring/dashboard/v1/scorecard_pb.rb +3 -1
  15. data/lib/google/monitoring/dashboard/v1/section_header_pb.rb +44 -0
  16. data/lib/google/monitoring/dashboard/v1/single_view_group_pb.rb +44 -0
  17. data/lib/google/monitoring/dashboard/v1/table_display_options_pb.rb +1 -1
  18. data/lib/google/monitoring/dashboard/v1/table_pb.rb +1 -1
  19. data/lib/google/monitoring/dashboard/v1/text_pb.rb +7 -1
  20. data/lib/google/monitoring/dashboard/v1/widget_pb.rb +11 -1
  21. data/lib/google/monitoring/dashboard/v1/xychart_pb.rb +1 -1
  22. data/proto_docs/google/api/label.rb +49 -0
  23. data/proto_docs/google/api/monitored_resource.rb +150 -0
  24. data/proto_docs/google/monitoring/dashboard/v1/common.rb +3 -0
  25. data/proto_docs/google/monitoring/dashboard/v1/dashboard.rb +1 -1
  26. data/proto_docs/google/monitoring/dashboard/v1/dashboards_service.rb +4 -3
  27. data/proto_docs/google/monitoring/dashboard/v1/error_reporting_panel.rb +55 -0
  28. data/proto_docs/google/monitoring/dashboard/v1/incident_list.rb +45 -0
  29. data/proto_docs/google/monitoring/dashboard/v1/metrics.rb +9 -0
  30. data/proto_docs/google/monitoring/dashboard/v1/piechart.rb +80 -0
  31. data/proto_docs/google/monitoring/dashboard/v1/scorecard.rb +4 -0
  32. data/proto_docs/google/monitoring/dashboard/v1/section_header.rb +41 -0
  33. data/proto_docs/google/monitoring/dashboard/v1/single_view_group.rb +36 -0
  34. data/proto_docs/google/monitoring/dashboard/v1/text.rb +146 -0
  35. data/proto_docs/google/monitoring/dashboard/v1/widget.rb +20 -0
  36. data/proto_docs/google/monitoring/dashboard/v1/xychart.rb +5 -5
  37. data/proto_docs/google/protobuf/struct.rb +96 -0
  38. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  39. data/proto_docs/google/type/interval.rb +45 -0
  40. metadata +17 -2
@@ -0,0 +1,150 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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 Api
22
+ # An object that describes the schema of a
23
+ # {::Google::Api::MonitoredResource MonitoredResource} object using a type name
24
+ # and a set of labels. For example, the monitored resource descriptor for
25
+ # Google Compute Engine VM instances has a type of
26
+ # `"gce_instance"` and specifies the use of the labels `"instance_id"` and
27
+ # `"zone"` to identify particular VM instances.
28
+ #
29
+ # Different APIs can support different monitored resource types. APIs generally
30
+ # provide a `list` method that returns the monitored resource descriptors used
31
+ # by the API.
32
+ # @!attribute [rw] name
33
+ # @return [::String]
34
+ # Optional. The resource name of the monitored resource descriptor:
35
+ # `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where
36
+ # \\{type} is the value of the `type` field in this object and
37
+ # \\{project_id} is a project ID that provides API-specific context for
38
+ # accessing the type. APIs that do not use project information can use the
39
+ # resource name format `"monitoredResourceDescriptors/{type}"`.
40
+ # @!attribute [rw] type
41
+ # @return [::String]
42
+ # Required. The monitored resource type. For example, the type
43
+ # `"cloudsql_database"` represents databases in Google Cloud SQL.
44
+ # For a list of types, see [Monitoring resource
45
+ # types](https://cloud.google.com/monitoring/api/resources)
46
+ # and [Logging resource
47
+ # types](https://cloud.google.com/logging/docs/api/v2/resource-list).
48
+ # @!attribute [rw] display_name
49
+ # @return [::String]
50
+ # Optional. A concise name for the monitored resource type that might be
51
+ # displayed in user interfaces. It should be a Title Cased Noun Phrase,
52
+ # without any article or other determiners. For example,
53
+ # `"Google Cloud SQL Database"`.
54
+ # @!attribute [rw] description
55
+ # @return [::String]
56
+ # Optional. A detailed description of the monitored resource type that might
57
+ # be used in documentation.
58
+ # @!attribute [rw] labels
59
+ # @return [::Array<::Google::Api::LabelDescriptor>]
60
+ # Required. A set of labels used to describe instances of this monitored
61
+ # resource type. For example, an individual Google Cloud SQL database is
62
+ # identified by values for the labels `"database_id"` and `"zone"`.
63
+ # @!attribute [rw] launch_stage
64
+ # @return [::Google::Api::LaunchStage]
65
+ # Optional. The launch stage of the monitored resource definition.
66
+ class MonitoredResourceDescriptor
67
+ include ::Google::Protobuf::MessageExts
68
+ extend ::Google::Protobuf::MessageExts::ClassMethods
69
+ end
70
+
71
+ # An object representing a resource that can be used for monitoring, logging,
72
+ # billing, or other purposes. Examples include virtual machine instances,
73
+ # databases, and storage devices such as disks. The `type` field identifies a
74
+ # {::Google::Api::MonitoredResourceDescriptor MonitoredResourceDescriptor} object
75
+ # that describes the resource's schema. Information in the `labels` field
76
+ # identifies the actual resource and its attributes according to the schema.
77
+ # For example, a particular Compute Engine VM instance could be represented by
78
+ # the following object, because the
79
+ # {::Google::Api::MonitoredResourceDescriptor MonitoredResourceDescriptor} for
80
+ # `"gce_instance"` has labels
81
+ # `"project_id"`, `"instance_id"` and `"zone"`:
82
+ #
83
+ # { "type": "gce_instance",
84
+ # "labels": { "project_id": "my-project",
85
+ # "instance_id": "12345678901234",
86
+ # "zone": "us-central1-a" }}
87
+ # @!attribute [rw] type
88
+ # @return [::String]
89
+ # Required. The monitored resource type. This field must match
90
+ # the `type` field of a
91
+ # {::Google::Api::MonitoredResourceDescriptor MonitoredResourceDescriptor}
92
+ # object. For example, the type of a Compute Engine VM instance is
93
+ # `gce_instance`. Some descriptors include the service name in the type; for
94
+ # example, the type of a Datastream stream is
95
+ # `datastream.googleapis.com/Stream`.
96
+ # @!attribute [rw] labels
97
+ # @return [::Google::Protobuf::Map{::String => ::String}]
98
+ # Required. Values for all of the labels listed in the associated monitored
99
+ # resource descriptor. For example, Compute Engine VM instances use the
100
+ # labels `"project_id"`, `"instance_id"`, and `"zone"`.
101
+ class MonitoredResource
102
+ include ::Google::Protobuf::MessageExts
103
+ extend ::Google::Protobuf::MessageExts::ClassMethods
104
+
105
+ # @!attribute [rw] key
106
+ # @return [::String]
107
+ # @!attribute [rw] value
108
+ # @return [::String]
109
+ class LabelsEntry
110
+ include ::Google::Protobuf::MessageExts
111
+ extend ::Google::Protobuf::MessageExts::ClassMethods
112
+ end
113
+ end
114
+
115
+ # Auxiliary metadata for a {::Google::Api::MonitoredResource MonitoredResource}
116
+ # object. {::Google::Api::MonitoredResource MonitoredResource} objects contain the
117
+ # minimum set of information to uniquely identify a monitored resource
118
+ # instance. There is some other useful auxiliary metadata. Monitoring and
119
+ # Logging use an ingestion pipeline to extract metadata for cloud resources of
120
+ # all types, and store the metadata in this message.
121
+ # @!attribute [rw] system_labels
122
+ # @return [::Google::Protobuf::Struct]
123
+ # Output only. Values for predefined system metadata labels.
124
+ # System labels are a kind of metadata extracted by Google, including
125
+ # "machine_image", "vpc", "subnet_id",
126
+ # "security_group", "name", etc.
127
+ # System label values can be only strings, Boolean values, or a list of
128
+ # strings. For example:
129
+ #
130
+ # { "name": "my-test-instance",
131
+ # "security_group": ["a", "b", "c"],
132
+ # "spot_instance": false }
133
+ # @!attribute [rw] user_labels
134
+ # @return [::Google::Protobuf::Map{::String => ::String}]
135
+ # Output only. A map of user-defined metadata labels.
136
+ class MonitoredResourceMetadata
137
+ include ::Google::Protobuf::MessageExts
138
+ extend ::Google::Protobuf::MessageExts::ClassMethods
139
+
140
+ # @!attribute [rw] key
141
+ # @return [::String]
142
+ # @!attribute [rw] value
143
+ # @return [::String]
144
+ class UserLabelsEntry
145
+ include ::Google::Protobuf::MessageExts
146
+ extend ::Google::Protobuf::MessageExts::ClassMethods
147
+ end
148
+ end
149
+ end
150
+ end
@@ -389,6 +389,9 @@ module Google
389
389
  # @!attribute [rw] direction
390
390
  # @return [::Google::Cloud::Monitoring::Dashboard::V1::PickTimeSeriesFilter::Direction]
391
391
  # How to use the ranking to select time series that pass through the filter.
392
+ # @!attribute [rw] interval
393
+ # @return [::Google::Type::Interval]
394
+ # Select the top N streams/time series within this time interval
392
395
  class PickTimeSeriesFilter
393
396
  include ::Google::Protobuf::MessageExts
394
397
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -26,7 +26,7 @@ module Google
26
26
  # of pages in the Stackdriver web application.
27
27
  # @!attribute [rw] name
28
28
  # @return [::String]
29
- # Immutable. The resource name of the dashboard.
29
+ # Identifier. The resource name of the dashboard.
30
30
  # @!attribute [rw] display_name
31
31
  # @return [::String]
32
32
  # Required. The mutable, human-readable name.
@@ -54,9 +54,10 @@ module Google
54
54
  # If unspecified, a default of 1000 is used.
55
55
  # @!attribute [rw] page_token
56
56
  # @return [::String]
57
- # If this field is not empty then it must contain the `nextPageToken` value
58
- # returned by a previous call to this method. Using this field causes the
59
- # method to return additional results from the previous method call.
57
+ # Optional. If this field is not empty then it must contain the
58
+ # `nextPageToken` value returned by a previous call to this method. Using
59
+ # this field causes the method to return additional results from the previous
60
+ # method call.
60
61
  class ListDashboardsRequest
61
62
  include ::Google::Protobuf::MessageExts
62
63
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -0,0 +1,55 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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 Monitoring
22
+ module Dashboard
23
+ module V1
24
+ # A widget that displays a list of error groups.
25
+ # @!attribute [rw] project_names
26
+ # @return [::Array<::String>]
27
+ # The resource name of the Google Cloud Platform project. Written
28
+ # as `projects/{projectID}` or `projects/{projectNumber}`, where
29
+ # `{projectID}` and `{projectNumber}` can be found in the
30
+ # [Google Cloud console](https://support.google.com/cloud/answer/6158840).
31
+ #
32
+ # Examples: `projects/my-project-123`, `projects/5551234`.
33
+ # @!attribute [rw] services
34
+ # @return [::Array<::String>]
35
+ # An identifier of the service, such as the name of the
36
+ # executable, job, or Google App Engine service name. This field is expected
37
+ # to have a low number of values that are relatively stable over time, as
38
+ # opposed to `version`, which can be changed whenever new code is deployed.
39
+ #
40
+ # Contains the service name for error reports extracted from Google
41
+ # App Engine logs or `default` if the App Engine default service is used.
42
+ # @!attribute [rw] versions
43
+ # @return [::Array<::String>]
44
+ # Represents the source code version that the developer provided,
45
+ # which could represent a version label or a Git SHA-1 hash, for example.
46
+ # For App Engine standard environment, the version is set to the version of
47
+ # the app.
48
+ class ErrorReportingPanel
49
+ include ::Google::Protobuf::MessageExts
50
+ extend ::Google::Protobuf::MessageExts::ClassMethods
51
+ end
52
+ end
53
+ end
54
+ end
55
+ end
@@ -0,0 +1,45 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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 that displays a list of incidents
26
+ # @!attribute [rw] monitored_resources
27
+ # @return [::Array<::Google::Api::MonitoredResource>]
28
+ # Optional. The monitored resource for which incidents are listed.
29
+ # The resource doesn't need to be fully specified. That is, you can specify
30
+ # the resource type but not the values of the resource labels.
31
+ # The resource type and labels are used for filtering.
32
+ # @!attribute [rw] policy_names
33
+ # @return [::Array<::String>]
34
+ # Optional. A list of alert policy names to filter the incident list by.
35
+ # Don't include the project ID prefix in the policy name. For
36
+ # example, use `alertPolicies/utilization`.
37
+ class IncidentList
38
+ include ::Google::Protobuf::MessageExts
39
+ extend ::Google::Protobuf::MessageExts::ClassMethods
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
45
+ end
@@ -43,6 +43,15 @@ module Google
43
43
  # the same as the
44
44
  # [`unit`](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.metricDescriptors)
45
45
  # field in `MetricDescriptor`.
46
+ # @!attribute [rw] output_full_duration
47
+ # @return [::Boolean]
48
+ # Optional. If set, Cloud Monitoring will treat the full query duration as
49
+ # the alignment period so that there will be only 1 output value.
50
+ #
51
+ # *Note: This could override the configured alignment period except for
52
+ # the cases where a series of data points are expected, like
53
+ # - XyChart
54
+ # - Scorecard's spark chart
46
55
  class TimeSeriesQuery
47
56
  include ::Google::Protobuf::MessageExts
48
57
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -0,0 +1,80 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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 that displays timeseries data as a pie or a donut.
26
+ # @!attribute [rw] data_sets
27
+ # @return [::Array<::Google::Cloud::Monitoring::Dashboard::V1::PieChart::PieChartDataSet>]
28
+ # Required. The queries for the chart's data.
29
+ # @!attribute [rw] chart_type
30
+ # @return [::Google::Cloud::Monitoring::Dashboard::V1::PieChart::PieChartType]
31
+ # Required. Indicates the visualization type for the PieChart.
32
+ # @!attribute [rw] show_labels
33
+ # @return [::Boolean]
34
+ # Optional. Indicates whether or not the pie chart should show slices' labels
35
+ class PieChart
36
+ include ::Google::Protobuf::MessageExts
37
+ extend ::Google::Protobuf::MessageExts::ClassMethods
38
+
39
+ # Groups a time series query definition.
40
+ # @!attribute [rw] time_series_query
41
+ # @return [::Google::Cloud::Monitoring::Dashboard::V1::TimeSeriesQuery]
42
+ # Required. The query for the PieChart. See,
43
+ # `google.monitoring.dashboard.v1.TimeSeriesQuery`.
44
+ # @!attribute [rw] slice_name_template
45
+ # @return [::String]
46
+ # Optional. A template for the name of the slice. This name will be
47
+ # displayed in the legend and the tooltip of the pie chart. It replaces the
48
+ # auto-generated names for the slices. For example, if the template is set
49
+ # to
50
+ # `${resource.labels.zone}`, the zone's value will be used for the name
51
+ # instead of the default name.
52
+ # @!attribute [rw] min_alignment_period
53
+ # @return [::Google::Protobuf::Duration]
54
+ # Optional. The lower bound on data point frequency for this data set,
55
+ # implemented by specifying the minimum alignment period to use in a time
56
+ # series query. For example, if the data is published once every 10
57
+ # minutes, the `min_alignment_period` should be at least 10 minutes. It
58
+ # would not make sense to fetch and align data at one minute intervals.
59
+ class PieChartDataSet
60
+ include ::Google::Protobuf::MessageExts
61
+ extend ::Google::Protobuf::MessageExts::ClassMethods
62
+ end
63
+
64
+ # Types for the pie chart.
65
+ module PieChartType
66
+ # The zero value. No type specified. Do not use.
67
+ PIE_CHART_TYPE_UNSPECIFIED = 0
68
+
69
+ # A Pie type PieChart.
70
+ PIE = 1
71
+
72
+ # Similar to PIE, but the DONUT type PieChart has a hole in the middle.
73
+ DONUT = 2
74
+ end
75
+ end
76
+ end
77
+ end
78
+ end
79
+ end
80
+ end
@@ -34,6 +34,10 @@ module Google
34
34
  # @!attribute [rw] spark_chart_view
35
35
  # @return [::Google::Cloud::Monitoring::Dashboard::V1::Scorecard::SparkChartView]
36
36
  # Will cause the scorecard to show a spark chart.
37
+ # @!attribute [rw] blank_view
38
+ # @return [::Google::Protobuf::Empty]
39
+ # Will cause the `Scorecard` to show only the value, with no indicator to
40
+ # its value relative to its thresholds.
37
41
  # @!attribute [rw] thresholds
38
42
  # @return [::Array<::Google::Cloud::Monitoring::Dashboard::V1::Threshold>]
39
43
  # The thresholds used to determine the state of the scorecard given the
@@ -0,0 +1,41 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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 that defines a new section header. Sections populate a table of
26
+ # contents and allow easier navigation of long-form content.
27
+ # @!attribute [rw] subtitle
28
+ # @return [::String]
29
+ # The subtitle of the section
30
+ # @!attribute [rw] divider_below
31
+ # @return [::Boolean]
32
+ # Whether to insert a divider below the section in the table of contents
33
+ class SectionHeader
34
+ include ::Google::Protobuf::MessageExts
35
+ extend ::Google::Protobuf::MessageExts::ClassMethods
36
+ end
37
+ end
38
+ end
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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 that groups the other widgets by using a dropdown menu. All widgets
26
+ # that are within the area spanned by the grouping widget are considered
27
+ # member widgets.
28
+ class SingleViewGroup
29
+ include ::Google::Protobuf::MessageExts
30
+ extend ::Google::Protobuf::MessageExts::ClassMethods
31
+ end
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -29,10 +29,156 @@ module Google
29
29
  # @!attribute [rw] format
30
30
  # @return [::Google::Cloud::Monitoring::Dashboard::V1::Text::Format]
31
31
  # How the text content is formatted.
32
+ # @!attribute [rw] style
33
+ # @return [::Google::Cloud::Monitoring::Dashboard::V1::Text::TextStyle]
34
+ # How the text is styled
32
35
  class Text
33
36
  include ::Google::Protobuf::MessageExts
34
37
  extend ::Google::Protobuf::MessageExts::ClassMethods
35
38
 
39
+ # Properties that determine how the title and content are styled
40
+ # @!attribute [rw] background_color
41
+ # @return [::String]
42
+ # The background color as a hex string. "#RRGGBB" or "#RGB"
43
+ # @!attribute [rw] text_color
44
+ # @return [::String]
45
+ # The text color as a hex string. "#RRGGBB" or "#RGB"
46
+ # @!attribute [rw] horizontal_alignment
47
+ # @return [::Google::Cloud::Monitoring::Dashboard::V1::Text::TextStyle::HorizontalAlignment]
48
+ # The horizontal alignment of both the title and content
49
+ # @!attribute [rw] vertical_alignment
50
+ # @return [::Google::Cloud::Monitoring::Dashboard::V1::Text::TextStyle::VerticalAlignment]
51
+ # The vertical alignment of both the title and content
52
+ # @!attribute [rw] padding
53
+ # @return [::Google::Cloud::Monitoring::Dashboard::V1::Text::TextStyle::PaddingSize]
54
+ # The amount of padding around the widget
55
+ # @!attribute [rw] font_size
56
+ # @return [::Google::Cloud::Monitoring::Dashboard::V1::Text::TextStyle::FontSize]
57
+ # Font sizes for both the title and content. The title will still be larger
58
+ # relative to the content.
59
+ # @!attribute [rw] pointer_location
60
+ # @return [::Google::Cloud::Monitoring::Dashboard::V1::Text::TextStyle::PointerLocation]
61
+ # The pointer location for this widget (also sometimes called a "tail")
62
+ class TextStyle
63
+ include ::Google::Protobuf::MessageExts
64
+ extend ::Google::Protobuf::MessageExts::ClassMethods
65
+
66
+ # The horizontal alignment of both the title and content on a text widget
67
+ module HorizontalAlignment
68
+ # No horizontal alignment specified, will default to H_LEFT
69
+ HORIZONTAL_ALIGNMENT_UNSPECIFIED = 0
70
+
71
+ # Left-align
72
+ H_LEFT = 1
73
+
74
+ # Center-align
75
+ H_CENTER = 2
76
+
77
+ # Right-align
78
+ H_RIGHT = 3
79
+ end
80
+
81
+ # The vertical alignment of both the title and content on a text widget
82
+ module VerticalAlignment
83
+ # No vertical alignment specified, will default to V_TOP
84
+ VERTICAL_ALIGNMENT_UNSPECIFIED = 0
85
+
86
+ # Top-align
87
+ V_TOP = 1
88
+
89
+ # Center-align
90
+ V_CENTER = 2
91
+
92
+ # Bottom-align
93
+ V_BOTTOM = 3
94
+ end
95
+
96
+ # Specifies padding size around a text widget
97
+ module PaddingSize
98
+ # No padding size specified, will default to P_EXTRA_SMALL
99
+ PADDING_SIZE_UNSPECIFIED = 0
100
+
101
+ # Extra small padding
102
+ P_EXTRA_SMALL = 1
103
+
104
+ # Small padding
105
+ P_SMALL = 2
106
+
107
+ # Medium padding
108
+ P_MEDIUM = 3
109
+
110
+ # Large padding
111
+ P_LARGE = 4
112
+
113
+ # Extra large padding
114
+ P_EXTRA_LARGE = 5
115
+ end
116
+
117
+ # Specifies a font size for the title and content of a text widget
118
+ module FontSize
119
+ # No font size specified, will default to FS_LARGE
120
+ FONT_SIZE_UNSPECIFIED = 0
121
+
122
+ # Extra small font size
123
+ FS_EXTRA_SMALL = 1
124
+
125
+ # Small font size
126
+ FS_SMALL = 2
127
+
128
+ # Medium font size
129
+ FS_MEDIUM = 3
130
+
131
+ # Large font size
132
+ FS_LARGE = 4
133
+
134
+ # Extra large font size
135
+ FS_EXTRA_LARGE = 5
136
+ end
137
+
138
+ # Specifies where a visual pointer is placed on a text widget (also
139
+ # sometimes called a "tail")
140
+ module PointerLocation
141
+ # No visual pointer
142
+ POINTER_LOCATION_UNSPECIFIED = 0
143
+
144
+ # Placed in the middle of the top of the widget
145
+ PL_TOP = 1
146
+
147
+ # Placed in the middle of the right side of the widget
148
+ PL_RIGHT = 2
149
+
150
+ # Placed in the middle of the bottom of the widget
151
+ PL_BOTTOM = 3
152
+
153
+ # Placed in the middle of the left side of the widget
154
+ PL_LEFT = 4
155
+
156
+ # Placed on the left side of the top of the widget
157
+ PL_TOP_LEFT = 5
158
+
159
+ # Placed on the right side of the top of the widget
160
+ PL_TOP_RIGHT = 6
161
+
162
+ # Placed on the top of the right side of the widget
163
+ PL_RIGHT_TOP = 7
164
+
165
+ # Placed on the bottom of the right side of the widget
166
+ PL_RIGHT_BOTTOM = 8
167
+
168
+ # Placed on the right side of the bottom of the widget
169
+ PL_BOTTOM_RIGHT = 9
170
+
171
+ # Placed on the left side of the bottom of the widget
172
+ PL_BOTTOM_LEFT = 10
173
+
174
+ # Placed on the bottom of the left side of the widget
175
+ PL_LEFT_BOTTOM = 11
176
+
177
+ # Placed on the top of the left side of the widget
178
+ PL_LEFT_TOP = 12
179
+ end
180
+ end
181
+
36
182
  # The format type of the text content.
37
183
  module Format
38
184
  # Format is unspecified. Defaults to MARKDOWN.
@@ -52,6 +52,26 @@ module Google
52
52
  # @!attribute [rw] logs_panel
53
53
  # @return [::Google::Cloud::Monitoring::Dashboard::V1::LogsPanel]
54
54
  # A widget that shows a stream of logs.
55
+ # @!attribute [rw] incident_list
56
+ # @return [::Google::Cloud::Monitoring::Dashboard::V1::IncidentList]
57
+ # A widget that shows list of incidents.
58
+ # @!attribute [rw] pie_chart
59
+ # @return [::Google::Cloud::Monitoring::Dashboard::V1::PieChart]
60
+ # A widget that displays timeseries data as a pie chart.
61
+ # @!attribute [rw] error_reporting_panel
62
+ # @return [::Google::Monitoring::Dashboard::V1::ErrorReportingPanel]
63
+ # A widget that displays a list of error groups.
64
+ # @!attribute [rw] section_header
65
+ # @return [::Google::Cloud::Monitoring::Dashboard::V1::SectionHeader]
66
+ # A widget that defines a section header for easier navigation of the
67
+ # dashboard.
68
+ # @!attribute [rw] single_view_group
69
+ # @return [::Google::Cloud::Monitoring::Dashboard::V1::SingleViewGroup]
70
+ # A widget that groups the other widgets by using a dropdown menu.
71
+ # @!attribute [rw] id
72
+ # @return [::String]
73
+ # Optional. The widget id. Ids may be made up of alphanumerics, dashes and
74
+ # underscores. Widget ids are optional.
55
75
  class Widget
56
76
  include ::Google::Protobuf::MessageExts
57
77
  extend ::Google::Protobuf::MessageExts::ClassMethods