< Summary

Class:Azure.Messaging.EventGrid.SystemEvents.MachineLearningServicesRunStatusChangedEventData
Assembly:Azure.Messaging.EventGrid
File(s):C:\Git\azure-sdk-for-net\sdk\eventgrid\Azure.Messaging.EventGrid\src\Generated\Models\MachineLearningServicesRunStatusChangedEventData.cs
C:\Git\azure-sdk-for-net\sdk\eventgrid\Azure.Messaging.EventGrid\src\Generated\Models\MachineLearningServicesRunStatusChangedEventData.Serialization.cs
Covered lines:42
Uncovered lines:5
Coverable lines:47
Total lines:117
Line coverage:89.3% (42 of 47)
Covered branches:16
Total branches:16
Branch coverage:100% (16 of 16)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-100%100%
get_ExperimentId()-0%100%
get_ExperimentName()-100%100%
get_RunId()-100%100%
get_RunType()-100%100%
get_RunTags()-0%100%
get_RunProperties()-0%100%
get_RunStatus()-100%100%
DeserializeMachineLearningServicesRunStatusChangedEventData(...)-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\eventgrid\Azure.Messaging.EventGrid\src\Generated\Models\MachineLearningServicesRunStatusChangedEventData.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4// <auto-generated/>
 5
 6#nullable disable
 7
 8namespace Azure.Messaging.EventGrid.SystemEvents
 9{
 10    /// <summary> Schema of the Data property of an EventGridEvent for an Microsoft.MachineLearningServices.RunStatusCha
 11    public partial class MachineLearningServicesRunStatusChangedEventData
 12    {
 13        /// <summary> Initializes a new instance of MachineLearningServicesRunStatusChangedEventData. </summary>
 014        internal MachineLearningServicesRunStatusChangedEventData()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of MachineLearningServicesRunStatusChangedEventData. </summary>
 19        /// <param name="experimentId"> The ID of the experiment that the Machine Learning Run belongs to. </param>
 20        /// <param name="experimentName"> The name of the experiment that the Machine Learning Run belongs to. </param>
 21        /// <param name="runId"> The ID of the Machine Learning Run. </param>
 22        /// <param name="runType"> The Run Type of the Machine Learning Run. </param>
 23        /// <param name="runTags"> The tags of the Machine Learning Run. </param>
 24        /// <param name="runProperties"> The properties of the Machine Learning Run. </param>
 25        /// <param name="runStatus"> The status of the Machine Learning Run. </param>
 226        internal MachineLearningServicesRunStatusChangedEventData(string experimentId, string experimentName, string run
 27        {
 228            ExperimentId = experimentId;
 229            ExperimentName = experimentName;
 230            RunId = runId;
 231            RunType = runType;
 232            RunTags = runTags;
 233            RunProperties = runProperties;
 234            RunStatus = runStatus;
 235        }
 36
 37        /// <summary> The ID of the experiment that the Machine Learning Run belongs to. </summary>
 038        public string ExperimentId { get; }
 39        /// <summary> The name of the experiment that the Machine Learning Run belongs to. </summary>
 240        public string ExperimentName { get; }
 41        /// <summary> The ID of the Machine Learning Run. </summary>
 242        public string RunId { get; }
 43        /// <summary> The Run Type of the Machine Learning Run. </summary>
 244        public string RunType { get; }
 45        /// <summary> The tags of the Machine Learning Run. </summary>
 046        public object RunTags { get; }
 47        /// <summary> The properties of the Machine Learning Run. </summary>
 048        public object RunProperties { get; }
 49        /// <summary> The status of the Machine Learning Run. </summary>
 250        public string RunStatus { get; }
 51    }
 52}

C:\Git\azure-sdk-for-net\sdk\eventgrid\Azure.Messaging.EventGrid\src\Generated\Models\MachineLearningServicesRunStatusChangedEventData.Serialization.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4// <auto-generated/>
 5
 6#nullable disable
 7
 8using System.Text.Json;
 9using Azure.Core;
 10
 11namespace Azure.Messaging.EventGrid.SystemEvents
 12{
 13    public partial class MachineLearningServicesRunStatusChangedEventData
 14    {
 15        internal static MachineLearningServicesRunStatusChangedEventData DeserializeMachineLearningServicesRunStatusChan
 16        {
 217            Optional<string> experimentId = default;
 218            Optional<string> experimentName = default;
 219            Optional<string> runId = default;
 220            Optional<string> runType = default;
 221            Optional<object> runTags = default;
 222            Optional<object> runProperties = default;
 223            Optional<string> runStatus = default;
 3224            foreach (var property in element.EnumerateObject())
 25            {
 1426                if (property.NameEquals("experimentId"))
 27                {
 228                    experimentId = property.Value.GetString();
 229                    continue;
 30                }
 1231                if (property.NameEquals("experimentName"))
 32                {
 233                    experimentName = property.Value.GetString();
 234                    continue;
 35                }
 1036                if (property.NameEquals("runId"))
 37                {
 238                    runId = property.Value.GetString();
 239                    continue;
 40                }
 841                if (property.NameEquals("runType"))
 42                {
 243                    runType = property.Value.GetString();
 244                    continue;
 45                }
 646                if (property.NameEquals("runTags"))
 47                {
 248                    runTags = property.Value.GetObject();
 249                    continue;
 50                }
 451                if (property.NameEquals("runProperties"))
 52                {
 253                    runProperties = property.Value.GetObject();
 254                    continue;
 55                }
 256                if (property.NameEquals("runStatus"))
 57                {
 258                    runStatus = property.Value.GetString();
 59                    continue;
 60                }
 61            }
 262            return new MachineLearningServicesRunStatusChangedEventData(experimentId.Value, experimentName.Value, runId.
 63        }
 64    }
 65}