eagle-eyes-aws-glue
Version:
An Eagle Eyes module to check executions of glue jobs
61 lines (47 loc) • 1.27 kB
Markdown
This module operates as an extension for Eagle Eyes to enable checking and alerting for Glue Jobs.
Stable.
```sh
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:
```js
// 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:
```json
[
{
"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
}
]
```