GithubHelp home page GithubHelp logo

isabella232 / pagerduty-incidents-to-smartsheet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pagerduty-samples/pagerduty-incidents-to-smartsheet

0.0 0.0 0.0 2 KB

Python script that sends PagerDuty incidents to a sheet in Smartsheet

Python 100.00%

pagerduty-incidents-to-smartsheet's Introduction

PagerDuty Incidents to Smartsheet

This is a Python script that sends PagerDuty incidents to a sheet in Smartsheet. The script adds new incidents to the bottom of the sheet, and updates any existing incident already in the sheet.

This is very basic. The update only checks if the incident id is already in the sheet, and then updates the entire row no matter if there are any changes in the incident.

Dependencies

This script relies on the PagerDuty API Python as well as the Smartsheet Python SDK. Before using the script please install both of those libraries using PIP.

pip install pypd
pip install smartsheet-python-sdk

Instructions

  1. Create a sheet, and get the Sheet ID from File->Sheet Properties in the Smartsheet UI.
  2. As the code stands right now, it relies on the names of the columns in the sheet to put the PagerDuty information in the correct cells. Currently, the names of the columns are as follows:
  • ID
  • Number
  • Incident
  • Description
  • Created At
  • Status
  • Service
  • On Call

If you change the names of the columns in the sheet, then make changes to the code around lines 66-108.

  1. Set your value for smartsheet_token on line 10.
  2. Set your value for sheet_id on line 12.
  3. Set your value for pypd.api_key on line 14.

pagerduty-incidents-to-smartsheet's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.