-
Notifications
You must be signed in to change notification settings - Fork 1
Health endpoint #581
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Health endpoint #581
Conversation
👋 @bbrands02
|
} | ||
|
||
$responseStatusCode = 400; | ||
$message = 'ome database connections failed: '.(string) $mongoDBFailCount.' out of '.(string) $mongoDBCount.' connections'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ome?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In case he combines 2 messages he uses lower s and if this is the start of the message he uses capital S
$status = 'warn'; | ||
} | ||
|
||
$responseStatusCode = 400; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would throw a 500-range here
$status = 'fail'; | ||
$errors = null; | ||
$outputMessage = $outputMessage ? $outputMessage .= ' and could not fetch error logs: '.$e->getMessage() : $outputMessage = 'Could not fetch error logs: '.$e->getMessage(); | ||
$responseStatusCode = 400; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, 400 range sounds like the test does something wrong, instead of that there's an error on the server
* | ||
* @param MetricsService $metricsService The metrics service | ||
* @param ParameterBagInterface $parameters The Parameter bag | ||
* @param EntityManagerInterface $entityManager The Parameter bag |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docblock description incorrect
No description provided.