Reference documentation and code samples for the Cloud Monitoring Dashboards V1 API class Google::Cloud::Monitoring::Dashboard::V1::XyChart.
A chart that displays data on a 2D (X and Y axes) plane.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#chart_options
def chart_options() -> ::Google::Cloud::Monitoring::Dashboard::V1::ChartOptions
Returns
- (::Google::Cloud::Monitoring::Dashboard::V1::ChartOptions) — Display options for the chart.
#chart_options=
def chart_options=(value) -> ::Google::Cloud::Monitoring::Dashboard::V1::ChartOptions
Parameter
- value (::Google::Cloud::Monitoring::Dashboard::V1::ChartOptions) — Display options for the chart.
Returns
- (::Google::Cloud::Monitoring::Dashboard::V1::ChartOptions) — Display options for the chart.
#data_sets
def data_sets() -> ::Array<::Google::Cloud::Monitoring::Dashboard::V1::XyChart::DataSet>
Returns
- (::Array<::Google::Cloud::Monitoring::Dashboard::V1::XyChart::DataSet>) — Required. The data displayed in this chart.
#data_sets=
def data_sets=(value) -> ::Array<::Google::Cloud::Monitoring::Dashboard::V1::XyChart::DataSet>
Parameter
- value (::Array<::Google::Cloud::Monitoring::Dashboard::V1::XyChart::DataSet>) — Required. The data displayed in this chart.
Returns
- (::Array<::Google::Cloud::Monitoring::Dashboard::V1::XyChart::DataSet>) — Required. The data displayed in this chart.
#thresholds
def thresholds() -> ::Array<::Google::Cloud::Monitoring::Dashboard::V1::Threshold>
Returns
- (::Array<::Google::Cloud::Monitoring::Dashboard::V1::Threshold>) — Threshold lines drawn horizontally across the chart.
#thresholds=
def thresholds=(value) -> ::Array<::Google::Cloud::Monitoring::Dashboard::V1::Threshold>
Parameter
- value (::Array<::Google::Cloud::Monitoring::Dashboard::V1::Threshold>) — Threshold lines drawn horizontally across the chart.
Returns
- (::Array<::Google::Cloud::Monitoring::Dashboard::V1::Threshold>) — Threshold lines drawn horizontally across the chart.
#timeshift_duration
def timeshift_duration() -> ::Google::Protobuf::Duration
Returns
- (::Google::Protobuf::Duration) — 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.
#timeshift_duration=
def timeshift_duration=(value) -> ::Google::Protobuf::Duration
Parameter
- value (::Google::Protobuf::Duration) — 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.
Returns
- (::Google::Protobuf::Duration) — 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.
#x_axis
def x_axis() -> ::Google::Cloud::Monitoring::Dashboard::V1::XyChart::Axis
Returns
- (::Google::Cloud::Monitoring::Dashboard::V1::XyChart::Axis) — The properties applied to the X axis.
#x_axis=
def x_axis=(value) -> ::Google::Cloud::Monitoring::Dashboard::V1::XyChart::Axis
Parameter
- value (::Google::Cloud::Monitoring::Dashboard::V1::XyChart::Axis) — The properties applied to the X axis.
Returns
- (::Google::Cloud::Monitoring::Dashboard::V1::XyChart::Axis) — The properties applied to the X axis.
#y2_axis
def y2_axis() -> ::Google::Cloud::Monitoring::Dashboard::V1::XyChart::Axis
Returns
- (::Google::Cloud::Monitoring::Dashboard::V1::XyChart::Axis) — The properties applied to the Y2 axis.
#y2_axis=
def y2_axis=(value) -> ::Google::Cloud::Monitoring::Dashboard::V1::XyChart::Axis
Parameter
- value (::Google::Cloud::Monitoring::Dashboard::V1::XyChart::Axis) — The properties applied to the Y2 axis.
Returns
- (::Google::Cloud::Monitoring::Dashboard::V1::XyChart::Axis) — The properties applied to the Y2 axis.
#y_axis
def y_axis() -> ::Google::Cloud::Monitoring::Dashboard::V1::XyChart::Axis
Returns
- (::Google::Cloud::Monitoring::Dashboard::V1::XyChart::Axis) — The properties applied to the Y axis.
#y_axis=
def y_axis=(value) -> ::Google::Cloud::Monitoring::Dashboard::V1::XyChart::Axis
Parameter
- value (::Google::Cloud::Monitoring::Dashboard::V1::XyChart::Axis) — The properties applied to the Y axis.
Returns
- (::Google::Cloud::Monitoring::Dashboard::V1::XyChart::Axis) — The properties applied to the Y axis.