|
3 | 3 | import click |
4 | 4 |
|
5 | 5 |
|
6 | | -@click.command('blackout', short_help='suppress alerts') |
7 | | -@click.option('--environment', '-E') |
8 | | -@click.option('--service', '-S', multiple=True) |
9 | | -@click.option('--resource', '-r') |
10 | | -@click.option('--event', '-e') |
11 | | -@click.option('--group', '-g') |
12 | | -@click.option('--tag', '-T', 'tags', multiple=True) |
13 | | -@click.option('--start') |
14 | | -@click.option('--duration', default=86400) # TODO ?? |
15 | | -@click.option('--delete', '-D', help='delete blackout using ID') |
| 6 | +@click.command('blackout', short_help='Suppress alerts') |
| 7 | +@click.option('--environment', '-E', metavar='ENVIRONMENT') |
| 8 | +@click.option('--service', '-S', metavar='SERVICE', multiple=True) |
| 9 | +@click.option('--resource', '-r', metavar='RESOURCE') |
| 10 | +@click.option('--event', '-e', metavar='EVENT') |
| 11 | +@click.option('--group', '-g', metavar='GROUP') |
| 12 | +@click.option('--tag', '-T', 'tags', metavar='TAG', multiple=True) |
| 13 | +@click.option('--start', metavar='DATETIME') |
| 14 | +@click.option('--duration', metavar='EXPIRES') |
| 15 | +@click.option('--delete', '-D', help='Delete blackout using ID') |
16 | 16 | @click.pass_obj |
17 | 17 | def cli(obj, environment, service, resource, event, group, tags, start, duration, delete): |
18 | 18 | """Suppress alerts for specified duration based on alert attributes.""" |
|
0 commit comments