Commit b8502048 authored by Korko's avatar Korko
Browse files

Change statsd data type (gauge => counter)

parent 7db5098b
......@@ -46,8 +46,8 @@ class RandomFormController extends Controller
];
}
Statsd::gauge('draws', '+1');
Statsd::gauge('participants', '+'.count($participants));
Statsd::increment('draws');
Statsd::increment('participants', count($participants));
return $participants;
}
......@@ -65,12 +65,12 @@ class RandomFormController extends Controller
protected function sendMessage(Request $request, array $santa, array $target)
{
if (!empty($santa['email'])) {
Statsd::gauge('email', '+1');
Statsd::increment('email');
$this->sendMail($santa, $target, $request->input('title'), $request->input('contentMail'));
}
if (!empty($santa['phone'])) {
Statsd::gauge('phone', '+1');
Statsd::increment('phone');
$this->sendSms($santa, $target, $request->input('contentSMS'));
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment