https://ns.adobe.com/xdm/data/measure
A measure is a concrete quantifiable data point of a particular metric.
It has a value, and optionally a unit, although the unit can be inferred from the measure's metric.
Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Defined In |
---|---|---|---|---|---|---|
Can be instantiated | Yes | Stabilizing | No | Forbidden | Permitted | data/measure.schema.json |
{
"@type": "https://ns.adobe.com/xdm/data/example-metric",
"xdm:unit": null,
"xdm:value": 175
}
Property | Type | Required | Defined by |
---|---|---|---|
@type | string |
Optional | Measure (this schema) |
xdm:id | string |
Optional | Measure (this schema) |
xdm:unit | complex | Optional | Measure (this schema) |
xdm:value | number |
Required | Measure (this schema) |
* |
any | Additional | this schema allows additional properties |
Links to the Metric
that this measure refers to. The @type
can be omitted in contexts where it is obvious what metric is being referred to, for instance in the Metrics
object that is keyed with Metric
URIs.
@type
- is optional
- type:
string
- defined in this schema
string
- format:
uri
– Uniformous Resource Identifier (according to RFC3986)
Unique identifier of the measure. In cases of data collection using lossy communication channels, such as mobile apps or websites with offline functionality, where transmission of measures cannot be ensured, this property contains a client-generated, unique ID of the measure taken. It is best practice to make this sufficiently long to ensure enough entropy. Additionally, if information such as time stamp, device ID, IP or MAC address, or other potentially user-identifying values are incorporated in the generation of the xdm:id, the result should be hashed, so that no PII is encoded in the value, as the goal is not to identify user or device, but the specific measure in time.
xdm:id
- is optional
- type:
string
- defined in this schema
string
- minimum length: 20 characters
The (optional) unit that this measure's value is measured in. The unit
in the Measure
is purely informational, as the unit
property of the referenced Metric
determines the interpretation.
xdm:unit
- is optional
- type: complex
- defined in this schema
Any following options needs to be fulfilled.
string
"m"
"kg"
"s"
"USD"
The quantifiable value of this measure.
xdm:value
- is required
- type:
number
- defined in this schema
number