Added measurements, and devices statsh
Added stats endpoints
This commit is contained in:
@@ -265,6 +265,12 @@ type Status struct {
|
||||
Value string `json:"value"`
|
||||
}
|
||||
|
||||
type ActiveContractsResponse struct {
|
||||
ActiveCount int64 `json:"active"`
|
||||
ExecutedCount int64 `json:"executed"`
|
||||
MonthlyContracts map[string]map[string]int64 `json:"monthly"`
|
||||
}
|
||||
|
||||
func GetContractStatuses() []Status {
|
||||
return []Status{
|
||||
{Value: "Active", Key: "active"},
|
||||
|
||||
Reference in New Issue
Block a user