JSFiddle

  • Simulate an outage on pdt-dave-events

    jQuery 3.1.1, HTML, CSS, JavaScript

    function pd(key, payload) {
      $.ajax({
        type: 'POST',
        url: "https://events.pagerduty.com/integration/" + key + "/enqueue",
        data: JSON.stringify(payload),
        success ...
  • Simulate an outage on pdt-dave-events

    jQuery 3.1.1, HTML, CSS, JavaScript

    function pd(key, payload) {
      $.ajax({
        type: 'POST',
        url: "https://events.pagerduty.com/integration/" + key + "/enqueue",
        data: JSON.stringify(payload),
        success ...
  • Simulate an outage on pdt-dave-events

    jQuery 3.1.1, HTML, CSS, JavaScript

    function hit(key) {
      $.get("https://events.pagerduty.com/integration/"+key+""/enqueue")
    }
    
    function log(str) {
      $("#log").append(str + "\n")
    }
    
    function schedule ...
  • Trigger Stackdriver on pdt-alper #1 is the latest revision

    jQuery 2.1.0, HTML, CSS, JavaScript

    // Set up the library
    PDJS = new PDJSobj()
    
    trigger = function() {
      // Trigger via the rest API
      PDJS.trigger({
        url:"https://events.pagerduty ...
  • Trigger Stackdriver on pdt-alper

    jQuery 2.1.0, HTML, CSS, JavaScript

    // Set up the library
    PDJS = new PDJSobj()
    
    trigger = function() {
      // Trigger via the rest API
      PDJS.trigger({
        url:"https://events.pagerduty ...
  • Trigger Stackdriver on pdt-alper

    jQuery 2.1.0, HTML, CSS, JavaScript

    // Set up the library
    PDJS = new PDJSobj()
    
    trigger = function() {
      // Trigger via the rest API
      PDJS.trigger({
        service_key: "8a7c30e45fa048fa9ac761c756ef0ad9",
        incident_key: "stackdriver__ ...
  • Trigger Stackdriver on pdt-alper

    jQuery 2.1.0, HTML, CSS, JavaScript

    // Set up the library
    PDJS = new PDJSobj()
    
    trigger = function() {
      // Trigger via the rest API
      PDJS.trigger({
        service_key: "818024b7c57746da9abf64b6ffde8e89",
        incident_key: "stackdriver__ ...
  • See the list of vendors #2 is the latest revision

    jQuery 1.11.0, HTML, CSS, JavaScript

    // As always configure PDJS with your subdomain and api-key
    PDJS = new PDJSobj({
        subdomain: "subdomain",
        token: "FULL ACCESS API KEY",
    })
    
    PDJS ...
  • See the list of vendors #2 is the latest revision

    jQuery 1.11.0, HTML, CSS, JavaScript

    // As always configure PDJS with your subdomain and api-key
    PDJS = new PDJSobj({
        subdomain: "subdomain",
        token: "FULL ACCESS API KEY",
    })
    
    PDJS ...
  • Hammer a service

    No-Library (pure JS), HTML, CSS, JavaScript

    var successes = 0,
        fails = 0;
    var ts = Date.now()
    service_id = location.href.replace(/.*\//, '')
    domain = location.href.replace(/services.*/, '')
    for (i ...