appstract / nova-horizon
Horizon statistics in Nova
Installs: 186 447
Dependents: 0
Suggesters: 0
Security: 0
Stars: 79
Watchers: 6
Forks: 5
Open Issues: 6
Language:Vue
Requires
- php: ^7.4|^8.0
- laravel/horizon: ^5.0
- dev-master
- 3.2.0
- 3.1.1
- 3.1.0
- 3.0.0
- 2.x-dev
- 2.1.0
- 2.0.0
- 1.x-dev
- 1.1.0
- 1.0.0
- dev-dependabot/npm_and_yarn/express-4.19.2
- dev-dependabot/npm_and_yarn/webpack-dev-middleware-5.3.4
- dev-dependabot/npm_and_yarn/follow-redirects-1.15.6
- dev-dependabot/npm_and_yarn/babel/traverse-7.23.7
- dev-dependabot/npm_and_yarn/postcss-8.4.31
- dev-dependabot/npm_and_yarn/browserify-sign-4.2.2
This package is auto-updated.
Last update: 2024-10-28 05:12:10 UTC
README
Add Horizon statistics to your Nova dashboard.
Installation
You can install the package via composer:
composer require appstract/nova-horizon
Usage
There are two ways to use this package. One is to enable the Horizon dashboard or tool in your application's NovaServiceProvider
. This will add a new dashboard to Nova, shown in the screenshot above.
class NovaServiceProvider extends NovaApplicationServiceProvider { protected function dashboards() { return [ new \Appstract\NovaHorizon\Dashboard, ]; } protected function tools() { return [ new \Appstract\NovaHorizon\Tool, ]; } }
Second way is by adding cards to the main dashboard or your own dashboard(s).
class Main extends Dashboard { public function cards() { return [ // Like the dashboard new \Appstract\NovaHorizon\Cards\Stats, new \Appstract\NovaHorizon\Cards\Workload, new \Appstract\NovaHorizon\Cards\PendingJobs, new \Appstract\NovaHorizon\Cards\FailedJobs, new \Appstract\NovaHorizon\Cards\CompletedJobs, // Stats as seperate cards new \Appstract\NovaHorizon\Cards\JobsPerMinute, new \Appstract\NovaHorizon\Cards\RecentJobsCount, new \Appstract\NovaHorizon\Cards\FailedJobsCount, new \Appstract\NovaHorizon\Cards\Status, new \Appstract\NovaHorizon\Cards\TotalProcesses, new \Appstract\NovaHorizon\Cards\MaxWaitTime, new \Appstract\NovaHorizon\Cards\MaxRuntime, new \Appstract\NovaHorizon\Cards\MaxThroughput, ]; } }
Contributing
Contributions are welcome, thanks to y'all :)
About Appstract
Appstract is a small team from The Netherlands. We create (open source) tools for Web Developers and write about related subjects on Medium. You can follow us on Twitter.
License
The MIT License (MIT). Please see License File for more information.