content/flux/v0/stdlib/experimental/oee/computeapq.md
oee.computeAPQ() computes availability, performance, and quality (APQ)
and overall equipment effectiveness (OEE) using two separate input streams:
production events and part events.
For each input table, oee.computeAPQ outputs a table with a single row and
the following columns:
(
idealCycleTime: A,
partEvents: stream[B],
plannedTime: C,
productionEvents: stream[D],
runningState: E,
) => stream[{
F with
runTime: H,
quality: float,
performance: float,
oee: float,
availability: float,
_time: G,
_stop: G,
}] where B: Record, D: Record, E: Equatable
{{% caption %}} For more information, see Function type signatures. {{% /caption %}}
({{< req >}}) Production events stream that contains the production state or start and stop events.
Each row must contain the following columns:
range() or window()).runningState to specify which value in the state
column represents a running state.({{< req >}}) Part events that contains the running totals of parts produced and parts that do not meet quality standards.
Each row must contain the following columns:
range() or window()).({{< req >}}) State value that represents a running state.
({{< req >}}) Total time that equipment is expected to produce parts.
({{< req >}}) Ideal minimum time to produce one part.