Class: CfnGuardian::Resource::EKSContainerInsightsNamespace

Inherits:
Base
  • Object
show all
Defined in:
lib/cfnguardian/resources/eks_container_insights.rb

Instance Method Summary collapse

Methods inherited from Base

#default_checks, #default_event_subscriptions, #default_events, #default_metric_filters, #get_alarms, #get_checks, #get_cost, #get_event_subscriptions, #get_events, #get_metric_filters, #initialize, #resource_exists?

Methods included from Logging

colors, included, logger, #logger, logger=

Constructor Details

This class inherits a constructor from CfnGuardian::Resource::Base

Instance Method Details

#default_alarmsObject



77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# File 'lib/cfnguardian/resources/eks_container_insights.rb', line 77

def default_alarms

  alarm = CfnGuardian::Models::EKSContainerInsightsNamespaceAlarm.new(@resource)
  alarm.name = 'PodCpuUtilisation'
  alarm.metric_name = 'pod_cpu_utilization'
  alarm.comparison_operator = 'GreaterThanThreshold'
  alarm.statistic = 'Maximum'
  alarm.threshold = 90
  alarm.evaluation_periods = 5
  @alarms.push(alarm)

  alarm = CfnGuardian::Models::EKSContainerInsightsNamespaceAlarm.new(@resource)
  alarm.name = 'PodMemoryUtilisation'
  alarm.metric_name = 'pod_memory_utilization'
  alarm.comparison_operator = 'GreaterThanThreshold'
  alarm.statistic = 'Maximum'
  alarm.threshold = 90
  alarm.evaluation_periods = 5
  @alarms.push(alarm)

end