setup
This commit is contained in:
17
models/common/models/metric.go
Normal file
17
models/common/models/metric.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package models
|
||||
|
||||
type MetricsSnapshot struct {
|
||||
From string `json:"origin"`
|
||||
Metrics []Metric `json:"metrics"`
|
||||
}
|
||||
|
||||
type Metric struct {
|
||||
Name string `json:"name"`
|
||||
Value float64 `json:"value"`
|
||||
Error error `json:"error"`
|
||||
}
|
||||
|
||||
type MetricResume struct {
|
||||
Delta float64 `json:"delta"`
|
||||
LastValue float64 `json:"last_value"`
|
||||
}
|
||||
0
models/common/planner.go
Normal file → Executable file
0
models/common/planner.go
Normal file → Executable file
Reference in New Issue
Block a user