Skip to content

Commit

Permalink
Fix continuous query functionality in the api
Browse files Browse the repository at this point in the history
The endpoints that were used previously are now deprecated and
removed. This commit uses the query language instead of the endpoint to
provide the same set of features.

fix influxdata#1058.
  • Loading branch information
toddboom authored and jvshahid committed Oct 27, 2014
1 parent 2808814 commit 46ded4f
Show file tree
Hide file tree
Showing 15 changed files with 39 additions and 34 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@

### Bugfixes

- [Issue #1058](https://github.com/influxdb/influxdb/issues/1058). Use
the query language instead of the continuous query endpoints that
were removed in 0.8.4
- [Issue #1022](https://github.com/influxdb/influxdb/issues/1022). Return
an +Inf or NaN instead of panicing when we encounter a divide by zero
- [Issue #821](https://github.com/influxdb/influxdb/issues/821). Don't
Expand All @@ -15,10 +18,12 @@
timestamps when the collectd is used and low resolution timestamps
is set.

## v0.8.4-rc.2 [2014-10-24]
## v0.8.4 [2014-10-24]

### Bugfixes

- Remove the continuous query api endpoints since the query language
has all the features needed to list and delete continuous queries.
- [Issue #778](https://github.com/influxdb/influxdb/issues/778). Selecting
from a non-existent series should give a better error message indicating
that the series doesn't exist
Expand Down
2 changes: 1 addition & 1 deletion shared/admin/help/queries.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ <h3>Example Queries</h3>
<pre class="highlight sql">
<span class="k">select</span> <span class="n">value</span> <span class="k">from</span> <span class="n">response_times</span><span class="p">;</span>

<span class="k">select</span> <span class="n">value</span> <span class="k">from</span> <span class="n">response_times</span> <span class="k">where</span> <span class="n">time</span> <span class="o">&gt;</span> <span class="s1">'2013-08-12 23:32:01.232'</span> <span class="k">and</span> <span class="n">time</span> <span class="o">&lt;</span> <span class="s1">'2013-08-13'</span><span class="p">;</span>
<span class="k">select</span> <span class="n">value</span> <span class="k">from</span> <span class="n">response_times</span> <span class="k">where</span> <span class="n">time</span> <span class="o">&gt;</span> <span class="s1">&#39;2013-08-12 23:32:01.232&#39;</span> <span class="k">and</span> <span class="n">time</span> <span class="o">&lt;</span> <span class="s1">&#39;2013-08-13&#39;</span><span class="p">;</span>

<span class="k">select</span> <span class="k">count</span><span class="p">(</span><span class="k">type</span><span class="p">)</span> <span class="k">from</span> <span class="n">events</span> <span class="k">group</span> <span class="k">by</span> <span class="n">time</span><span class="p">(</span><span class="mi">10</span><span class="n">m</span><span class="p">);</span>

Expand Down
2 changes: 1 addition & 1 deletion shared/admin/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion shared/admin/interfaces/default/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html><head><meta charset="utf-8" /><meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible" /><title>InfluxDB Administration</title><link href="/stylesheets/interfaces/default.css" media="screen" rel="stylesheet" type="text/css" /><script src="/javascripts/interfaces/default.js" type="text/javascript"></script></head><body class="interfaces interfaces_default interfaces_default_index"><section class="main"><div class="row"><div class="twelve columns"><div ng-app="adminApp" ng-controller="AdminIndexCtrl"><div class="row"><div class="twelve columns"><h2>Data Interface</h2><form><fieldset><legend>Read Points</legend><label>Query</label><input ng-model="readQuery" placeholder="SELECT ..." type="text" /><p class="input_help">InfluxDB features a &nbsp;<a class="modal-help-link" href="/help/queries.html" id="queryHelp" target="_self">SQL-like query language</a></p><button class="tiny button" ng-click="readData()">Execute Query</button><span class="label alert" id="queryFailure" style="display:none; margin-left:20px;">{{queryMessage}}</span></fieldset></form><div ng-repeat="datum in data"><h4>{{datum.name}}</h4><line-chart data="graph.points" ng-repeat="graph in datum.graphs" series-name="graph.name"></line-chart><table class="columns twelve"><thead><tr><th ng-repeat="column in datum.columns">{{column}}</th></tr></thead><tbody><tr ng-repeat="point in datum.points"><td ng-repeat="value in point track by $index">{{value}}</td></tr></tbody></table></div><form><fieldset><legend>Write Point</legend><label>Time Series Name</label><input ng-model="writeSeriesName" type="text" /><label>Values</label><textarea ng-model="writeValues" placeholder="{ ... }"></textarea><button class="tiny button" ng-click="writeData()">Write Point</button><span class="label success" id="writeSuccess" style="display:none; margin-left:20px;">{{successMessage}}</span><span class="label alert" id="writeFailure" style="display:none; margin-left:20px;">{{alertMessage}}</span></fieldset></form></div></div></div></div></div></section></body></html>
<!DOCTYPE html><html><head><meta charset="utf-8" /><meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible" /><title>InfluxDB Administration</title><link href="../../stylesheets/interfaces/default.css" media="screen" rel="stylesheet" type="text/css" /><script src="../../javascripts/interfaces/default.js" type="text/javascript"></script></head><body class="interfaces interfaces_default interfaces_default_index"><section class="main"><div class="row"><div class="twelve columns"><div ng-app="adminApp" ng-controller="AdminIndexCtrl"><div class="row"><div class="twelve columns"><h2>Data Interface</h2><form><fieldset><legend>Read Points</legend><label>Query</label><input ng-model="readQuery" placeholder="SELECT ..." type="text" /><p class="input_help">InfluxDB features a &nbsp;<a class="modal-help-link" href="/help/queries.html" id="queryHelp" target="_self">SQL-like query language</a></p><button class="tiny button" ng-click="readData()">Execute Query</button><span class="label alert" id="queryFailure" style="display:none; margin-left:20px;">{{queryMessage}}</span></fieldset></form><div ng-repeat="datum in data"><h4>{{datum.name}}</h4><line-chart data="graph.points" ng-repeat="graph in datum.graphs" series-name="graph.name"></line-chart><table class="columns twelve"><thead><tr><th ng-repeat="column in datum.columns">{{column}}</th></tr></thead><tbody><tr ng-repeat="point in datum.points"><td ng-repeat="value in point track by $index">{{value}}</td></tr></tbody></table></div><form><fieldset><legend>Write Point</legend><label>Time Series Name</label><input ng-model="writeSeriesName" type="text" /><label>Values</label><textarea ng-model="writeValues" placeholder="{ ... }"></textarea><button class="tiny button" ng-click="writeData()">Write Point</button><span class="label success" id="writeSuccess" style="display:none; margin-left:20px;">{{successMessage}}</span><span class="label alert" id="writeFailure" style="display:none; margin-left:20px;">{{alertMessage}}</span></fieldset></form></div></div></div></div></div></section></body></html>
2 changes: 1 addition & 1 deletion shared/admin/javascripts/admin.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion shared/admin/javascripts/all.js

Large diffs are not rendered by default.

Loading

0 comments on commit 46ded4f

Please sign in to comment.