Class: AWSCDK::KinesisAnalytics::CfnApplicationV2::MonitoringConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::KinesisAnalytics::CfnApplicationV2::MonitoringConfigurationProperty
- Defined in:
- kinesis_analytics/cfn_application_v2.rb
Overview
Describes configuration parameters for Amazon CloudWatch logging for a Java-based Kinesis Data Analytics application.
For more information about CloudWatch logging, see Monitoring .
Instance Attribute Summary collapse
-
#configuration_type ⇒ String
readonly
Describes whether to use the default CloudWatch logging configuration for an application.
-
#log_level ⇒ String?
readonly
Describes the verbosity of the CloudWatch Logs for an application.
-
#metrics_level ⇒ String?
readonly
Describes the granularity of the CloudWatch Logs for an application.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(configuration_type:, log_level: nil, metrics_level: nil) ⇒ MonitoringConfigurationProperty
constructor
A new instance of MonitoringConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(configuration_type:, log_level: nil, metrics_level: nil) ⇒ MonitoringConfigurationProperty
Returns a new instance of MonitoringConfigurationProperty.
1897 1898 1899 1900 1901 1902 1903 1904 |
# File 'kinesis_analytics/cfn_application_v2.rb', line 1897 def initialize(configuration_type:, log_level: nil, metrics_level: nil) @configuration_type = configuration_type Jsii::Type.check_type(@configuration_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "configurationType") @log_level = log_level Jsii::Type.check_type(@log_level, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "logLevel") unless @log_level.nil? @metrics_level = metrics_level Jsii::Type.check_type(@metrics_level, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "metricsLevel") unless @metrics_level.nil? end |
Instance Attribute Details
#configuration_type ⇒ String (readonly)
Describes whether to use the default CloudWatch logging configuration for an application.
You must set this property to CUSTOM in order to set the LogLevel or MetricsLevel parameters.
1912 1913 1914 |
# File 'kinesis_analytics/cfn_application_v2.rb', line 1912 def configuration_type @configuration_type end |
#log_level ⇒ String? (readonly)
Describes the verbosity of the CloudWatch Logs for an application.
1917 1918 1919 |
# File 'kinesis_analytics/cfn_application_v2.rb', line 1917 def log_level @log_level end |
#metrics_level ⇒ String? (readonly)
Describes the granularity of the CloudWatch Logs for an application.
The Parallelism level is not recommended for applications with a Parallelism over 64 due to excessive costs.
1924 1925 1926 |
# File 'kinesis_analytics/cfn_application_v2.rb', line 1924 def metrics_level @metrics_level end |
Class Method Details
.jsii_properties ⇒ Object
1926 1927 1928 1929 1930 1931 1932 |
# File 'kinesis_analytics/cfn_application_v2.rb', line 1926 def self.jsii_properties { :configuration_type => "configurationType", :log_level => "logLevel", :metrics_level => "metricsLevel", } end |
Instance Method Details
#to_jsii ⇒ Object
1934 1935 1936 1937 1938 1939 1940 1941 1942 |
# File 'kinesis_analytics/cfn_application_v2.rb', line 1934 def to_jsii result = {} result.merge!({ "configurationType" => @configuration_type, "logLevel" => @log_level, "metricsLevel" => @metrics_level, }) result.compact end |