import Memory from "./metrics/memory";
import Cpu from "./metrics/cpu";
import Sensor from "./metrics/sensor";
import Net from "./metrics/net";
import Process from "./metrics/process";
import Disk from "./metrics/disk";
export default function Component({ service }) {
const { widget } = service;
if (widget.metric === "memory") {
return ;
}
if (widget.metric === "process") {
return ;
}
if (widget.metric.match(/^network:/)) {
return ;
}
if (widget.metric.match(/^sensor:/)) {
return ;
}
if (widget.metric.match(/^disk:/)) {
return ;
}
if (widget.metric === "cpu") {
return ;
}
}