https://ns.adobe.com/xdm/data/metricdefinition
A metric definition is a definition of a measurable or countable quantity.
A metric definition consists of a measurement and a dimension. For easier identification, metrics have a name and a unique URI that can be used when referring to the metric definition.
Through XDM's extensibility mechanism, new metrics can be defined by extending Metric Definition
.
Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Defined In |
---|---|---|---|---|---|---|
Can be instantiated | Yes | Stabilizing | Yes | Forbidden | Permitted | data/metricdefinition.schema.json |
- Metric Definition
https://ns.adobe.com/xdm/data/metricdefinition
- Extensibility base schema
https://ns.adobe.com/xdm/common/extensible
- Extensibility base schema
{
"schema:name": "Example Metric",
"@id": "https://ns.adobe.com/xdm/data/example-metric",
"xdm:measurement": "weight",
"xdm:unit": "kg"
}
Property | Type | Required | Defined by |
---|---|---|---|
@id | string |
Required | Metric Definition (this schema) |
schema:name | string |
Required | Metric Definition (this schema) |
xdm:measurement | string |
Required | Metric Definition (this schema) |
xdm:unit | complex | Required | Metric Definition (this schema) |
* |
any | Additional | this schema allows additional properties |
The unique identifier of this metric.
@id
- is required
- type:
string
- defined in this schema
string
- format:
uri
– Uniformous Resource Identifier (according to RFC3986)
The human-readable name of the metric. The name can be used in user interfaces and does not have to be unique.
schema:name
- is required
- type:
string
- defined in this schema
string
How to take measures of this metric.
xdm:measurement
- is required
- type:
string
- defined in this schema
string
"distance"
"time"
"price"
"count"
xdm:unit
- is required
- type: complex
- defined in this schema
Any following options needs to be fulfilled.
string