Class: AWSCDK::KinesisAnalyticsv2::CfnApplication::MonitoringConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::KinesisAnalyticsv2::CfnApplication::MonitoringConfigurationProperty
- Defined in:
- kinesis_analyticsv2/cfn_application.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.
1896 1897 1898 1899 1900 1901 1902 1903 |
# File 'kinesis_analyticsv2/cfn_application.rb', line 1896 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.
1911 1912 1913 |
# File 'kinesis_analyticsv2/cfn_application.rb', line 1911 def configuration_type @configuration_type end |
#log_level ⇒ String? (readonly)
Describes the verbosity of the CloudWatch Logs for an application.
1916 1917 1918 |
# File 'kinesis_analyticsv2/cfn_application.rb', line 1916 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.
1923 1924 1925 |
# File 'kinesis_analyticsv2/cfn_application.rb', line 1923 def metrics_level @metrics_level end |
Class Method Details
.jsii_properties ⇒ Object
1925 1926 1927 1928 1929 1930 1931 |
# File 'kinesis_analyticsv2/cfn_application.rb', line 1925 def self.jsii_properties { :configuration_type => "configurationType", :log_level => "logLevel", :metrics_level => "metricsLevel", } end |
Instance Method Details
#to_jsii ⇒ Object
1933 1934 1935 1936 1937 1938 1939 1940 1941 |
# File 'kinesis_analyticsv2/cfn_application.rb', line 1933 def to_jsii result = {} result.merge!({ "configurationType" => @configuration_type, "logLevel" => @log_level, "metricsLevel" => @metrics_level, }) result.compact end |