Class: AWSCDK::ApplicationInsights::CfnApplication::SQLServerPrometheusExporterProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ApplicationInsights::CfnApplication::SQLServerPrometheusExporterProperty
- Defined in:
- application_insights/cfn_application.rb
Overview
The SQL prometheus exporter settings.
Instance Attribute Summary collapse
-
#prometheus_port ⇒ String
readonly
Prometheus exporter port.
-
#sql_secret_name ⇒ String
readonly
Secret name which managers SQL exporter connection.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(prometheus_port:, sql_secret_name:) ⇒ SQLServerPrometheusExporterProperty
constructor
A new instance of SQLServerPrometheusExporterProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(prometheus_port:, sql_secret_name:) ⇒ SQLServerPrometheusExporterProperty
Returns a new instance of SQLServerPrometheusExporterProperty.
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_port ⇒ String (readonly)
Prometheus exporter port.
1522 1523 1524 |
# File 'application_insights/cfn_application.rb', line 1522 def prometheus_port @prometheus_port end |
#sql_secret_name ⇒ String (readonly)
Secret name which managers SQL exporter connection.
e.g. "sqlserver://
1529 1530 1531 |
# File 'application_insights/cfn_application.rb', line 1529 def sql_secret_name @sql_secret_name end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |