Class: AWSCDK::ApplicationInsights::CfnApplication::ConfigurationDetailsProperty

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

Overview

The AWS::ApplicationInsights::Application ConfigurationDetails property type specifies the configuration settings.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(alarm_metrics: nil, alarms: nil, ha_cluster_prometheus_exporter: nil, hana_prometheus_exporter: nil, jmx_prometheus_exporter: nil, logs: nil, net_weaver_prometheus_exporter: nil, processes: nil, sql_server_prometheus_exporter: nil, windows_events: nil) ⇒ ConfigurationDetailsProperty

Returns a new instance of ConfigurationDetailsProperty.

Parameters:



887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
# File 'application_insights/cfn_application.rb', line 887

def initialize(alarm_metrics: nil, alarms: nil, ha_cluster_prometheus_exporter: nil, hana_prometheus_exporter: nil, jmx_prometheus_exporter: nil, logs: nil, net_weaver_prometheus_exporter: nil, processes: nil, sql_server_prometheus_exporter: nil, windows_events: nil)
  @alarm_metrics = alarm_metrics
  Jsii::Type.check_type(@alarm_metrics, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwbGljYXRpb25pbnNpZ2h0cy5DZm5BcHBsaWNhdGlvbi5BbGFybU1ldHJpY1Byb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "alarmMetrics") unless @alarm_metrics.nil?
  @alarms = alarms
  Jsii::Type.check_type(@alarms, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwbGljYXRpb25pbnNpZ2h0cy5DZm5BcHBsaWNhdGlvbi5BbGFybVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "alarms") unless @alarms.nil?
  @ha_cluster_prometheus_exporter = ha_cluster_prometheus_exporter.is_a?(Hash) ? ::AWSCDK::ApplicationInsights::CfnApplication::HAClusterPrometheusExporterProperty.new(**ha_cluster_prometheus_exporter.transform_keys(&:to_sym)) : ha_cluster_prometheus_exporter
  Jsii::Type.check_type(@ha_cluster_prometheus_exporter, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBsaWNhdGlvbmluc2lnaHRzLkNmbkFwcGxpY2F0aW9uLkhBQ2x1c3RlclByb21ldGhldXNFeHBvcnRlclByb3BlcnR5In1dfX0=")), "haClusterPrometheusExporter") unless @ha_cluster_prometheus_exporter.nil?
  @hana_prometheus_exporter = hana_prometheus_exporter.is_a?(Hash) ? ::AWSCDK::ApplicationInsights::CfnApplication::HANAPrometheusExporterProperty.new(**hana_prometheus_exporter.transform_keys(&:to_sym)) : hana_prometheus_exporter
  Jsii::Type.check_type(@hana_prometheus_exporter, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBsaWNhdGlvbmluc2lnaHRzLkNmbkFwcGxpY2F0aW9uLkhBTkFQcm9tZXRoZXVzRXhwb3J0ZXJQcm9wZXJ0eSJ9XX19")), "hanaPrometheusExporter") unless @hana_prometheus_exporter.nil?
  @jmx_prometheus_exporter = jmx_prometheus_exporter.is_a?(Hash) ? ::AWSCDK::ApplicationInsights::CfnApplication::JMXPrometheusExporterProperty.new(**jmx_prometheus_exporter.transform_keys(&:to_sym)) : jmx_prometheus_exporter
  Jsii::Type.check_type(@jmx_prometheus_exporter, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBsaWNhdGlvbmluc2lnaHRzLkNmbkFwcGxpY2F0aW9uLkpNWFByb21ldGhldXNFeHBvcnRlclByb3BlcnR5In1dfX0=")), "jmxPrometheusExporter") unless @jmx_prometheus_exporter.nil?
  @logs = logs
  Jsii::Type.check_type(@logs, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwbGljYXRpb25pbnNpZ2h0cy5DZm5BcHBsaWNhdGlvbi5Mb2dQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "logs") unless @logs.nil?
  @net_weaver_prometheus_exporter = net_weaver_prometheus_exporter.is_a?(Hash) ? ::AWSCDK::ApplicationInsights::CfnApplication::NetWeaverPrometheusExporterProperty.new(**net_weaver_prometheus_exporter.transform_keys(&:to_sym)) : net_weaver_prometheus_exporter
  Jsii::Type.check_type(@net_weaver_prometheus_exporter, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBsaWNhdGlvbmluc2lnaHRzLkNmbkFwcGxpY2F0aW9uLk5ldFdlYXZlclByb21ldGhldXNFeHBvcnRlclByb3BlcnR5In1dfX0=")), "netWeaverPrometheusExporter") unless @net_weaver_prometheus_exporter.nil?
  @processes = processes
  Jsii::Type.check_type(@processes, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwbGljYXRpb25pbnNpZ2h0cy5DZm5BcHBsaWNhdGlvbi5Qcm9jZXNzUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "processes") unless @processes.nil?
  @sql_server_prometheus_exporter = sql_server_prometheus_exporter.is_a?(Hash) ? ::AWSCDK::ApplicationInsights::CfnApplication::SQLServerPrometheusExporterProperty.new(**sql_server_prometheus_exporter.transform_keys(&:to_sym)) : sql_server_prometheus_exporter
  Jsii::Type.check_type(@sql_server_prometheus_exporter, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBsaWNhdGlvbmluc2lnaHRzLkNmbkFwcGxpY2F0aW9uLlNRTFNlcnZlclByb21ldGhldXNFeHBvcnRlclByb3BlcnR5In1dfX0=")), "sqlServerPrometheusExporter") unless @sql_server_prometheus_exporter.nil?
  @windows_events = windows_events
  Jsii::Type.check_type(@windows_events, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwbGljYXRpb25pbnNpZ2h0cy5DZm5BcHBsaWNhdGlvbi5XaW5kb3dzRXZlbnRQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "windowsEvents") unless @windows_events.nil?
end

Instance Attribute Details

#alarm_metricsAWSCDK::IResolvable, ... (readonly)

A list of metrics to monitor for the component.

All component types can use AlarmMetrics .



916
917
918
# File 'application_insights/cfn_application.rb', line 916

def alarm_metrics
  @alarm_metrics
end

#alarmsAWSCDK::IResolvable, ... (readonly)

A list of alarms to monitor for the component.

All component types can use Alarm .



923
924
925
# File 'application_insights/cfn_application.rb', line 923

def alarms
  @alarms
end

#ha_cluster_prometheus_exporterAWSCDK::IResolvable, ... (readonly)

The HA cluster Prometheus Exporter settings.



928
929
930
# File 'application_insights/cfn_application.rb', line 928

def ha_cluster_prometheus_exporter
  @ha_cluster_prometheus_exporter
end

#hana_prometheus_exporterAWSCDK::IResolvable, ... (readonly)

The HANA DB Prometheus Exporter settings.



933
934
935
# File 'application_insights/cfn_application.rb', line 933

def hana_prometheus_exporter
  @hana_prometheus_exporter
end

#jmx_prometheus_exporterAWSCDK::IResolvable, ... (readonly)

A list of Java metrics to monitor for the component.



938
939
940
# File 'application_insights/cfn_application.rb', line 938

def jmx_prometheus_exporter
  @jmx_prometheus_exporter
end

#logsAWSCDK::IResolvable, ... (readonly)

A list of logs to monitor for the component.

Only Amazon EC2 instances can use Logs .



945
946
947
# File 'application_insights/cfn_application.rb', line 945

def logs
  @logs
end

#net_weaver_prometheus_exporterAWSCDK::IResolvable, ... (readonly)

The NetWeaver Prometheus Exporter Settings.



950
951
952
# File 'application_insights/cfn_application.rb', line 950

def net_weaver_prometheus_exporter
  @net_weaver_prometheus_exporter
end

#processesAWSCDK::IResolvable, ... (readonly)

A list of processes to monitor for the component.

Only Windows EC2 instances can have a processes section.



957
958
959
# File 'application_insights/cfn_application.rb', line 957

def processes
  @processes
end

#sql_server_prometheus_exporterAWSCDK::IResolvable, ... (readonly)

The SQL prometheus exporter settings.



962
963
964
# File 'application_insights/cfn_application.rb', line 962

def sql_server_prometheus_exporter
  @sql_server_prometheus_exporter
end

#windows_eventsAWSCDK::IResolvable, ... (readonly)

A list of Windows Events to monitor for the component.

Only Amazon EC2 instances running on Windows can use WindowsEvents .



969
970
971
# File 'application_insights/cfn_application.rb', line 969

def windows_events
  @windows_events
end

Class Method Details

.jsii_propertiesObject



971
972
973
974
975
976
977
978
979
980
981
982
983
984
# File 'application_insights/cfn_application.rb', line 971

def self.jsii_properties
  {
    :alarm_metrics => "alarmMetrics",
    :alarms => "alarms",
    :ha_cluster_prometheus_exporter => "haClusterPrometheusExporter",
    :hana_prometheus_exporter => "hanaPrometheusExporter",
    :jmx_prometheus_exporter => "jmxPrometheusExporter",
    :logs => "logs",
    :net_weaver_prometheus_exporter => "netWeaverPrometheusExporter",
    :processes => "processes",
    :sql_server_prometheus_exporter => "sqlServerPrometheusExporter",
    :windows_events => "windowsEvents",
  }
end

Instance Method Details

#to_jsiiObject



986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
# File 'application_insights/cfn_application.rb', line 986

def to_jsii
  result = {}
  result.merge!({
    "alarmMetrics" => @alarm_metrics,
    "alarms" => @alarms,
    "haClusterPrometheusExporter" => @ha_cluster_prometheus_exporter,
    "hanaPrometheusExporter" => @hana_prometheus_exporter,
    "jmxPrometheusExporter" => @jmx_prometheus_exporter,
    "logs" => @logs,
    "netWeaverPrometheusExporter" => @net_weaver_prometheus_exporter,
    "processes" => @processes,
    "sqlServerPrometheusExporter" => @sql_server_prometheus_exporter,
    "windowsEvents" => @windows_events,
  })
  result.compact
end