Class: AWSCDK::APS::CfnWorkspace::LimitsPerLabelSetProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::APS::CfnWorkspace::LimitsPerLabelSetProperty
- Defined in:
- aps/cfn_workspace.rb
Overview
This defines a label set for the workspace, and defines the ingestion limit for active time series that match that label set.
Each label name in a label set must be unique.
Instance Attribute Summary collapse
-
#label_set ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::APS::CfnWorkspace::LabelProperty>
readonly
This defines one label set that will have an enforced ingestion limit.
-
#limits ⇒ AWSCDK::IResolvable, AWSCDK::APS::CfnWorkspace::LimitsPerLabelSetEntryProperty
readonly
This structure contains the information about the limits that apply to time series that match this label set.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(label_set:, limits:) ⇒ LimitsPerLabelSetProperty
constructor
A new instance of LimitsPerLabelSetProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(label_set:, limits:) ⇒ LimitsPerLabelSetProperty
Returns a new instance of LimitsPerLabelSetProperty.
736 737 738 739 740 741 |
# File 'aps/cfn_workspace.rb', line 736 def initialize(label_set:, limits:) @label_set = label_set Jsii::Type.check_type(@label_set, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBzLkNmbldvcmtzcGFjZS5MYWJlbFByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "labelSet") @limits = limits.is_a?(Hash) ? ::AWSCDK::APS::CfnWorkspace::LimitsPerLabelSetEntryProperty.new(**limits.transform_keys(&:to_sym)) : limits Jsii::Type.check_type(@limits, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHMuQ2ZuV29ya3NwYWNlLkxpbWl0c1BlckxhYmVsU2V0RW50cnlQcm9wZXJ0eSJ9XX19")), "limits") end |
Instance Attribute Details
#label_set ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::APS::CfnWorkspace::LabelProperty> (readonly)
This defines one label set that will have an enforced ingestion limit.
You can set ingestion limits on time series that match defined label sets, to help prevent a workspace from being overwhelmed with unexpected spikes in time series ingestion.
Label values accept all UTF-8 characters with one exception. If the label name is metric name label __ *name* __ , then the metric part of the name must conform to the following pattern: [a-zA-Z_:][a-zA-Z0-9_:]*
751 752 753 |
# File 'aps/cfn_workspace.rb', line 751 def label_set @label_set end |
#limits ⇒ AWSCDK::IResolvable, AWSCDK::APS::CfnWorkspace::LimitsPerLabelSetEntryProperty (readonly)
This structure contains the information about the limits that apply to time series that match this label set.
756 757 758 |
# File 'aps/cfn_workspace.rb', line 756 def limits @limits end |
Class Method Details
.jsii_properties ⇒ Object
758 759 760 761 762 763 |
# File 'aps/cfn_workspace.rb', line 758 def self.jsii_properties { :label_set => "labelSet", :limits => "limits", } end |
Instance Method Details
#to_jsii ⇒ Object
765 766 767 768 769 770 771 772 |
# File 'aps/cfn_workspace.rb', line 765 def to_jsii result = {} result.merge!({ "labelSet" => @label_set, "limits" => @limits, }) result.compact end |