package com.cisco.trex.stateless.model.stats;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.HashMap;
import java.util.Map;

@JsonIgnoreProperties(ignoreUnknown = true)
public class LatencyStatLat {
  @JsonProperty("average")
  private double average = 0;

  @JsonProperty("histogram")
  private Map<String, Long> histogram = new HashMap<>();

  @JsonProperty("jit")
  private long jit = 0;

  @JsonProperty("last_max")
  private long lastMax = 0;

  @JsonProperty("total_max")
  private long totalMax = 0;

  @JsonProperty("average")
  public double getAverage() {
    return average;
  }

  @JsonProperty("average")
  public void setAverage(final double average) {
    this.average = average;
  }

  @JsonProperty("histogram")
  public Map<String, Long> getHistogram() {
    return histogram;
  }

  @JsonProperty("histogram")
  public void setHistogram(final Map<String, Long> histogram) {
    this.histogram = histogram;
  }

  @JsonProperty("jit")
  public long getJit() {
    return jit;
  }

  @JsonProperty("jit")
  public void setJit(final long jit) {
    this.jit = jit;
  }

  @JsonProperty("last_max")
  public long getLastMax() {
    return lastMax;
  }

  @JsonProperty("last_max")
  public void setLastMax(final long lastMax) {
    this.lastMax = lastMax;
  }

  @JsonProperty("total_max")
  public long getTotalMax() {
    return totalMax;
  }

  @JsonProperty("total_max")
  public void setTotalMax(final long totalMax) {
    this.totalMax = totalMax;
  }
}

@@ -580,32 +580,91 @@
  totalMax = 0;%0A%0A
+  @JsonProperty(%22total_min%22)%0A  private long totalMin = 0;%0A%0A
   @JsonProperty(
@@ -1611,11 +1611,209 @@
 Max;%0A  %7D
+%0A%0A  @JsonProperty(%22total_min%22)%0A  public long getTotalMin() %7B%0A    return totalMin;%0A  %7D%0A%0A  @JsonProperty(%22total_min%22)%0A  public void setTotalMin(final long totalMin) %7B%0A    this.totalMin = totalMin;%0A  %7D
 %0A%7D%0A

Add support for latency measurement for STL traffic