We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88b9c68 commit 1b8e82fCopy full SHA for 1b8e82f
influxdb-client/QueryResult.m
@@ -25,12 +25,16 @@
25
26
% Find series by name, matching tags
27
function series = series(obj, name, varargin)
28
- idx = obj.indexOf(name);
29
- assert(~isempty(idx), ['series "' name '" is not present']);
30
- series = obj.Series(idx);
31
- if nargin > 2
32
- tags = struct(varargin{:});
33
- series = obj.filterByTags(series, tags);
+ if nargin < 2
+ series = obj.Series;
+ else
+ idx = obj.indexOf(name);
+ assert(~isempty(idx), ['series "' name '" is not present']);
+ series = obj.Series(idx);
34
+ if nargin > 2
35
+ tags = struct(varargin{:});
36
+ series = obj.filterByTags(series, tags);
37
+ end
38
end
39
40
0 commit comments