Interface PumpModel<AdditionalData>

interface PumpModel<AdditionalData> {
    troubles: TroubleModel<any>[];
    troubleStatus: string;
    troublesByType: Record<string, TroubleModel<any>[]>;
}

Type Parameters

  • AdditionalData extends object = any

Hierarchy (view full)

Properties

troubles: TroubleModel<any>[]

Array of troubles directly related to this model. Troubles are typically sorted by rank (highest priority first).

troubleStatus: string

Summary status string representing the highest priority trouble. Returns a human-readable status or 'OK' if no troubles exist.

troublesByType: Record<string, TroubleModel<any>[]>

Troubles organized by their type property. Useful for filtering and categorized display of issues.

Example

const errorTroubles = model.troublesByType['ERROR'] || [];
const warningTroubles = model.troublesByType['WARNING'] || [];