Class: AWSCDK::ApplicationInsights::CfnApplication::HAClusterPrometheusExporterProperty

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(prometheus_port: nil) ⇒ HAClusterPrometheusExporterProperty

Returns a new instance of HAClusterPrometheusExporterProperty.

Parameters:

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

    The target port to which Prometheus sends metrics.



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



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_jsiiObject



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