< Summary

Class:Azure.DigitalTwins.Core.TelemetryOptions
Assembly:Azure.DigitalTwins.Core
File(s):C:\Git\azure-sdk-for-net\sdk\digitaltwins\Azure.DigitalTwins.Core\src\Models\TelemetryOptions.cs
Covered lines:2
Uncovered lines:0
Coverable lines:2
Total lines:27
Line coverage:100% (2 of 2)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
get_MessageId()-100%100%
get_TimeStamp()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\digitaltwins\Azure.DigitalTwins.Core\src\Models\TelemetryOptions.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System;
 5
 6namespace 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>
 2420        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>
 2425        public DateTimeOffset TimeStamp { get; set; } = DateTimeOffset.UtcNow;
 26    }
 27}

Methods/Properties

get_MessageId()
get_TimeStamp()