Safe Haskell | None |
---|
Objects in the job queue.
- type Timestamp = (Int, Int)
- data InputOpCode
- = ValidOpCode MetaOpCode
- | InvalidOpCode JSValue
- data QueuedOpCode = QueuedOpCode {
- qoInput :: InputOpCode
- qoStatus :: OpStatus
- qoResult :: JSValue
- qoLog :: [(Int, Timestamp, ELogType, JSValue)]
- qoPriority :: Int
- qoStartTimestamp :: Maybe Timestamp
- qoExecTimestamp :: Maybe Timestamp
- qoEndTimestamp :: Maybe Timestamp
- loadQueuedOpCode :: JSValue -> Result QueuedOpCode
- saveQueuedOpCode :: QueuedOpCode -> JSValue
- data QueuedJob = QueuedJob {
- qjId :: JobId
- qjOps :: [QueuedOpCode]
- qjReceivedTimestamp :: Maybe Timestamp
- qjStartTimestamp :: Maybe Timestamp
- qjEndTimestamp :: Maybe Timestamp
- qjLivelock :: Maybe FilePath
- qjProcessId :: Maybe ProcessID
- loadQueuedJob :: JSValue -> Result QueuedJob
- saveQueuedJob :: QueuedJob -> JSValue
Documentation
type Timestamp = (Int, Int)Source
The ganeti queue timestamp type. It represents the time as the pair of seconds since the epoch and microseconds since the beginning of the second.
data InputOpCode Source
An input opcode.
ValidOpCode MetaOpCode | OpCode was parsed successfully |
InvalidOpCode JSValue | Invalid opcode |
Eq InputOpCode | |
Show InputOpCode | |
JSON InputOpCode | JSON instance for |
data QueuedOpCode Source
QueuedOpCode | |
|
loadQueuedOpCode :: JSValue -> Result QueuedOpCodeSource
saveQueuedOpCode :: QueuedOpCode -> JSValueSource
QueuedJob | |
|
Eq QueuedJob | |
Show QueuedJob | |
JSON QueuedJob | |
ArrayObject QueuedJob | |
DictObject QueuedJob |
loadQueuedJob :: JSValue -> Result QueuedJobSource
saveQueuedJob :: QueuedJob -> JSValueSource