quads icon indicating copy to clipboard operation
quads copied to clipboard

[RFE] Add a way to query and update cloud related notifications

Open kambiz-aghaiepour opened this issue 3 years ago • 0 comments

The notifications associated with active environments are based on the unique pairing of environment (cloudXX) with the support system ticket number. Currently there are several attributes in the mongo notifications collection. It would be useful to be able to display as well as update the current notification settings. For example:

quads-cli --ls-notification

might output something like:

cloud    ticket  fail   success   initial   pre_initial   pre   one_day   three_days  five_days  seven_days
=============================================================================================================
cloud03    1234    false   false    false    false     false    false     false         false    false

And only current (or future) allocations for a given cloudXX would be displayed in a table output.

Alternatively you could also do:

    quads-cli --ls-notifications --cloud cloudXX
which would either output:

    WARNING: there are no current or future schedules for cloudXX

or if there is, the same output as above would be printed, but only for cloudXX

And lastly, a means to modify the current setting using something like:

   quads-cli --mod-notification --cloud cloudXX --fail  [true|false]   
                     --success  [true|false]
                      --initial  [true|false]
                     --pre_initial  [true|false]     
                      --pre    [true|false]   
                      --one_day      [true|false]
                      --three_days   [true|false]
                       --five_days    [true|false]
                         --seven_days   [true|false]

kambiz-aghaiepour avatar Jun 28 '21 17:06 kambiz-aghaiepour