annotations.editor.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <div class="gf-form-group">
  2. <div class="gf-form" ng-if="ctrl.annotation.index">
  3. <span class="gf-form-label width-14">Index name</span>
  4. <input type="text" class="gf-form-input max-width-20" ng-model='ctrl.annotation.index' placeholder="events-*"></input>
  5. </div>
  6. <div class="gf-form-group">
  7. <div class="gf-form">
  8. <input type="text" class="gf-form-input" ng-model='ctrl.annotation.query'
  9. placeholder="Elasticsearch lucene query"></input>
  10. </div>
  11. </div>
  12. </div>
  13. <div class="gf-form-group">
  14. <h6>Field mappings</h6>
  15. <div class="gf-form-inline">
  16. <div class="gf-form">
  17. <span class="gf-form-label">Time</span>
  18. <input type="text" class="gf-form-input max-width-14" ng-model='ctrl.annotation.timeField' placeholder="@timestamp"></input>
  19. </div>
  20. <div class="gf-form">
  21. <span class="gf-form-label">Time End</span>
  22. <input type="text" class="gf-form-input max-width-14" ng-model='ctrl.annotation.timeEndField' placeholder=""></input>
  23. </div>
  24. <div class="gf-form">
  25. <span class="gf-form-label">Text</span>
  26. <input type="text" class="gf-form-input max-width-14" ng-model='ctrl.annotation.textField' placeholder=""></input>
  27. </div>
  28. <div class="gf-form">
  29. <span class="gf-form-label">Tags</span>
  30. <input type="text" class="gf-form-input max-width-10" ng-model='ctrl.annotation.tagsField' placeholder="tags"></input>
  31. </div>
  32. <div class="gf-form" ng-show="ctrl.annotation.titleField">
  33. <span class="gf-form-label">Title <em class="muted">(deprecated)</em></span>
  34. <input type="text" class="gf-form-input max-width-16" ng-model='ctrl.annotation.titleField' placeholder="desc"></input>
  35. </div>
  36. </div>
  37. </div>