Methods
(static) addMetrics(id, metrics)
- Description:
- Adds a record with metrics data to the table
Example
driverTable.addMetrics("myId", [{"value":"val 1", "metadata": {"url": "example.com"}}, {"value": "val 2"}])
Parameters:
| Name |
Type |
Description |
id |
string
|
The unique identifier for the table record. Added as value for column "ID". Max 50 characters |
metrics |
Array.<{value: *, metadata: (MetricMetadata|null)}>
|
A list of values (and eventually metadata) to be added in the table for that record |
- Description:
- Returns the prepared table definition and values in the current driver execution
Example
driverTable.getResult()
Returns:
-
Type
-
DriverTableResult
(static) insertRecord(id, values)
- Description:
- Inserts a record inside the Custom Driver table object.
The final table and values will be sent to the cloud with the D.success() callback implicitly
- Deprecated:
- This function has been deprecated in favor of
addMetrics.
Example
driverTable.insertRecord("myId", ["val 1", "val 2"])
Parameters:
| Name |
Type |
Description |
id |
string
|
The unique identifier for the table record. Added as value for column "ID". Max 50 characters |
values |
Array.<any>
|
A list of values to be added in the table for that record |
(static) upsertRecord(id, values)
- Description:
- Inserts or Updates a record inside the Custom Driver table object.
The final table and values will be sent to the cloud with the D.success() callback implicitly
- Deprecated:
- This function has been deprecated in favor of
addMetrics.
Example
driverTable.upsertRecord("myId", ["val 1", "val 2"])
Parameters:
| Name |
Type |
Description |
id |
string
|
The unique identifier for the table record. Added as value for column "ID". Max 50 characters |
values |
Array.<any>
|
A list of values to be added in the table for that record |