sbraverman / pd2jira_python Goto Github PK
View Code? Open in Web Editor NEWGenerate automated JIRA tickets from Pager Duty Alerts using AWS Lambda (Python)
Generate automated JIRA tickets from Pager Duty Alerts using AWS Lambda (Python)
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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.