Class: Aws::CloudWatchOmni::Types::RuleThreshold

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-cloudwatchomni/lib/aws-sdk-cloudwatchomni/types.rb

Overview

Note:

RuleThreshold is a union - when making an API calls you must set exactly one of the members.

Note:

RuleThreshold is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of RuleThreshold corresponding to the set member.

The pass threshold for an evaluator. Specify exactly one of minScore, for a numeric evaluator whose scoreDirection is HIGHER_IS_BETTER, maxScore, for a numeric evaluator whose scoreDirection is LOWER_IS_BETTER, or passLabels, for a categorical evaluator.

Defined Under Namespace

Classes: MaxScore, MinScore, PassLabels, Unknown

Constant Summary collapse

SENSITIVE =
[:pass_labels]

Instance Attribute Summary collapse

Instance Attribute Details

#max_score ⇒ Float

The maximum passing score, for a numeric evaluator whose scoreDirection is LOWER_IS_BETTER. A finite number from -1e9 to 1e9.

Returns:

  • (Float)


8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
# File 'gems/aws-sdk-cloudwatchomni/lib/aws-sdk-cloudwatchomni/types.rb', line 8201

class RuleThreshold < Struct.new(
  :min_score,
  :max_score,
  :pass_labels,
  :unknown)
  SENSITIVE = [:pass_labels]
  include Aws::Structure
  include Aws::Structure::Union

  class MinScore < RuleThreshold; end
  class MaxScore < RuleThreshold; end
  class PassLabels < RuleThreshold; end
  class Unknown < RuleThreshold; end
end

#min_score ⇒ Float

The minimum passing score, for a numeric evaluator. A finite number from -1e9 to 1e9.

Returns:

  • (Float)


8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
# File 'gems/aws-sdk-cloudwatchomni/lib/aws-sdk-cloudwatchomni/types.rb', line 8201

class RuleThreshold < Struct.new(
  :min_score,
  :max_score,
  :pass_labels,
  :unknown)
  SENSITIVE = [:pass_labels]
  include Aws::Structure
  include Aws::Structure::Union

  class MinScore < RuleThreshold; end
  class MaxScore < RuleThreshold; end
  class PassLabels < RuleThreshold; end
  class Unknown < RuleThreshold; end
end

#pass_labels ⇒ Array<String>

The labels that pass, for a categorical evaluator. From 1 to 16 labels, each up to 256 characters.

Returns:

  • (Array<String>)


8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
# File 'gems/aws-sdk-cloudwatchomni/lib/aws-sdk-cloudwatchomni/types.rb', line 8201

class RuleThreshold < Struct.new(
  :min_score,
  :max_score,
  :pass_labels,
  :unknown)
  SENSITIVE = [:pass_labels]
  include Aws::Structure
  include Aws::Structure::Union

  class MinScore < RuleThreshold; end
  class MaxScore < RuleThreshold; end
  class PassLabels < RuleThreshold; end
  class Unknown < RuleThreshold; end
end

#unknown ⇒ Object

Returns the value of attribute unknown

Returns:

  • (Object) —

    the current value of unknown



8201
8202
8203
# File 'gems/aws-sdk-cloudwatchomni/lib/aws-sdk-cloudwatchomni/types.rb', line 8201

def unknown
  @unknown
end