-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev-operations' of github.com:nishant-jain-94/sro-ontol…
…ogy-manager into dev-operations
- Loading branch information
Showing
9 changed files
with
129 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,31 @@ | ||
// # Neo4j Router | ||
|
||
// ## neo4j.routes.js | ||
|
||
// The routes ued for API endpoints for Neo4j | ||
|
||
// Imports the required dependencies | ||
var express = require('express'); | ||
var router = express.Router(); | ||
var neo4jController = require('./neo4j.controller'); | ||
|
||
// GET `neo4jHealthStatus` | ||
// To get the health status of Neo4j | ||
router.get('/neo4jHealthStatus', function (req, res, next) { | ||
neo4jController.getNeo4jStatus((err, data) => { | ||
if(!err) res.json(data); | ||
else next(err); | ||
}); | ||
}); | ||
|
||
// GET `neo4jData` | ||
// To get Neo4j data like number of nodes and number of relationships | ||
router.get('/neo4jData', function (req, res, next) { | ||
neo4jController.getNeo4jData((err, data) => { | ||
if(!err) res.json(data); | ||
else next(err); | ||
}); | ||
}); | ||
|
||
// Exporting the router | ||
module.exports = router; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,49 @@ | ||
// # RabbitMQ Router | ||
|
||
// ## rabbitmq.routes.js | ||
|
||
// The routes used for API endpoints for RabbitMQ | ||
|
||
// Imports the required dependencies | ||
var express = require('express'); | ||
var router = express.Router(); | ||
var rabbitmqController = require('./rabbitmq.controller'); | ||
|
||
// GET `noOfQueues` | ||
// To get the number of queues | ||
router.get('/noOfQueues', function (req, res, next) { | ||
rabbitmqController.getNoOfQueues((err, data) => { | ||
if(!err) res.json(data); | ||
else next(err); | ||
}); | ||
}) | ||
|
||
}) | ||
|
||
// GET `healthStatus` | ||
// To get the health status of RabbitMQ | ||
router.get('/healthStatus', function (req, res, next) { | ||
rabbitmqController.getHealthStatus((err, data) => { | ||
if(!err) res.json(data); | ||
else next(err); | ||
}); | ||
}) | ||
|
||
// GET `noOfConsumers` | ||
// To get the number of consumers | ||
router.get('/noOfConsumers', function (req, res, next) { | ||
rabbitmqController.getNoOfConsumers((err, data) => { | ||
if(!err) res.json(data); | ||
else next(err); | ||
}); | ||
}); | ||
|
||
// GET `consumerUtilisation` | ||
// To get the consumerUtilisation and other RabbitMQ data | ||
router.get('/consumerUtilisation', function (req, res, next) { | ||
rabbitmqController.getConsumerUtilisation((err, data) => { | ||
if(!err) res.json(data); | ||
else next(err); | ||
}); | ||
}); | ||
|
||
// Exporting the router | ||
module.exports = router; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters