]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: CdNotificationConfig
authorStephan Müller <smueller@suse.com>
Tue, 4 Dec 2018 14:18:41 +0000 (15:18 +0100)
committerStephan Müller <smueller@suse.com>
Wed, 12 Dec 2018 13:53:09 +0000 (14:53 +0100)
commit174dd6ed4d1581068e9bfb6d3544db8624eeb3cf
treefa7456bbfb38ff255a4222d688fbd862b363e873
parente43de0b74fe586803aa8bfae300b3cbd6c0d7674
mgr/dashboard: CdNotificationConfig

This model will now be taken as single argument in the 'show' method
of the notification service. Through using this model it's easy to
define notifications before sending them out. Which can be helpful
if you have to process an array of possible notification and the
possibility that those notifications would look a like.

This scenario doesn't exist in the current code base, but it's the
case for new feature to show alerts from Prometheus.

Fixes: https://tracker.ceph.com/issues/37469
Signed-off-by: Stephan Müller <smueller@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/shared/models/cd-notification.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/services/notification.service.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/services/notification.service.ts