Moved schedulers from the main programs to schedulers package. Can now choose different scheduelrs to use. Work on code sharing between schedulers remains to be done.
This commit is contained in:
parent
87892ba13b
commit
fce62981da
9 changed files with 575 additions and 323 deletions
8
def/metric.go
Normal file
8
def/metric.go
Normal file
|
@ -0,0 +1,8 @@
|
|||
package def
|
||||
|
||||
type Metric struct {
|
||||
Name string `json:"name"`
|
||||
CPU float64 `json:"cpu"`
|
||||
RAM float64 `json:"ram"`
|
||||
Watts float64 `json:"watts"`
|
||||
}
|
Reference in a new issue