Created
December 12, 2018 09:02
-
-
Save abhirockzz/7fe240278a890849d24167ee0ec174da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* POJO representing a single CPU metric | |
*/ | |
@XmlRootElement | |
@XmlAccessorType(XmlAccessType.FIELD) | |
public class Metric { | |
private String machine; | |
private String cpu; | |
private String source; | |
public Metric() { | |
} | |
public Metric(String source,String machine, String cpu) { | |
this.machine = machine; | |
this.cpu = cpu; | |
this.source = source; | |
} | |
@Override | |
public String toString() { | |
return "Metric{" + "machine=" + machine + ", cpu=" + cpu + ", source=" + source + '}'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment