Data - TimeSpanDoc
The TimeSpanDoc document is a data document that contains the properties and a data values for an individual time span instance.
Field | Data Type | Required | Default | Description |
---|---|---|---|---|
id | String | Yes | - | Regno unique document identifier. |
type | Fixed String | No | TimeSpanDoc | Type of the document, resolved from fixed document types. |
timeSpanType | Fixed String | Yes | Interval | The time span type. Valid Options are: Interval, Lap, Year, Month, Day, Hour, Minute, Second, Version, Revision, Period, Measurement, Test, Run, Experiment, Result |
number | Int32 | No | - | An integer value associated with the time span instance. |
startTime | Int64 | Yes | - | A 64-bit Long timestamp specifying the start time of the time span instance. The timestamp represents the number of nanoseconds since the reference time of midnight, 1st January 1970. |
endTime | Int64 | No | - | A 64-bit Long timestamp specifying end time of the time span instance. The timestamp represents the number of nanoseconds since the reference time of midnight, 1st January 1970. |
duration | Int64 | No | - | A 64-bit Long value specifying the duration of the time span instance. The value represents the number of nanoseconds between start and end time. |
source | String | No | - | A free form string describing the data source for the time span instance. |
markerType | String | Yes | - | A free form string describing the time span instance type. |
Sample JSON
Below is a sample JSON representation of the TimeSpanDoc structure:
▼ TimeSpanDoc Sample JSON
{
"duration": {
"$type": "Int64"
},
"endTime": {
"$type": "Int64"
},
"id": "-",
"markerType": "-",
"number": {
"$type": "Int32"
},
"source": "-",
"startTime": {
"$type": "Int64"
},
"timeSpanType": {
"$type": "Fixed String"
},
"type": {
"$type": "Fixed String"
}
}