Added measurements, and devices statsh

Added stats endpoints
This commit is contained in:
Nedim
2023-10-20 12:03:59 +02:00
parent 6892c56c1e
commit d40b225e4e
12 changed files with 1120 additions and 5 deletions

View File

@@ -110,6 +110,12 @@ type KeyValue struct {
Value string `json:"value"`
}
type ActiveInvoiceResponse struct {
Claimed int64 `json:"issued"`
Issued int64 `json:"claimed"`
MonthlyInvoices map[string]map[string]int64 `json:"monthly"`
}
func GetInvoiceStatuses() []Status {
return []Status{
{Key: "Insurance claimed", Value: "insurance_claimed"},