Giter Club home page Giter Club logo

pd2jira_python's People

Contributors

mrblackbelt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pd2jira_python's Issues

microsoft-http-endpoint blueprint?

There doesn't seem to be a lambda blueprint named: microsoft-http-endpoint. Tried creating using the blank function, but still not working. When I import my lambda.zip, this is what the code looks like below. When I look at the cloudwatch logs, it doesn't appear that the pager duty test is even hitting the API created by the lamda function: https://xs3clsn0rb.execute-api.us-east-1.amazonaws.com/prod/
Any suggestions? Sorry, I'm not a developer and am researching options for our operations teams.
Thanks,

from Ticket import Ticket
from PagerDuty import PagerDuty

def lambda_handler(event, context):
main(event, is_lambda=True)

def main(event, is_lambda=True):
messages = event['messages']
for message in messages:
try:
message_data = message['data']
if PagerDuty.is_triggered_alert(message_data) and not Ticket.exists(message_data):
ticket = Ticket(message_data, is_lambda)
ticket.create()
# TODO update_pager_duty_with_ticket_info()
except Exception as e:
print 'Error: {0}'.format(e)

if name == 'main':
event = argv[1]
main(event, is_lambda=False)

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.