mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
137 lines
5.0 KiB
HTML
137 lines
5.0 KiB
HTML
<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>
|
|
<li class="tight-form-item small" ng-show="target.datasource">
|
|
<em>{{target.datasource}}</em>
|
|
</li>
|
|
<li class="tight-form-item">
|
|
<div class="dropdown">
|
|
<a class="pointer dropdown-toggle" data-toggle="dropdown" tabindex="1">
|
|
<i class="fa fa-bars"></i>
|
|
</a>
|
|
<ul class="dropdown-menu pull-right" role="menu">
|
|
<li role="menuitem"><a tabindex="1" ng-click="toggleQueryMode()">Switch editor mode</a></li>
|
|
<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>
|
|
</ul>
|
|
</div>
|
|
</li>
|
|
|
|
<li class="tight-form-item last">
|
|
<a class="pointer" tabindex="1" ng-click="removeDataQuery(target)">
|
|
<i class="fa fa-remove"></i>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
|
|
<ul class="tight-form-list">
|
|
<li class="tight-form-item" style="min-width: 15px; text-align: center">
|
|
{{target.refId}}
|
|
</li>
|
|
<li>
|
|
<a class="tight-form-item" ng-click="target.hide = !target.hide; get_data();" role="menuitem">
|
|
<i class="fa fa-eye"></i>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
|
|
<ul class="tight-form-list" ng-hide="target.rawQuery">
|
|
<li class="tight-form-item query-keyword" style="width: 75px">
|
|
Query
|
|
</li>
|
|
<li>
|
|
<input type="text" class="input-xlarge tight-form-input" ng-model="target.query" spellcheck='false' placeholder="Lucence query" ng-blur="get_data()">
|
|
</li>
|
|
</ul>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
<div style="padding: 10px" ng-if="target.rawQuery">
|
|
<textarea ng-model="target.rawQuery" rows="8" spellcheck="false" style="width: 100%; box-sizing: border-box;" ng-blur="queryUpdated()"></textarea>
|
|
</div>
|
|
</div>
|
|
|
|
<div ng-hide="target.rawQuery">
|
|
|
|
<div ng-repeat="agg in target.metrics">
|
|
<elastic-metric-agg
|
|
target="target" index="$index"
|
|
get-fields="getFields()"
|
|
on-change="queryUpdated()">
|
|
</elastic-metric-agg>
|
|
</div>
|
|
|
|
<div ng-repeat="agg in target.bucketAggs">
|
|
<elastic-bucket-agg
|
|
target="target" index="$index"
|
|
get-fields="getFields()"
|
|
on-change="queryUpdated()">
|
|
</elastic-bucket-agg>
|
|
</div>
|
|
|
|
<!-- <div class="tight-form"> -->
|
|
<!-- <ul class="tight-form-list"> -->
|
|
<!-- <li class="tight-form-item query-keyword tight-form-align" style="width: 75px;"> -->
|
|
<!-- <span ng-show="$first">Group by</span> -->
|
|
<!-- <span ng-show="!$first">Then by</span> -->
|
|
<!-- </li> -->
|
|
<!-- <li> -->
|
|
<!-- <elastic-query-component model="agg" get-fields="getFields()" on-change="queryUpdated()"></elastic-query-component> -->
|
|
<!-- </li> -->
|
|
<!-- </ul> -->
|
|
<!-- -->
|
|
<!-- <ul class="tight-form-list pull-right"> -->
|
|
<!-- <li class="tight-form-item" ng-if="$index === 0"> -->
|
|
<!-- <a class="pointer" ng-click="addBucketAgg()"><i class="fa fa-plus"></i></a> -->
|
|
<!-- </li> -->
|
|
<!-- <li class="tight-form-item" ng-if="!$last"> -->
|
|
<!-- <a class="pointer" ng-click="removeBucketAgg($index)"><i class="fa fa-minus"></i></a> -->
|
|
<!-- </li> -->
|
|
<!-- </ul> -->
|
|
<!-- <div class="clearfix"></div> -->
|
|
<!-- </div> -->
|
|
<!-- -->
|
|
<!-- <div class="tight-form" ng-if="agg.showOptions"> -->
|
|
<!-- <div style="margin: 20px 0 20px 148px;display: inline-block"> -->
|
|
<!-- <div class="tight-form"> -->
|
|
<!-- <ul class="tight-form-list"> -->
|
|
<!-- <li class="tight-form-item" style="width: 60px"> -->
|
|
<!-- Order -->
|
|
<!-- </li> -->
|
|
<!-- <li> -->
|
|
<!-- <metric-segment segment="" get-alt-segments="getFields()" on-value-changed="timeFieldChanged()"></metric-segment> -->
|
|
<!-- </li> -->
|
|
<!-- </ul> -->
|
|
<!-- <div class="clearfix"></div> -->
|
|
<!-- </div> -->
|
|
<!-- <div class="tight-form"> -->
|
|
<!-- <ul class="tight-form-list"> -->
|
|
<!-- <li class="tight-form-item" style="width: 60px"> -->
|
|
<!-- Size -->
|
|
<!-- </li> -->
|
|
<!-- <li> -->
|
|
<!-- <input type="text" class="input-mini tight-form-input" ng-model="agg.options.size" spellcheck='false' placeholder="0" ng-blur="get_data()"> -->
|
|
<!-- </li> -->
|
|
<!-- </ul> -->
|
|
<!-- <div class="clearfix"></div> -->
|
|
<!-- </div> -->
|
|
<!-- <div class="tight-form last"> -->
|
|
<!-- <ul class="tight-form-list"> -->
|
|
<!-- <li class="tight-form-item" style="width: 60px"> -->
|
|
<!-- Order by -->
|
|
<!-- </li> -->
|
|
<!-- <li> -->
|
|
<!-- <metric-segment segment="timeSegment" get-alt-segments="getFields()" on-value-changed="timeFieldChanged()"></metric-segment> -->
|
|
<!-- </li> -->
|
|
<!-- </ul> -->
|
|
<!-- <div class="clearfix"></div> -->
|
|
<!-- </div> -->
|
|
<!-- </div> -->
|
|
|
|
</div>
|