Skip to content

Properties

properties

SystemInfo

Bases: Model

System information.

name class-attribute instance-attribute

name = Field(default=None, description='System name.')

version class-attribute instance-attribute

version = Field(default=None, description="System version.")

kernel class-attribute instance-attribute

kernel = Field(default=None, description='Kernel version.')

hostname class-attribute instance-attribute

hostname = Field(default=None, description='Hostname.')

arch class-attribute instance-attribute

arch = Field(default=None, description='Architecture.')

memory class-attribute instance-attribute

memory = Field(description='Memory information.')

networks class-attribute instance-attribute

networks = Field(description='Network information.')

disks class-attribute instance-attribute

disks = Field(description='Disk information.')

exports class-attribute instance-attribute

exports = Field(
    default=None, description="Exported services."
)

rugix class-attribute instance-attribute

rugix = Field(
    default=None,
    description="Rugix-specific system information.",
)

yocto class-attribute instance-attribute

yocto = Field(
    default=None,
    description="Yocto-specific system information.",
)

agent class-attribute instance-attribute

agent = Field(
    default=None, description="Agent information."
)

MemoryInfo

Bases: Model

Memory information.

total class-attribute instance-attribute

total = Field(description='Total memory in bytes.')

NetworkInterfaceInfo

Bases: Model

Network interface information.

name class-attribute instance-attribute

name = Field(description='Name of the network interface.')

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.

name class-attribute instance-attribute

name = Field(description='Name of the disk.')

filesystem class-attribute instance-attribute

filesystem = Field(description='Filesystem type.')

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

retry = Field(
    default=None,
    description="Retry policy for failed update attempts.",
)

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

start = Field(description="Start of the range (inclusive).")

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."
)

TimeOfDay

TimeOfDay = str

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 at start + floor(duration_secs * sqrt(u)). The share of eligible devices thus grows quadratically from 0 at the start to 1 after duration_secs.
  • With percentage, its position is below percentage / 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

state = Field(
    default=None,
    description="Current state of the update process.",
)

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

updater = Field(
    default=None,
    description="Update system that installs versions on the device.",
)

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

name = Field(
    description="Name of the update system, such as `rugix` or `rauc`."
)

version class-attribute instance-attribute

version = Field(
    default=None,
    description="Version of the update system.",
)

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

slots = Field(
    default=None,
    description="Slots that the update system installs versions into.",
)

OtaUpdaterSlot

Bases: Model

Unstable (feature ota_updates).

Slot of an update system.

name class-attribute instance-attribute

name = Field(description='Name of the slot.')

state class-attribute instance-attribute

state = Field(
    default=None,
    description="State of the slot, such as `booted` or `inactive`.",
)

health class-attribute instance-attribute

health = Field(
    default=None,
    description="Health of the slot, such as `good` or `bad`.",
)

version class-attribute instance-attribute

version = Field(
    default=None,
    description="Version installed in the slot, if the update system records it.",
)

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

message = Field(
    default=None, description="Human-readable explanation."
)

DeviceHealth

Bases: Model

Device health information (dev.nexigon.system.health).

status class-attribute instance-attribute

status = Field(description='Health status of the device.')

HttpExportInfo

Bases: Model

HTTP export information.

name class-attribute instance-attribute

name = Field(description='Name of the export.')

port class-attribute instance-attribute

port = Field(description='Port the service listens on.')

path class-attribute instance-attribute

path = Field(default=None, description='URL path prefix.')

RugixSystemInfo

Bases: Model

Rugix-specific system information.

slots class-attribute instance-attribute

slots = Field(
    description="Information about the update slots."
)

boot class-attribute instance-attribute

boot = Field(
    default=None,
    description="Rugix-specific boot information.",
)

state class-attribute instance-attribute

state = Field(
    description="Information about the state management mechanism."
)

build class-attribute instance-attribute

build = Field(
    default=None,
    description="Rugix Bakery build information (only when built with Rugix Bakery).",
)

RugixSlotInfo

Bases: Model

Information about a Rugix update slot.

active class-attribute instance-attribute

active = Field(
    default=None,
    description="Indicates whether the slot is active, i.e., in use.",
)

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

size = Field(
    default=None,
    description="Size of the slot data according to the slot database.",
)

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

groups = Field(
    description="Information about the boot groups."
)

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

Bases: Model

Rugix Bakery build information.

name class-attribute instance-attribute

name = Field(description='System name.')

release class-attribute instance-attribute

release = Field(
    description="Rugix Bakery build release information."
)

RugixBakeryReleaseInfo

Bases: Model

Rugix Bakery build release information.

id class-attribute instance-attribute

id = Field(description='Release ID.')

version class-attribute instance-attribute

version = Field(description='Release version.')

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

Bases: Model

Agent information.

version class-attribute instance-attribute

version = Field(description='Agent version.')

config class-attribute instance-attribute

config = Field(description='Agent feature configuration.')

AgentConfig

Bases: Model

Agent feature configuration.

terminal class-attribute instance-attribute

terminal = Field(
    default=None,
    description="Terminal feature configuration.",
)

commands class-attribute instance-attribute

commands = Field(
    default=None,
    description="Commands feature configuration.",
)

AgentTerminalConfig

Bases: Model

Agent terminal feature configuration.

enabled class-attribute instance-attribute

enabled = Field(
    default=None,
    description="Whether the remote terminal is enabled.",
)

users class-attribute instance-attribute

users = Field(
    default=None, description="Available terminal users."
)

AgentCommandsConfig

Bases: Model

Agent commands feature configuration.

enabled class-attribute instance-attribute

enabled = Field(
    default=None,
    description="Whether on-demand commands are enabled.",
)

DeviceCommandManifest

Bases: Model

Unstable (feature device_commands).

Command manifest (dev.nexigon.commands property).

commands class-attribute instance-attribute

commands = Field(description='Available commands.')

DeviceCommandDescriptor

Bases: Model

Unstable (feature device_commands).

Descriptor for an on-demand command.

name class-attribute instance-attribute

name = Field(description='Command name.')

description class-attribute instance-attribute

description = Field(
    default=None,
    description="Description of what the command does.",
)

category class-attribute instance-attribute

category = Field(
    default=None,
    description="Category for grouping in the UI.",
)

input class-attribute instance-attribute

input = Field(
    default=None,
    description="JSON Schema for the command input.",
)

output class-attribute instance-attribute

output = Field(
    default=None,
    description="JSON Schema for the command output.",
)

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']]

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']]

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']]

DeviceHealthStatus_Healthy

Bases: RootModel[Literal['healthy']]

DeviceHealthStatus_Degraded

Bases: RootModel[Literal['degraded']]

DeviceHealthStatus_Error

Bases: RootModel[Literal['error']]

DeviceHealthStatus

ExportInfo_Http

Bases: Model

protocol class-attribute instance-attribute

protocol = 'http'

name class-attribute instance-attribute

name = Field(description='Name of the export.')

port class-attribute instance-attribute

port = Field(description='Port the service listens on.')

path class-attribute instance-attribute

path = Field(default=None, description='URL path prefix.')

payload

payload()

ExportInfo

ExportInfo = ExportInfo_Http

RugixStateManagementInfo_Disabled

Bases: Model

status class-attribute instance-attribute

status = 'Disabled'

RugixStateManagementInfo_Active

Bases: Model

status class-attribute instance-attribute

status = '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",
)

payload

payload()

RugixStateManagementInfo_Error

Bases: Model

status class-attribute instance-attribute

status = 'Error'

RugixStateManagementInfo

RugixStateManagementInfo = Annotated[
    RugixStateManagementInfo_Disabled
    | RugixStateManagementInfo_Active
    | RugixStateManagementInfo_Error,
    Discriminator("status"),
]