diff --git a/app/Bus/Handlers/Commands/Metric/AddMetricPointCommandHandler.php b/app/Bus/Handlers/Commands/Metric/AddMetricPointCommandHandler.php index 90e2f5f0..91a07f49 100644 --- a/app/Bus/Handlers/Commands/Metric/AddMetricPointCommandHandler.php +++ b/app/Bus/Handlers/Commands/Metric/AddMetricPointCommandHandler.php @@ -60,6 +60,13 @@ class AddMetricPointCommandHandler return $point; } + /** + * Find or create a metric point. + * + * @param \CachetHQ\Cachet\Bus\Commands\Metric\AddMetricPointCommand $command + * + * @return \CachetHQ\Cachet\Models\MetricPoint + */ protected function findOrCreatePoint(AddMetricPointCommand $command) { $buffer = Carbon::now()->subMinutes($command->metric->threshold);