$command->name, 'suffix' => $command->suffix, 'description' => $command->description, 'default_value' => $command->default_value, 'calc_type' => $command->calc_type, 'display_chart' => $command->display_chart, 'places' => $command->places, 'default_view' => $command->default_view, 'threshold' => $command->threshold, 'order' => $command->order, 'visible' => $command->visible, ]); event(new MetricWasAddedEvent($metric)); return $metric; } }