Skip to content

Latest commit

 

History

History
243 lines (134 loc) · 8 KB

File metadata and controls

243 lines (134 loc) · 8 KB

UsageSessionsData

Properties

Name Type Description Notes
Device Pointer to string [optional]
FirstSyncSessions int64 Number of first sync sessions in this period
Fleet Pointer to string [optional]
Period time.Time
Sessions int64
SessionsByTransport Pointer to map[string]int64 Count of sessions grouped by transport type prefix (e.g. cell, wifi, ntn, lorawan) [optional]
TlsSessions Pointer to NullableInt64 Number of TLS sessions in this period [optional]
TotalBytes int64
TotalDevices int64

Methods

NewUsageSessionsData

func NewUsageSessionsData(firstSyncSessions int64, period time.Time, sessions int64, totalBytes int64, totalDevices int64, ) *UsageSessionsData

NewUsageSessionsData instantiates a new UsageSessionsData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

NewUsageSessionsDataWithDefaults

func NewUsageSessionsDataWithDefaults() *UsageSessionsData

NewUsageSessionsDataWithDefaults instantiates a new UsageSessionsData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

GetDevice

func (o *UsageSessionsData) GetDevice() string

GetDevice returns the Device field if non-nil, zero value otherwise.

GetDeviceOk

func (o *UsageSessionsData) GetDeviceOk() (*string, bool)

GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetDevice

func (o *UsageSessionsData) SetDevice(v string)

SetDevice sets Device field to given value.

HasDevice

func (o *UsageSessionsData) HasDevice() bool

HasDevice returns a boolean if a field has been set.

GetFirstSyncSessions

func (o *UsageSessionsData) GetFirstSyncSessions() int64

GetFirstSyncSessions returns the FirstSyncSessions field if non-nil, zero value otherwise.

GetFirstSyncSessionsOk

func (o *UsageSessionsData) GetFirstSyncSessionsOk() (*int64, bool)

GetFirstSyncSessionsOk returns a tuple with the FirstSyncSessions field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetFirstSyncSessions

func (o *UsageSessionsData) SetFirstSyncSessions(v int64)

SetFirstSyncSessions sets FirstSyncSessions field to given value.

GetFleet

func (o *UsageSessionsData) GetFleet() string

GetFleet returns the Fleet field if non-nil, zero value otherwise.

GetFleetOk

func (o *UsageSessionsData) GetFleetOk() (*string, bool)

GetFleetOk returns a tuple with the Fleet field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetFleet

func (o *UsageSessionsData) SetFleet(v string)

SetFleet sets Fleet field to given value.

HasFleet

func (o *UsageSessionsData) HasFleet() bool

HasFleet returns a boolean if a field has been set.

GetPeriod

func (o *UsageSessionsData) GetPeriod() time.Time

GetPeriod returns the Period field if non-nil, zero value otherwise.

GetPeriodOk

func (o *UsageSessionsData) GetPeriodOk() (*time.Time, bool)

GetPeriodOk returns a tuple with the Period field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetPeriod

func (o *UsageSessionsData) SetPeriod(v time.Time)

SetPeriod sets Period field to given value.

GetSessions

func (o *UsageSessionsData) GetSessions() int64

GetSessions returns the Sessions field if non-nil, zero value otherwise.

GetSessionsOk

func (o *UsageSessionsData) GetSessionsOk() (*int64, bool)

GetSessionsOk returns a tuple with the Sessions field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetSessions

func (o *UsageSessionsData) SetSessions(v int64)

SetSessions sets Sessions field to given value.

GetSessionsByTransport

func (o *UsageSessionsData) GetSessionsByTransport() map[string]int64

GetSessionsByTransport returns the SessionsByTransport field if non-nil, zero value otherwise.

GetSessionsByTransportOk

func (o *UsageSessionsData) GetSessionsByTransportOk() (*map[string]int64, bool)

GetSessionsByTransportOk returns a tuple with the SessionsByTransport field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetSessionsByTransport

func (o *UsageSessionsData) SetSessionsByTransport(v map[string]int64)

SetSessionsByTransport sets SessionsByTransport field to given value.

HasSessionsByTransport

func (o *UsageSessionsData) HasSessionsByTransport() bool

HasSessionsByTransport returns a boolean if a field has been set.

GetTlsSessions

func (o *UsageSessionsData) GetTlsSessions() int64

GetTlsSessions returns the TlsSessions field if non-nil, zero value otherwise.

GetTlsSessionsOk

func (o *UsageSessionsData) GetTlsSessionsOk() (*int64, bool)

GetTlsSessionsOk returns a tuple with the TlsSessions field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetTlsSessions

func (o *UsageSessionsData) SetTlsSessions(v int64)

SetTlsSessions sets TlsSessions field to given value.

HasTlsSessions

func (o *UsageSessionsData) HasTlsSessions() bool

HasTlsSessions returns a boolean if a field has been set.

SetTlsSessionsNil

func (o *UsageSessionsData) SetTlsSessionsNil(b bool)

SetTlsSessionsNil sets the value for TlsSessions to be an explicit nil

UnsetTlsSessions

func (o *UsageSessionsData) UnsetTlsSessions()

UnsetTlsSessions ensures that no value is present for TlsSessions, not even an explicit nil

GetTotalBytes

func (o *UsageSessionsData) GetTotalBytes() int64

GetTotalBytes returns the TotalBytes field if non-nil, zero value otherwise.

GetTotalBytesOk

func (o *UsageSessionsData) GetTotalBytesOk() (*int64, bool)

GetTotalBytesOk returns a tuple with the TotalBytes field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetTotalBytes

func (o *UsageSessionsData) SetTotalBytes(v int64)

SetTotalBytes sets TotalBytes field to given value.

GetTotalDevices

func (o *UsageSessionsData) GetTotalDevices() int64

GetTotalDevices returns the TotalDevices field if non-nil, zero value otherwise.

GetTotalDevicesOk

func (o *UsageSessionsData) GetTotalDevicesOk() (*int64, bool)

GetTotalDevicesOk returns a tuple with the TotalDevices field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetTotalDevices

func (o *UsageSessionsData) SetTotalDevices(v int64)

SetTotalDevices sets TotalDevices field to given value.

[Back to Model list] [Back to API list] [Back to README]