2015-09-29 11:00:15 -05:00
< div class = "" >
2015-08-15 16:11:37 -05:00
< div class = "tight-form" >
< ul class = "tight-form-list pull-right" >
< li ng-show = "parserError" class = "tight-form-item" >
< a bs-tooltip = "parserError" style = "color: rgb(229, 189, 28)" role = "menuitem" >
< i class = "fa fa-warning" > < / i >
< / a >
< / li >
2015-08-17 14:25:08 -05:00
< li class = "tight-form-item small" ng-show = "target.datasource" >
< em > {{target.datasource}}< / em >
2015-08-15 16:11:37 -05:00
< / li >
< li class = "tight-form-item" >
< div class = "dropdown" >
2015-09-09 07:18:56 -05:00
< a class = "pointer dropdown-toggle" data-toggle = "dropdown" tabindex = "1" >
2015-08-15 16:11:37 -05:00
< i class = "fa fa-bars" > < / i >
2015-01-16 01:35:32 -06:00
< / a >
2015-08-15 16:11:37 -05:00
< ul class = "dropdown-menu pull-right" role = "menu" >
2015-08-18 07:54:56 -05:00
< li role = "menuitem" > < a tabindex = "1" ng-click = "toggleQueryMode()" > Switch editor mode< / a > < / li >
2016-02-01 06:51:47 -06:00
< li role = "menuitem" > < a tabindex = "1" ng-click = "panelCtrl.duplicateDataQuery(target)" > Duplicate< / a > < / li >
< li role = "menuitem" > < a tabindex = "1" ng-click = "panelCtrl.moveDataQuery($index, $index-1)" > Move up< / a > < / li >
< li role = "menuitem" > < a tabindex = "1" ng-click = "panelCtrl.moveDataQuery($index, $index+1)" > Move down< / a > < / li >
2015-08-15 16:11:37 -05:00
< / ul >
< / div >
< / li >
2015-09-09 07:18:56 -05:00
2015-08-15 16:11:37 -05:00
< li class = "tight-form-item last" >
2016-02-01 06:51:47 -06:00
< a class = "pointer" tabindex = "1" ng-click = "panelCtrl.removeDataQuery(target)" >
2015-08-15 16:11:37 -05:00
< i class = "fa fa-remove" > < / i >
< / a >
< / li >
< / ul >
2015-01-16 01:35:32 -06:00
2015-08-15 16:11:37 -05:00
< ul class = "tight-form-list" >
2015-08-15 18:34:09 -05:00
< li class = "tight-form-item" style = "min-width: 15px; text-align: center" >
2015-08-17 13:53:40 -05:00
{{target.refId}}
2015-08-15 18:34:09 -05:00
< / li >
2015-08-15 16:11:37 -05:00
< li >
2016-01-28 18:07:53 -06:00
< a class = "tight-form-item" ng-click = "target.hide = !target.hide; panelCtrl.refresh();" role = "menuitem" >
2015-08-15 16:11:37 -05:00
< i class = "fa fa-eye" > < / i >
< / a >
< / li >
< / ul >
2015-01-16 01:35:32 -06:00
2015-09-09 07:18:56 -05:00
< ul class = "tight-form-list" ng-hide = "target.rawQuery" >
< li class = "tight-form-item query-keyword" style = "width: 75px" >
FROM
< / li >
2016-01-17 10:53:38 -06:00
< li >
< metric-segment segment = "policySegment" get-options = "getPolicySegments()" on-change = "policyChanged()" > < / metric-segment >
< / li >
2015-09-09 07:18:56 -05:00
< li >
< metric-segment segment = "measurementSegment" get-options = "getMeasurements()" on-change = "measurementChanged()" > < / metric-segment >
< / li >
2015-09-29 11:00:15 -05:00
< li class = "tight-form-item query-keyword" style = "padding-left: 15px; padding-right: 15px;" >
WHERE
< / li >
< li ng-repeat = "segment in tagSegments" >
< metric-segment segment = "segment" get-options = "getTagsOrValues(segment, $index)" on-change = "tagSegmentUpdated(segment, $index)" > < / metric-segment >
< / li >
2015-09-09 07:18:56 -05:00
< / ul >
2015-03-25 05:07:12 -05:00
2015-12-04 02:20:29 -06:00
< div class = "tight-form-flex-wrapper" ng-show = "target.rawQuery" >
2016-01-28 18:07:53 -06:00
< input type = "text" class = "tight-form-clear-input" ng-model = "target.query" spellcheck = "false" style = "width: 100%;" ng-blur = "panelCtrl.refresh()" > < / input >
2015-09-09 07:18:56 -05:00
< / div >
2015-09-29 11:00:15 -05:00
2015-12-04 02:20:29 -06:00
< div class = "clearfix" > < / div >
2015-09-09 07:18:56 -05:00
< / div >
< div ng-hide = "target.rawQuery" >
2015-09-23 13:57:29 -05:00
2015-11-25 03:22:20 -06:00
< div class = "tight-form" ng-repeat = "selectParts in queryModel.selectModels" >
2015-09-23 13:57:29 -05:00
< ul class = "tight-form-list" >
< li class = "tight-form-item query-keyword tight-form-align" style = "width: 75px;" >
< span ng-show = "$index === 0" > SELECT< / span >
< / li >
2015-11-25 03:22:20 -06:00
< li ng-repeat = "part in selectParts" >
2015-11-30 03:14:42 -06:00
< influx-query-part-editor part = "part" class = "tight-form-item tight-form-func" remove-action = "removeSelectPart(selectParts, part)" part-updated = "selectPartUpdated(selectParts, part)" get-options = "getPartOptions(part)" > < / influx-query-part-editor >
2015-09-23 13:57:29 -05:00
< / li >
2015-11-25 03:22:20 -06:00
< li class = "dropdown" dropdown-typeahead = "selectMenu" dropdown-typeahead-on-select = "addSelectPart(selectParts, $item, $subItem)" >
2015-09-23 13:57:29 -05:00
< / li >
< / ul >
< div class = "clearfix" > < / div >
< / div >
2015-11-25 07:27:22 -06:00
< div class = "tight-form" >
2015-05-18 04:40:50 -05:00
< ul class = "tight-form-list" >
2015-08-16 02:52:45 -05:00
< li class = "tight-form-item query-keyword tight-form-align" style = "width: 75px;" >
2015-12-08 09:40:41 -06:00
< span > GROUP BY< / span >
2015-09-09 07:18:56 -05:00
< / li >
2015-11-25 07:27:22 -06:00
< li ng-repeat = "part in queryModel.groupByParts" >
2016-01-28 18:07:53 -06:00
< influx-query-part-editor part = "part" class = "tight-form-item tight-form-func" remove-action = "removeGroupByPart(part, $index)" part-updated = "panelCtrl.refresh();" get-options = "getPartOptions(part)" > < / influx-query-part-editor >
2015-09-29 11:00:15 -05:00
< / li >
2015-11-25 07:27:22 -06:00
< li >
< metric-segment segment = "groupBySegment" get-options = "getGroupByOptions()" on-change = "groupByAction(part, $index)" > < / metric-segment >
2015-05-15 04:38:22 -05:00
< / li >
2015-05-18 04:40:50 -05:00
< / ul >
< div class = "clearfix" > < / div >
< / div >
2015-09-23 02:34:05 -05:00
< / div >
2015-05-18 04:40:50 -05:00
2015-09-23 02:34:05 -05:00
< div class = "tight-form" >
< ul class = "tight-form-list" >
< li class = "tight-form-item query-keyword tight-form-align" style = "width: 75px;" >
ALIAS BY
< / li >
< li >
2016-01-28 18:07:53 -06:00
< input type = "text" class = "tight-form-clear-input input-xlarge" ng-model = "target.alias" spellcheck = 'false' placeholder = "Naming pattern" ng-blur = "panelCtrl.refresh()" >
2015-09-23 02:34:05 -05:00
< / li >
2015-12-03 08:09:39 -06:00
< li class = "tight-form-item" >
Format as
< / li >
< li >
2016-01-28 18:07:53 -06:00
< select class = "input-small tight-form-input" style = "width: 104px" ng-model = "target.resultFormat" ng-options = "f.value as f.text for f in resultFormats" ng-change = "panelCtrl.refresh()" > < / select >
2015-12-03 08:09:39 -06:00
< / li >
2015-09-23 02:34:05 -05:00
< / ul >
< div class = "clearfix" > < / div >
2015-08-16 02:52:45 -05:00
< / div >
2015-09-23 02:34:05 -05:00
2015-08-16 02:52:45 -05:00
< / div >