annotations.editor.html 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  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">
  7. <span class="gf-form-label width-14">Search query (lucene) <tip>Use [[filterName]] in query to replace part of the query with a filter value</tip></span>
  8. <input type="text" class="gf-form-input max-width-20" ng-model='ctrl.annotation.query' placeholder="tags:deploy"></input>
  9. </div>
  10. </div>
  11. <div class="gf-form-group">
  12. <h6>Field mappings</h6>
  13. <div class="gf-form-inline">
  14. <div class="gf-form">
  15. <span class="gf-form-label width-10">Time</span>
  16. <input type="text" class="gf-form-input max-width-16" ng-model='ctrl.annotation.timeField' placeholder="@timestamp"></input>
  17. </div>
  18. <div class="gf-form">
  19. <span class="gf-form-label width-10">Title</span>
  20. <input type="text" class="gf-form-input max-width-16" ng-model='ctrl.annotation.titleField' placeholder="desc"></input>
  21. </div>
  22. </div>
  23. <div class="gf-form-inline">
  24. <div class="gf-form">
  25. <span class="gf-form-label width-10">Tags</span>
  26. <input type="text" class="gf-form-input max-width-16" ng-model='ctrl.annotation.tagsField' placeholder="tags"></input>
  27. </div>
  28. <div class="gf-form">
  29. <span class="gf-form-label width-10">Text</span>
  30. <input type="text" class="gf-form-input max-width-16" ng-model='ctrl.annotation.textField' placeholder=""></input>
  31. </div>
  32. </div>
  33. </div>