Commit 5bf85fcb authored by Botond Botyanszki's avatar Botond Botyanszki

Update azure-oms

parent ecbc0e67
......@@ -11,7 +11,6 @@
# </Output>
# -------------------
import json
import requests
import datetime
import hashlib
......@@ -28,9 +27,6 @@ shared_key = "<skey>"
# The log type is the name of the event that is being submitted
log_type = 'STDIN_PY'
#####################
######Functions######
#####################
# Build the API signature
def build_signature(customer_id, shared_key, date, content_length, method, content_type, resource):
......@@ -65,5 +61,6 @@ def post_data(customer_id, shared_key, body, log_type):
else:
print "Response code: {}".format(response.status_code)
for body in fileinput.input():
post_data(customer_id, shared_key, body, log_type)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment