@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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jambonz/time-series",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "description": "write and query data to time series daetabase",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -35,6 +35,7 @@ test('write timeseries data', async(t) => {
35
35
  trunk: 'device',
36
36
  service_provider_sid: 'zzzzz',
37
37
  account_sid: 'xxxx',
38
+ recording_url: '/Accounts/12345/RecentCalls/54321/record'
38
39
  },
39
40
  {
40
41
  from: 'me2',