An Eagle Eyes module for AWS Glue ![Build Status](https://camo.githubusercontent.com/f449e77f00b064e11ea90e4278c6d722b72c3314938d01d2257a8d322ce6957e/68747470733a2f2f7472617669732d63692e6f72672f6164646f6d6166692f6561676c652d657965732d6177732d676c75652e7376673f6272616e63683d6d6173746572)
This module operates as an extension for Eagle Eyes to enable checking and alerting for Glue Jobs.
Stable.
npm install eagle-eyes-aws-glue
- Alerts based on triggers and Job state validation;
- Alerts based on Job running out of time;
- Skip for alerts from a specific Job.
All required configuration are specified by a Glue Trigger, so to run a job checking you only need to call a method like this:
// run.js
var eeAwsGlue = require('eagle-eyes-aws-glue')
eeAwsGlue.checkJobRun().then(results => {
console.log(JSON.stringify(results));
}).catch(err => {
console.log(err)
})
It will return an empty array when all jobs had succeeded or an array like this if not:
[
{
"name": "job-txn",
"status": "STOPPED",
"runover": 0
}
{
"name": "job-err",
"status": "NOK"
},
{
"name": "job-rdm",
"status": "RUNNING",
"runover": 30
},
{
"name": "job-optin",
"status": "FAILED",
"runover": 0
}
]