Class: AWSCDK::CloudWatch::TableThreshold
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::CloudWatch::TableThreshold
- Defined in:
- cloud_watch/table_threshold.rb
Overview
Thresholds for highlighting cells in TableWidget.
Class Method Summary collapse
-
.above(value, color = nil) ⇒ AWSCDK::CloudWatch::TableThreshold
A threshold for highlighting and coloring cells above the specified value.
-
.below(value, color = nil) ⇒ AWSCDK::CloudWatch::TableThreshold
A threshold for highlighting and coloring cells below the specified value.
-
.between(lower_bound, upper_bound, color = nil) ⇒ AWSCDK::CloudWatch::TableThreshold
A threshold for highlighting and coloring cells within the specified values.
- .jsii_overridable_methods ⇒ Object
Instance Method Summary collapse
-
#initialize(*args) ⇒ TableThreshold
constructor
A new instance of TableThreshold.
- #to_json ⇒ Object
Constructor Details
#initialize(*args) ⇒ TableThreshold
Returns a new instance of TableThreshold.
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.
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.
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.
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_methods ⇒ Object
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_json ⇒ Object
54 55 56 |
# File 'cloud_watch/table_threshold.rb', line 54 def to_json() jsii_call_method("toJson", []) end |