public function index(Metric $metric, MetricPoint $metricPoint)
    {
        $points = $metric->points()->paginate(Binput::get('per_page', 20));

        return $this->paginator($points, Request::instance());
    }
public function index(Metric $metric, MetricPoint $metricPoint)
    {
        $points = $metric->points()->paginate(Binput::get('per_page', 20));

        return $this->paginator($points, Request::instance());
    }
public function index ( Metric $ metric , MetricPoint $ metricPoint ) { $ points = $ metric -> points ( ) -> paginate ( Binput :: get ( 'per_page' , 20 ) ) ; return $ this -> paginator ( $ points , Request :: instance ( ) ) ; }
Get a single metric point.

@param \CachetHQ\Cachet\Models\Metric      $metric
@param \CachetHQ\Cachet\Models\MetricPoint $metricPoint

@return \Illuminate\Http\JsonResponse
Get a single metric point .