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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Widget
Returns a new instance of Widget.
1125 1126 1127 |
# File 'generated/google/apis/monitoring_v1/classes.rb', line 1125 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`
1102 1103 1104 |
# File 'generated/google/apis/monitoring_v1/classes.rb', line 1102 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
1108 1109 1110 |
# File 'generated/google/apis/monitoring_v1/classes.rb', line 1108 def scorecard @scorecard end |
#text ⇒ Google::Apis::MonitoringV1::Text
A widget that displays textual content.
Corresponds to the JSON property text
1113 1114 1115 |
# File 'generated/google/apis/monitoring_v1/classes.rb', line 1113 def text @text end |
#title ⇒ String
Optional. The title of the widget.
Corresponds to the JSON property title
1118 1119 1120 |
# File 'generated/google/apis/monitoring_v1/classes.rb', line 1118 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
1123 1124 1125 |
# File 'generated/google/apis/monitoring_v1/classes.rb', line 1123 def xy_chart @xy_chart end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1130 1131 1132 1133 1134 1135 1136 |
# File 'generated/google/apis/monitoring_v1/classes.rb', line 1130 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 |