Class: AWSCDK::ApplicationInsights::CfnApplication::JMXPrometheusExporterProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ApplicationInsights::CfnApplication::JMXPrometheusExporterProperty
- Defined in:
- application_insights/cfn_application.rb
Overview
The AWS::ApplicationInsights::Application JMXPrometheusExporter property type defines the JMXPrometheus Exporter configuration.
For more information, see the component configuration in the CloudWatch Application Insights documentation.
Instance Attribute Summary collapse
-
#host_port ⇒ String?
readonly
The host and port to connect to through remote JMX.
-
#jmxurl ⇒ String?
readonly
The complete JMX URL to connect to.
-
#prometheus_port ⇒ String?
readonly
The target port to send Prometheus metrics to.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(host_port: nil, jmxurl: nil, prometheus_port: nil) ⇒ JMXPrometheusExporterProperty
constructor
A new instance of JMXPrometheusExporterProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(host_port: nil, jmxurl: nil, prometheus_port: nil) ⇒ JMXPrometheusExporterProperty
Returns a new instance of JMXPrometheusExporterProperty.
1174 1175 1176 1177 1178 1179 1180 1181 |
# File 'application_insights/cfn_application.rb', line 1174 def initialize(host_port: nil, jmxurl: nil, prometheus_port: nil) @host_port = host_port Jsii::Type.check_type(@host_port, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "hostPort") unless @host_port.nil? @jmxurl = jmxurl Jsii::Type.check_type(@jmxurl, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "jmxurl") unless @jmxurl.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
#host_port ⇒ String? (readonly)
The host and port to connect to through remote JMX.
Only one of jmx_url and host_port can be specified.
1189 1190 1191 |
# File 'application_insights/cfn_application.rb', line 1189 def host_port @host_port end |
#jmxurl ⇒ String? (readonly)
The complete JMX URL to connect to.
1194 1195 1196 |
# File 'application_insights/cfn_application.rb', line 1194 def jmxurl @jmxurl end |
#prometheus_port ⇒ String? (readonly)
The target port to send Prometheus metrics to.
If not specified, the default port 9404 is used.
1201 1202 1203 |
# File 'application_insights/cfn_application.rb', line 1201 def prometheus_port @prometheus_port end |
Class Method Details
.jsii_properties ⇒ Object
1203 1204 1205 1206 1207 1208 1209 |
# File 'application_insights/cfn_application.rb', line 1203 def self.jsii_properties { :host_port => "hostPort", :jmxurl => "jmxurl", :prometheus_port => "prometheusPort", } end |
Instance Method Details
#to_jsii ⇒ Object
1211 1212 1213 1214 1215 1216 1217 1218 1219 |
# File 'application_insights/cfn_application.rb', line 1211 def to_jsii result = {} result.merge!({ "hostPort" => @host_port, "jmxurl" => @jmxurl, "prometheusPort" => @prometheus_port, }) result.compact end |