Class: AWSCDK::ApplicationInsights::CfnApplication::HAClusterPrometheusExporterProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ApplicationInsights::CfnApplication::HAClusterPrometheusExporterProperty
- Defined in:
- application_insights/cfn_application.rb
Overview
The AWS::ApplicationInsights::Application HAClusterPrometheusExporter property type defines the HA cluster Prometheus Exporter settings.
For more information, see the component configuration in the CloudWatch Application Insights documentation.
Instance Attribute Summary collapse
-
#prometheus_port ⇒ String?
readonly
The target port to which Prometheus sends metrics.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(prometheus_port: nil) ⇒ HAClusterPrometheusExporterProperty
constructor
A new instance of HAClusterPrometheusExporterProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(prometheus_port: nil) ⇒ HAClusterPrometheusExporterProperty
Returns a new instance of HAClusterPrometheusExporterProperty.
1056 1057 1058 1059 |
# File 'application_insights/cfn_application.rb', line 1056 def initialize(prometheus_port: nil) @prometheus_port = prometheus_port Jsii::Type.check_type(@prometheus_port, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "prometheusPort") unless @prometheus_port.nil? end |
Instance Attribute Details
#prometheus_port ⇒ String? (readonly)
The target port to which Prometheus sends metrics.
If not specified, the default port 9668 is used.
1067 1068 1069 |
# File 'application_insights/cfn_application.rb', line 1067 def prometheus_port @prometheus_port end |
Class Method Details
.jsii_properties ⇒ Object
1069 1070 1071 1072 1073 |
# File 'application_insights/cfn_application.rb', line 1069 def self.jsii_properties { :prometheus_port => "prometheusPort", } end |
Instance Method Details
#to_jsii ⇒ Object
1075 1076 1077 1078 1079 1080 1081 |
# File 'application_insights/cfn_application.rb', line 1075 def to_jsii result = {} result.merge!({ "prometheusPort" => @prometheus_port, }) result.compact end |