< Summary

Class:Microsoft.Azure.CognitiveServices.AnomalyDetector.Models.Point
Assembly:Microsoft.Azure.CognitiveServices.AnomalyDetector
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\AnomalyDetector\src\Generated\Models\Point.cs
Covered lines:0
Uncovered lines:9
Coverable lines:9
Total lines:68
Line coverage:0% (0 of 9)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_Timestamp()-0%100%
get_Value()-0%100%
Validate()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\AnomalyDetector\src\Generated\Models\Point.cs

#LineLine coverage
 1// <auto-generated>
 2// Copyright (c) Microsoft Corporation. All rights reserved.
 3// Licensed under the MIT License. See License.txt in the project root for
 4// license information.
 5//
 6// Code generated by Microsoft (R) AutoRest Code Generator.
 7// Changes may cause incorrect behavior and will be lost if the code is
 8// regenerated.
 9// </auto-generated>
 10
 11namespace Microsoft.Azure.CognitiveServices.AnomalyDetector.Models
 12{
 13    using Newtonsoft.Json;
 14    using System.Linq;
 15
 16    public partial class Point
 17    {
 18        /// <summary>
 19        /// Initializes a new instance of the Point class.
 20        /// </summary>
 021        public Point()
 22        {
 23            CustomInit();
 024        }
 25
 26        /// <summary>
 27        /// Initializes a new instance of the Point class.
 28        /// </summary>
 29        /// <param name="timestamp">Timestamp of a data point (ISO8601
 30        /// format).</param>
 31        /// <param name="value">The measurement of that point, should be
 32        /// float.</param>
 033        public Point(System.DateTime timestamp, double value)
 34        {
 035            Timestamp = timestamp;
 036            Value = value;
 37            CustomInit();
 038        }
 39
 40        /// <summary>
 41        /// An initialization method that performs custom operations like setting defaults
 42        /// </summary>
 43        partial void CustomInit();
 44
 45        /// <summary>
 46        /// Gets or sets timestamp of a data point (ISO8601 format).
 47        /// </summary>
 48        [JsonProperty(PropertyName = "timestamp")]
 049        public System.DateTime Timestamp { get; set; }
 50
 51        /// <summary>
 52        /// Gets or sets the measurement of that point, should be float.
 53        /// </summary>
 54        [JsonProperty(PropertyName = "value")]
 055        public double Value { get; set; }
 56
 57        /// <summary>
 58        /// Validate the object.
 59        /// </summary>
 60        /// <exception cref="Rest.ValidationException">
 61        /// Thrown if validation fails
 62        /// </exception>
 63        public virtual void Validate()
 64        {
 65            //Nothing to validate
 066        }
 67    }
 68}