injectMarker
This method is to create an "instance" marker to the current record of a session. Then you can call updateMarker to turn this marker into an "interval" marker.
You must call createRecord before you call this method.
Parameters
Name | Type | Required | Description |
cortexToken |
| yes | A token returned by authorize. |
session |
| yes | A session id returned by createSession. The marker will be added to the current record of this session. |
time |
| yes | The start timestamp of the marker. It is the number of milliseconds that have elapsed since 00:00:00 Thursday, 1 January 1970 UTC. |
value |
| yes | The value of the marker. It can be a string or an integer. If it is an integer then it must be positive or zero. |
label |
| yes | The label of the marker. |
port |
| no | The port of the marker, or where the marker comes from. Examples: "USB", "Serial", etc... The default value is "Software" |
extras |
| no | Any extra information you want to associate with the marker. |
Result
The result is an object containing these fields:
Name | Type | Description |
recordId |
| The id of the record this marker was added to. |
sessionId |
| The id of the session associated to the record. |
marker |
| A marker object that represents the marker that was created. |
Examples
Last updated