ganeti
Safe HaskellNone

Ganeti.Query.Job

Description

Implementation of the Ganeti Query2 job queries.

Synopsis

Documentation

type RuntimeData = Result (QueuedJob, Bool) Source #

The runtime data for a job.

jobPrioDoc :: String Source #

Job priority explanation.

tsDoc :: String -> String Source #

Timestamp doc.

maybeJob :: JSON a => (QueuedJob -> a) -> RuntimeData -> JobId -> ResultEntry Source #

Wrapper for unavailable job.

maybeJobOpt :: JSON a => (QueuedJob -> Maybe a) -> RuntimeData -> JobId -> ResultEntry Source #

Wrapper for optional fields that should become unavailable.

jobGetter :: JSON a => (QueuedJob -> a) -> FieldGetter JobId RuntimeData Source #

Simple helper for a job getter.

opsGetter :: JSON a => (QueuedOpCode -> a) -> FieldGetter JobId RuntimeData Source #

Simple helper for a per-opcode getter.

opsOptGetter :: JSON a => (QueuedOpCode -> Maybe a) -> FieldGetter JobId RuntimeData Source #

Simple helper for a per-opcode optional field getter.

archivedField :: String Source #

Archived field name.

wantArchived :: [FilterField] -> Bool Source #

Check whether we should look at archived jobs as well.

jobFields :: FieldList JobId RuntimeData Source #

List of all node fields. FIXME: QFF_JOB_ID on the id field.

fieldsMap :: FieldMap JobId RuntimeData Source #

The node fields map.