Class: Google::Apis::MonitoringV1::XyChart
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV1::XyChart
- 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
A chart that displays data on a 2D (X and Y axes) plane.
Instance Attribute Summary collapse
-
#chart_options ⇒ Google::Apis::MonitoringV1::ChartOptions
Options to control visual rendering of a chart.
-
#data_sets ⇒ Array<Google::Apis::MonitoringV1::DataSet>
Required.
-
#thresholds ⇒ Array<Google::Apis::MonitoringV1::Threshold>
Threshold lines drawn horizontally across the chart.
-
#timeshift_duration ⇒ String
The duration used to display a comparison chart.
-
#x_axis ⇒ Google::Apis::MonitoringV1::Axis
A chart axis.
-
#y2_axis ⇒ Google::Apis::MonitoringV1::Axis
A chart axis.
-
#y_axis ⇒ Google::Apis::MonitoringV1::Axis
A chart axis.
Instance Method Summary collapse
-
#initialize(**args) ⇒ XyChart
constructor
A new instance of XyChart.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ XyChart
Returns a new instance of XyChart.
2614 2615 2616 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2614 def initialize(**args) update!(**args) end |
Instance Attribute Details
#chart_options ⇒ Google::Apis::MonitoringV1::ChartOptions
Options to control visual rendering of a chart.
Corresponds to the JSON property chartOptions
2579 2580 2581 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2579 def @chart_options end |
#data_sets ⇒ Array<Google::Apis::MonitoringV1::DataSet>
Required. The data displayed in this chart.
Corresponds to the JSON property dataSets
2584 2585 2586 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2584 def data_sets @data_sets end |
#thresholds ⇒ Array<Google::Apis::MonitoringV1::Threshold>
Threshold lines drawn horizontally across the chart.
Corresponds to the JSON property thresholds
2589 2590 2591 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2589 def thresholds @thresholds end |
#timeshift_duration ⇒ String
The duration used to display a comparison chart. A comparison chart
simultaneously shows values from two similar-length time periods (e.g., week-
over-week metrics). The duration must be positive, and it can only be applied
to charts with data sets of LINE plot type.
Corresponds to the JSON property timeshiftDuration
2597 2598 2599 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2597 def timeshift_duration @timeshift_duration end |
#x_axis ⇒ Google::Apis::MonitoringV1::Axis
A chart axis.
Corresponds to the JSON property xAxis
2602 2603 2604 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2602 def x_axis @x_axis end |
#y2_axis ⇒ Google::Apis::MonitoringV1::Axis
A chart axis.
Corresponds to the JSON property y2Axis
2607 2608 2609 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2607 def y2_axis @y2_axis end |
#y_axis ⇒ Google::Apis::MonitoringV1::Axis
A chart axis.
Corresponds to the JSON property yAxis
2612 2613 2614 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2612 def y_axis @y_axis end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2619 2620 2621 2622 2623 2624 2625 2626 2627 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2619 def update!(**args) @chart_options = args[:chart_options] if args.key?(:chart_options) @data_sets = args[:data_sets] if args.key?(:data_sets) @thresholds = args[:thresholds] if args.key?(:thresholds) @timeshift_duration = args[:timeshift_duration] if args.key?(:timeshift_duration) @x_axis = args[:x_axis] if args.key?(:x_axis) @y2_axis = args[:y2_axis] if args.key?(:y2_axis) @y_axis = args[:y_axis] if args.key?(:y_axis) end |