| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | using System; |
| | 5 | |
|
| | 6 | | namespace Azure.DigitalTwins.Core |
| | 7 | | { |
| | 8 | | /// <summary> |
| | 9 | | /// The additional information to be used when processing a telemetry request. |
| | 10 | | /// </summary> |
| | 11 | | /// <remarks> |
| | 12 | | /// For more samples, see <see href="https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/digitaltwins/Azure.D |
| | 13 | | /// </remarks> |
| | 14 | | public class TelemetryOptions |
| | 15 | | { |
| | 16 | | /// <summary> |
| | 17 | | /// A unique message identifier (within the scope of the digital twin id) that is commonly used for de-duplicati |
| | 18 | | /// Defaults to a random guid. |
| | 19 | | /// </summary> |
| 24 | 20 | | public string MessageId { get; set; } = Guid.NewGuid().ToString(); |
| | 21 | |
|
| | 22 | | /// <summary> |
| | 23 | | /// An RFC 3339 timestamp that identifies the time the telemetry was measured. It defaults to the current date/t |
| | 24 | | /// </summary> |
| 24 | 25 | | public DateTimeOffset TimeStamp { get; set; } = DateTimeOffset.UtcNow; |
| | 26 | | } |
| | 27 | | } |