Class: AWSCDK::ApplicationInsights::CfnApplication::SQLServerPrometheusExporterProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
application_insights/cfn_application.rb

Overview

The SQL prometheus exporter settings.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(prometheus_port:, sql_secret_name:) ⇒ SQLServerPrometheusExporterProperty

Returns a new instance of SQLServerPrometheusExporterProperty.

Parameters:

  • prometheus_port (String)

    Prometheus exporter port.

  • sql_secret_name (String)

    Secret name which managers SQL exporter connection.



1511
1512
1513
1514
1515
1516
# File 'application_insights/cfn_application.rb', line 1511

def initialize(prometheus_port:, sql_secret_name:)
  @prometheus_port = prometheus_port
  Jsii::Type.check_type(@prometheus_port, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "prometheusPort")
  @sql_secret_name = sql_secret_name
  Jsii::Type.check_type(@sql_secret_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sqlSecretName")
end

Instance Attribute Details

#prometheus_portString (readonly)

Prometheus exporter port.



1522
1523
1524
# File 'application_insights/cfn_application.rb', line 1522

def prometheus_port
  @prometheus_port
end

#sql_secret_nameString (readonly)

Secret name which managers SQL exporter connection.

e.g. "sqlserver://:@localhost:1433"



1529
1530
1531
# File 'application_insights/cfn_application.rb', line 1529

def sql_secret_name
  @sql_secret_name
end

Class Method Details

.jsii_propertiesObject



1531
1532
1533
1534
1535
1536
# File 'application_insights/cfn_application.rb', line 1531

def self.jsii_properties
  {
    :prometheus_port => "prometheusPort",
    :sql_secret_name => "sqlSecretName",
  }
end

Instance Method Details

#to_jsiiObject



1538
1539
1540
1541
1542
1543
1544
1545
# File 'application_insights/cfn_application.rb', line 1538

def to_jsii
  result = {}
  result.merge!({
    "prometheusPort" => @prometheus_port,
    "sqlSecretName" => @sql_secret_name,
  })
  result.compact
end