Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
529cb433
Commit
529cb433
authored
Apr 25, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:grafana/grafana into query-editor-style
parents
1a433de0
6bc898b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
public/app/plugins/datasource/influxdb/influx_query.ts
+3
-3
No files found.
public/app/plugins/datasource/influxdb/influx_query.ts
View file @
529cb433
...
@@ -162,13 +162,13 @@ export default class InfluxQuery {
...
@@ -162,13 +162,13 @@ export default class InfluxQuery {
return str + '"
' + tag.key + '
" ' + operator + ' ' + value;
return str + '"
' + tag.key + '
" ' + operator + ' ' + value;
}
}
getMeasurementAndPolicy() {
getMeasurementAndPolicy(
interpolate
) {
var policy = this.target.policy;
var policy = this.target.policy;
var measurement = this.target.measurement;
var measurement = this.target.measurement;
if (!measurement.match('^/.*/')) {
if (!measurement.match('^/.*/')) {
measurement = '"
' + measurement+ '
"';
measurement = '"
' + measurement+ '
"';
} else {
} else
if (interpolate)
{
measurement = this.templateSrv.replace(measurement, this.scopedVars, 'regex');
measurement = this.templateSrv.replace(measurement, this.scopedVars, 'regex');
}
}
...
@@ -212,7 +212,7 @@ export default class InfluxQuery {
...
@@ -212,7 +212,7 @@ export default class InfluxQuery {
query += selectText;
query += selectText;
}
}
query += ' FROM ' + this.getMeasurementAndPolicy() + ' WHERE ';
query += ' FROM ' + this.getMeasurementAndPolicy(
interpolate
) + ' WHERE ';
var conditions = _.map(target.tags, (tag, index) => {
var conditions = _.map(target.tags, (tag, index) => {
return this.renderTagCondition(tag, index, interpolate);
return this.renderTagCondition(tag, index, interpolate);
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment