Class: AWSCDK::APS::CfnAnomalyDetector::LabelProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, value:) ⇒ LabelProperty

Returns a new instance of LabelProperty.

Parameters:

  • key (String)

    The key of the label.

  • value (String)

    The value for this label.



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

#keyString (readonly)

The key of the label.



687
688
689
# File 'aps/cfn_anomaly_detector.rb', line 687

def key
  @key
end

#valueString (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_propertiesObject



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_jsiiObject



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