Skip to content

Commit

Permalink
Updated deviceId format to avoid special characters
Browse files Browse the repository at this point in the history
  • Loading branch information
algattik committed Jan 5, 2021
1 parent fad7842 commit 7b38c87
Show file tree
Hide file tree
Showing 23 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Streamed data simulates an IoT device sending the following JSON data:
[...]
},
"value": 49.02278128887753,
"deviceId": "contoso://device-id-154",
"deviceId": "contoso-device-id-000154",
"deviceSequenceNumber": 0,
"type": "CO2",
"createdAt": "2019-05-16T17:16:40.000003Z"
Expand Down
2 changes: 1 addition & 1 deletion _bootstrap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Each client generates up to 2000 msgs/sec. Each generated message is close to 1K
"moreData22": 12.12345678901234
},
"value": 49.02278128887753,
"deviceId": "contoso://device-id-1554",
"deviceId": "contoso-device-id-000554",
"deviceSequenceNumber": 0,
"type": "CO2",
"createdAt": "2019-05-16T17:16:40.000003Z"
Expand Down
2 changes: 1 addition & 1 deletion akskafka-databricks-cosmosdb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Streamed data simulates an IoT device sending the following JSON data:
[...]
},
"value": 49.02278128887753,
"deviceId": "contoso://device-id-154",
"deviceId": "contoso-device-id-000154",
"deviceSequenceNumber": 0,
"type": "CO2",
"createdAt": "2019-05-16T17:16:40.000003Z"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public void testProcessingLogicState() throws Exception {
sampleRecord1.eventId = "4fa25e6c-50d3-4189-9613-d486b71412df";
sampleRecord1.value = 80.80967678165356d;
sampleRecord1.type = "CO2";
sampleRecord1.deviceId = "contoso://device-id-428";
sampleRecord1.deviceId = "contoso-device-id-428";
sampleRecord1.deviceSequenceNumber = 3L;
sampleRecord1.createdAt = Instant.parse("2019-10-15T12:43:27.748Z");
sampleRecord1.enqueuedAt = Instant.parse("2019-10-16T12:43:27.748Z");
Expand All @@ -97,7 +97,7 @@ public void testProcessingLogicState() throws Exception {
sampleRecord2.eventId = "4fa25e6c-50d3-4189-9613-d486b71412df";
sampleRecord2.value = 70.80967678165356d;
sampleRecord2.type = "TEMP";
sampleRecord2.deviceId = "contoso://device-id-428";
sampleRecord2.deviceId = "contoso-device-id-428";
sampleRecord2.deviceSequenceNumber = 3L;
sampleRecord2.createdAt = Instant.parse("2019-10-15T12:43:27.748Z");
sampleRecord2.enqueuedAt = Instant.parse("2019-10-16T12:43:27.748Z");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public static SampleRecord record() {
sampleRecord.eventId = "4fa25e6c-50d3-4189-9613-d486b71412df";
sampleRecord.value = 45.80967678165356d;
sampleRecord.type = "CO2";
sampleRecord.deviceId = "contoso://device-id-428";
sampleRecord.deviceId = "contoso-device-id-428";
sampleRecord.deviceSequenceNumber = 3L;
sampleRecord.createdAt = Instant.parse("2019-10-15T12:43:27.748Z");
sampleRecord.enqueuedAt = Instant.parse("2019-10-16T12:43:27.748Z");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class SampleRecordTest {

private SampleRecord sampleRecord;

private String serialized = "{\"eventId\":\"4fa25e6c-50d3-4189-9613-d486b71412df\",\"complexData\":null,\"value\":45.80967678165356,\"type\":\"CO2\",\"deviceId\":\"contoso://device-id-428\",\"deviceSequenceNumber\":3,\"createdAt\":\"2019-10-15T12:43:27.748Z\",\"enqueuedAt\":\"2019-10-16T12:43:27.748Z\",\"processedAt\":\"2019-10-17T12:43:27.748Z\"}";
private String serialized = "{\"eventId\":\"4fa25e6c-50d3-4189-9613-d486b71412df\",\"complexData\":null,\"value\":45.80967678165356,\"type\":\"CO2\",\"deviceId\":\"contoso-device-id-428\",\"deviceSequenceNumber\":3,\"createdAt\":\"2019-10-15T12:43:27.748Z\",\"enqueuedAt\":\"2019-10-16T12:43:27.748Z\",\"processedAt\":\"2019-10-17T12:43:27.748Z\"}";

private JsonMapperSchema<SampleRecord> mapper = new JsonMapperSchema<>(SampleRecord.class);

Expand All @@ -32,7 +32,7 @@ public void setUp() {
sampleRecord.eventId = "4fa25e6c-50d3-4189-9613-d486b71412df";
sampleRecord.value = 45.80967678165356d;
sampleRecord.type = "CO2";
sampleRecord.deviceId = "contoso://device-id-428";
sampleRecord.deviceId = "contoso-device-id-428";
sampleRecord.deviceSequenceNumber = 3L;
sampleRecord.createdAt = Instant.parse("2019-10-15T12:43:27.748Z");
sampleRecord.enqueuedAt = Instant.parse("2019-10-16T12:43:27.748Z");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public void getLastRecord01() {
sampleRecord1.eventId = "4fa25e6c-50d3-4189-9613-d486b71412df";
sampleRecord1.value = 45.80967678165356d;
sampleRecord1.type = "CO2";
sampleRecord1.deviceId = "contoso://device-id-428";
sampleRecord1.deviceId = "contoso-device-id-428";
sampleRecord1.deviceSequenceNumber = 3L;
sampleRecord1.createdAt = Instant.parse("2019-10-15T12:43:27.748Z");
sampleRecord1.enqueuedAt = Instant.parse("2019-10-16T12:43:27.748Z");
Expand All @@ -81,7 +81,7 @@ public void getLastRecord01() {
sampleRecord2.eventId = "4fa25e6c-50d3-4189-9613-d486b71412df";
sampleRecord2.value = 45.80967678165356d;
sampleRecord2.type = "CO2";
sampleRecord2.deviceId = "contoso://device-id-428";
sampleRecord2.deviceId = "contoso-device-id-428";
sampleRecord2.deviceSequenceNumber = 3L;
sampleRecord2.createdAt = Instant.parse("2019-10-15T12:43:27.748Z");
sampleRecord2.enqueuedAt = Instant.parse("2019-10-16T12:43:27.748Z");
Expand All @@ -100,7 +100,7 @@ public void recordsSize01() {
sampleRecord1.eventId = "4fa25e6c-50d3-4189-9613-d486b71412df";
sampleRecord1.value = 45.80967678165356d;
sampleRecord1.type = "CO2";
sampleRecord1.deviceId = "contoso://device-id-428";
sampleRecord1.deviceId = "contoso-device-id-428";
sampleRecord1.deviceSequenceNumber = 3L;
sampleRecord1.createdAt = Instant.parse("2019-10-15T12:43:27.748Z");
sampleRecord1.enqueuedAt = Instant.parse("2019-10-16T12:43:27.748Z");
Expand All @@ -110,7 +110,7 @@ public void recordsSize01() {
sampleRecord2.eventId = "4fa25e6c-50d3-4189-9613-d486b71412df";
sampleRecord2.value = 45.80967678165356d;
sampleRecord2.type = "CO2";
sampleRecord2.deviceId = "contoso://device-id-428";
sampleRecord2.deviceId = "contoso-device-id-428";
sampleRecord2.deviceSequenceNumber = 3L;
sampleRecord2.createdAt = Instant.parse("2019-10-15T12:43:27.748Z");
sampleRecord2.enqueuedAt = Instant.parse("2019-10-16T12:43:27.748Z");
Expand All @@ -133,7 +133,7 @@ public void addRecord01() {
sampleRecord.eventId = Integer.toString(i);
sampleRecord.value = 45.80967678165356d;
sampleRecord.type = "CO2";
sampleRecord.deviceId = "contoso://device-id-428";
sampleRecord.deviceId = "contoso-device-id-428";
sampleRecord.deviceSequenceNumber = 3L;
sampleRecord.createdAt = Instant.parse("2019-10-15T12:43:27.748Z");
sampleRecord.enqueuedAt = Instant.parse("2019-10-16T12:43:27.748Z");
Expand Down
2 changes: 1 addition & 1 deletion eventhubs-databricks-azuresql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Streamed data simulates an IoT device sending the following JSON data:
[...]
},
"value": 49.02278128887753,
"deviceId": "contoso://device-id-154",
"deviceId": "contoso-device-id-000154",
"deviceSequenceNumber": 0,
"type": "CO2",
"createdAt": "2019-05-16T17:16:40.000003Z"
Expand Down
2 changes: 1 addition & 1 deletion eventhubs-databricks-cosmosdb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Streamed data simulates an IoT device sending the following JSON data:
[...]
},
"value": 49.02278128887753,
"deviceId": "contoso://device-id-154",
"deviceId": "contoso-device-id-000154",
"deviceSequenceNumber": 0,
"type": "CO2",
"createdAt": "2019-05-16T17:16:40.000003Z"
Expand Down
2 changes: 1 addition & 1 deletion eventhubs-databricks-delta/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Streamed data simulates an IoT device sending the following JSON data:
[...]
},
"value": 49.02278128887753,
"deviceId": "contoso://device-id-154",
"deviceId": "contoso-device-id-000154",
"deviceSequenceNumber": 0,
"type": "CO2",
"createdAt": "2019-05-16T17:16:40.000003Z"
Expand Down
2 changes: 1 addition & 1 deletion eventhubs-dataexplorer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Streamed data simulates an IoT device sending the following JSON data:
[...]
},
"value": 49.02278128887753,
"deviceId": "contoso://device-id-154",
"deviceId": "contoso-device-id-000154",
"deviceSequenceNumber": 0,
"type": "CO2",
"createdAt": "2019-05-16T17:16:40.000003Z"
Expand Down
2 changes: 1 addition & 1 deletion eventhubs-functions-azuresql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Streamed data simulates an IoT device sending the following JSON data:
[...]
},
"value": 49.02278128887753,
"deviceId": "contoso://device-id-154",
"deviceId": "contoso-device-id-000154",
"deviceSequenceNumber": 0,
"type": "CO2",
"createdAt": "2019-05-16T17:16:40.000003Z"
Expand Down
2 changes: 1 addition & 1 deletion eventhubs-functions-cosmosdb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Streamed data simulates an IoT device sending the following JSON data:
[...]
},
"value": 49.02278128887753,
"deviceId": "contoso://device-id-154",
"deviceId": "contoso-device-id-000154",
"deviceSequenceNumber": 0,
"type": "CO2",
"createdAt": "2019-05-16T17:16:40.000003Z"
Expand Down
2 changes: 1 addition & 1 deletion eventhubs-streamanalytics-azuresql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ Streamed data simulates an IoT device sending the following JSON data:
[...]
},
"value": 49.02278128887753,
"deviceId": "contoso://device-id-154",
"deviceId": "contoso-device-id-000154",
"deviceSequenceNumber": 0,
"type": "CO2",
"createdAt": "2019-05-16T17:16:40.000003Z"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ select top (100)
from
dbo.[rawdata2] r
where
[r].[DeviceId] = 'contoso://device-id-154'
[r].[DeviceId] = 'contoso-device-id-000154'
and
r.[PartitionId] = 5
order by
Expand Down
2 changes: 1 addition & 1 deletion eventhubs-streamanalytics-cosmosdb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Streamed data simulates an IoT device sending the following JSON data:
[...]
},
"value": 49.02278128887753,
"deviceId": "contoso://device-id-154",
"deviceId": "contoso-device-id-000154",
"deviceSequenceNumber": 0,
"type": "CO2",
"createdAt": "2019-05-16T17:16:40.000003Z"
Expand Down
2 changes: 1 addition & 1 deletion eventhubs-streamanalytics-eventhubs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Streamed data simulates an IoT device sending the following JSON data:
[...]
},
"value": 49.02278128887753,
"deviceId": "contoso://device-id-154",
"deviceId": "contoso-device-id-000154",
"deviceSequenceNumber": 0,
"type": "CO2",
"createdAt": "2019-05-16T17:16:40.000003Z"
Expand Down
2 changes: 1 addition & 1 deletion eventhubs-timeseriesinsights/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Streamed data simulates an IoT device sending the following JSON data:
[...]
},
"value": 49.02278128887753,
"deviceId": "contoso://device-id-154",
"deviceId": "contoso-device-id-000154",
"deviceSequenceNumber": 0,
"type": "CO2",
"createdAt": "2019-05-16T17:16:40.000003Z"
Expand Down
2 changes: 1 addition & 1 deletion eventhubskafka-databricks-cosmosdb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Streamed data simulates an IoT device sending the following JSON data:
[...]
},
"value": 49.02278128887753,
"deviceId": "contoso://device-id-154",
"deviceId": "contoso-device-id-000154",
"deviceSequenceNumber": 0,
"type": "CO2",
"createdAt": "2019-05-16T17:16:40.000003Z"
Expand Down
2 changes: 1 addition & 1 deletion eventhubskafka-flink-eventhubskafka/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ Streamed data simulates an IoT device sending the following JSON data:
[...]
},
"value": 49.02278128887753,
"deviceId": "contoso://device-id-154",
"deviceId": "contoso-device-id-000154",
"deviceSequenceNumber": 0,
"type": "CO2",
"createdAt": "2019-05-16T17:16:40.000003Z"
Expand Down
2 changes: 1 addition & 1 deletion eventhubskafka-functions-cosmosdb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Streamed data simulates an IoT device sending the following JSON data:
[...]
},
"value": 49.02278128887753,
"deviceId": "contoso://device-id-154",
"deviceId": "contoso-device-id-000154",
"deviceSequenceNumber": 0,
"type": "CO2",
"createdAt": "2019-05-16T17:16:40.000003Z"
Expand Down
2 changes: 1 addition & 1 deletion hdinsightkafka-databricks-sqldw/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Streamed data simulates an IoT device sending the following JSON data:
[...]
},
"value": 49.02278128887753,
"deviceId": "contoso://device-id-154",
"deviceId": "contoso-device-id-000154",
"deviceSequenceNumber": 0,
"type": "CO2",
"createdAt": "2019-05-16T17:16:40.000003Z"
Expand Down
2 changes: 1 addition & 1 deletion hdinsightkafka-flink-hdinsightkafka/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Streamed data simulates an IoT device sending the following JSON data:
[...]
},
"value": 49.02278128887753,
"deviceId": "contoso://device-id-154",
"deviceId": "contoso-device-id-000154",
"deviceSequenceNumber": 0,
"type": "CO2",
"createdAt": "2019-05-16T17:16:40.000003Z"
Expand Down

0 comments on commit 7b38c87

Please sign in to comment.