Added measurements, and devices statsh
Added stats endpoints
This commit is contained in:
@@ -36,6 +36,12 @@ type DeviceInfoResponse struct {
|
||||
ExternalDeviceID string `json:"externalDeviceId"`
|
||||
}
|
||||
|
||||
type NormalAndBreachedDevicesResponse struct {
|
||||
Breached int64 `json:"breached"`
|
||||
Normal int64 `json:"normal"`
|
||||
MonthlyCounts map[string]map[string]int64 `json:"monthly_counts"`
|
||||
}
|
||||
|
||||
func ConvertDeviceInfoToResponse(deviceInfos []DeviceInfo) []DeviceInfoResponse {
|
||||
var deviceInfoResponses []DeviceInfoResponse
|
||||
for _, deviceInfo := range deviceInfos {
|
||||
|
||||
Reference in New Issue
Block a user