public function update(Metric $metric, MetricPoint $metricPoint)
    {
        $metricPoint = execute(new UpdateMetricPointCommand(
            $metricPoint,
            $metric,
            Binput::get('value'),
            Binput::get('timestamp')
        ));

        return $this->item($metricPoint);
    }
public function update(Metric $metric, MetricPoint $metricPoint)
    {
        $metricPoint = execute(new UpdateMetricPointCommand(
            $metricPoint,
            $metric,
            Binput::get('value'),
            Binput::get('timestamp')
        ));

        return $this->item($metricPoint);
    }
public function update ( Metric $ metric , MetricPoint $ metricPoint ) { $ metricPoint = execute ( new UpdateMetricPointCommand ( $ metricPoint , $ metric , Binput :: get ( 'value' ) , Binput :: get ( 'timestamp' ) ) ) ; return $ this -> item ( $ metricPoint ) ; }
Updates a metric point.

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

@return \Illuminate\Http\JsonResponse
Updates a metric point .