Cortex API
Search…
Marker object
A marker object includes these fields:
Name
Type
Description
uuid
string
The id of the marker.
type
string
Can be "interval" or "instance".
value
string or number
The value you set in injectMarker.
label
string
The label of the marker.
port
string
The port of the marker, ie where the marker comes from. Examples: "Software", "Serial", etc...
startDatetime
string (ISO date time)
The timestamp you set in injectMarker.
endDatetime
string (ISO date time)
The timestamp you set in updateMarker.
If you didn't call this method, then endDatetime is equal to startDatetime.
extras
object
Can be any extra information you want to associate with this marker.

Examples

An instance marker:
1
{
2
"extras": {},
3
"label": "test2",
4
"port": "Cortex Example",
5
"startDatetime": "2019-06-06T15:57:41.529661+07:00",
6
"endDatetime": "2019-06-06T15:57:41.529661+07:00",
7
"type": "instance",
8
"uuid": "26fccfd8-e487-4623-910a-1ba8591fcdcf",
9
"value": 42
10
}
Copied!
An interval marker:
1
{
2
"extras": {},
3
"label": "test2",
4
"port": "Cortex Example",
5
"startDatetime": "2019-06-06T15:57:41.529661+07:00",
6
"endDatetime": "2019-06-06T15:57:49.530743+07:00",
7
"type": "interval",
8
"uuid": "26fccfd8-e487-4623-910a-1ba8591fcdcf",
9
"value": 42
10
}
Copied!
Copy link
Contents
Examples