ganeti

Safe HaskellNone

Ganeti.JQueue.Objects

Description

Objects in the job queue.

Synopsis

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.

Constructors

ValidOpCode MetaOpCode

OpCode was parsed successfully

InvalidOpCode JSValue

Invalid opcode

Instances

Eq InputOpCode 
Show InputOpCode 
JSON InputOpCode

JSON instance for InputOpCode, trying to parse it and if failing, keeping the original JSValue.

data QueuedJob Source

Constructors

QueuedJob 

Fields

qjId :: JobId
 
qjOps :: [QueuedOpCode]
 
qjReceivedTimestamp :: Maybe Timestamp
 
qjStartTimestamp :: Maybe Timestamp
 
qjEndTimestamp :: Maybe Timestamp
 
qjLivelock :: Maybe FilePath
 
qjProcessId :: Maybe ProcessID
 

loadQueuedJob :: JSValue -> Result QueuedJobSource