@jambonz/time-series 0.2.4 → 0.2.5

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.
Files changed (2) hide show
  1. package/index.js +3 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -339,11 +339,13 @@ const writeCallCountSP = async(client, count) => {
339
339
 
340
340
  const writeCallCountApp = async(client, count) => {
341
341
  if (!client.locals.initialized) await initDatabase(client, 'app_call_counts');
342
- const {application_sid, ...fields} = count;
342
+ const {application_sid, service_provider_sid, account_sid, ...fields} = count;
343
343
  const data = {
344
344
  measurement: 'app_call_counts',
345
345
  fields,
346
346
  tags: {
347
+ service_provider_sid,
348
+ account_sid,
347
349
  application_sid
348
350
  }
349
351
  };
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.5",
4
4
  "description": "write and query data to time series daetabase",
5
5
  "main": "index.js",
6
6
  "scripts": {