Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add new PLAY_FILENOTFOUND alert #13

Merged
merged 1 commit into from
Dec 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ const AlertType = {
SP_CALL_LIMIT: 'service-provider-call-limit',
SP_DEVICE_LIMIT: 'service-provider-device-limit',
SP_API_LIMIT: 'service-provider-api-limit',
ACCOUNT_INACTIVE: 'account is inactive or suspended'
ACCOUNT_INACTIVE: 'account is inactive or suspended',
PLAY_FILENOTFOUND: 'play-url-notfound'
};

const schemas = {
Expand Down Expand Up @@ -669,6 +670,9 @@ const writeAlerts = async(client, alerts) => {
// eslint-disable-next-line max-len
message = `you have exceeded your service provider api limit of ${count}; please consider upgrading your plan`;
break;
case AlertType.PLAY_FILENOTFOUND:
message = `The file at ${url} was not found`;
break;
default:
break;
}
Expand Down
Loading