class Google::Apis::MonitoringV1::Widget
Widget
contains a single dashboard component and configuration of how to present the component in the dashboard.
Attributes
A chart that displays alert policy data. Corresponds to the JSON property `alertChart` @return [Google::Apis::MonitoringV1::AlertChart]
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` @return [Google::Apis::MonitoringV1::Empty]
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` @return [Google::Apis::MonitoringV1::Scorecard]
A widget that displays textual content. Corresponds to the JSON property `text` @return [Google::Apis::MonitoringV1::Text]
Optional. The title of the widget. Corresponds to the JSON property `title` @return [String]
A chart that displays data on a 2D (X and Y axes) plane. Corresponds to the JSON property `xyChart` @return [Google::Apis::MonitoringV1::XyChart]
Public Class Methods
# File lib/google/apis/monitoring_v1/classes.rb, line 1556 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/monitoring_v1/classes.rb, line 1561 def update!(**args) @alert_chart = args[:alert_chart] if args.key?(:alert_chart) @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