Sign in
apache
/
openwhisk-pluggable-provider
/
58617c5d8ff1431316914066b7d3688c5dbbef3a
/
.
/
provider
/
lib
/
health.js
blob: 808295dc4a4d8b3211298a7acc8389b4aeee099f [
file
] [
log
] [
blame
]
module
.
exports
=
function
(
providerUtils
)
{
// Health Endpoint
this
.
endPoint
=
'/health'
;
// Health Logic
this
.
health
=
function
(
req
,
res
)
{
res
.
send
({
triggerCount
:
Object
.
keys
(
providerUtils
.
triggers
).
length
});
};
};