Sign in
apache
/
openwhisk-package-cloudant
/
32fb8bbd346b7e3755f59688bcb20e35eb790bc0
/
.
/
provider
/
lib
/
health.js
blob: 690dc7157c0e19346f893022776370aac2bd9135 [
file
] [
log
] [
blame
]
module
.
exports
=
function
(
logger
,
providerUtils
)
{
// Health Endpoint
this
.
endPoint
=
'/health'
;
// Health Logic
this
.
health
=
function
(
req
,
res
)
{
res
.
send
({
triggerCount
:
Object
.
keys
(
providerUtils
.
triggers
).
length
});
};
};