@jambonz/time-series 0.2.4 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +5 -2
- package/package.json +1 -1
- package/test/unit-tests.js +1 -0
package/index.js
CHANGED
|
@@ -34,7 +34,8 @@ const schemas = {
|
|
|
34
34
|
terminated_at: Influx.FieldType.INTEGER,
|
|
35
35
|
termination_reason: Influx.FieldType.STRING,
|
|
36
36
|
remote_host: Influx.FieldType.STRING,
|
|
37
|
-
trace_id: Influx.FieldType.STRING
|
|
37
|
+
trace_id: Influx.FieldType.STRING,
|
|
38
|
+
recording_url: Influx.FieldType.STRING
|
|
38
39
|
},
|
|
39
40
|
tags: [
|
|
40
41
|
'service_provider_sid',
|
|
@@ -339,11 +340,13 @@ const writeCallCountSP = async(client, count) => {
|
|
|
339
340
|
|
|
340
341
|
const writeCallCountApp = async(client, count) => {
|
|
341
342
|
if (!client.locals.initialized) await initDatabase(client, 'app_call_counts');
|
|
342
|
-
const {application_sid, ...fields} = count;
|
|
343
|
+
const {application_sid, service_provider_sid, account_sid, ...fields} = count;
|
|
343
344
|
const data = {
|
|
344
345
|
measurement: 'app_call_counts',
|
|
345
346
|
fields,
|
|
346
347
|
tags: {
|
|
348
|
+
service_provider_sid,
|
|
349
|
+
account_sid,
|
|
347
350
|
application_sid
|
|
348
351
|
}
|
|
349
352
|
};
|
package/package.json
CHANGED