forked from phc/cluster-dashboard
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
453 B
Go
17 lines
453 B
Go
package executor
|
|
|
|
import "time"
|
|
|
|
// Service is a service that handles executing commands on the main host and does a first processing of the raw data it gets from the system
|
|
type Service interface {
|
|
SlurmQueue() []string
|
|
SlurmJobs() []string
|
|
|
|
NodeUptime(hostname string) time.Time
|
|
|
|
Temperature(hostname string) float64
|
|
MemoryUsage(hostname string) int64
|
|
StorageUsage(hostname string) int64
|
|
NetworkUploadDownload(hostname string) (int64, int64)
|
|
}
|