PHP code example of drinks-it / monitoring
1. Go to this page and download the library: Download drinks-it/monitoring library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
drinks-it / monitoring example snippets
= 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));