< Summary

Class:Microsoft.Azure.ApplicationInsights.Query.Models.EventsResults
Assembly:Microsoft.Azure.ApplicationInsights.Query
File(s):C:\Git\azure-sdk-for-net\sdk\applicationinsights\Microsoft.Azure.ApplicationInsights.Query\src\Generated\Models\EventsResults.cs
Covered lines:4
Uncovered lines:6
Coverable lines:10
Total lines:70
Line coverage:40% (4 of 10)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_Odatacontext()-0%100%
get_Aimessages()-100%100%
get_Value()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\applicationinsights\Microsoft.Azure.ApplicationInsights.Query\src\Generated\Models\EventsResults.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.ApplicationInsights.Query.Models
 12{
 13    using Newtonsoft.Json;
 14    using System.Collections;
 15    using System.Collections.Generic;
 16    using System.Linq;
 17
 18    /// <summary>
 19    /// An events query result.
 20    /// </summary>
 21    public partial class EventsResults
 22    {
 23        /// <summary>
 24        /// Initializes a new instance of the EventsResults class.
 25        /// </summary>
 8026        public EventsResults()
 27        {
 28            CustomInit();
 8029        }
 30
 31        /// <summary>
 32        /// Initializes a new instance of the EventsResults class.
 33        /// </summary>
 34        /// <param name="odatacontext">OData context metadata endpoint for this
 35        /// response</param>
 36        /// <param name="aimessages">OData messages for this response.</param>
 37        /// <param name="value">Contents of the events query result.</param>
 038        public EventsResults(string odatacontext = default(string), IList<ErrorInfo> aimessages = default(IList<ErrorInf
 39        {
 040            Odatacontext = odatacontext;
 041            Aimessages = aimessages;
 042            Value = value;
 43            CustomInit();
 044        }
 45
 46        /// <summary>
 47        /// An initialization method that performs custom operations like setting defaults
 48        /// </summary>
 49        partial void CustomInit();
 50
 51        /// <summary>
 52        /// Gets or sets oData context metadata endpoint for this response
 53        /// </summary>
 54        [JsonProperty(PropertyName = "@odata.context")]
 055        public string Odatacontext { get; set; }
 56
 57        /// <summary>
 58        /// Gets or sets oData messages for this response.
 59        /// </summary>
 60        [JsonProperty(PropertyName = "@ai.messages")]
 8061        public IList<ErrorInfo> Aimessages { get; set; }
 62
 63        /// <summary>
 64        /// Gets or sets contents of the events query result.
 65        /// </summary>
 66        [JsonProperty(PropertyName = "value")]
 36067        public IList<EventsResultData> Value { get; set; }
 68
 69    }
 70}