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
407c350d3c
commit
c2e2b7e554
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