The Pulse API package by Roberto Gallea gives you all the data available in Laravel Pulse as a JSON API. This package defines two API endpoints for getting Pulse data. These API endpoints are protected using a configurable Pulse middleware for authorization:
-
/api/pulse
-
/api/pulse/{$type}
The /api/pulse/{$type}
endpoint works with the following metric types provided by Pulse:
- servers
- usage
- queues
- cache
- slow_queries
- exceptions
- slow_requests
- slow_jobs
- slow_outgoing_requests
You can learn more about this package, get full installation instructions, and view the source code on GitHub.
The post Access Laravel Pulse Data as a JSON API appeared first on Laravel News.
Join the Laravel Newsletter to get Laravel articles like this directly in your inbox.