system.kanoa.cmms.getMaintenanceMTBFSummary(startDate, endDate)
Computes an aggregate Mean Time Between Failures (MTBF) summary across all assets for a specified date range, condensing reliability performance into a small set of headline figures rather than a per-asset or per-day breakdown.
It is typically used to populate summary KPI tiles or scorecards at the top of a maintenance/reliability dashboard, giving a quick, plant-wide reliability snapshot
for the selected period before a user drills into getMaintenanceMTBFByAsset or getMaintenanceMTBFDailyTrend for more detail.
Parameters
startDate DateTime: Start date
endDate DateTime: End date
Returns
mtbfSummary pyDataset
Example
# Populate a plant-wide MTBF summary KPI tile for the current quarter
startDate = system.date.addMonths(system.date.now(), -3)
endDate = system.date.now()
data = system.kanoa.utilities.convertDatasetToJSON(system.kanoa.cmms.getMaintenanceMTBFSummary(startDate, endDate))
for i, row in enumerate(data):
print 'Row %i'%i
for k,v in row.items():
print k,v
break #Just limiting to returning the columns from the first record for display purposes
>>>
Row 0
MTBF_Days 14.0
MTBF_Minutes 20242.0
intervalCount 1
assetCount 1
failureCount 1
>>>