blob: 31df1648e18db5ed6010db1dac833e174d88ef6f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
package org.onap.sdc.dcae.rule.editor.translators;
import org.onap.sdc.dcae.composition.restmodels.ruleeditor.HpMetricAction;
public class HpMetricTranslator extends ActionTranslator<HpMetricAction> {
private static HpMetricTranslator hpMetricTranslator = new HpMetricTranslator();
public static HpMetricTranslator getInstance() {
return hpMetricTranslator;
}
private HpMetricTranslator(){}
public Object translateToHpJson(HpMetricAction action) {
return new CopyActionSetTranslation("parserType", action.getSelectedHpMetric());
}
}
|