Class: AWSCDK::CloudWatch::TableThreshold

Inherits:
Jsii::Object
  • Object
show all
Defined in:
cloud_watch/table_threshold.rb

Overview

Thresholds for highlighting cells in TableWidget.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ TableThreshold

Returns a new instance of TableThreshold.

Raises:

  • (NoMethodError)


8
9
10
# File 'cloud_watch/table_threshold.rb', line 8

def initialize(*args)
  raise NoMethodError, "aws-cdk-lib.aws_cloudwatch.TableThreshold does not have a visible constructor; use the provided factory methods"
end

Class Method Details

.above(value, color = nil) ⇒ AWSCDK::CloudWatch::TableThreshold

A threshold for highlighting and coloring cells above the specified value.

Parameters:

  • value (Numeric)

    lower bound of threshold range.

  • color (String, nil) (defaults to: nil)

    cell color for values within threshold range.

Returns:

  • (AWSCDK::CloudWatch::TableThreshold)


23
24
25
26
27
# File 'cloud_watch/table_threshold.rb', line 23

def self.above(value, color = nil)
  Jsii::Type.check_type(value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "value")
  Jsii::Type.check_type(color, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "color") unless color.nil?
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_cloudwatch.TableThreshold", "above", [value, color])
end

.below(value, color = nil) ⇒ AWSCDK::CloudWatch::TableThreshold

A threshold for highlighting and coloring cells below the specified value.

Parameters:

  • value (Numeric)

    upper bound of threshold range.

  • color (String, nil) (defaults to: nil)

    cell color for values within threshold range.

Returns:

  • (AWSCDK::CloudWatch::TableThreshold)


34
35
36
37
38
# File 'cloud_watch/table_threshold.rb', line 34

def self.below(value, color = nil)
  Jsii::Type.check_type(value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "value")
  Jsii::Type.check_type(color, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "color") unless color.nil?
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_cloudwatch.TableThreshold", "below", [value, color])
end

.between(lower_bound, upper_bound, color = nil) ⇒ AWSCDK::CloudWatch::TableThreshold

A threshold for highlighting and coloring cells within the specified values.

Parameters:

  • lower_bound (Numeric)

    lower bound of threshold range.

  • upper_bound (Numeric)

    upper bound of threshold range.

  • color (String, nil) (defaults to: nil)

    cell color for values within threshold range.

Returns:

  • (AWSCDK::CloudWatch::TableThreshold)


46
47
48
49
50
51
# File 'cloud_watch/table_threshold.rb', line 46

def self.between(lower_bound, upper_bound, color = nil)
  Jsii::Type.check_type(lower_bound, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "lowerBound")
  Jsii::Type.check_type(upper_bound, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "upperBound")
  Jsii::Type.check_type(color, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "color") unless color.nil?
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_cloudwatch.TableThreshold", "between", [lower_bound, upper_bound, color])
end

.jsii_overridable_methodsObject



12
13
14
15
16
# File 'cloud_watch/table_threshold.rb', line 12

def self.jsii_overridable_methods
  {
    :to_json => { kind: :method, name: "toJson", is_optional: false },
  }
end

Instance Method Details

#to_jsonObject

Returns:

  • (Object)


54
55
56
# File 'cloud_watch/table_threshold.rb', line 54

def to_json()
  jsii_call_method("toJson", [])
end