Class: CfnGuardian::Resource::AzureFile
- Defined in:
- lib/cfnguardian/resources/azure_file.rb
Instance Method Summary collapse
Methods inherited from Base
#default_event_subscriptions, #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_alarms ⇒ Object
4 5 6 7 8 9 |
# File 'lib/cfnguardian/resources/azure_file.rb', line 4 def default_alarms alarm = CfnGuardian::Models::AzureFileAlarm.new(@resource) alarm.name = 'FileExpired' alarm.metric_name = 'FileExpired' @alarms.push(alarm) end |
#default_checks ⇒ Object
15 16 17 |
# File 'lib/cfnguardian/resources/azure_file.rb', line 15 def default_checks @checks.push(CfnGuardian::Models::AzureFileCheck.new(@resource)) end |
#default_events ⇒ Object
11 12 13 |
# File 'lib/cfnguardian/resources/azure_file.rb', line 11 def default_events @events.push(CfnGuardian::Models::AzureFileEvent.new(@resource)) end |