class Google::Apis::MonitoringV1::XyChart
A chart that displays data on a 2D (X and Y axes) plane.
Attributes
Options to control visual rendering of a chart. Corresponds to the JSON property `chartOptions` @return [Google::Apis::MonitoringV1::ChartOptions]
Required. The data displayed in this chart. Corresponds to the JSON property `dataSets` @return [Array<Google::Apis::MonitoringV1::DataSet>]
Threshold
lines drawn horizontally across the chart. Corresponds to the JSON property `thresholds` @return [Array<Google::Apis::MonitoringV1::Threshold>]
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` @return [String]
A chart axis. Corresponds to the JSON property `xAxis` @return [Google::Apis::MonitoringV1::Axis]
A chart axis. Corresponds to the JSON property `y2Axis` @return [Google::Apis::MonitoringV1::Axis]
A chart axis. Corresponds to the JSON property `yAxis` @return [Google::Apis::MonitoringV1::Axis]
Public Class Methods
# File lib/google/apis/monitoring_v1/classes.rb, line 1613 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/monitoring_v1/classes.rb, line 1618 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