Class: Google::Apis::MonitoringV1::Widget
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV1::Widget
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/monitoring_v1/classes.rb,
lib/google/apis/monitoring_v1/representations.rb,
lib/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
-
#alert_chart ⇒ Google::Apis::MonitoringV1::AlertChart
A chart that displays alert policy data.
-
#blank ⇒ Google::Apis::MonitoringV1::Empty
A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs.
-
#collapsible_group ⇒ Google::Apis::MonitoringV1::CollapsibleGroup
A widget that groups the other widgets.
-
#logs_panel ⇒ Google::Apis::MonitoringV1::LogsPanel
A widget that displays a stream of log.
-
#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.
-
#time_series_table ⇒ Google::Apis::MonitoringV1::TimeSeriesTable
A table that displays time series data.
-
#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.
1923 1924 1925 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1923 def initialize(**args) update!(**args) end |
Instance Attribute Details
#alert_chart ⇒ Google::Apis::MonitoringV1::AlertChart
A chart that displays alert policy data.
Corresponds to the JSON property alertChart
1876 1877 1878 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1876 def alert_chart @alert_chart end |
#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);
Corresponds to the JSON property blank
1884 1885 1886 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1884 def blank @blank end |
#collapsible_group ⇒ Google::Apis::MonitoringV1::CollapsibleGroup
A widget that groups the other widgets. All widgets that are within the area
spanned by the grouping widget are considered member widgets.
Corresponds to the JSON property collapsibleGroup
1890 1891 1892 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1890 def collapsible_group @collapsible_group end |
#logs_panel ⇒ Google::Apis::MonitoringV1::LogsPanel
A widget that displays a stream of log.
Corresponds to the JSON property logsPanel
1895 1896 1897 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1895 def logs_panel @logs_panel 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
1901 1902 1903 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1901 def scorecard @scorecard end |
#text ⇒ Google::Apis::MonitoringV1::Text
A widget that displays textual content.
Corresponds to the JSON property text
1906 1907 1908 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1906 def text @text end |
#time_series_table ⇒ Google::Apis::MonitoringV1::TimeSeriesTable
A table that displays time series data.
Corresponds to the JSON property timeSeriesTable
1911 1912 1913 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1911 def time_series_table @time_series_table end |
#title ⇒ String
Optional. The title of the widget.
Corresponds to the JSON property title
1916 1917 1918 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1916 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
1921 1922 1923 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1921 def xy_chart @xy_chart end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1928 def update!(**args) @alert_chart = args[:alert_chart] if args.key?(:alert_chart) @blank = args[:blank] if args.key?(:blank) @collapsible_group = args[:collapsible_group] if args.key?(:collapsible_group) @logs_panel = args[:logs_panel] if args.key?(:logs_panel) @scorecard = args[:scorecard] if args.key?(:scorecard) @text = args[:text] if args.key?(:text) @time_series_table = args[:time_series_table] if args.key?(:time_series_table) @title = args[:title] if args.key?(:title) @xy_chart = args[:xy_chart] if args.key?(:xy_chart) end |