Class: Google::Apis::MonitoringV1::Widget
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV1::Widget
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/monitoring_v1/classes.rb,
generated/google/apis/monitoring_v1/representations.rb,
generated/google/apis/monitoring_v1/representations.rb
Overview
Widget contains a single dashboard component and configuration of how to present the component in the dashboard.
Instance Attribute Summary collapse
-
#blank ⇒ Google::Apis::MonitoringV1::Empty
A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs.
-
#scorecard ⇒ Google::Apis::MonitoringV1::Scorecard
A widget showing the latest value of a metric, and how this value relates to one or more thresholds.
-
#text ⇒ Google::Apis::MonitoringV1::Text
A widget that displays textual content.
-
#title ⇒ String
Optional.
-
#xy_chart ⇒ Google::Apis::MonitoringV1::XyChart
A chart that displays data on a 2D (X and Y axes) plane.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Widget
constructor
A new instance of Widget.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Widget
Returns a new instance of Widget.
1293 1294 1295 |
# File 'generated/google/apis/monitoring_v1/classes.rb', line 1293 def initialize(**args) update!(**args) end |
Instance Attribute Details
#blank ⇒ Google::Apis::MonitoringV1::Empty
A generic empty message that you can re-use to avoid defining duplicated empty
messages in your APIs. A typical example is to use it as the request or the
response type of an API method. For instance: service Foo rpc Bar(google.
protobuf.Empty) returns (google.protobuf.Empty);
The JSON representation for
Empty is empty JSON object `.
Corresponds to the JSON property
blank`
1270 1271 1272 |
# File 'generated/google/apis/monitoring_v1/classes.rb', line 1270 def blank @blank end |
#scorecard ⇒ Google::Apis::MonitoringV1::Scorecard
A widget showing the latest value of a metric, and how this value relates to
one or more thresholds.
Corresponds to the JSON property scorecard
1276 1277 1278 |
# File 'generated/google/apis/monitoring_v1/classes.rb', line 1276 def scorecard @scorecard end |
#text ⇒ Google::Apis::MonitoringV1::Text
A widget that displays textual content.
Corresponds to the JSON property text
1281 1282 1283 |
# File 'generated/google/apis/monitoring_v1/classes.rb', line 1281 def text @text end |
#title ⇒ String
Optional. The title of the widget.
Corresponds to the JSON property title
1286 1287 1288 |
# File 'generated/google/apis/monitoring_v1/classes.rb', line 1286 def title @title end |
#xy_chart ⇒ Google::Apis::MonitoringV1::XyChart
A chart that displays data on a 2D (X and Y axes) plane.
Corresponds to the JSON property xyChart
1291 1292 1293 |
# File 'generated/google/apis/monitoring_v1/classes.rb', line 1291 def xy_chart @xy_chart end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1298 1299 1300 1301 1302 1303 1304 |
# File 'generated/google/apis/monitoring_v1/classes.rb', line 1298 def update!(**args) @blank = args[:blank] if args.key?(:blank) @scorecard = args[:scorecard] if args.key?(:scorecard) @text = args[:text] if args.key?(:text) @title = args[:title] if args.key?(:title) @xy_chart = args[:xy_chart] if args.key?(:xy_chart) end |