From 76f4788f728aee39d02285063029eef7ed72cdff Mon Sep 17 00:00:00 2001 From: Rashid Khan Date: Fri, 19 Apr 2013 20:36:03 -0700 Subject: [PATCH] fields panel documentation --- panels/fields/module.js | 19 ++++++++++++++++ panels/timepicker/module.js | 44 +++++++++++++++++++------------------ 2 files changed, 42 insertions(+), 21 deletions(-) diff --git a/panels/fields/module.js b/panels/fields/module.js index d67445ca8e0..324e05f2a72 100644 --- a/panels/fields/module.js +++ b/panels/fields/module.js @@ -1,3 +1,22 @@ +/* + + ## Fields + + Allows for enabling and disabling of fields in the table panel as well as a + micro anaylsis panel for analyzing the events in the table panel + + ### Parameters + * style :: a hash containing css styles + * arrange :: the layout pf the panel 'horizontal' or 'vertical' + * micropanel_position :: where to place the micropanel in relation to the field + + ### Group Events + #### Recieves + * table_documents :: An object containing the documents in the table panel + *** Sends + * fields :: an object containing the sort order, existing fields and selected fields + +*/ angular.module('kibana.fields', []) .controller('fields', function($scope, eventBus, $timeout) { diff --git a/panels/timepicker/module.js b/panels/timepicker/module.js index af3e9b7e591..2f45de560f3 100644 --- a/panels/timepicker/module.js +++ b/panels/timepicker/module.js @@ -1,30 +1,32 @@ /* -## Timepicker -The timepicker panel is used to select time ranges and inform other panel of -them. It also handles searching for indices that match the given time range and -a pattern + ## Timepicker -### Parameters -* mode :: The default mode of the panel. Options: 'relative', 'absolute' 'since' Default: 'relative' -* time_options :: An array of possible time options. Default: ['5m','15m','1h','6h','12h','24h','2d','7d','30d'] -* timespan :: The default options selected for the relative view. Default: '15m' -* timefield :: The field in which time is stored in the document. -* index :: Index pattern to match. Literals should be double quoted. Default: '_all' -* defaultindex :: Index to failover to if index not found -* index_interval :: Time between timestamped indices (can be 'none') for static index -* refresh: Object containing refresh parameters - * enable :: true/false, enable auto refresh by default. Default: false - * interval :: Seconds between auto refresh. Default: 30 - * min :: The lowest interval a user may set + The timepicker panel is used to select time ranges and inform other panel of + them. It also handles searching for indices that match the given time range and + a pattern -### Group Events -#### Sends -* time :: Object Includes from, to and index -#### Receives -* get_time :: Receives an object containing a $id, broadcasts back to it. + ### Parameters + * mode :: The default mode of the panel. Options: 'relative', 'absolute' 'since' Default: 'relative' + * time_options :: An array of possible time options. Default: ['5m','15m','1h','6h','12h','24h','2d','7d','30d'] + * timespan :: The default options selected for the relative view. Default: '15m' + * timefield :: The field in which time is stored in the document. + * index :: Index pattern to match. Literals should be double quoted. Default: '_all' + * defaultindex :: Index to failover to if index not found + * index_interval :: Time between timestamped indices (can be 'none') for static index + * refresh: Object containing refresh parameters + * enable :: true/false, enable auto refresh by default. Default: false + * interval :: Seconds between auto refresh. Default: 30 + * min :: The lowest interval a user may set + + ### Group Events + #### Sends + * time :: Object Includes from, to and index + #### Receives + * get_time :: Receives an object containing a $id, broadcasts back to it. */ + angular.module('kibana.timepicker', []) .controller('timepicker', function($scope, eventBus, $timeout, timer, $http) {