Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

Commit

Permalink
Merge 60ed46f into 2551691
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Lautenschlager committed Oct 30, 2017
2 parents 2551691 + 60ed46f commit 1ed0d2c
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ public ChronixFunction getFunction(String function, String[] args) {
return new Timeshift(args);
case "distinct":
return new Distinct();
case "resample":
return new Resample();
//Analyses
case "outlier":
return new Outlier();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*
* Copyright (C) 2016 QAware GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package de.qaware.chronix.solr.type.metric.functions.transformation;

import de.qaware.chronix.server.functions.ChronixTransformation;
import de.qaware.chronix.server.functions.FunctionValueMap;
import de.qaware.chronix.timeseries.MetricTimeSeries;

public class Resample implements ChronixTransformation<MetricTimeSeries> {
@Override
public void execute(MetricTimeSeries timeSeries, FunctionValueMap functionValueMap) {

//todo: resample the time series here.


functionValueMap.add(this);
}

@Override
public String getQueryName() {
return "resample";
}

@Override
public String getTimeSeriesType() {
return "metric";
}
}

0 comments on commit 1ed0d2c

Please sign in to comment.