Macrostop and timeline segmentation
This commit is contained in:
@@ -54,6 +54,7 @@ export function buildSettingsPayload(settings: any, shifts: any[]) {
|
||||
},
|
||||
thresholds: {
|
||||
stoppageMultiplier: settings.stoppageMultiplier,
|
||||
macroStoppageMultiplier: settings.macroStoppageMultiplier,
|
||||
oeeAlertThresholdPct: settings.oeeAlertThresholdPct,
|
||||
performanceThresholdPct: settings.performanceThresholdPct,
|
||||
qualitySpikeDeltaPct: settings.qualitySpikeDeltaPct,
|
||||
@@ -159,6 +160,14 @@ export function validateThresholds(thresholds: any) {
|
||||
}
|
||||
}
|
||||
|
||||
const macroStoppage = thresholds.macroStoppageMultiplier;
|
||||
if (macroStoppage != null) {
|
||||
const v = Number(macroStoppage);
|
||||
if (!Number.isFinite(v) || v < 1.1 || v > 20.0) {
|
||||
return { ok: false, error: "macroStoppageMultiplier must be 1.1-20.0" };
|
||||
}
|
||||
}
|
||||
|
||||
const oee = thresholds.oeeAlertThresholdPct;
|
||||
if (oee != null) {
|
||||
const v = Number(oee);
|
||||
|
||||
Reference in New Issue
Block a user