-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Original question on KPI-ML syntax:
• Formula
Some APM metrics, eg Cost of Unplanned Downtime (CUD), can be calculated with any of several equations, e.g. either as (quantity X estimated average cost) or as a sum of actual costs over the quantity. The units are the same regardless of which equation is used. Is it appropriate to list two separate Formula elements for the two equations? If so, I’ll do this, as it makes a better example. If not OK, I can just pick one equation and comment on the other variant in Notes.
In the case of PercentRAV and ChangeInPercentRAV, would you recommend combining them into a single KPI Definition with two Formulas, or should they be handled as two related KPIs and files?
In general, is the multiplicity of Formula meant for
- variants of the equation, as in CUD?
- multiple distinct equations where the second and subsequent Formulas define how to calculate components of the first Formula, as in PercentRAV/ChangeInPercentRAV or as in estimating the average cost component for the first CUD equation?
Or is the KPI-ML standard flexible on this usage aspect?
• Duration and Recurrence
The APM metrics are exemplified as annual, year-over-year measures, although obviously they can be calculated for any time period. I am not clear on the correct syntax to specify an example TimeRange with annual Duration and Recurrence for the KPI Definition or KPI Instance.
The XSD says Duration and Recurrence are of DateTimeType. A natural time period string like “1 year” makes a readable example but will not convert correctly to a DateTime data type. The KPI-ML Word doc discusses TimeRange with respect only to KPI Value, where specific start and end dates obviously make sense. For KPI Definition and KPI Instance, a more generic TimeRange seems suitable. In ISO 8601:2004, all Duration formats start with the letter P and are specified in 4.4.3 in formats such as “P1Y6M” or “P2W” or “P0002-00-00”; all of these will fail to convert to a DateTime or even a TimeSpan.
What would be the best Duration and Recurrence format to use for our examples? Or should I omit these properties for now?