Module: Cawcaw::Command::Mysql::Table
- Includes:
- Database::Table
- Defined in:
- lib/cawcaw/command/mysql/table.rb
Class Method Summary collapse
Methods included from Database::Table
Methods included from Database::Table::ClassMethods
#count_table_sizes, #get_full_table_paths, #initialize_params, #run
Class Method Details
.initialize_params(params) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/cawcaw/command/mysql/table.rb', line 7 def self.initialize_params(params) params[:adapter] ||= "mysql2" params[:host] ||= "localhost" params[:port] ||= 3306 params[:adapter_name] ||= "mysql" params[:graph_title] ||= "#{params[:adapter_name]} records" params[:graph_args] ||= "--base 1000" params[:graph_vlabel] ||= "records" params[:graph_category] ||= params[:adapter_name] params[:graph_info] ||= "#{params[:adapter_name]} record size" params[:label_warning] ||= 50000000 params[:label_critical] ||= 100000000 end |