content/flux/v0/stdlib/experimental/oee/apq.md
oee.APQ() computes availability, performance, quality (APQ) and overall equipment
effectiveness (OEE) in producing parts.
Provide the required input schema to ensure this function successfully calculates APQ and OEE.
Input tables must include the following columns:
range() or window()).For each input table, oee.APQ outputs a table with a single row that includes the following columns:
(
<-tables: stream[D],
idealCycleTime: A,
plannedTime: B,
runningState: C,
) => stream[{
E with
runTime: G,
quality: float,
performance: float,
oee: float,
availability: float,
_time: F,
_stop: F,
}] where C: Equatable, D: Record
{{% caption %}} For more information, see Function type signatures. {{% /caption %}}
({{< 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.
Input data. Default is piped-forward data (<-).