tab_alerting.html 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <div class="editor-row">
  2. <div class="gf-form-group section" >
  3. <h5 class="section-heading">Alert Rule</h5>
  4. <div class="gf-form-inline">
  5. <div class="gf-form">
  6. <span class="gf-form-label">Value</span>
  7. <input class="gf-form-input width-15" type="text" ng-model="ctrl.rule.valueExpr" ng-change="ctrl.thresholdsUpdated()"></input>
  8. </div>
  9. <div class="gf-form">
  10. <div class="gf-form-select-wrapper max-width-10">
  11. <select class="gf-form-input" ng-model="ctrl.rule.evalFunc" ng-options="oper as oper for oper in ctrl.evalFuncs"></select>
  12. </div>
  13. </div>
  14. <div class="gf-form">
  15. <span class="gf-form-label">
  16. <i class="icon-gf icon-gf-warn alert-icon-warn"></i>
  17. Warn
  18. </span>
  19. <input class="gf-form-input max-width-7" type="number" ng-model="ctrl.panel.alerting.warnLevel" ng-change="alertTab.thresholdsUpdated()"></input>
  20. </div>
  21. <div class="gf-form">
  22. <span class="gf-form-label">
  23. <i class="icon-gf icon-gf-warn alert-icon-critical"></i>
  24. Critcal
  25. </span>
  26. <input class="gf-form-input max-width-7" type="number" ng-model="ctrl.panel.alerting.warnLevel" ng-change="alertTab.thresholdsUpdated()"></input>
  27. </div>
  28. </div>
  29. </div>
  30. </div>
  31. <!-- <div class="gf&#45;form"> -->
  32. <!-- <span class="gf&#45;form&#45;label width&#45;12">Aggregation method</span> -->
  33. <!-- <div class="gf&#45;form&#45;select&#45;wrapper max&#45;width&#45;10"> -->
  34. <!-- <select class="gf&#45;form&#45;input" -->
  35. <!-- ng&#45;model="ctrl.panel.alerting.aggregator" -->
  36. <!-- ng&#45;options="oper as oper for oper in alertTab.aggregators"></select> -->
  37. <!-- </div> -->
  38. <!-- </div> -->
  39. <!-- -->
  40. <!-- <div class="gf&#45;form"> -->
  41. <!-- <span class="gf&#45;form&#45;label width&#45;12">Query range (seconds)</span> -->
  42. <!-- <input class="gf&#45;form&#45;input max&#45;width&#45;10" type="number" -->
  43. <!-- ng&#45;model="ctrl.panel.alerting.queryRange" placeholder="3600"></input> -->
  44. <!-- </div> -->
  45. <!-- -->
  46. <!-- <div class="gf&#45;form"> -->
  47. <!-- <span class="gf&#45;form&#45;label width&#45;12">Frequency (seconds)</span> -->
  48. <!-- <input class="gf&#45;form&#45;input max&#45;width&#45;10" type="number" -->
  49. <!-- ng&#45;model="ctrl.panel.alerting.frequency" placeholder="60"></input> -->
  50. <!-- </div> -->
  51. <!-- </div> -->
  52. <div>
  53. <div class="gf-form-group section">
  54. <h5 class="section-heading">Alert info</h5>
  55. <div class="gf-form">
  56. <span class="gf-form-label width-10">Alert name</span>
  57. <input type="text" class="gf-form-input width-22" ng-model="ctrl.panel.alerting.name">
  58. </div>
  59. <div class="gf-form-inline">
  60. <div class="gf-form">
  61. <span class="gf-form-label width-10" style="margin-top: -73px;">Alert description</span>
  62. </div>
  63. <div class="gf-form">
  64. <textarea rows="5" ng-model="ctrl.panel.alerting.description" class="gf-form-input width-22"></textarea>
  65. </div>
  66. </div>
  67. </div>
  68. </div>
  69. <div class="editor-row">
  70. <div class="gf-form-button-row">
  71. <button class="btn btn-warning" ng-click="alertTab.markAsDeleted()">Delete Alert</button>
  72. </div>
  73. </div>