Skip to content

Commit

Permalink
removed mapping of TimeGenerated field and added datasource field for…
Browse files Browse the repository at this point in the history
… data ingestion.
  • Loading branch information
niralishah-crest committed Jan 13, 2025
1 parent 66a5975 commit 2e22d67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"plcModule",
"purdueLevel",
"firmwareVersion",
"dataSources"
]
MAX_RETRY = 5
FUNCTION_APP_TIMEOUT_SECONDS = 570
Expand Down Expand Up @@ -502,7 +503,6 @@ def post_data(self, customer_id, body, log_type):
resource = "/api/logs"
rfc1123date = datetime.datetime.utcnow().strftime("%a, %d %b %Y %H:%M:%S GMT")
content_length = len(body)
timestamp_date = "armis_device_time"
try:
signature = self.build_signature(
rfc1123date,
Expand All @@ -529,8 +529,7 @@ def post_data(self, customer_id, body, log_type):
"content-type": content_type,
"Authorization": signature,
"Log-Type": log_type,
"x-ms-date": rfc1123date,
"time-generated-field": timestamp_date,
"x-ms-date": rfc1123date
}
try:
response = requests.post(uri, data=body, headers=headers)
Expand Down

0 comments on commit 2e22d67

Please sign in to comment.