Skip to content
Updated Sep 11, 2026 by Barča Dvořáková · Owner: analysisactiveenumconfluence-migration Edit on GitHub

Enum - GaugeSourcePriority ​

Key: enum.gaugeSourcePriority

Defines the priority order in which reading sources — remote telemetry, manual input, and invoice/billing data — are trusted when more than one source reports a value for the same period. Used on gauge.sourcePriority (per-gauge override, nullable) and client.defaultSourcePriority (tenant-level default, always set). New in EM3 — EM2 only had a boolean flag (Gauge.remoteAsPrimary) distinguishing two priority orders; EM3 generalises this to all 6 permutations of the three sources. Stored as a string in the database.

System default value (used by client.defaultSourcePriority when a tenant hasn't changed it): remote_manual_invoice.

Scope of this ordering. This priority set governs only the three sources that genuinely compete for trust — remote, manual, and invoice. The calculated source (see Enum - ReadingSource) is produced by the system itself rather than reported by an external channel, so it does not participate in this trust ordering. Resolution between a calculated reading and the three ranked sources above follows a separate, fixed rule defined as part of reading source resolution — not an additional permutation of this enum.

Values ​

ValuePriority order (highest → lowest)Description
remote_manual_invoiceremote → manual → invoiceRemote readings trusted first. EM2 equivalent: remoteAsPrimary = true.
manual_remote_invoicemanual → remote → invoiceManual readings trusted first. EM2 equivalent: remoteAsPrimary = false.
remote_invoice_manualremote → invoice → manualRemote trusted first, invoice ahead of manual.
invoice_remote_manualinvoice → remote → manualInvoice trusted first, ahead of remote.
manual_invoice_remotemanual → invoice → remoteManual trusted first, invoice ahead of remote.
invoice_manual_remoteinvoice → manual → remoteInvoice trusted first, ahead of manual.

References ​

  • gauge.sourcePriority
  • client.defaultSourcePriority
  • Enum - ReadingSource — defines calculated as a source outside this priority ordering