Class: Healthchecker::Checks::Dynamodb

Inherits:
Healthchecker::Check show all
Defined in:
lib/healthchecker/checks/dynamodb.rb

Instance Attribute Summary

Attributes inherited from Healthchecker::Check

#options

Instance Method Summary collapse

Methods inherited from Healthchecker::Check

#initialize, #perform_check

Constructor Details

This class inherits a constructor from Healthchecker::Check

Instance Method Details

#check!Object



10
11
12
13
# File 'lib/healthchecker/checks/dynamodb.rb', line 10

def check!
  client.list_tables
  nil
end

#clientObject



6
7
8
# File 'lib/healthchecker/checks/dynamodb.rb', line 6

def client
  options[:client] || Aws::DynamoDB::Client.new
end