drinks-it / monitoring
Miscellaneous monitoring tools
1.1.1
2021-05-17 11:36 UTC
Requires
- php: >=7.2
- ext-json: *
- jtl-software/opsgenie-client: ^2.0
- psr/log: ^1.1
This package is auto-updated.
Last update: 2024-12-19 18:02:08 UTC
README
OPSGENIE_API_KEY
env var should be defined, otherwise 'Could not authenticate' error occurrs (safe fail, no exceptions)
Usage:
<?php require_once __DIR__ . '/vendor/autoload.php'; $ops = new \Monitoring\Alert\Opsgenie(); $desc = <<< MSG <strong>Alert H1</strong> <a href="https://www.example.com">Click</a> here Simple Text is also fine you can do some line brakes. Like this. MSG; var_dump($ops->raise("Alert subject", $desc));