Properties¶
properties
¶
SystemInfo
¶
Bases: Model
System information.
version
class-attribute
instance-attribute
¶
kernel
class-attribute
instance-attribute
¶
hostname
class-attribute
instance-attribute
¶
exports
class-attribute
instance-attribute
¶
rugix
class-attribute
instance-attribute
¶
yocto
class-attribute
instance-attribute
¶
agent
class-attribute
instance-attribute
¶
MemoryInfo
¶
Bases: Model
Memory information.
NetworkInterfaceInfo
¶
Bases: Model
Network interface information.
name
class-attribute
instance-attribute
¶
mac_address
class-attribute
instance-attribute
¶
mac_address = Field(
description="MAC address of the network interface.",
validation_alias="macAddress",
serialization_alias="macAddress",
)
ip_addresses
class-attribute
instance-attribute
¶
ip_addresses = Field(
description="IP addresses of the network interface.",
validation_alias="ipAddresses",
serialization_alias="ipAddresses",
)
DiskInfo
¶
Bases: Model
Disk information.
mount_point
class-attribute
instance-attribute
¶
mount_point = Field(
description="Mount point.",
validation_alias="mountPoint",
serialization_alias="mountPoint",
)
total_space
class-attribute
instance-attribute
¶
total_space = Field(
description="Total disk space in bytes.",
validation_alias="totalSpace",
serialization_alias="totalSpace",
)
available_space
class-attribute
instance-attribute
¶
available_space = Field(
description="Available disk space in bytes.",
validation_alias="availableSpace",
serialization_alias="availableSpace",
)
OtaUpdateConfig
¶
Bases: Model
Unstable (feature ota_updates).
OTA update configuration (dev.nexigon.ota.config).
Desired state of a device. Integrations apply the property to defaults
built into the image as a JSON merge patch (RFC 7396): objects merge
recursively, null removes a default, and any other value, including an
array, replaces the default.
path
class-attribute
instance-attribute
¶
path = Field(
default=None,
description="Version path in the format `<repository>/<package>/<version>`.\n\n`<version>` is a tag or a version ID. A tag tracks the version the tag\npoints to. A version ID pins a single version.",
)
hold
class-attribute
instance-attribute
¶
hold = Field(
default=None,
description="Hold the device at its current version.\n\nWhile set, the device starts no new update. An update in progress\ncompletes, including its activation. Defaults to false.",
)
window
class-attribute
instance-attribute
¶
window = Field(
default=None,
description="Maintenance window restricting when updates are activated.\n\nUpdates can be activated at any time when absent.",
)
retry
class-attribute
instance-attribute
¶
spread
class-attribute
instance-attribute
¶
spread = Field(
default=None,
description="Spreading of updates across devices.\n\nDevices update without waiting when absent.",
)
OtaUpdateWindow
¶
Bases: Model
Unstable (feature ota_updates).
Maintenance window in the device's local time.
The window restricts activation, the step that interrupts the device's operation, such as the reboot into the new version. Integrations may download and install an update outside the window if doing so does not interrupt operation.
ranges
class-attribute
instance-attribute
¶
ranges = Field(
description="Time ranges in which updates can be activated.\n\nAn empty list never allows activation."
)
OtaUpdateWindowRange
¶
Bases: Model
Unstable (feature ota_updates).
Recurring time range of a maintenance window.
days
class-attribute
instance-attribute
¶
days = Field(
default=None,
description="Days on which the range starts.\n\nDefaults to every day.",
)
start
class-attribute
instance-attribute
¶
end
class-attribute
instance-attribute
¶
end = Field(
description="End of the range (exclusive).\n\nAn end at or before the start lies on the following day. A range whose\nend equals its start therefore spans 24 hours."
)
OtaUpdateSpread
¶
Bases: Model
Unstable (feature ota_updates).
Spreading of updates across devices.
Each device derives its position u from the SHA-256 hash of
<device-id>/<target-version-id>: the first 8 bytes, read as a big-endian
unsigned integer n, give u = floor(n / 2^11) / 2^53, which a
double-precision number represents exactly. A device may start updating to the
target once both of the following hold:
- With
duration_secs, its turn has begun atstart + floor(duration_secs * sqrt(u)). The share of eligible devices thus grows quadratically from 0 at the start to 1 afterduration_secs. - With
percentage, its position is belowpercentage / 100.
duration_secs
class-attribute
instance-attribute
¶
duration_secs = Field(
default=None,
description="Time over which updates are spread, in seconds.",
validation_alias="durationSecs",
serialization_alias="durationSecs",
)
start_at
class-attribute
instance-attribute
¶
start_at = Field(
default=None,
description="Start of the spread over time.\n\nDefaults to the time at which the tag in the configured path was assigned\nto its current version. Without an explicit start, updates to versions\nconfigured by version ID are not spread over time.",
validation_alias="startAt",
serialization_alias="startAt",
)
percentage
class-attribute
instance-attribute
¶
percentage = Field(
default=None,
description="Share of devices that may update, in percent.\n\nRaising the percentage only adds devices. Without `duration_secs`, it\nreleases the update to the given share right away. With `duration_secs`,\nit caps the share of the spread over time.",
)
OtaUpdateRetryPolicy
¶
Bases: Model
Unstable (feature ota_updates).
Retry policy for failed update attempts.
An attempt starts when the device begins downloading a version. Failures
before that, such as an unreachable Nexigon Hub, do not count as attempts.
The delay between attempts starts at initial_delay_secs and doubles after
each failed attempt, up to max_delay_secs.
max_attempts
class-attribute
instance-attribute
¶
max_attempts = Field(
default=None,
description="Maximum number of failed attempts for a version.\n\nUnlimited when absent.",
validation_alias="maxAttempts",
serialization_alias="maxAttempts",
)
initial_delay_secs
class-attribute
instance-attribute
¶
initial_delay_secs = Field(
default=None,
description="Delay before the first retry in seconds.",
validation_alias="initialDelaySecs",
serialization_alias="initialDelaySecs",
)
max_delay_secs
class-attribute
instance-attribute
¶
max_delay_secs = Field(
default=None,
description="Maximum delay between attempts in seconds.",
validation_alias="maxDelaySecs",
serialization_alias="maxDelaySecs",
)
cooldown_secs
class-attribute
instance-attribute
¶
cooldown_secs = Field(
default=None,
description="Time in seconds after reaching `max_attempts` before the failure count\nresets and a new round of attempts begins.\n\nWithout a cooldown, the device stops attempting the version until the\nconfiguration is written again.",
validation_alias="cooldownSecs",
serialization_alias="cooldownSecs",
)
OtaUpdateStatus
¶
Bases: Model
Unstable (feature ota_updates).
OTA update status (dev.nexigon.ota.status).
Actual state of a device, published by its update integration.
capabilities
class-attribute
instance-attribute
¶
capabilities = Field(
default=None,
description="Optional features of the OTA update contract that the integration supports.",
)
config
class-attribute
instance-attribute
¶
config = Field(
default=None,
description="Effective configuration, including the defaults the integration applies.",
)
config_version
class-attribute
instance-attribute
¶
config_version = Field(
default=None,
description="Version of the `dev.nexigon.ota.config` property that the integration\nlast read.\n\nAbsent when the property does not exist. Every write to the property,\neven with an unchanged value, increments its version.",
validation_alias="configVersion",
serialization_alias="configVersion",
)
current_version
class-attribute
instance-attribute
¶
current_version = Field(
default=None,
description="Version string of the running system, as built into the image.\n\nBy convention, a locked tag of the corresponding package version.",
validation_alias="currentVersion",
serialization_alias="currentVersion",
)
current_version_id
class-attribute
instance-attribute
¶
current_version_id = Field(
default=None,
description="Package version of the running system.\n\nResolved by looking up `current_version` as a tag in the configured package.\nAbsent when the tag does not resolve.",
validation_alias="currentVersionId",
serialization_alias="currentVersionId",
)
state
class-attribute
instance-attribute
¶
blocked
class-attribute
instance-attribute
¶
blocked = Field(
default=None,
description="Why the update is blocked. Present when `state` is `blocked`.",
)
target_version
class-attribute
instance-attribute
¶
target_version = Field(
default=None,
description="Version string of the target version, as built into its image.",
validation_alias="targetVersion",
serialization_alias="targetVersion",
)
target_version_id
class-attribute
instance-attribute
¶
target_version_id = Field(
default=None,
description="Package version that the configured path resolves to.",
validation_alias="targetVersionId",
serialization_alias="targetVersionId",
)
next_version_id
class-attribute
instance-attribute
¶
next_version_id = Field(
default=None,
description="Package version that the device installs next.\n\nDiffers from `target_version_id` when the device must install a\ncheckpoint before the target.",
validation_alias="nextVersionId",
serialization_alias="nextVersionId",
)
failure_count
class-attribute
instance-attribute
¶
failure_count = Field(
default=None,
description="Number of consecutive failed attempts for the next version.\n\nResets to zero when the next version or `config_version` changes, when\nthe retry cooldown ends, or when an update succeeds.",
validation_alias="failureCount",
serialization_alias="failureCount",
)
last_error
class-attribute
instance-attribute
¶
last_error = Field(
default=None,
description="Error message of the last failure, if any.",
validation_alias="lastError",
serialization_alias="lastError",
)
next_attempt_at
class-attribute
instance-attribute
¶
next_attempt_at = Field(
default=None,
description="Earliest time of the next attempt.\n\nSet while the device waits for a spread, a maintenance window, a retry\ndelay, or a retry cooldown. Absent when the time of the next attempt is\nunknown or no further attempt is scheduled.",
validation_alias="nextAttemptAt",
serialization_alias="nextAttemptAt",
)
updater
class-attribute
instance-attribute
¶
OtaUpdater
¶
Bases: Model
Unstable (feature ota_updates).
Update system that installs versions on a device, such as Rugix Ctrl or RAUC.
Slot names, states, and health values are those of the update system.
name
class-attribute
instance-attribute
¶
version
class-attribute
instance-attribute
¶
booted_slot
class-attribute
instance-attribute
¶
booted_slot = Field(
default=None,
description="Slot that the running system booted from.",
validation_alias="bootedSlot",
serialization_alias="bootedSlot",
)
primary_slot
class-attribute
instance-attribute
¶
primary_slot = Field(
default=None,
description="Slot that the device boots from next.\n\nDiffers from `booted_slot` when the device runs a version on trial or\nhas installed a version that it has not booted yet.",
validation_alias="primarySlot",
serialization_alias="primarySlot",
)
awaiting_commit
class-attribute
instance-attribute
¶
awaiting_commit = Field(
default=None,
description="Whether the running system awaits its commit.",
validation_alias="awaitingCommit",
serialization_alias="awaitingCommit",
)
slots
class-attribute
instance-attribute
¶
OtaUpdaterSlot
¶
Bases: Model
Unstable (feature ota_updates).
Slot of an update system.
OtaUpdateBlocked
¶
Bases: Model
Unstable (feature ota_updates).
Information about a blocked update.
code
class-attribute
instance-attribute
¶
code = Field(
description="Machine-readable reason in kebab case.\n\nNexigon defines these codes:\n\n- `hold`: The configuration holds the device at its current version.\n- `spread`: The device waits for its turn in a spread or is outside the\nreleased percentage.\n- `window`: The device waits for its maintenance window.\n- `no-update-path`: The target is unreachable without going back across\na checkpoint.\n- `unknown-current-version`: The target has a base version, but\n`current_version` does not resolve to a package version.\n\nIntegrations may define their own codes for conditions specific to the\ndevice, such as `awaiting-approval`."
)
message
class-attribute
instance-attribute
¶
DeviceHealth
¶
Bases: Model
Device health information (dev.nexigon.system.health).
status
class-attribute
instance-attribute
¶
HttpExportInfo
¶
Bases: Model
HTTP export information.
RugixSystemInfo
¶
Bases: Model
Rugix-specific system information.
RugixSlotInfo
¶
Bases: Model
Information about a Rugix update slot.
active
class-attribute
instance-attribute
¶
hashes
class-attribute
instance-attribute
¶
hashes = Field(
default=None,
description="Hashes of the slot data according to the slot database.",
)
size
class-attribute
instance-attribute
¶
updated_at
class-attribute
instance-attribute
¶
updated_at = Field(
default=None,
description="Last time the slot has been updated according to the slot database.",
validation_alias="updatedAt",
serialization_alias="updatedAt",
)
RugixBootInfo
¶
Bases: Model
Rugix-specific boot information.
boot_flow
class-attribute
instance-attribute
¶
boot_flow = Field(
description="Name of the boot flow.",
validation_alias="bootFlow",
serialization_alias="bootFlow",
)
active_group
class-attribute
instance-attribute
¶
active_group = Field(
default=None,
description="Active boot group.",
validation_alias="activeGroup",
serialization_alias="activeGroup",
)
default_group
class-attribute
instance-attribute
¶
default_group = Field(
default=None,
description="Default boot group.",
validation_alias="defaultGroup",
serialization_alias="defaultGroup",
)
groups
class-attribute
instance-attribute
¶
RugixBootGroupInfo
¶
Bases: Model
Information about a Rugix boot group.
RugixActiveStateManagementInfo
¶
Bases: Model
Information about the state management mechanism, if state management is active.
data_partition
class-attribute
instance-attribute
¶
data_partition = Field(
default=None,
description="Device backing the data partition, if any.",
validation_alias="dataPartition",
serialization_alias="dataPartition",
)
RugixBakeryBuildInfo
¶
RugixBakeryReleaseInfo
¶
YoctoSystemInfo
¶
Bases: Model
Yocto-specific system information.
build_info
class-attribute
instance-attribute
¶
build_info = Field(
description="Build information key-value pairs read from `/etc/buildinfo`.",
validation_alias="buildInfo",
serialization_alias="buildInfo",
)
AgentInfo
¶
AgentConfig
¶
AgentTerminalConfig
¶
AgentCommandsConfig
¶
DeviceCommandManifest
¶
Bases: Model
Unstable (feature device_commands).
Command manifest (dev.nexigon.commands property).
DeviceCommandDescriptor
¶
Weekday_Monday
¶
Bases: RootModel[Literal['monday']]
Weekday_Tuesday
¶
Bases: RootModel[Literal['tuesday']]
Weekday_Wednesday
¶
Bases: RootModel[Literal['wednesday']]
Weekday_Thursday
¶
Bases: RootModel[Literal['thursday']]
Weekday_Friday
¶
Bases: RootModel[Literal['friday']]
Weekday_Saturday
¶
Bases: RootModel[Literal['saturday']]
Weekday_Sunday
¶
Bases: RootModel[Literal['sunday']]
Weekday
¶
Weekday = (
Weekday_Monday
| Weekday_Tuesday
| Weekday_Wednesday
| Weekday_Thursday
| Weekday_Friday
| Weekday_Saturday
| Weekday_Sunday
)
OtaUpdateCapability_Window
¶
Bases: RootModel[Literal['window']]
OtaUpdateCapability_Retry
¶
Bases: RootModel[Literal['retry']]
OtaUpdateCapability_Checkpoints
¶
Bases: RootModel[Literal['checkpoints']]
OtaUpdateCapability_Spread
¶
Bases: RootModel[Literal['spread']]
OtaUpdateCapability_Hold
¶
Bases: RootModel[Literal['hold']]
OtaUpdateCapability
¶
OtaUpdateCapability = (
OtaUpdateCapability_Window
| OtaUpdateCapability_Retry
| OtaUpdateCapability_Checkpoints
| OtaUpdateCapability_Spread
| OtaUpdateCapability_Hold
)
OtaUpdateState_Idle
¶
Bases: RootModel[Literal['idle']]
OtaUpdateState_Installing
¶
Bases: RootModel[Literal['installing']]
OtaUpdateState_Rebooting
¶
Bases: RootModel[Literal['rebooting']]
OtaUpdateState_Committing
¶
Bases: RootModel[Literal['committing']]
OtaUpdateState_Completed
¶
Bases: RootModel[Literal['completed']]
OtaUpdateState_Failed
¶
Bases: RootModel[Literal['failed']]
OtaUpdateState_Blocked
¶
Bases: RootModel[Literal['blocked']]
OtaUpdateState_Rollback
¶
Bases: RootModel[Literal['rollback']]
OtaUpdateState
¶
OtaUpdateState = (
OtaUpdateState_Idle
| OtaUpdateState_Installing
| OtaUpdateState_Rebooting
| OtaUpdateState_Committing
| OtaUpdateState_Completed
| OtaUpdateState_Failed
| OtaUpdateState_Blocked
| OtaUpdateState_Rollback
)
DeviceHealthStatus_Healthy
¶
Bases: RootModel[Literal['healthy']]
DeviceHealthStatus_Degraded
¶
Bases: RootModel[Literal['degraded']]
DeviceHealthStatus_Error
¶
Bases: RootModel[Literal['error']]
DeviceHealthStatus
¶
DeviceHealthStatus = (
DeviceHealthStatus_Healthy
| DeviceHealthStatus_Degraded
| DeviceHealthStatus_Error
)
RugixStateManagementInfo_Disabled
¶
Bases: Model
RugixStateManagementInfo_Active
¶
Bases: Model
data_partition
class-attribute
instance-attribute
¶
data_partition = Field(
default=None,
description="Device backing the data partition, if any.",
validation_alias="dataPartition",
serialization_alias="dataPartition",
)
RugixStateManagementInfo_Error
¶
Bases: Model
RugixStateManagementInfo
¶
RugixStateManagementInfo = Annotated[
RugixStateManagementInfo_Disabled
| RugixStateManagementInfo_Active
| RugixStateManagementInfo_Error,
Discriminator("status"),
]