* 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)
| 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 |
nothing calls this directly
no test coverage detected