package de.ivu.elect.jee.performance;

import java.io.Serializable;
import java.util.List;

import com.google.gson.Gson;

public class ViewAccessStatistics implements Serializable {

  private final long timestamp;

  private final List<ViewAccessTargetStatistics> statistics;

  public ViewAccessStatistics(long timestamp, List<ViewAccessTargetStatistics> statistics) {
    this.timestamp = timestamp;
    this.statistics = statistics;
  }

  public long getTimestamp() {
    return timestamp;
  }

  public List<ViewAccessTargetStatistics> getStatistics() {
    return statistics;
  }

  public String toJson() {
    return new Gson().toJson(this);
  }


}
