Skip to content

Instantly share code, notes, and snippets.

@lfepp
lfepp / get_alerts_csv.py
Last active May 25, 2016 16:57
Programatically acess and download the alerts for a PagerDuty incident as a CSV file
#!/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 / create_maintenance_window.cs
Last active May 25, 2016 16:56
Create a PagerDuty maintenance window using C#
using System;
using System.IO;
using System.Net;
using System.Text;
namespace Examples.System.Net
{
public class WebRequestPostExample
{
public static void Main()