diff --git a/docs/FirmwareInfo.md b/docs/FirmwareInfo.md index 39242c3..7087558 100644 --- a/docs/FirmwareInfo.md +++ b/docs/FirmwareInfo.md @@ -2,20 +2,22 @@ ## Properties -| Name | Type | Description | Notes | -| ---------------- | --------------------- | -------------------------------------------- | ---------- | -| **Built** | Pointer to **string** | The date the firmware was built. | [optional] | -| **Created** | Pointer to **string** | The date the firmware was created. | [optional] | -| **Description** | Pointer to **string** | A description of the firmware. | [optional] | -| **Filename** | Pointer to **string** | The name of the firmware file. | [optional] | -| **Md5** | Pointer to **string** | The MD5 hash of the firmware file. | [optional] | -| **Organization** | Pointer to **string** | The organization that owns the firmware. | [optional] | -| **Product** | Pointer to **string** | The product that the firmware is for. | [optional] | -| **Published** | Pointer to **bool** | True if the firmware is published. | [optional] | -| **Tags** | Pointer to **string** | A list of tags associated with the firmware. | [optional] | -| **Target** | Pointer to **string** | The target device for the firmware. | [optional] | -| **Type** | Pointer to **string** | The type of firmware. | [optional] | -| **Version** | Pointer to **string** | The version of the firmware. | [optional] | +| Name | Type | Description | Notes | +| ---------------- | ------------------------------------- | -------------------------------------------- | ---------- | +| **Built** | Pointer to **string** | The date the firmware was built. | [optional] | +| **Created** | Pointer to **string** | The date the firmware was created. | [optional] | +| **Description** | Pointer to **string** | A description of the firmware. | [optional] | +| **Filename** | Pointer to **string** | The name of the firmware file. | [optional] | +| **Info** | Pointer to **map[string]interface{}** | User-defined metadata | [optional] | +| **Md5** | Pointer to **string** | The MD5 hash of the firmware file. | [optional] | +| **Notes** | Pointer to **string** | User-defined notes | [optional] | +| **Organization** | Pointer to **string** | The organization that owns the firmware. | [optional] | +| **Product** | Pointer to **string** | The product that the firmware is for. | [optional] | +| **Published** | Pointer to **bool** | True if the firmware is published. | [optional] | +| **Tags** | Pointer to **string** | A list of tags associated with the firmware. | [optional] | +| **Target** | Pointer to **string** | The target device for the firmware. | [optional] | +| **Type** | Pointer to **string** | The type of firmware. | [optional] | +| **Version** | Pointer to **string** | The version of the firmware. | [optional] | ## Methods @@ -136,6 +138,31 @@ SetFilename sets Filename field to given value. HasFilename returns a boolean if a field has been set. +### GetInfo + +`func (o *FirmwareInfo) GetInfo() map[string]interface{}` + +GetInfo returns the Info field if non-nil, zero value otherwise. + +### GetInfoOk + +`func (o *FirmwareInfo) GetInfoOk() (*map[string]interface{}, bool)` + +GetInfoOk returns a tuple with the Info field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInfo + +`func (o *FirmwareInfo) SetInfo(v map[string]interface{})` + +SetInfo sets Info field to given value. + +### HasInfo + +`func (o *FirmwareInfo) HasInfo() bool` + +HasInfo returns a boolean if a field has been set. + ### GetMd5 `func (o *FirmwareInfo) GetMd5() string` @@ -161,6 +188,31 @@ SetMd5 sets Md5 field to given value. HasMd5 returns a boolean if a field has been set. +### GetNotes + +`func (o *FirmwareInfo) GetNotes() string` + +GetNotes returns the Notes field if non-nil, zero value otherwise. + +### GetNotesOk + +`func (o *FirmwareInfo) GetNotesOk() (*string, bool)` + +GetNotesOk returns a tuple with the Notes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotes + +`func (o *FirmwareInfo) SetNotes(v string)` + +SetNotes sets Notes field to given value. + +### HasNotes + +`func (o *FirmwareInfo) HasNotes() bool` + +HasNotes returns a boolean if a field has been set. + ### GetOrganization `func (o *FirmwareInfo) GetOrganization() string` diff --git a/docs/UsageEventsData.md b/docs/UsageEventsData.md index 3ee5285..332389d 100644 --- a/docs/UsageEventsData.md +++ b/docs/UsageEventsData.md @@ -13,6 +13,8 @@ | **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 @@ -235,6 +237,80 @@ and a boolean to check if the value has been set. 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` diff --git a/docs/UsageRouteLogsData.md b/docs/UsageRouteLogsData.md index 5d52058..a31adb8 100644 --- a/docs/UsageRouteLogsData.md +++ b/docs/UsageRouteLogsData.md @@ -2,13 +2,14 @@ ## Properties -| Name | Type | Description | Notes | -| -------------------- | --------------------- | -------------------------------------------------------------- | ---------- | -| **FailedRoutes** | **int64** | | -| **Period** | **time.Time** | | -| **Route** | Pointer to **string** | The route UID (only present when aggregate is 'route') | [optional] | -| **SuccessfulRoutes** | **int64** | | -| **TotalRoutes** | **int64** | | +| Name | Type | Description | Notes | +| -------------------- | ------------------------------ | ----------------------------------------------------------------------------- | ---------- | +| **AvgLatencyMs** | Pointer to **NullableFloat64** | Average routing latency in milliseconds for route logs with recorded duration | [optional] | +| **FailedRoutes** | **int64** | | +| **Period** | **time.Time** | | +| **Route** | Pointer to **string** | The route UID (only present when aggregate is 'route') | [optional] | +| **SuccessfulRoutes** | **int64** | | +| **TotalRoutes** | **int64** | | ## Methods @@ -29,6 +30,43 @@ NewUsageRouteLogsDataWithDefaults instantiates a new UsageRouteLogsData 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 +### GetAvgLatencyMs + +`func (o *UsageRouteLogsData) GetAvgLatencyMs() float64` + +GetAvgLatencyMs returns the AvgLatencyMs field if non-nil, zero value otherwise. + +### GetAvgLatencyMsOk + +`func (o *UsageRouteLogsData) GetAvgLatencyMsOk() (*float64, bool)` + +GetAvgLatencyMsOk returns a tuple with the AvgLatencyMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvgLatencyMs + +`func (o *UsageRouteLogsData) SetAvgLatencyMs(v float64)` + +SetAvgLatencyMs sets AvgLatencyMs field to given value. + +### HasAvgLatencyMs + +`func (o *UsageRouteLogsData) HasAvgLatencyMs() bool` + +HasAvgLatencyMs returns a boolean if a field has been set. + +### SetAvgLatencyMsNil + +`func (o *UsageRouteLogsData) SetAvgLatencyMsNil(b bool)` + +SetAvgLatencyMsNil sets the value for AvgLatencyMs to be an explicit nil + +### UnsetAvgLatencyMs + +`func (o *UsageRouteLogsData) UnsetAvgLatencyMs()` + +UnsetAvgLatencyMs ensures that no value is present for AvgLatencyMs, not even an explicit nil + ### GetFailedRoutes `func (o *UsageRouteLogsData) GetFailedRoutes() int64` diff --git a/docs/UsageSessionsData.md b/docs/UsageSessionsData.md index 12638a6..8a601ca 100644 --- a/docs/UsageSessionsData.md +++ b/docs/UsageSessionsData.md @@ -2,15 +2,17 @@ ## 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** | | -| **TotalBytes** | **int64** | | -| **TotalDevices** | **int64** | | +| 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 @@ -138,6 +140,68 @@ and a boolean to check if the value has been set. 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` diff --git a/model_firmware_info.go b/model_firmware_info.go index 38e562d..02f5a91 100644 --- a/model_firmware_info.go +++ b/model_firmware_info.go @@ -28,8 +28,12 @@ type FirmwareInfo struct { Description *string `json:"description,omitempty"` // The name of the firmware file. Filename *string `json:"filename,omitempty"` + // User-defined metadata + Info map[string]interface{} `json:"info,omitempty"` // The MD5 hash of the firmware file. Md5 *string `json:"md5,omitempty"` + // User-defined notes + Notes *string `json:"notes,omitempty"` // The organization that owns the firmware. Organization *string `json:"organization,omitempty"` // The product that the firmware is for. @@ -194,6 +198,38 @@ func (o *FirmwareInfo) SetFilename(v string) { o.Filename = &v } +// GetInfo returns the Info field value if set, zero value otherwise. +func (o *FirmwareInfo) GetInfo() map[string]interface{} { + if o == nil || IsNil(o.Info) { + var ret map[string]interface{} + return ret + } + return o.Info +} + +// GetInfoOk returns a tuple with the Info field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FirmwareInfo) GetInfoOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Info) { + return map[string]interface{}{}, false + } + return o.Info, true +} + +// HasInfo returns a boolean if a field has been set. +func (o *FirmwareInfo) HasInfo() bool { + if o != nil && !IsNil(o.Info) { + return true + } + + return false +} + +// SetInfo gets a reference to the given map[string]interface{} and assigns it to the Info field. +func (o *FirmwareInfo) SetInfo(v map[string]interface{}) { + o.Info = v +} + // GetMd5 returns the Md5 field value if set, zero value otherwise. func (o *FirmwareInfo) GetMd5() string { if o == nil || IsNil(o.Md5) { @@ -226,6 +262,38 @@ func (o *FirmwareInfo) SetMd5(v string) { o.Md5 = &v } +// GetNotes returns the Notes field value if set, zero value otherwise. +func (o *FirmwareInfo) GetNotes() string { + if o == nil || IsNil(o.Notes) { + var ret string + return ret + } + return *o.Notes +} + +// GetNotesOk returns a tuple with the Notes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FirmwareInfo) GetNotesOk() (*string, bool) { + if o == nil || IsNil(o.Notes) { + return nil, false + } + return o.Notes, true +} + +// HasNotes returns a boolean if a field has been set. +func (o *FirmwareInfo) HasNotes() bool { + if o != nil && !IsNil(o.Notes) { + return true + } + + return false +} + +// SetNotes gets a reference to the given string and assigns it to the Notes field. +func (o *FirmwareInfo) SetNotes(v string) { + o.Notes = &v +} + // GetOrganization returns the Organization field value if set, zero value otherwise. func (o *FirmwareInfo) GetOrganization() string { if o == nil || IsNil(o.Organization) { @@ -472,9 +540,15 @@ func (o FirmwareInfo) ToMap() (map[string]interface{}, error) { if !IsNil(o.Filename) { toSerialize["filename"] = o.Filename } + if !IsNil(o.Info) { + toSerialize["info"] = o.Info + } if !IsNil(o.Md5) { toSerialize["md5"] = o.Md5 } + if !IsNil(o.Notes) { + toSerialize["notes"] = o.Notes + } if !IsNil(o.Organization) { toSerialize["organization"] = o.Organization } @@ -522,7 +596,9 @@ func (o *FirmwareInfo) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "created") delete(additionalProperties, "description") delete(additionalProperties, "filename") + delete(additionalProperties, "info") delete(additionalProperties, "md5") + delete(additionalProperties, "notes") delete(additionalProperties, "organization") delete(additionalProperties, "product") delete(additionalProperties, "published") diff --git a/model_usage_events_data.go b/model_usage_events_data.go index 2cf8fc0..7851be9 100644 --- a/model_usage_events_data.go +++ b/model_usage_events_data.go @@ -37,6 +37,10 @@ type UsageEventsData struct { TotalDevices int64 `json:"total_devices"` // Total events the device sent to notehub, including associated notehub generated events TotalEvents int64 `json:"total_events"` + // Number of firmware updates in this period (from _health.qo DFU events) + TotalFwUpdates NullableInt64 `json:"total_fw_updates,omitempty"` + // Number of device reboots in this period (from _health.qo boot events) + TotalReboots NullableInt64 `json:"total_reboots,omitempty"` // 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. WatchdogEvents int64 `json:"watchdog_events"` AdditionalProperties map[string]interface{} @@ -322,6 +326,92 @@ func (o *UsageEventsData) SetTotalEvents(v int64) { o.TotalEvents = v } +// GetTotalFwUpdates returns the TotalFwUpdates field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UsageEventsData) GetTotalFwUpdates() int64 { + if o == nil || IsNil(o.TotalFwUpdates.Get()) { + var ret int64 + return ret + } + return *o.TotalFwUpdates.Get() +} + +// GetTotalFwUpdatesOk returns a tuple with the TotalFwUpdates field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UsageEventsData) GetTotalFwUpdatesOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.TotalFwUpdates.Get(), o.TotalFwUpdates.IsSet() +} + +// HasTotalFwUpdates returns a boolean if a field has been set. +func (o *UsageEventsData) HasTotalFwUpdates() bool { + if o != nil && o.TotalFwUpdates.IsSet() { + return true + } + + return false +} + +// SetTotalFwUpdates gets a reference to the given NullableInt64 and assigns it to the TotalFwUpdates field. +func (o *UsageEventsData) SetTotalFwUpdates(v int64) { + o.TotalFwUpdates.Set(&v) +} + +// SetTotalFwUpdatesNil sets the value for TotalFwUpdates to be an explicit nil +func (o *UsageEventsData) SetTotalFwUpdatesNil() { + o.TotalFwUpdates.Set(nil) +} + +// UnsetTotalFwUpdates ensures that no value is present for TotalFwUpdates, not even an explicit nil +func (o *UsageEventsData) UnsetTotalFwUpdates() { + o.TotalFwUpdates.Unset() +} + +// GetTotalReboots returns the TotalReboots field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UsageEventsData) GetTotalReboots() int64 { + if o == nil || IsNil(o.TotalReboots.Get()) { + var ret int64 + return ret + } + return *o.TotalReboots.Get() +} + +// GetTotalRebootsOk returns a tuple with the TotalReboots field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UsageEventsData) GetTotalRebootsOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.TotalReboots.Get(), o.TotalReboots.IsSet() +} + +// HasTotalReboots returns a boolean if a field has been set. +func (o *UsageEventsData) HasTotalReboots() bool { + if o != nil && o.TotalReboots.IsSet() { + return true + } + + return false +} + +// SetTotalReboots gets a reference to the given NullableInt64 and assigns it to the TotalReboots field. +func (o *UsageEventsData) SetTotalReboots(v int64) { + o.TotalReboots.Set(&v) +} + +// SetTotalRebootsNil sets the value for TotalReboots to be an explicit nil +func (o *UsageEventsData) SetTotalRebootsNil() { + o.TotalReboots.Set(nil) +} + +// UnsetTotalReboots ensures that no value is present for TotalReboots, not even an explicit nil +func (o *UsageEventsData) UnsetTotalReboots() { + o.TotalReboots.Unset() +} + // GetWatchdogEvents returns the WatchdogEvents field value func (o *UsageEventsData) GetWatchdogEvents() int64 { if o == nil { @@ -375,6 +465,12 @@ func (o UsageEventsData) ToMap() (map[string]interface{}, error) { } toSerialize["total_devices"] = o.TotalDevices toSerialize["total_events"] = o.TotalEvents + if o.TotalFwUpdates.IsSet() { + toSerialize["total_fw_updates"] = o.TotalFwUpdates.Get() + } + if o.TotalReboots.IsSet() { + toSerialize["total_reboots"] = o.TotalReboots.Get() + } toSerialize["watchdog_events"] = o.WatchdogEvents for key, value := range o.AdditionalProperties { @@ -432,6 +528,8 @@ func (o *UsageEventsData) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "total_days_in_period") delete(additionalProperties, "total_devices") delete(additionalProperties, "total_events") + delete(additionalProperties, "total_fw_updates") + delete(additionalProperties, "total_reboots") delete(additionalProperties, "watchdog_events") o.AdditionalProperties = additionalProperties } diff --git a/model_usage_route_logs_data.go b/model_usage_route_logs_data.go index 477808f..77923a7 100644 --- a/model_usage_route_logs_data.go +++ b/model_usage_route_logs_data.go @@ -22,8 +22,10 @@ var _ MappedNullable = &UsageRouteLogsData{} // UsageRouteLogsData struct for UsageRouteLogsData type UsageRouteLogsData struct { - FailedRoutes int64 `json:"failed_routes"` - Period time.Time `json:"period"` + // Average routing latency in milliseconds for route logs with recorded duration + AvgLatencyMs NullableFloat64 `json:"avg_latency_ms,omitempty"` + FailedRoutes int64 `json:"failed_routes"` + Period time.Time `json:"period"` // The route UID (only present when aggregate is 'route') Route *string `json:"route,omitempty"` SuccessfulRoutes int64 `json:"successful_routes"` @@ -54,6 +56,49 @@ func NewUsageRouteLogsDataWithDefaults() *UsageRouteLogsData { return &this } +// GetAvgLatencyMs returns the AvgLatencyMs field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UsageRouteLogsData) GetAvgLatencyMs() float64 { + if o == nil || IsNil(o.AvgLatencyMs.Get()) { + var ret float64 + return ret + } + return *o.AvgLatencyMs.Get() +} + +// GetAvgLatencyMsOk returns a tuple with the AvgLatencyMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UsageRouteLogsData) GetAvgLatencyMsOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.AvgLatencyMs.Get(), o.AvgLatencyMs.IsSet() +} + +// HasAvgLatencyMs returns a boolean if a field has been set. +func (o *UsageRouteLogsData) HasAvgLatencyMs() bool { + if o != nil && o.AvgLatencyMs.IsSet() { + return true + } + + return false +} + +// SetAvgLatencyMs gets a reference to the given NullableFloat64 and assigns it to the AvgLatencyMs field. +func (o *UsageRouteLogsData) SetAvgLatencyMs(v float64) { + o.AvgLatencyMs.Set(&v) +} + +// SetAvgLatencyMsNil sets the value for AvgLatencyMs to be an explicit nil +func (o *UsageRouteLogsData) SetAvgLatencyMsNil() { + o.AvgLatencyMs.Set(nil) +} + +// UnsetAvgLatencyMs ensures that no value is present for AvgLatencyMs, not even an explicit nil +func (o *UsageRouteLogsData) UnsetAvgLatencyMs() { + o.AvgLatencyMs.Unset() +} + // GetFailedRoutes returns the FailedRoutes field value func (o *UsageRouteLogsData) GetFailedRoutes() int64 { if o == nil { @@ -192,6 +237,9 @@ func (o UsageRouteLogsData) MarshalJSON() ([]byte, error) { func (o UsageRouteLogsData) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.AvgLatencyMs.IsSet() { + toSerialize["avg_latency_ms"] = o.AvgLatencyMs.Get() + } toSerialize["failed_routes"] = o.FailedRoutes toSerialize["period"] = o.Period if !IsNil(o.Route) { @@ -245,6 +293,7 @@ func (o *UsageRouteLogsData) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "avg_latency_ms") delete(additionalProperties, "failed_routes") delete(additionalProperties, "period") delete(additionalProperties, "route") diff --git a/model_usage_sessions_data.go b/model_usage_sessions_data.go index 34926f1..7d8f20f 100644 --- a/model_usage_sessions_data.go +++ b/model_usage_sessions_data.go @@ -24,12 +24,16 @@ var _ MappedNullable = &UsageSessionsData{} type UsageSessionsData struct { Device *string `json:"device,omitempty"` // Number of first sync sessions in this period - FirstSyncSessions int64 `json:"first_sync_sessions"` - Fleet *string `json:"fleet,omitempty"` - Period time.Time `json:"period"` - Sessions int64 `json:"sessions"` - TotalBytes int64 `json:"total_bytes"` - TotalDevices int64 `json:"total_devices"` + FirstSyncSessions int64 `json:"first_sync_sessions"` + Fleet *string `json:"fleet,omitempty"` + Period time.Time `json:"period"` + Sessions int64 `json:"sessions"` + // Count of sessions grouped by transport type prefix (e.g. cell, wifi, ntn, lorawan) + SessionsByTransport *map[string]int64 `json:"sessions_by_transport,omitempty"` + // Number of TLS sessions in this period + TlsSessions NullableInt64 `json:"tls_sessions,omitempty"` + TotalBytes int64 `json:"total_bytes"` + TotalDevices int64 `json:"total_devices"` AdditionalProperties map[string]interface{} } @@ -193,6 +197,81 @@ func (o *UsageSessionsData) SetSessions(v int64) { o.Sessions = v } +// GetSessionsByTransport returns the SessionsByTransport field value if set, zero value otherwise. +func (o *UsageSessionsData) GetSessionsByTransport() map[string]int64 { + if o == nil || IsNil(o.SessionsByTransport) { + var ret map[string]int64 + return ret + } + return *o.SessionsByTransport +} + +// GetSessionsByTransportOk returns a tuple with the SessionsByTransport field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UsageSessionsData) GetSessionsByTransportOk() (*map[string]int64, bool) { + if o == nil || IsNil(o.SessionsByTransport) { + return nil, false + } + return o.SessionsByTransport, true +} + +// HasSessionsByTransport returns a boolean if a field has been set. +func (o *UsageSessionsData) HasSessionsByTransport() bool { + if o != nil && !IsNil(o.SessionsByTransport) { + return true + } + + return false +} + +// SetSessionsByTransport gets a reference to the given map[string]int64 and assigns it to the SessionsByTransport field. +func (o *UsageSessionsData) SetSessionsByTransport(v map[string]int64) { + o.SessionsByTransport = &v +} + +// GetTlsSessions returns the TlsSessions field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UsageSessionsData) GetTlsSessions() int64 { + if o == nil || IsNil(o.TlsSessions.Get()) { + var ret int64 + return ret + } + return *o.TlsSessions.Get() +} + +// GetTlsSessionsOk returns a tuple with the TlsSessions field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UsageSessionsData) GetTlsSessionsOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.TlsSessions.Get(), o.TlsSessions.IsSet() +} + +// HasTlsSessions returns a boolean if a field has been set. +func (o *UsageSessionsData) HasTlsSessions() bool { + if o != nil && o.TlsSessions.IsSet() { + return true + } + + return false +} + +// SetTlsSessions gets a reference to the given NullableInt64 and assigns it to the TlsSessions field. +func (o *UsageSessionsData) SetTlsSessions(v int64) { + o.TlsSessions.Set(&v) +} + +// SetTlsSessionsNil sets the value for TlsSessions to be an explicit nil +func (o *UsageSessionsData) SetTlsSessionsNil() { + o.TlsSessions.Set(nil) +} + +// UnsetTlsSessions ensures that no value is present for TlsSessions, not even an explicit nil +func (o *UsageSessionsData) UnsetTlsSessions() { + o.TlsSessions.Unset() +} + // GetTotalBytes returns the TotalBytes field value func (o *UsageSessionsData) GetTotalBytes() int64 { if o == nil { @@ -260,6 +339,12 @@ func (o UsageSessionsData) ToMap() (map[string]interface{}, error) { } toSerialize["period"] = o.Period toSerialize["sessions"] = o.Sessions + if !IsNil(o.SessionsByTransport) { + toSerialize["sessions_by_transport"] = o.SessionsByTransport + } + if o.TlsSessions.IsSet() { + toSerialize["tls_sessions"] = o.TlsSessions.Get() + } toSerialize["total_bytes"] = o.TotalBytes toSerialize["total_devices"] = o.TotalDevices @@ -314,6 +399,8 @@ func (o *UsageSessionsData) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "fleet") delete(additionalProperties, "period") delete(additionalProperties, "sessions") + delete(additionalProperties, "sessions_by_transport") + delete(additionalProperties, "tls_sessions") delete(additionalProperties, "total_bytes") delete(additionalProperties, "total_devices") o.AdditionalProperties = additionalProperties diff --git a/openapi.yaml b/openapi.yaml index 0a55143..6e479ae 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -217,8 +217,12 @@ paths: remaining_event_capacity: type: integer format: int64 + total_event_capacity_used: + type: integer + format: int64 required: - remaining_event_capacity + - total_event_capacity_used - period type: object default: @@ -4652,9 +4656,15 @@ components: filename: description: The name of the firmware file. type: string + info: + description: User-defined metadata + type: object md5: description: The MD5 hash of the firmware file. type: string + notes: + description: User-defined notes + type: string organization: description: The organization that owns the firmware. type: string @@ -5838,6 +5848,18 @@ components: type: integer format: int64 example: 42 + total_fw_updates: + description: Number of firmware updates in this period (from _health.qo DFU events) + type: integer + format: int64 + example: 1 + nullable: true + total_reboots: + description: Number of device reboots in this period (from _health.qo boot events) + type: integer + format: int64 + example: 2 + nullable: true watchdog_events: description: '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.' type: integer @@ -5863,6 +5885,12 @@ components: UsageRouteLogsData: type: object properties: + avg_latency_ms: + description: Average routing latency in milliseconds for route logs with recorded duration + type: number + format: double + example: 342.5 + nullable: true failed_routes: type: integer format: int64 @@ -5910,6 +5938,22 @@ components: type: integer format: int64 example: 12 + sessions_by_transport: + description: 'Count of sessions grouped by transport type prefix (e.g. cell, wifi, ntn, lorawan)' + type: object + example: + cell: 8 + ntn: 1 + wifi: 3 + additionalProperties: + format: int64 + type: integer + tls_sessions: + description: Number of TLS sessions in this period + type: integer + format: int64 + example: 3 + nullable: true total_bytes: type: integer format: int64 diff --git a/openapi_filtered.yaml b/openapi_filtered.yaml index 6c4d02d..dc964b6 100644 --- a/openapi_filtered.yaml +++ b/openapi_filtered.yaml @@ -4620,9 +4620,15 @@ components: filename: description: The name of the firmware file. type: string + info: + description: User-defined metadata + type: object md5: description: The MD5 hash of the firmware file. type: string + notes: + description: User-defined notes + type: string organization: description: The organization that owns the firmware. type: string @@ -5806,6 +5812,18 @@ components: type: integer format: int64 example: 42 + total_fw_updates: + description: Number of firmware updates in this period (from _health.qo DFU events) + type: integer + format: int64 + example: 1 + nullable: true + total_reboots: + description: Number of device reboots in this period (from _health.qo boot events) + type: integer + format: int64 + example: 2 + nullable: true watchdog_events: description: 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. type: integer @@ -5831,6 +5849,12 @@ components: UsageRouteLogsData: type: object properties: + avg_latency_ms: + description: Average routing latency in milliseconds for route logs with recorded duration + type: number + format: double + example: 342.5 + nullable: true failed_routes: type: integer format: int64 @@ -5878,6 +5902,22 @@ components: type: integer format: int64 example: 12 + sessions_by_transport: + description: Count of sessions grouped by transport type prefix (e.g. cell, wifi, ntn, lorawan) + type: object + example: + cell: 8 + ntn: 1 + wifi: 3 + additionalProperties: + format: int64 + type: integer + tls_sessions: + description: Number of TLS sessions in this period + type: integer + format: int64 + example: 3 + nullable: true total_bytes: type: integer format: int64