From 86e921b2e4a24d908b5f9de659e35bd579a02526 Mon Sep 17 00:00:00 2001 From: Mihai Bojin Date: Mon, 10 Apr 2017 13:54:15 +0100 Subject: [PATCH] Fixed bug in transform's Jackson annotated constructor --- .../etl/transform/standard/ThresholdMetForDuration.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/duct/src/main/java/com/salesforce/pyplyn/duct/etl/transform/standard/ThresholdMetForDuration.java b/duct/src/main/java/com/salesforce/pyplyn/duct/etl/transform/standard/ThresholdMetForDuration.java index 859482b..1d82f33 100644 --- a/duct/src/main/java/com/salesforce/pyplyn/duct/etl/transform/standard/ThresholdMetForDuration.java +++ b/duct/src/main/java/com/salesforce/pyplyn/duct/etl/transform/standard/ThresholdMetForDuration.java @@ -79,7 +79,11 @@ public class ThresholdMetForDuration implements Transform, Serializable { * @param infoDurationMillis Duration after which the status becomes "info" */ @JsonCreator - public ThresholdMetForDuration(Double threshold, Type type, Long criticalDurationMillis, Long warnDurationMillis, Long infoDurationMillis) { + public ThresholdMetForDuration(@JsonProperty("threshold") Double threshold, + @JsonProperty("type") Type type, + @JsonProperty("criticalDurationMillis") Long criticalDurationMillis, + @JsonProperty("warnDurationMillis") Long warnDurationMillis, + @JsonProperty("infoDurationMillis") Long infoDurationMillis) { this.threshold = threshold; this.type = type; this.criticalDurationMillis = criticalDurationMillis;