original_string: public function store(Metric $metric)
      {
          try {
              $metricPoint = execute(new CreateMetricPointCommand(
                  $metric,
                  Binput::get('value'),
                  Binput::get('timestamp')
              ));
          } catch (QueryException $e) {
              throw new BadRequestHttpException();
          }
  
          return $this->item($metricPoint);
      }
code: public function store(Metric $metric)
      {
          try {
              $metricPoint = execute(new CreateMetricPointCommand(
                  $metric,
                  Binput::get('value'),
                  Binput::get('timestamp')
              ));
          } catch (QueryException $e) {
              throw new BadRequestHttpException();
          }
  
          return $this->item($metricPoint);
      }
code_tokens: public function store ( Metric $ metric ) { try { $ metricPoint = execute ( new CreateMetricPointCommand ( $ metric , Binput :: get ( 'value' ) , Binput :: get ( 'timestamp' ) ) ) ; } catch ( QueryException $ e ) { throw new BadRequestHttpException ( ) ; } return $ this -> item ( $ metricPoint ) ; }
docstring: Create a new metric point.
  
  @param \CachetHQ\Cachet\Models\Metric $metric
  
  @return \Illuminate\Http\JsonResponse
docstring_tokens: Create a new metric point .