flux.resource.journal module

class flux.resource.journal.ResourceJournalConsumer(flux_handle, since=0.0, include_sentinel=False)

Bases: JournalConsumerBase

Class for consuming the resource journal

See journal.JournalConsumerBase for documentation of the journal consumer interface.

create_event(entry, R=None)

Create a ResourceJournalEvent from one event entry in a response

process_response(resp)

Process a single response from the resource journal

class flux.resource.journal.ResourceJournalEvent(event, R=None)

Bases: JournalEventBase

A container for an event from the resource journal

name

event name (See RFC 21 for possible event names)

Type

str

timestamp

event timestamp in seconds since the epoch with sub-millisecond precision.

Type

float

context

context dictionary (See RFC 21: Event Descriptions.)

Type

dict

context_string

context dict converted to comma separated key=value string.

Type

str

R

For resource-define events, the instance R (See RFC 20)

Type

dict