Skip to content

Instantly share code, notes, and snippets.

Luke Epp lfepp

Block or report user

Report or block lfepp

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@lfepp
lfepp / create_maintenance_window.cs
Last active May 25, 2016
Create a PagerDuty maintenance window using C#
View create_maintenance_window.cs
using System;
using System.IO;
using System.Net;
using System.Text;
namespace Examples.System.Net
{
public class WebRequestPostExample
{
public static void Main()
@lfepp
lfepp / get_alerts_csv.py
Last active May 25, 2016
Programatically acess and download the alerts for a PagerDuty incident as a CSV file
View get_alerts_csv.py
#!/usr/bin/env python
#
# Copyright (c) 2016, PagerDuty, Inc. <info@pagerduty.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
@lfepp
lfepp / get_incident_details_csv.py
Last active Mar 15, 2019
Output PagerDuty incident details to a CSV
View get_incident_details_csv.py
#!/usr/bin/env python
#
# Copyright (c) 2016, PagerDuty, Inc. <info@pagerduty.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
@lfepp
lfepp / get_incidents_csv.py
Created May 25, 2016
Sample script to output all PagerDuty incidents for a given time period to a CSV file (defaults to previous 24 hours)
View get_incidents_csv.py
#!/usr/bin/env python
#
# Copyright (c) 2016, PagerDuty, Inc. <info@pagerduty.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
@lfepp
lfepp / incidents_in_service.rb
Created May 26, 2016
Sample script to pull all PagerDuty incidents from a service within a given time range and print the output to the file incidents_in_service.txt
View incidents_in_service.rb
#!/usr/bin/env ruby
#
# Copyright (c) 2016, PagerDuty, Inc. <info@pagerduty.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
@lfepp
lfepp / get_recent_incidents.sh
Created May 26, 2016
Sample shell script to pull PagerDuty incidents that were triggerd within the given time period and are in currently queue
View get_recent_incidents.sh
#!/bin/sh
#
# Copyright (c) 2016, PagerDuty, Inc. <info@pagerduty.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
@lfepp
lfepp / trigger_incident_multiple_services.py
Created Jun 1, 2016
Trigger a PagerDuty incident within multiple services
View trigger_incident_multiple_services.py
#!/usr/bin/env python
#
# Copyright (c) 2016, PagerDuty, Inc. <info@pagerduty.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
@lfepp
lfepp / get_log_entry_details.rb
Last active Jun 1, 2016
Script to retrieve detailed information about a specific log entry in PagerDuty
View get_log_entry_details.rb
#!/usr/bin/env ruby
#
# Copyright (c) 2016, PagerDuty, Inc. <info@pagerduty.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
@lfepp
lfepp / get_incident_log_entries.rb
Created Jun 2, 2016
Script to retrieve all log entries from a PagerDuty incident
View get_incident_log_entries.rb
#!/usr/bin/env ruby
#
# Copyright (c) 2016, PagerDuty, Inc. <info@pagerduty.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
@lfepp
lfepp / get_log_entry_details_file.rb
Created Jun 2, 2016
Script to retrieve detailed information about a specific PagerDuty log entry in a plain text file
View get_log_entry_details_file.rb
#!/usr/bin/env ruby
#
# Copyright (c) 2016, PagerDuty, Inc. <info@pagerduty.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
You can’t perform that action at this time.