Class: AWSCDK::ApplicationInsights::CfnApplication::JMXPrometheusExporterProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(host_port: nil, jmxurl: nil, prometheus_port: nil) ⇒ JMXPrometheusExporterProperty

Returns a new instance of JMXPrometheusExporterProperty.

Parameters:

  • host_port (String, nil) (defaults to: nil)

    The host and port to connect to through remote JMX.

  • jmxurl (String, nil) (defaults to: nil)

    The complete JMX URL to connect to.

  • prometheus_port (String, nil) (defaults to: nil)

    The target port to send Prometheus metrics to.



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_portString? (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

#jmxurlString? (readonly)

The complete JMX URL to connect to.



1194
1195
1196
# File 'application_insights/cfn_application.rb', line 1194

def jmxurl
  @jmxurl
end

#prometheus_portString? (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_propertiesObject



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_jsiiObject



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