Sign in
apache
/
openwhisk-package-cloudant
/
bb6a0e2427a335b5a14c5c0143fb7ff5a280925d
/
.
/
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
});
};
};