Class: Google::Apis::MonitoringV1::XyChart

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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ XyChart

Returns a new instance of XyChart.



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

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

Instance Attribute Details

#chart_optionsGoogle::Apis::MonitoringV1::ChartOptions

Options to control visual rendering of a chart. Corresponds to the JSON property chartOptions



2827
2828
2829
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2827

def chart_options
  @chart_options
end

#data_setsArray<Google::Apis::MonitoringV1::DataSet>

Required. The data displayed in this chart. Corresponds to the JSON property dataSets



2832
2833
2834
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2832

def data_sets
  @data_sets
end

#thresholdsArray<Google::Apis::MonitoringV1::Threshold>

Threshold lines drawn horizontally across the chart. Corresponds to the JSON property thresholds



2837
2838
2839
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2837

def thresholds
  @thresholds
end

#timeshift_durationString

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

Returns:

  • (String)


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

def timeshift_duration
  @timeshift_duration
end

#x_axisGoogle::Apis::MonitoringV1::Axis

A chart axis. Corresponds to the JSON property xAxis



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

def x_axis
  @x_axis
end

#y2_axisGoogle::Apis::MonitoringV1::Axis

A chart axis. Corresponds to the JSON property y2Axis



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

def y2_axis
  @y2_axis
end

#y_axisGoogle::Apis::MonitoringV1::Axis

A chart axis. Corresponds to the JSON property yAxis



2860
2861
2862
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2860

def y_axis
  @y_axis
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2867
2868
2869
2870
2871
2872
2873
2874
2875
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2867

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