/
usage.go
19 lines (17 loc) · 917 Bytes
/
usage.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2019 Blues Inc. All rights reserved.
// Use of this source code is governed by licenses granted by the
// copyright holder including that found in the LICENSE file.
package note
// DeviceUsage is the device usage metric representing values from the beginning of time, since Provisioned
type DeviceUsage struct {
Since int64 `json:"since,omitempty"`
DurationSecs uint32 `json:"duration,omitempty"`
RcvdBytes uint32 `json:"bytes_rcvd,omitempty"`
SentBytes uint32 `json:"bytes_sent,omitempty"`
RcvdBytesSecondary uint32 `json:"bytes_rcvd_secondary,omitempty"`
SentBytesSecondary uint32 `json:"bytes_sent_secondary,omitempty"`
TCPSessions uint32 `json:"sessions_tcp,omitempty"`
TLSSessions uint32 `json:"sessions_tls,omitempty"`
RcvdNotes uint32 `json:"notes_rcvd,omitempty"`
SentNotes uint32 `json:"notes_sent,omitempty"`
}