Code Monkey home page Code Monkey logo

pagerditty's Introduction

PagerDitty

Simple script I threw together to generate oncall waiting and working time reports for my team of SREs.

TODO

  • Make this a webapp so we can run it with the pd_api_key baked in
  • Find an easy way to feed it a holiday schedule

Example usage

foo@bar:~$ docker run -it quay.io/jakedt/pagerditty --pd_api_key y_NbAkKc66ryYTWUXYEu --pd_id PBPDVGQ --pd_schedule_id P538IZH --start 2018-12-01T00:00:00Z
Date,waiting,incident
2018-12-02,12.0,0
2018-12-03,7.0,0
2018-12-04,7.0,0
2018-12-05,7.0,0
2018-12-06,7.0,0
2018-12-07,7.0,0
2018-12-08,12.0,0
2018-12-16,12.0,0
2018-12-17,7.0,0
2018-12-18,7.0,0
2018-12-19,7.0,0
2018-12-20,7.0,0
2018-12-21,7.0,0
2018-12-22,12.0,0
2018-12-30,12.0,0
2018-12-31,7.0,0

pagerditty's People

Watchers

 avatar  avatar

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.