package org.opennms.newts.api;

import static com.google.common.base.Preconditions.checkNotNull;

import java.util.Map;


public class Measurement {

    private final Timestamp m_timestamp;
    private final String m_resource;
    private final String m_name;
    private final MetricType m_type;
    private final double m_value;
    private final Map<String, String> m_attributes;

    public Measurement(Timestamp timestamp, String resource, String name, MetricType type, double value) {
        this(timestamp, resource, name, type, value, null);
    }

    public Measurement(Timestamp timestamp, String resource, String name, MetricType type, double value, Map<String, String> attributes) {
        m_timestamp = checkNotNull(timestamp, "timestamp");
        m_resource = checkNotNull(resource, "resource");
        m_name = checkNotNull(name, "name");
        m_type = checkNotNull(type, "type");
        m_value = checkNotNull(value, "value");
        m_attributes = attributes;
    }

    public Timestamp getTimestamp() {
        return m_timestamp;
    }

    public String getResource() {
        return m_resource;
    }

    public String getName() {
        return m_name;
    }

    public MetricType getType() {
        return m_type;
    }

    public double getValue() {
        return m_value;
    }

    Map<String, String> getAttributes() {
        return m_attributes;
    }

}

@@ -1319,16 +1319,23 @@
  %7D%0A%0A    
+public 
 Map%3CStri

make accessor public