Class: Google::Cloud::Monitoring::Dashboard::V1::Threshold

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/monitoring/dashboard/v1/metrics.rb

Overview

Defines a threshold for categorizing time series values.

Defined Under Namespace

Modules: Color, Direction

Instance Attribute Summary collapse

Instance Attribute Details

#color::Google::Cloud::Monitoring::Dashboard::V1::Threshold::Color

Returns The state color for this threshold. Color is not allowed in a XyChart.

Returns:



132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
# File 'proto_docs/google/monitoring/dashboard/v1/metrics.rb', line 132

class Threshold
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The color suggests an interpretation to the viewer when actual values cross
  # the threshold. Comments on each color provide UX guidance on how users can
  # be expected to interpret a given state color.
  module Color
    # Color is unspecified. Not allowed in well-formed requests.
    COLOR_UNSPECIFIED = 0

    # Crossing the threshold is "concerning" behavior.
    YELLOW = 4

    # Crossing the threshold is "emergency" behavior.
    RED = 6
  end

  # Whether the threshold is considered crossed by an actual value above or
  # below its threshold value.
  module Direction
    # Not allowed in well-formed requests.
    DIRECTION_UNSPECIFIED = 0

    # The threshold will be considered crossed if the actual value is above
    # the threshold value.
    ABOVE = 1

    # The threshold will be considered crossed if the actual value is below
    # the threshold value.
    BELOW = 2
  end
end

#direction::Google::Cloud::Monitoring::Dashboard::V1::Threshold::Direction

Returns The direction for the current threshold. Direction is not allowed in a XyChart.

Returns:



132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
# File 'proto_docs/google/monitoring/dashboard/v1/metrics.rb', line 132

class Threshold
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The color suggests an interpretation to the viewer when actual values cross
  # the threshold. Comments on each color provide UX guidance on how users can
  # be expected to interpret a given state color.
  module Color
    # Color is unspecified. Not allowed in well-formed requests.
    COLOR_UNSPECIFIED = 0

    # Crossing the threshold is "concerning" behavior.
    YELLOW = 4

    # Crossing the threshold is "emergency" behavior.
    RED = 6
  end

  # Whether the threshold is considered crossed by an actual value above or
  # below its threshold value.
  module Direction
    # Not allowed in well-formed requests.
    DIRECTION_UNSPECIFIED = 0

    # The threshold will be considered crossed if the actual value is above
    # the threshold value.
    ABOVE = 1

    # The threshold will be considered crossed if the actual value is below
    # the threshold value.
    BELOW = 2
  end
end

#label::String

Returns A label for the threshold.

Returns:

  • (::String)

    A label for the threshold.



132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
# File 'proto_docs/google/monitoring/dashboard/v1/metrics.rb', line 132

class Threshold
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The color suggests an interpretation to the viewer when actual values cross
  # the threshold. Comments on each color provide UX guidance on how users can
  # be expected to interpret a given state color.
  module Color
    # Color is unspecified. Not allowed in well-formed requests.
    COLOR_UNSPECIFIED = 0

    # Crossing the threshold is "concerning" behavior.
    YELLOW = 4

    # Crossing the threshold is "emergency" behavior.
    RED = 6
  end

  # Whether the threshold is considered crossed by an actual value above or
  # below its threshold value.
  module Direction
    # Not allowed in well-formed requests.
    DIRECTION_UNSPECIFIED = 0

    # The threshold will be considered crossed if the actual value is above
    # the threshold value.
    ABOVE = 1

    # The threshold will be considered crossed if the actual value is below
    # the threshold value.
    BELOW = 2
  end
end

#value::Float

Returns 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.



132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
# File 'proto_docs/google/monitoring/dashboard/v1/metrics.rb', line 132

class Threshold
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The color suggests an interpretation to the viewer when actual values cross
  # the threshold. Comments on each color provide UX guidance on how users can
  # be expected to interpret a given state color.
  module Color
    # Color is unspecified. Not allowed in well-formed requests.
    COLOR_UNSPECIFIED = 0

    # Crossing the threshold is "concerning" behavior.
    YELLOW = 4

    # Crossing the threshold is "emergency" behavior.
    RED = 6
  end

  # Whether the threshold is considered crossed by an actual value above or
  # below its threshold value.
  module Direction
    # Not allowed in well-formed requests.
    DIRECTION_UNSPECIFIED = 0

    # The threshold will be considered crossed if the actual value is above
    # the threshold value.
    ABOVE = 1

    # The threshold will be considered crossed if the actual value is below
    # the threshold value.
    BELOW = 2
  end
end