@jambonz/time-series 0.2.11 → 0.2.12
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 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -17,7 +17,8 @@ const AlertType = {
|
|
|
17
17
|
SP_CALL_LIMIT: 'service-provider-call-limit',
|
|
18
18
|
SP_DEVICE_LIMIT: 'service-provider-device-limit',
|
|
19
19
|
SP_API_LIMIT: 'service-provider-api-limit',
|
|
20
|
-
ACCOUNT_INACTIVE: 'account is inactive or suspended'
|
|
20
|
+
ACCOUNT_INACTIVE: 'account is inactive or suspended',
|
|
21
|
+
PLAY_FILENOTFOUND: 'play-url-notfound'
|
|
21
22
|
};
|
|
22
23
|
|
|
23
24
|
const schemas = {
|
|
@@ -669,6 +670,9 @@ const writeAlerts = async(client, alerts) => {
|
|
|
669
670
|
// eslint-disable-next-line max-len
|
|
670
671
|
message = `you have exceeded your service provider api limit of ${count}; please consider upgrading your plan`;
|
|
671
672
|
break;
|
|
673
|
+
case AlertType.PLAY_FILENOTFOUND:
|
|
674
|
+
message = `The file at ${url} was not found`;
|
|
675
|
+
break;
|
|
672
676
|
default:
|
|
673
677
|
break;
|
|
674
678
|
}
|