MCPcopy Create free account
hub / github.com/Rello/analytics / create

Method create

lib/Controller/ThresholdController.php:59–67  ·  view source on GitHub ↗

* create new threshold for dataset * * @param int $reportId * @param $dimension * @param $option * @param $value * @param int $severity * @param $coloring * @return int */

(int $reportId, $dimension, $option, $value, int $severity, $coloring, ?string $sourceColumnRef = null)

Source from the content-addressed store, hash-verified

57 * @return int
58 */
59 #[NoAdminRequired]
60 public function create(int $reportId, $dimension, $option, $value, int $severity, $coloring, ?string $sourceColumnRef = null)
61 {
62 try {
63 return $this->ThresholdService->create($reportId, $dimension, $option, $value, $severity, $coloring, $sourceColumnRef);
64 } catch (FlexibleStorageException $e) {
65 return new DataResponse($e->toResponse(), $e->getHttpStatus());
66 }
67 }
68
69 /**
70 * Delete threshold for dataset

Callers

nothing calls this directly

Calls 2

toResponseMethod · 0.80
getHttpStatusMethod · 0.80

Tested by

no test coverage detected