Reference documentation and code samples for the Cloud Monitoring Dashboards V1 API class Google::Cloud::Monitoring::Dashboard::V1::Threshold.
Defines a threshold for categorizing time series values.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#color
def color() -> ::Google::Cloud::Monitoring::Dashboard::V1::Threshold::Color
Returns
- (::Google::Cloud::Monitoring::Dashboard::V1::Threshold::Color) — The state color for this threshold. Color is not allowed in a XyChart.
#color=
def color=(value) -> ::Google::Cloud::Monitoring::Dashboard::V1::Threshold::Color
Parameter
- value (::Google::Cloud::Monitoring::Dashboard::V1::Threshold::Color) — The state color for this threshold. Color is not allowed in a XyChart.
Returns
- (::Google::Cloud::Monitoring::Dashboard::V1::Threshold::Color) — The state color for this threshold. Color is not allowed in a XyChart.
#direction
def direction() -> ::Google::Cloud::Monitoring::Dashboard::V1::Threshold::Direction
Returns
- (::Google::Cloud::Monitoring::Dashboard::V1::Threshold::Direction) — The direction for the current threshold. Direction is not allowed in a XyChart.
#direction=
def direction=(value) -> ::Google::Cloud::Monitoring::Dashboard::V1::Threshold::Direction
Parameter
- value (::Google::Cloud::Monitoring::Dashboard::V1::Threshold::Direction) — The direction for the current threshold. Direction is not allowed in a XyChart.
Returns
- (::Google::Cloud::Monitoring::Dashboard::V1::Threshold::Direction) — The direction for the current threshold. Direction is not allowed in a XyChart.
#label
def label() -> ::String
Returns
- (::String) — A label for the threshold.
#label=
def label=(value) -> ::String
Parameter
- value (::String) — A label for the threshold.
Returns
- (::String) — A label for the threshold.
#target_axis
def target_axis() -> ::Google::Cloud::Monitoring::Dashboard::V1::Threshold::TargetAxis
Returns
- (::Google::Cloud::Monitoring::Dashboard::V1::Threshold::TargetAxis) — The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
#target_axis=
def target_axis=(value) -> ::Google::Cloud::Monitoring::Dashboard::V1::Threshold::TargetAxis
Parameter
- value (::Google::Cloud::Monitoring::Dashboard::V1::Threshold::TargetAxis) — The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
Returns
- (::Google::Cloud::Monitoring::Dashboard::V1::Threshold::TargetAxis) — The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
#value
def value() -> ::Float
Returns
- (::Float) — The value of the threshold. The value should be defined in the native scale of the metric.
#value=
def value=(value) -> ::Float
Parameter
- value (::Float) — The value of the threshold. The value should be defined in the native scale of the metric.
Returns
- (::Float) — The value of the threshold. The value should be defined in the native scale of the metric.