pfEnterpriseStatisticsType
Description
Defines the metric, value and aggregation for an individual statistic
Properties
Name | Description | Required | Type |
---|---|---|---|
Metric | The metric the stat relates to, e.g. anitbiotic.udder. | Yes | icarIdentifierType |
Method | The measurement standard or process used to create the statistic. | No | icarIdentifierType |
Units | The units of the statistic. | No | string |
Value | The value of the statistic. | No | Number |
LastKnownValue | The last known value for this statistics point - i.e. if no new data this is the last known data. | No | Number |
LastKnownValueDate | UTC Date the last known value was observed. | No | date |
Aggregation | The type of statistic - min, max, mean etc. | No | icarAggregationType |
Examples
Example 1
{
"metric": {
"scheme": "uk.co.dairyco.metrics",
"id": "MilkProduction"
},
"method": {
"scheme": "uk.co.dairyco.methods",
"id": "MilkMeter"
},
"units": "litres per cow per day",
"value": 25.8,
"lastKnownValue": 26.1,
"lastKnownValueDate": "2022-08-01",
"aggregation": "Average"
}