Class: AWSCDK::APS::CfnWorkspace::WorkspaceConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
aps/cfn_workspace.rb

Overview

Use this structure to define label sets and the ingestion limits for time series that match label sets, and to specify the retention period of the workspace.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(limits_per_label_sets: nil, out_of_order_time_window_in_seconds: nil, retention_period_in_days: nil, rule_query_offset_in_seconds: nil) ⇒ WorkspaceConfigurationProperty

Returns a new instance of WorkspaceConfigurationProperty.

Parameters:

  • limits_per_label_sets (AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::APS::CfnWorkspace::LimitsPerLabelSetProperty>, nil) (defaults to: nil)

    This is an array of structures, where each structure defines a label set for the workspace, and defines the ingestion limit for active time series for each of those label sets.

  • out_of_order_time_window_in_seconds (Numeric, nil) (defaults to: nil)

    The time window in seconds for accepting out-of-order samples.

  • retention_period_in_days (Numeric, nil) (defaults to: nil)

    Specifies how many days that metrics will be retained in the workspace.

  • rule_query_offset_in_seconds (Numeric, nil) (defaults to: nil)

    Duration in seconds to offset rule evaluation queries into the past.



933
934
935
936
937
938
939
940
941
942
# File 'aps/cfn_workspace.rb', line 933

def initialize(limits_per_label_sets: nil, out_of_order_time_window_in_seconds: nil, retention_period_in_days: nil, rule_query_offset_in_seconds: nil)
  @limits_per_label_sets = limits_per_label_sets
  Jsii::Type.check_type(@limits_per_label_sets, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBzLkNmbldvcmtzcGFjZS5MaW1pdHNQZXJMYWJlbFNldFByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "limitsPerLabelSets") unless @limits_per_label_sets.nil?
  @out_of_order_time_window_in_seconds = out_of_order_time_window_in_seconds
  Jsii::Type.check_type(@out_of_order_time_window_in_seconds, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "outOfOrderTimeWindowInSeconds") unless @out_of_order_time_window_in_seconds.nil?
  @retention_period_in_days = retention_period_in_days
  Jsii::Type.check_type(@retention_period_in_days, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "retentionPeriodInDays") unless @retention_period_in_days.nil?
  @rule_query_offset_in_seconds = rule_query_offset_in_seconds
  Jsii::Type.check_type(@rule_query_offset_in_seconds, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "ruleQueryOffsetInSeconds") unless @rule_query_offset_in_seconds.nil?
end

Instance Attribute Details

#limits_per_label_setsAWSCDK::IResolvable, ... (readonly)

This is an array of structures, where each structure defines a label set for the workspace, and defines the ingestion limit for active time series for each of those label sets.

Each label name in a label set must be unique.



950
951
952
# File 'aps/cfn_workspace.rb', line 950

def limits_per_label_sets
  @limits_per_label_sets
end

#out_of_order_time_window_in_secondsNumeric? (readonly)

The time window in seconds for accepting out-of-order samples.



955
956
957
# File 'aps/cfn_workspace.rb', line 955

def out_of_order_time_window_in_seconds
  @out_of_order_time_window_in_seconds
end

#retention_period_in_daysNumeric? (readonly)

Specifies how many days that metrics will be retained in the workspace.



960
961
962
# File 'aps/cfn_workspace.rb', line 960

def retention_period_in_days
  @retention_period_in_days
end

#rule_query_offset_in_secondsNumeric? (readonly)

Duration in seconds to offset rule evaluation queries into the past.



965
966
967
# File 'aps/cfn_workspace.rb', line 965

def rule_query_offset_in_seconds
  @rule_query_offset_in_seconds
end

Class Method Details

.jsii_propertiesObject



967
968
969
970
971
972
973
974
# File 'aps/cfn_workspace.rb', line 967

def self.jsii_properties
  {
    :limits_per_label_sets => "limitsPerLabelSets",
    :out_of_order_time_window_in_seconds => "outOfOrderTimeWindowInSeconds",
    :retention_period_in_days => "retentionPeriodInDays",
    :rule_query_offset_in_seconds => "ruleQueryOffsetInSeconds",
  }
end

Instance Method Details

#to_jsiiObject



976
977
978
979
980
981
982
983
984
985
# File 'aps/cfn_workspace.rb', line 976

def to_jsii
  result = {}
  result.merge!({
    "limitsPerLabelSets" => @limits_per_label_sets,
    "outOfOrderTimeWindowInSeconds" => @out_of_order_time_window_in_seconds,
    "retentionPeriodInDays" => @retention_period_in_days,
    "ruleQueryOffsetInSeconds" => @rule_query_offset_in_seconds,
  })
  result.compact
end