< Summary

Class:Azure.Analytics.Synapse.Artifacts.Models.ActivityRun
Assembly:Azure.Analytics.Synapse.Artifacts
File(s):C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\ActivityRun.cs
C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\ActivityRun.Serialization.cs
Covered lines:0
Uncovered lines:100
Coverable lines:100
Total lines:212
Line coverage:0% (0 of 100)
Covered branches:0
Total branches:30
Branch coverage:0% (0 of 30)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_PipelineName()-0%100%
get_PipelineRunId()-0%100%
get_ActivityName()-0%100%
get_ActivityType()-0%100%
get_ActivityRunId()-0%100%
get_LinkedServiceName()-0%100%
get_Status()-0%100%
get_ActivityRunStart()-0%100%
get_ActivityRunEnd()-0%100%
get_DurationInMs()-0%100%
get_Input()-0%100%
get_Output()-0%100%
get_Error()-0%100%
get_AdditionalProperties()-0%100%
GetEnumerator()-0%100%
System.Collections.IEnumerable.GetEnumerator()-0%100%
TryGetValue(...)-0%100%
ContainsKey(...)-0%100%
get_Keys()-0%100%
get_Values()-0%100%
System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.get_Count()-0%100%
get_Item(...)-0%100%
DeserializeActivityRun(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\ActivityRun.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;
 9using System.Collections;
 10using System.Collections.Generic;
 11using Azure.Core;
 12
 13namespace Azure.Analytics.Synapse.Artifacts.Models
 14{
 15    /// <summary> Information about an activity run in a pipeline. </summary>
 16    public partial class ActivityRun : IReadOnlyDictionary<string, object>
 17    {
 18        /// <summary> Initializes a new instance of ActivityRun. </summary>
 019        internal ActivityRun()
 20        {
 021            AdditionalProperties = new ChangeTrackingDictionary<string, object>();
 022        }
 23
 24        /// <summary> Initializes a new instance of ActivityRun. </summary>
 25        /// <param name="pipelineName"> The name of the pipeline. </param>
 26        /// <param name="pipelineRunId"> The id of the pipeline run. </param>
 27        /// <param name="activityName"> The name of the activity. </param>
 28        /// <param name="activityType"> The type of the activity. </param>
 29        /// <param name="activityRunId"> The id of the activity run. </param>
 30        /// <param name="linkedServiceName"> The name of the compute linked service. </param>
 31        /// <param name="status"> The status of the activity run. </param>
 32        /// <param name="activityRunStart"> The start time of the activity run in &apos;ISO 8601&apos; format. </param>
 33        /// <param name="activityRunEnd"> The end time of the activity run in &apos;ISO 8601&apos; format. </param>
 34        /// <param name="durationInMs"> The duration of the activity run. </param>
 35        /// <param name="input"> The input for the activity. </param>
 36        /// <param name="output"> The output for the activity. </param>
 37        /// <param name="error"> The error if any from the activity run. </param>
 38        /// <param name="additionalProperties"> . </param>
 039        internal ActivityRun(string pipelineName, string pipelineRunId, string activityName, string activityType, string
 40        {
 041            PipelineName = pipelineName;
 042            PipelineRunId = pipelineRunId;
 043            ActivityName = activityName;
 044            ActivityType = activityType;
 045            ActivityRunId = activityRunId;
 046            LinkedServiceName = linkedServiceName;
 047            Status = status;
 048            ActivityRunStart = activityRunStart;
 049            ActivityRunEnd = activityRunEnd;
 050            DurationInMs = durationInMs;
 051            Input = input;
 052            Output = output;
 053            Error = error;
 054            AdditionalProperties = additionalProperties;
 055        }
 56
 57        /// <summary> The name of the pipeline. </summary>
 058        public string PipelineName { get; }
 59        /// <summary> The id of the pipeline run. </summary>
 060        public string PipelineRunId { get; }
 61        /// <summary> The name of the activity. </summary>
 062        public string ActivityName { get; }
 63        /// <summary> The type of the activity. </summary>
 064        public string ActivityType { get; }
 65        /// <summary> The id of the activity run. </summary>
 066        public string ActivityRunId { get; }
 67        /// <summary> The name of the compute linked service. </summary>
 068        public string LinkedServiceName { get; }
 69        /// <summary> The status of the activity run. </summary>
 070        public string Status { get; }
 71        /// <summary> The start time of the activity run in &apos;ISO 8601&apos; format. </summary>
 072        public DateTimeOffset? ActivityRunStart { get; }
 73        /// <summary> The end time of the activity run in &apos;ISO 8601&apos; format. </summary>
 074        public DateTimeOffset? ActivityRunEnd { get; }
 75        /// <summary> The duration of the activity run. </summary>
 076        public int? DurationInMs { get; }
 77        /// <summary> The input for the activity. </summary>
 078        public object Input { get; }
 79        /// <summary> The output for the activity. </summary>
 080        public object Output { get; }
 81        /// <summary> The error if any from the activity run. </summary>
 082        public object Error { get; }
 083        internal IReadOnlyDictionary<string, object> AdditionalProperties { get; }
 84        /// <inheritdoc />
 085        public IEnumerator<KeyValuePair<string, object>> GetEnumerator() => AdditionalProperties.GetEnumerator();
 86        /// <inheritdoc />
 087        IEnumerator IEnumerable.GetEnumerator() => AdditionalProperties.GetEnumerator();
 88        /// <inheritdoc />
 089        public bool TryGetValue(string key, out object value) => AdditionalProperties.TryGetValue(key, out value);
 90        /// <inheritdoc />
 091        public bool ContainsKey(string key) => AdditionalProperties.ContainsKey(key);
 92        /// <inheritdoc />
 093        public IEnumerable<string> Keys => AdditionalProperties.Keys;
 94        /// <inheritdoc />
 095        public IEnumerable<object> Values => AdditionalProperties.Values;
 96        /// <inheritdoc />
 097        int IReadOnlyCollection<KeyValuePair<string, object>>.Count => AdditionalProperties.Count;
 98        /// <inheritdoc />
 99        public object this[string key]
 100        {
 0101            get => AdditionalProperties[key];
 102        }
 103    }
 104}

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\ActivityRun.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;
 9using System.Collections.Generic;
 10using System.Text.Json;
 11using Azure.Core;
 12
 13namespace Azure.Analytics.Synapse.Artifacts.Models
 14{
 15    public partial class ActivityRun
 16    {
 17        internal static ActivityRun DeserializeActivityRun(JsonElement element)
 18        {
 019            Optional<string> pipelineName = default;
 020            Optional<string> pipelineRunId = default;
 021            Optional<string> activityName = default;
 022            Optional<string> activityType = default;
 023            Optional<string> activityRunId = default;
 024            Optional<string> linkedServiceName = default;
 025            Optional<string> status = default;
 026            Optional<DateTimeOffset> activityRunStart = default;
 027            Optional<DateTimeOffset> activityRunEnd = default;
 028            Optional<int> durationInMs = default;
 029            Optional<object> input = default;
 030            Optional<object> output = default;
 031            Optional<object> error = default;
 032            IReadOnlyDictionary<string, object> additionalProperties = default;
 033            Dictionary<string, object> additionalPropertiesDictionary = default;
 034            foreach (var property in element.EnumerateObject())
 35            {
 036                if (property.NameEquals("pipelineName"))
 37                {
 038                    pipelineName = property.Value.GetString();
 039                    continue;
 40                }
 041                if (property.NameEquals("pipelineRunId"))
 42                {
 043                    pipelineRunId = property.Value.GetString();
 044                    continue;
 45                }
 046                if (property.NameEquals("activityName"))
 47                {
 048                    activityName = property.Value.GetString();
 049                    continue;
 50                }
 051                if (property.NameEquals("activityType"))
 52                {
 053                    activityType = property.Value.GetString();
 054                    continue;
 55                }
 056                if (property.NameEquals("activityRunId"))
 57                {
 058                    activityRunId = property.Value.GetString();
 059                    continue;
 60                }
 061                if (property.NameEquals("linkedServiceName"))
 62                {
 063                    linkedServiceName = property.Value.GetString();
 064                    continue;
 65                }
 066                if (property.NameEquals("status"))
 67                {
 068                    status = property.Value.GetString();
 069                    continue;
 70                }
 071                if (property.NameEquals("activityRunStart"))
 72                {
 073                    activityRunStart = property.Value.GetDateTimeOffset("O");
 074                    continue;
 75                }
 076                if (property.NameEquals("activityRunEnd"))
 77                {
 078                    activityRunEnd = property.Value.GetDateTimeOffset("O");
 079                    continue;
 80                }
 081                if (property.NameEquals("durationInMs"))
 82                {
 083                    durationInMs = property.Value.GetInt32();
 084                    continue;
 85                }
 086                if (property.NameEquals("input"))
 87                {
 088                    input = property.Value.GetObject();
 089                    continue;
 90                }
 091                if (property.NameEquals("output"))
 92                {
 093                    output = property.Value.GetObject();
 094                    continue;
 95                }
 096                if (property.NameEquals("error"))
 97                {
 098                    error = property.Value.GetObject();
 099                    continue;
 100                }
 0101                additionalPropertiesDictionary ??= new Dictionary<string, object>();
 0102                additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject());
 103            }
 0104            additionalProperties = additionalPropertiesDictionary;
 0105            return new ActivityRun(pipelineName.Value, pipelineRunId.Value, activityName.Value, activityType.Value, acti
 106        }
 107    }
 108}