class LongTimeSeries implements TimeSeries<Long> {

    public void upsert(final Instant instant, final long count) {
        final long bucket = toLong(timeBucket, instant.toEpochMilli());
        timeSeries.merge(bucket, count, (x, y) -> x + y);
    }

    public  LongTimeSeries(final TimeBucket timeBucket);
    @JsonCreator public  LongTimeSeries(@JsonProperty("timeBucket") final TimeBucket timeBucket,
                          @JsonProperty("timeSeries") final Map<Instant, Long> timeSeries);

}