Beispiel #1
0
    def add_arguments(self):

        self.parser.add_argument('-i', '--alarm-id', dest='alarm_id', action='store', required=True, type=int,
                                 metavar='alarm_id', help='Id of the alarm to update')
        self.parser.add_argument('-n', '--alarm-name', dest='alarm_name', action='store',
                                 metavar='alarm_name', help='Name of the alarm')

        AlarmModify.add_arguments(self)
Beispiel #2
0
    def add_arguments(self):

        self.parser.add_argument('-n', '--alarm-name', dest='alarm_name', action='store', required=True,
                                 metavar='alarm_name', help='Name of the alarm')
        self.parser.add_argument('-y', '--alarm-type', dest='alarm_type', action='store', required=False,
                                 choices=['threshold', 'host', 'api'],
                                 help='Type of the alarm either: threshold or communication. Default threshold')

        AlarmModify.add_arguments(self)
Beispiel #3
0
    def add_arguments(self):

        self.parser.add_argument('-i',
                                 '--alarm-id',
                                 dest='alarm_id',
                                 action='store',
                                 required=True,
                                 type=int,
                                 metavar='alarm_id',
                                 help='Id of the alarm to update')
        self.parser.add_argument('-n',
                                 '--alarm-name',
                                 dest='alarm_name',
                                 action='store',
                                 metavar='alarm_name',
                                 help='Name of the alarm')

        AlarmModify.add_arguments(self)