Documentation Index
Fetch the complete documentation index at: https://mintlify.com/BhaveshBytess/PREDICTIVE-MAINTENANCE/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The What-If Analysis endpoint allows you to test hypothetical sensor scenarios without affecting the production system. Input manual sensor values to see predicted health scores, risk levels, and detailed feature contributions.This is a read-only simulation endpoint. It does not affect production data, trigger alerts, or modify system state. Use it to explore “what-if” scenarios and validate risk thresholds.
Endpoint
Request Body
Voltage in Volts. Must be between 150V and 300V.Example:
230.0 (Indian Grid nominal)Current in Amperes. Must be between 1A and 50A.Example:
15.0 (normal operating current)Power Factor (dimensionless). Must be between 0.3 and 1.0.Example:
0.92 (good efficiency)Vibration in g-force. Must be between 0.01g and 10.0g.Example:
0.15 (normal vibration level)Asset identifier to compare against. If this asset has live data, the response will include comparison metrics.Example:
"asset-001"Response
Anomaly confidence score between 0 and 1. Higher values indicate more anomalous behavior.Example:
0.345Overall health score from 0 to 100. Derived from
100 × (1 - anomaly_score).Example: 65Risk classification based on health score:
- LOW: health_score ≥ 75
- MODERATE: health_score ≥ 50
- HIGH: health_score ≥ 25
- CRITICAL: health_score < 25
"MODERATE"Array of feature contributions explaining which sensor values contributed most to the anomaly score.
Human-readable explanation of the prediction based on top contributing factors.Example:
"Vibration (2.50g) is significantly elevated. Current draw (35.0A) indicates potential overload."Comparison with live system state (only present if asset has recent data).
Example Request
Example Response
Use Cases
Testing Fault Scenarios
Simulate known fault conditions (motor stall, bearing failure, voltage spike) to validate that the ML model correctly identifies them:Validating Thresholds
Test edge cases to determine at what point the system transitions between risk levels:Comparing to Live State
When providing anasset_id with live data, the response includes comparison metrics showing how your hypothetical scenario differs from current reality.
Preset Scenarios
Use theGET /sandbox/presets endpoint to retrieve pre-configured fault scenarios:
- Normal: Healthy operating conditions
- Motor Stall: High current draw with poor power factor
- Voltage Spike: Grid voltage spike
- Bearing Failure: Excessive vibration
Error Responses
400 Bad Request - No Trained Detector
/integration/calibrate endpoint.