All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pro.panopticon.client.model.Measurement Maven / Gradle / Ivy

package pro.panopticon.client.model;

import com.amazonaws.services.cloudwatch.model.StandardUnit;

public class Measurement {
    public String key;
    public String status;
    public String displayValue;
    public CloudwatchValue cloudwatchValue;

    public Measurement(String key, String status, String displayValue, CloudwatchValue cloudwatchValue) {
        this.key = key;
        this.status = status;
        this.displayValue = displayValue;
        this.cloudwatchValue = cloudwatchValue;
    }

    public Measurement(String key, String status, String displayValue) {
        this(key, status, displayValue, null);
    }

    @Override
    public String toString() {
        return "Measurement{" +
                "key='" + key + '\'' +
                ", status='" + status + '\'' +
                ", displayValue='" + displayValue + '\'' +
                ", cloudwatchValue=" + cloudwatchValue +
                '}';
    }

    public static class CloudwatchValue {
        public final double value;
        public final StandardUnit unit;

        public CloudwatchValue(double value, StandardUnit unit) {
            this.value = value;
            this.unit = unit;
        }

    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy