FleetApi.UnitState
Defines a FleetApi.UnitState
struct, representing the current state of a particular unit.
The following fields are public:
name
- unique identifier of entity.hash
- SHA1 hash of underlying unit file.machineID
- ID of machine from which this state originated.systemdLoadState
- load state as reported by systemd.systemdActiveState
- active state as reported by systemd.systemdSubState
- sub state as reported by systemd. A unit state represents the current state of a given unit.
Summary↑
from_map(state_map) |
Types ↑
t :: %FleetApi.UnitState{hash: term, machineID: term, name: term, systemdActiveState: term, systemdLoadState: term, systemdSubState: term}
Functions
Specs:
- from_map(%{String.t => any}) :: FleetApi.UnitState.t