Class: Google::Apis::MonitoringV1::Widget

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Widget

Returns a new instance of Widget.



2897
2898
2899
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2897

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#alert_chartGoogle::Apis::MonitoringV1::AlertChart

A chart that displays alert policy data. Corresponds to the JSON property alertChart



2816
2817
2818
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2816

def alert_chart
  @alert_chart
end

#blankGoogle::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



2824
2825
2826
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2824

def blank
  @blank
end

#collapsible_groupGoogle::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



2830
2831
2832
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2830

def collapsible_group
  @collapsible_group
end

#error_reporting_panelGoogle::Apis::MonitoringV1::ErrorReportingPanel

A widget that displays a list of error groups. Corresponds to the JSON property errorReportingPanel



2835
2836
2837
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2835

def error_reporting_panel
  @error_reporting_panel
end

#idString

Optional. The widget id. Ids may be made up of alphanumerics, dashes and underscores. Widget ids are optional. Corresponds to the JSON property id

Returns:

  • (String)


2841
2842
2843
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2841

def id
  @id
end

#incident_listGoogle::Apis::MonitoringV1::IncidentList

A widget that displays a list of incidents Corresponds to the JSON property incidentList



2846
2847
2848
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2846

def incident_list
  @incident_list
end

#logs_panelGoogle::Apis::MonitoringV1::LogsPanel

A widget that displays a stream of log. Corresponds to the JSON property logsPanel



2851
2852
2853
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2851

def logs_panel
  @logs_panel
end

#pie_chartGoogle::Apis::MonitoringV1::PieChart

A widget that displays timeseries data as a pie or a donut. Corresponds to the JSON property pieChart



2856
2857
2858
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2856

def pie_chart
  @pie_chart
end

#scorecardGoogle::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



2862
2863
2864
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2862

def scorecard
  @scorecard
end

#section_headerGoogle::Apis::MonitoringV1::SectionHeader

A widget that defines a new section header. Sections populate a table of contents and allow easier navigation of long-form content. Corresponds to the JSON property sectionHeader



2868
2869
2870
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2868

def section_header
  @section_header
end

#single_view_groupGoogle::Apis::MonitoringV1::SingleViewGroup

A widget that groups the other widgets by using a dropdown menu. All widgets that are within the area spanned by the grouping widget are considered member widgets. Corresponds to the JSON property singleViewGroup



2875
2876
2877
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2875

def single_view_group
  @single_view_group
end

#textGoogle::Apis::MonitoringV1::Text

A widget that displays textual content. Corresponds to the JSON property text



2880
2881
2882
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2880

def text
  @text
end

#time_series_tableGoogle::Apis::MonitoringV1::TimeSeriesTable

A table that displays time series data. Corresponds to the JSON property timeSeriesTable



2885
2886
2887
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2885

def time_series_table
  @time_series_table
end

#titleString

Optional. The title of the widget. Corresponds to the JSON property title

Returns:

  • (String)


2890
2891
2892
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2890

def title
  @title
end

#xy_chartGoogle::Apis::MonitoringV1::XyChart

A chart that displays data on a 2D (X and Y axes) plane. Corresponds to the JSON property xyChart



2895
2896
2897
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2895

def xy_chart
  @xy_chart
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2902

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)
  @error_reporting_panel = args[:error_reporting_panel] if args.key?(:error_reporting_panel)
  @id = args[:id] if args.key?(:id)
  @incident_list = args[:incident_list] if args.key?(:incident_list)
  @logs_panel = args[:logs_panel] if args.key?(:logs_panel)
  @pie_chart = args[:pie_chart] if args.key?(:pie_chart)
  @scorecard = args[:scorecard] if args.key?(:scorecard)
  @section_header = args[:section_header] if args.key?(:section_header)
  @single_view_group = args[:single_view_group] if args.key?(:single_view_group)
  @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