Skip to content

Commit

Permalink
Merge pull request #11660 from niralishah-crest/ArmisDataConnectorUpdate
Browse files Browse the repository at this point in the history
Removed mapping of TimeGenerated field and added datasource field for data ingestion in ArmisDevice Data Connector
  • Loading branch information
v-prasadboke authored Jan 30, 2025
2 parents ce2255e + 2e22d67 commit 657ec21
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 657ec21

Please sign in to comment.