module.js 710 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. ## annotations
  3. */
  4. define([
  5. 'angular',
  6. 'app',
  7. 'underscore'
  8. ],
  9. function (angular, app, _) {
  10. 'use strict';
  11. var module = angular.module('kibana.panels.annotations', []);
  12. app.useModule(module);
  13. module.controller('AnnotationsCtrl', function($scope) {
  14. $scope.panelMeta = {
  15. status : "Stable",
  16. description : "Annotations"
  17. };
  18. // Set and populate defaults
  19. var _d = {
  20. };
  21. _.defaults($scope.panel,_d);
  22. $scope.init = function() {
  23. $scope.panel.annotations = [
  24. {
  25. type: 'graphite-target',
  26. target: 'metric'
  27. },
  28. {
  29. type: 'graphite-target',
  30. target: 'metric2'
  31. }
  32. ];
  33. };
  34. });
  35. });