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

Commit

Permalink
Fixed bug in transform's Jackson annotated constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihai Bojin committed Apr 10, 2017
1 parent 52c5e3a commit 86e921b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 86e921b

Please sign in to comment.