class Google::Apis::MonitoringV1::XyChart

A chart that displays data on a 2D (X and Y axes) plane.

Attributes

chart_options[RW]

Options to control visual rendering of a chart. Corresponds to the JSON property `chartOptions` @return [Google::Apis::MonitoringV1::ChartOptions]

data_sets[RW]

Required. The data displayed in this chart. Corresponds to the JSON property `dataSets` @return [Array<Google::Apis::MonitoringV1::DataSet>]

thresholds[RW]

Threshold lines drawn horizontally across the chart. Corresponds to the JSON property `thresholds` @return [Array<Google::Apis::MonitoringV1::Threshold>]

timeshift_duration[RW]

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]

x_axis[RW]

A chart axis. Corresponds to the JSON property `xAxis` @return [Google::Apis::MonitoringV1::Axis]

y2_axis[RW]

A chart axis. Corresponds to the JSON property `y2Axis` @return [Google::Apis::MonitoringV1::Axis]

y_axis[RW]

A chart axis. Corresponds to the JSON property `yAxis` @return [Google::Apis::MonitoringV1::Axis]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/monitoring_v1/classes.rb, line 1613
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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