kempnerpulse.translate.context¶
Per-process source context for translation (resolved once at startup).
SourceContext pins the operating context — which backend produced the
records, how to tag aggregation/provenance, the host/cluster metadata, and the
per-GPU identity (UUID, model) — so that the per-record translator is a pure
mapping that simply stamps these constants onto every CanonicalRecord.
Functions
|
Build a |
Classes
Static context resolved at startup; frozen for the process lifetime. |
- class kempnerpulse.translate.context.SourceContext[source]¶
Bases:
objectStatic context resolved at startup; frozen for the process lifetime.
- backend: BackendKind¶
- provenance: Provenance¶
- aggregation_mode: AggregationMode¶
- __init__(backend, provenance, aggregation_mode, window_microseconds, hostname, gpu_uuid_by_index=<factory>, gpu_model_by_index=<factory>, slurm_metadata=<factory>)¶
- Parameters:
backend (BackendKind)
provenance (Provenance)
aggregation_mode (AggregationMode)
window_microseconds (int)
hostname (str)
- Return type:
None