[monascaclient] "Alarm Definition Update" command may not needs "--match-by" option.

Bug #1500287 reported by Shinya Kawabata
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Monasca
Triaged
Undecided
Unassigned

Bug Description

"monasca alarm-definition-update " command has "--match-by" option.
But actually it cannot be changed by this option.
According to Monasca API doc, "Once an Alarm Definition has been created, the value for match_by and any metrics in the expression cannot be changed. "
So I think this option is acceptable to remove.

reference - https://github.com/stackforge/monasca-api/blob/master/docs/monasca-api-spec.md#changing-alarm-definitions

$ monasca alarm-definition-update --help
usage: monasca alarm-definition-update [--description <DESCRIPTION>]
                                       [--alarm-actions <NOTIFICATION-ID>]
                                       [--ok-actions <NOTIFICATION-ID>]
                                       [--undetermined-actions <NOTIFICATION-ID>]
                                       [--match-by <DIMENSION_KEY1,DIMENSION_KEY2,...>]
                                       [--severity <SEVERITY>]
                                       <ALARM_DEFINITION_ID>
                                       <ALARM_DEFINITION_NAME> <EXPRESSION>
                                       <ACTIONS-ENABLED>

Revision history for this message
Allan G (greental) wrote :

there are reasons this fields remain, Deklan Dieterly could explain it

Changed in monasca:
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.