This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$api_key = 'APIKEY'; | |
$api_call = 'https://api.hetrixtools.com/v2/'.$api_key.'/uptime/edit/'; | |
// List of monitors to update (MID => New Name) | |
$monitors = [ // Max 120 per batch per minute to avoid rate limiting | |
'MID_1' => 'New Monitor Name 1', | |
'MID_2' => 'New Monitor Name 2', | |
'MID_3' => 'New Monitor Name 3', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -z "$1" ]; then | |
echo | |
echo "Please pass either 'install' or 'update' as parameter" | |
echo | |
elif [ $1 = "update" ]; then | |
echo "---------------------" | |
echo "Updating hetrix rules" |