Skip to content

Latest commit

 

History

History
333 lines (182 loc) · 13.1 KB

File metadata and controls

333 lines (182 loc) · 13.1 KB

UsageEventsData

Properties

Name Type Description Notes
BillableEvents Pointer to int64 Events that are billable, this include all events except platform events [optional]
Device Pointer to string [optional]
Fleet Pointer to string [optional]
Notefiles Pointer to map[string]int64 Count of events per notefile. Only present when includeNotefiles=true is specified. [optional]
Period time.Time
PlatformEvents int64 Total platform events. Platform events are _log, _session, _health, and _geolocate events some of which are send from the device, some generated by notehub. These events are not billed.
TotalDaysInPeriod Pointer to int32 The total number of days in this period. Useful for calculating daily averages for month period. Note that the current period will be the total number of days in the current period, including days in the future. [optional]
TotalDevices int64 Total devices represented in this count
TotalEvents int64 Total events the device sent to notehub, including associated notehub generated events
TotalFwUpdates Pointer to NullableInt64 Number of firmware updates in this period (from _health.qo DFU events) [optional]
TotalReboots Pointer to NullableInt64 Number of device reboots in this period (from _health.qo boot events) [optional]
WatchdogEvents int64 Watchdog events are events generated by notehub when a watchdog timer is configured for a device to indicate is has not been online for a period of time. These events are billed but should not be used to indicate a device is active, or connected, at this time.

Methods

NewUsageEventsData

func NewUsageEventsData(period time.Time, platformEvents int64, totalDevices int64, totalEvents int64, watchdogEvents int64, ) *UsageEventsData

NewUsageEventsData instantiates a new UsageEventsData 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

NewUsageEventsDataWithDefaults

func NewUsageEventsDataWithDefaults() *UsageEventsData

NewUsageEventsDataWithDefaults instantiates a new UsageEventsData 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

GetBillableEvents

func (o *UsageEventsData) GetBillableEvents() int64

GetBillableEvents returns the BillableEvents field if non-nil, zero value otherwise.

GetBillableEventsOk

func (o *UsageEventsData) GetBillableEventsOk() (*int64, bool)

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

SetBillableEvents

func (o *UsageEventsData) SetBillableEvents(v int64)

SetBillableEvents sets BillableEvents field to given value.

HasBillableEvents

func (o *UsageEventsData) HasBillableEvents() bool

HasBillableEvents returns a boolean if a field has been set.

GetDevice

func (o *UsageEventsData) GetDevice() string

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

GetDeviceOk

func (o *UsageEventsData) 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 *UsageEventsData) SetDevice(v string)

SetDevice sets Device field to given value.

HasDevice

func (o *UsageEventsData) HasDevice() bool

HasDevice returns a boolean if a field has been set.

GetFleet

func (o *UsageEventsData) GetFleet() string

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

GetFleetOk

func (o *UsageEventsData) 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 *UsageEventsData) SetFleet(v string)

SetFleet sets Fleet field to given value.

HasFleet

func (o *UsageEventsData) HasFleet() bool

HasFleet returns a boolean if a field has been set.

GetNotefiles

func (o *UsageEventsData) GetNotefiles() map[string]int64

GetNotefiles returns the Notefiles field if non-nil, zero value otherwise.

GetNotefilesOk

func (o *UsageEventsData) GetNotefilesOk() (*map[string]int64, bool)

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

SetNotefiles

func (o *UsageEventsData) SetNotefiles(v map[string]int64)

SetNotefiles sets Notefiles field to given value.

HasNotefiles

func (o *UsageEventsData) HasNotefiles() bool

HasNotefiles returns a boolean if a field has been set.

GetPeriod

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

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

GetPeriodOk

func (o *UsageEventsData) 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 *UsageEventsData) SetPeriod(v time.Time)

SetPeriod sets Period field to given value.

GetPlatformEvents

func (o *UsageEventsData) GetPlatformEvents() int64

GetPlatformEvents returns the PlatformEvents field if non-nil, zero value otherwise.

GetPlatformEventsOk

func (o *UsageEventsData) GetPlatformEventsOk() (*int64, bool)

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

SetPlatformEvents

func (o *UsageEventsData) SetPlatformEvents(v int64)

SetPlatformEvents sets PlatformEvents field to given value.

GetTotalDaysInPeriod

func (o *UsageEventsData) GetTotalDaysInPeriod() int32

GetTotalDaysInPeriod returns the TotalDaysInPeriod field if non-nil, zero value otherwise.

GetTotalDaysInPeriodOk

func (o *UsageEventsData) GetTotalDaysInPeriodOk() (*int32, bool)

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

SetTotalDaysInPeriod

func (o *UsageEventsData) SetTotalDaysInPeriod(v int32)

SetTotalDaysInPeriod sets TotalDaysInPeriod field to given value.

HasTotalDaysInPeriod

func (o *UsageEventsData) HasTotalDaysInPeriod() bool

HasTotalDaysInPeriod returns a boolean if a field has been set.

GetTotalDevices

func (o *UsageEventsData) GetTotalDevices() int64

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

GetTotalDevicesOk

func (o *UsageEventsData) 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 *UsageEventsData) SetTotalDevices(v int64)

SetTotalDevices sets TotalDevices field to given value.

GetTotalEvents

func (o *UsageEventsData) GetTotalEvents() int64

GetTotalEvents returns the TotalEvents field if non-nil, zero value otherwise.

GetTotalEventsOk

func (o *UsageEventsData) GetTotalEventsOk() (*int64, bool)

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

SetTotalEvents

func (o *UsageEventsData) SetTotalEvents(v int64)

SetTotalEvents sets TotalEvents field to given value.

GetTotalFwUpdates

func (o *UsageEventsData) GetTotalFwUpdates() int64

GetTotalFwUpdates returns the TotalFwUpdates field if non-nil, zero value otherwise.

GetTotalFwUpdatesOk

func (o *UsageEventsData) GetTotalFwUpdatesOk() (*int64, bool)

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

SetTotalFwUpdates

func (o *UsageEventsData) SetTotalFwUpdates(v int64)

SetTotalFwUpdates sets TotalFwUpdates field to given value.

HasTotalFwUpdates

func (o *UsageEventsData) HasTotalFwUpdates() bool

HasTotalFwUpdates returns a boolean if a field has been set.

SetTotalFwUpdatesNil

func (o *UsageEventsData) SetTotalFwUpdatesNil(b bool)

SetTotalFwUpdatesNil sets the value for TotalFwUpdates to be an explicit nil

UnsetTotalFwUpdates

func (o *UsageEventsData) UnsetTotalFwUpdates()

UnsetTotalFwUpdates ensures that no value is present for TotalFwUpdates, not even an explicit nil

GetTotalReboots

func (o *UsageEventsData) GetTotalReboots() int64

GetTotalReboots returns the TotalReboots field if non-nil, zero value otherwise.

GetTotalRebootsOk

func (o *UsageEventsData) GetTotalRebootsOk() (*int64, bool)

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

SetTotalReboots

func (o *UsageEventsData) SetTotalReboots(v int64)

SetTotalReboots sets TotalReboots field to given value.

HasTotalReboots

func (o *UsageEventsData) HasTotalReboots() bool

HasTotalReboots returns a boolean if a field has been set.

SetTotalRebootsNil

func (o *UsageEventsData) SetTotalRebootsNil(b bool)

SetTotalRebootsNil sets the value for TotalReboots to be an explicit nil

UnsetTotalReboots

func (o *UsageEventsData) UnsetTotalReboots()

UnsetTotalReboots ensures that no value is present for TotalReboots, not even an explicit nil

GetWatchdogEvents

func (o *UsageEventsData) GetWatchdogEvents() int64

GetWatchdogEvents returns the WatchdogEvents field if non-nil, zero value otherwise.

GetWatchdogEventsOk

func (o *UsageEventsData) GetWatchdogEventsOk() (*int64, bool)

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

SetWatchdogEvents

func (o *UsageEventsData) SetWatchdogEvents(v int64)

SetWatchdogEvents sets WatchdogEvents field to given value.

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