Skip to content

Commit 2e22d67

Browse files
author
niralishah-crest
committed
removed mapping of TimeGenerated field and added datasource field for data ingestion.
1 parent 66a5975 commit 2e22d67

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed
Binary file not shown.

Solutions/Armis/Data Connectors/ArmisDevice/ArmisDeviceSentinelConnector/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
"plcModule",
6161
"purdueLevel",
6262
"firmwareVersion",
63+
"dataSources"
6364
]
6465
MAX_RETRY = 5
6566
FUNCTION_APP_TIMEOUT_SECONDS = 570
@@ -502,7 +503,6 @@ def post_data(self, customer_id, body, log_type):
502503
resource = "/api/logs"
503504
rfc1123date = datetime.datetime.utcnow().strftime("%a, %d %b %Y %H:%M:%S GMT")
504505
content_length = len(body)
505-
timestamp_date = "armis_device_time"
506506
try:
507507
signature = self.build_signature(
508508
rfc1123date,
@@ -529,8 +529,7 @@ def post_data(self, customer_id, body, log_type):
529529
"content-type": content_type,
530530
"Authorization": signature,
531531
"Log-Type": log_type,
532-
"x-ms-date": rfc1123date,
533-
"time-generated-field": timestamp_date,
532+
"x-ms-date": rfc1123date
534533
}
535534
try:
536535
response = requests.post(uri, data=body, headers=headers)

0 commit comments

Comments
 (0)