feat(influxdb): began work on some influxdb enhancements, #2311

This commit is contained in:
Torkel Ödegaard
2015-07-08 17:41:36 +02:00
parent 63f8800007
commit 597c1f6a41
6 changed files with 36 additions and 21 deletions

View File

@@ -130,6 +130,12 @@ define([
expect(query).to.be('SHOW TAG VALUES FROM "cpu" WITH KEY = "app" WHERE "host" =~ /server.*/');
});
it('should build show field query', function() {
var builder = new InfluxQueryBuilder({measurement: 'cpu', tags: [{key: 'app', value: 'email'}]});
var query = builder.buildExploreQuery('FIELDS');
expect(query).to.be('SHOW FIELD KEYS FROM "cpu"');
});
});
});