2015-09-29 18:00:15 +02:00
< div class = "" >
2015-08-15 23:11:37 +02: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 21:25:08 +02:00
< li class = "tight-form-item small" ng-show = "target.datasource" >
< em > {{target.datasource}}< / em >
2015-08-15 23:11:37 +02:00
< / li >
< li class = "tight-form-item" >
< div class = "dropdown" >
2015-09-09 14:18:56 +02:00
< a class = "pointer dropdown-toggle" data-toggle = "dropdown" tabindex = "1" >
2015-08-15 23:11:37 +02:00
< i class = "fa fa-bars" > < / i >
2015-01-16 08:35:32 +01:00
< / a >
2015-08-15 23:11:37 +02:00
< ul class = "dropdown-menu pull-right" role = "menu" >
2015-08-18 14:54:56 +02:00
< li role = "menuitem" > < a tabindex = "1" ng-click = "toggleQueryMode()" > Switch editor mode< / a > < / li >
2015-08-30 10:09:45 +02:00
< li role = "menuitem" > < a tabindex = "1" ng-click = "duplicateDataQuery(target)" > Duplicate< / a > < / li >
< li role = "menuitem" > < a tabindex = "1" ng-click = "moveDataQuery($index, $index-1)" > Move up< / a > < / li >
< li role = "menuitem" > < a tabindex = "1" ng-click = "moveDataQuery($index, $index+1)" > Move down< / a > < / li >
2015-08-15 23:11:37 +02:00
< / ul >
< / div >
< / li >
2015-09-09 14:18:56 +02:00
2015-08-15 23:11:37 +02:00
< li class = "tight-form-item last" >
< a class = "pointer" tabindex = "1" ng-click = "removeDataQuery(target)" >
< i class = "fa fa-remove" > < / i >
< / a >
< / li >
< / ul >
2015-01-16 08:35:32 +01:00
2015-08-15 23:11:37 +02:00
< ul class = "tight-form-list" >
2015-08-16 01:34:09 +02:00
< li class = "tight-form-item" style = "min-width: 15px; text-align: center" >
2015-08-17 20:53:40 +02:00
{{target.refId}}
2015-08-16 01:34:09 +02:00
< / li >
2015-08-15 23:11:37 +02:00
< li >
2015-09-04 09:41:23 +02:00
< a class = "tight-form-item" ng-click = "target.hide = !target.hide; get_data();" role = "menuitem" >
2015-08-15 23:11:37 +02:00
< i class = "fa fa-eye" > < / i >
< / a >
< / li >
< / ul >
2015-01-16 08:35:32 +01:00
2015-09-09 14:18:56 +02:00
< ul class = "tight-form-list" ng-hide = "target.rawQuery" >
< li class = "tight-form-item query-keyword" style = "width: 75px" >
FROM
< / li >
< li >
< metric-segment segment = "measurementSegment" get-options = "getMeasurements()" on-change = "measurementChanged()" > < / metric-segment >
< / li >
2015-09-29 18:00:15 +02: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 14:18:56 +02:00
< / ul >
< div class = "clearfix" > < / div >
2015-03-25 11:07:12 +01:00
2015-09-09 14:18:56 +02:00
< div style = "padding: 10px" ng-if = "target.rawQuery" >
< textarea ng-model = "target.query" rows = "8" spellcheck = "false" style = "width: 100%; box-sizing: border-box;" ng-blur = "get_data()" > < / textarea >
< / div >
2015-09-29 18:00:15 +02:00
2015-09-09 14:18:56 +02:00
< / div >
< div ng-hide = "target.rawQuery" >
2015-09-23 20:57:29 +02:00
2015-11-25 10:22:20 +01:00
< div class = "tight-form" ng-repeat = "selectParts in queryModel.selectModels" >
2015-09-23 20:57:29 +02: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 10:22:20 +01:00
< li ng-repeat = "part in selectParts" >
2015-11-30 10:14:42 +01: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 20:57:29 +02:00
< / li >
2015-11-25 10:22:20 +01:00
< li class = "dropdown" dropdown-typeahead = "selectMenu" dropdown-typeahead-on-select = "addSelectPart(selectParts, $item, $subItem)" >
2015-09-23 20:57:29 +02:00
< / li >
< / ul >
< div class = "clearfix" > < / div >
< / div >
2015-11-25 14:27:22 +01:00
< div class = "tight-form" >
2015-05-18 11:40:50 +02:00
< ul class = "tight-form-list" >
2015-08-16 09:52:45 +02:00
< li class = "tight-form-item query-keyword tight-form-align" style = "width: 75px;" >
2015-09-09 14:18:56 +02:00
< span ng-show = "$index === 0" > GROUP BY< / span >
< / li >
2015-11-25 14:27:22 +01:00
< li ng-repeat = "part in queryModel.groupByParts" >
2015-11-30 10:14:42 +01:00
< influx-query-part-editor part = "part" class = "tight-form-item tight-form-func" remove-action = "removeGroupByPart(part, $index)" part-updated = "get_data();" get-options = "getPartOptions(part)" > < / influx-query-part-editor >
2015-09-29 18:00:15 +02:00
< / li >
2015-11-25 14:27:22 +01:00
< li >
< metric-segment segment = "groupBySegment" get-options = "getGroupByOptions()" on-change = "groupByAction(part, $index)" > < / metric-segment >
2015-05-15 11:38:22 +02:00
< / li >
2015-05-18 11:40:50 +02:00
< / ul >
< div class = "clearfix" > < / div >
< / div >
2015-09-23 09:34:05 +02:00
< / div >
2015-05-18 11:40:50 +02:00
2015-09-23 09:34:05 +02: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 >
< input type = "text" class = "tight-form-clear-input input-xlarge" ng-model = "target.alias" spellcheck = 'false' placeholder = "Naming pattern" ng-blur = "get_data()" >
< / li >
2015-12-03 15:09:39 +01:00
< li class = "tight-form-item" >
Format as
< / li >
< li >
< 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 = "get_data()" > < / select >
< / li >
2015-09-23 09:34:05 +02:00
< / ul >
< div class = "clearfix" > < / div >
2015-08-16 09:52:45 +02:00
< / div >
2015-09-23 09:34:05 +02:00
2015-08-16 09:52:45 +02:00
< / div >