Skip to content

Instantly share code, notes, and snippets.

@abhirockzz
Created December 12, 2018 09:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhirockzz/7fe240278a890849d24167ee0ec174da to your computer and use it in GitHub Desktop.
Save abhirockzz/7fe240278a890849d24167ee0ec174da to your computer and use it in GitHub Desktop.
/**
* 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