bosun.org@v0.0.0-20210513094433-e25bc3e69a1f/cmd/bosun/web/static/partials/silence.html (about)

     1  <div class="row" ng-show="error">
     2  	<div class="col-lg-12">
     3  		<div class="alert alert-danger" ng-bind="error"></div>
     4  	</div>
     5  </div>
     6  <form class="form-horizontal">
     7  	<div class="form-group">
     8  		<label class="col-sm-2 control-label">start date</label>
     9  		<div class="col-sm-6">
    10  			<input type="text" class="form-control" ng-model="start" ng-change="change()">
    11  			<p class="help-block">Format: yyyy-mm-dd HH:MM[:SS] [MST/-0700]. UTC if no timezone. Uses now if blank.</p>
    12  		</div>
    13  	</div>
    14  	<div class="form-group">
    15  		<label class="col-sm-2 control-label">end date</label>
    16  		<div class="col-sm-6">
    17  			<input type="text" class="form-control" ng-model="end" ng-change="change()">
    18  		</div>
    19  	</div>
    20  	<div class="form-group">
    21  		<label class="col-sm-2 control-label">duration</label>
    22  		<div class="col-sm-6">
    23  			<input type="text" class="form-control" ng-model="duration" ng-change="change()">
    24  			<p class="help-block">Specify either end date or <a href="http://opentsdb.net/docs/build/html/user_guide/query/dates.html#relative">duration</a>.</p>
    25  		</div>
    26  	</div>
    27  	<div class="form-group">
    28  		<label class="col-sm-2 control-label">alert</label>
    29  		<div class="col-sm-10">
    30  			<input type="text" class="form-control" ng-model="alert" ng-change="change()">
    31  			<p class="help-block">Optional.</p>
    32  		</div>
    33  	</div>
    34  	<div class="form-group">
    35  		<label class="col-sm-2 control-label">hosts</label>
    36  		<div class="col-sm-10">
    37  			<input type="text" class="form-control" ng-model="hosts" ng-change="change()">
    38  			<p class="help-block">Optional. Globs, separated by commas (,), pipes (|), or spaces. Example: <code>ny-web01, ny-redis*</code>.</p>
    39  		</div>
    40  	</div>
    41  	<div class="form-group">
    42  		<label class="col-sm-2 control-label">other tags</label>
    43  		<div class="col-sm-10">
    44  			<input type="text" class="form-control" ng-model="tags" ng-change="change()">
    45  			<p class="help-block">Optional. Ex: port=637?,cluster=1,iface=lo*|if*. tagvs are <a href="http://golang.org/pkg/path/filepath/#Match">globs</a>, separated by pipes (|). Example: <code>port=637?</code>.</p>
    46  		</div>
    47  	</div>
    48  	<div class="form-group">
    49  		<label class="col-sm-2 control-label">username</label>
    50  		<div class="col-sm-6">
    51  			<username-input></username-input>
    52  		</div>
    53  	</div>
    54  	<div class="form-group">
    55  		<label class="col-sm-2 control-label">message</label>
    56  		<div class="col-sm-10">
    57  			<input type="text" class="form-control" ng-model="message">
    58  		</div>
    59  	</div>
    60  	<div class="form-group">
    61  		<div class="col-sm-offset-2 col-sm-10">
    62  			<div class="checkbox">
    63  				<label>
    64  					<input type="checkbox" ng-model="forget" ng-change="change()"> Auto forget
    65  				</label>
    66  			</div>
    67  			<p class="help-block">If the alert becomes unknown during the silence period, automatically forget it.</p>
    68  		</div>
    69  	</div>
    70  	<div class="form-group">
    71  		<div class="col-sm-offset-2 col-sm-6">
    72  			<button class="btn btn-default" ng-click="test()">test</button>
    73  		</div>
    74  	</div>
    75  </form>
    76  <div class="row" ng-show="testSilences">
    77  	<div class="col-sm-12">
    78  		<h2>Will be silenced</h2>
    79  	</div>
    80  	<div class="col-sm-12">
    81  		<ul class="list-unstyled">
    82  			<li ng-repeat="(silence, active) in testSilences">
    83  				<span ng-bind="silence"></span>
    84  				<span class="label label-primary" ng-show="active">active</span>
    85  			</li>
    86  		<ul>
    87  	</div>
    88  	<div class="col-sm-12">
    89  		<button class="btn btn-primary" ng-click="confirm()" ng-disabled="disableConfirm">confirm</button>
    90  		<span ng-show="edit" class="label label-warning">editing rule {{edit}}</span>
    91  	</div>
    92  </div>
    93  
    94  <div class="row">
    95  	<div class="col-lg-12">
    96  		<h2>Existing Silences</h2>
    97  	</div>
    98  </div>
    99  <div class="row" ng-repeat="silence in silences">
   100  	<div class="col-sm-12">
   101  		<h3 ng-bind="silence.name"></h3>
   102  		<table class="table" ts-table-sort="[[1,1]]">
   103  			<thead>
   104  				<tr>
   105  					<th>start</th>
   106  					<th>end</th>
   107  					<th>alert</th>
   108  					<th>tags</th>
   109  					<th>user</th>
   110  					<th>message</th>
   111  					<th>edit</th>
   112  				</tr>
   113  			</thead>
   114  			<tbody>
   115  				<tr ng-repeat="(id, s) in silence.silences">
   116  					<td ts-time="s.Start"></td>
   117  					<td ts-time="s.End"></td>
   118  					<td ng-bind="s.Alert"></td>
   119  					<td ng-bind="s.TagString"></td>
   120  					<td ng-bind="s.User"></td>
   121  					<td ng-bind="s.Message"></td>
   122  					<td>
   123  						<a class="btn btn-primary btn-xs" ng-href="{{getEditSilenceLink(s, id)}}">edit</a>
   124  						<button class="btn btn-danger btn-xs" ng-click="clear(id)">clear</button>
   125  					</td>
   126  				</tr>
   127  			</tbody>
   128  		</table>
   129  	</div>
   130  </div>