Skip to content

Commit

Permalink
Fixes #29
Browse files Browse the repository at this point in the history
  • Loading branch information
slominskir committed Dec 6, 2021
1 parent 3dba22e commit bb5d06c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions scripts/client/set-class.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,13 @@ def classes_import(file):
@click.command()
@click.option('--file', is_flag=True,
help="Imports a file of key=value pairs (one per line) where the key is alarm name and value is JSON encoded AVRO formatted per the alarm-classes-value schema")
@click.option('--unset', is_flag=True, help="Remove the alarm")
@click.option('--unset', is_flag=True, help="Remove the class")
@click.option('--location', type=click.Choice(locations), help="The alarm location")
@click.option('--category', type=click.Choice(categories), help="The alarm category")
@click.option('--priority', type=click.Choice(priorities), help="The alarm priority")
@click.option('--filterable', is_flag=True, default=None, help="True if alarm can be filtered out of view")
@click.option('--latching', is_flag=True, default=None,
@click.option('--filterable/--not-filterable', is_flag=True, default=True,
help="True if alarm can be filtered out of view")
@click.option('--latching/--not-latching', is_flag=True, default=True,
help="Indicate that the alarm latches and requires acknowledgement to clear")
@click.option('--screenpath', help="The path the alarm screen display")
@click.option('--pointofcontactusername', help="The point of contact user name")
Expand Down
7 changes: 4 additions & 3 deletions scripts/client/set-registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,10 @@ def registrations_import(file):
@click.option('--location', type=click.Choice(locations), help="The alarm location")
@click.option('--category', type=click.Choice(categories), help="The alarm category")
@click.option('--priority', type=click.Choice(priorities), help="The alarm priority")
@click.option('--filterable', is_flag=True, default=None, help="True if alarm can be filtered out of view")
@click.option('--latching', is_flag=True, default=None,
help="Indicate that the alarm latches and requires acknowledgement to clear")
@click.option('--filterable/--not-filterable', is_flag=True, default=None,
help="True if alarm can be filtered out of view; inherits from class if None")
@click.option('--latching/--not-latching', is_flag=True, default=None,
help="Indicate that the alarm latches and requires acknowledgement to clear; inherits from class if None")
@click.option('--screenpath', help="The path the alarm screen display")
@click.option('--pointofcontactusername', help="The point of contact user name")
@click.option('--rationale', help="The alarm rationale")
Expand Down

0 comments on commit bb5d06c

Please sign in to comment.