class Google::Apis::MonitoringV1::Threshold
Defines a threshold for categorizing time series values.
Attributes
color[RW]
The state color for this threshold. Color is not allowed in a XyChart
. Corresponds to the JSON property `color` @return [String]
direction[RW]
The direction for the current threshold. Direction is not allowed in a XyChart
. Corresponds to the JSON property `direction` @return [String]
label[RW]
A label for the threshold. Corresponds to the JSON property `label` @return [String]
target_axis[RW]
The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard
. Corresponds to the JSON property `targetAxis` @return [String]
value[RW]
The value of the threshold. The value should be defined in the native scale of the metric. Corresponds to the JSON property `value` @return [Float]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/monitoring_v1/classes.rb, line 1190 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 1195 def update!(**args) @color = args[:color] if args.key?(:color) @direction = args[:direction] if args.key?(:direction) @label = args[:label] if args.key?(:label) @target_axis = args[:target_axis] if args.key?(:target_axis) @value = args[:value] if args.key?(:value) end