Class: AWSCDK::APS::CfnAnomalyDetector::LabelProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::APS::CfnAnomalyDetector::LabelProperty
- Defined in:
- aps/cfn_anomaly_detector.rb
Overview
The Amazon Managed Service for Prometheus metric labels associated with the anomaly detector.
Instance Attribute Summary collapse
-
#key ⇒ String
readonly
The key of the label.
-
#value ⇒ String
readonly
The value for this label.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key:, value:) ⇒ LabelProperty
constructor
A new instance of LabelProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key:, value:) ⇒ LabelProperty
Returns a new instance of LabelProperty.
676 677 678 679 680 681 |
# File 'aps/cfn_anomaly_detector.rb', line 676 def initialize(key:, value:) @key = key Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key") @value = value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") end |
Instance Attribute Details
#key ⇒ String (readonly)
The key of the label.
687 688 689 |
# File 'aps/cfn_anomaly_detector.rb', line 687 def key @key end |
#value ⇒ String (readonly)
The value for this label.
692 693 694 |
# File 'aps/cfn_anomaly_detector.rb', line 692 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
694 695 696 697 698 699 |
# File 'aps/cfn_anomaly_detector.rb', line 694 def self.jsii_properties { :key => "key", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
701 702 703 704 705 706 707 708 |
# File 'aps/cfn_anomaly_detector.rb', line 701 def to_jsii result = {} result.merge!({ "key" => @key, "value" => @value, }) result.compact end |