diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertingConfigurationPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertingConfigurationPatch.Serialization.cs
index c1000e1b5bd2e..7e7eecd89fc88 100644
--- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertingConfigurationPatch.Serialization.cs
+++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertingConfigurationPatch.Serialization.cs
@@ -12,55 +12,5 @@ namespace Azure.AI.MetricsAdvisor.Models
{
internal partial class AnomalyAlertingConfigurationPatch : IUtf8JsonSerializable
{
- void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
- {
- writer.WriteStartObject();
- if (Optional.IsDefined(Name))
- {
- writer.WritePropertyName("name");
- writer.WriteStringValue(Name);
- }
- if (Optional.IsDefined(Description))
- {
- writer.WritePropertyName("description");
- writer.WriteStringValue(Description);
- }
- if (Optional.IsDefined(CrossMetricsOperator))
- {
- writer.WritePropertyName("crossMetricsOperator");
- writer.WriteStringValue(CrossMetricsOperator.Value.ToString());
- }
- if (Optional.IsCollectionDefined(SplitAlertByDimensions))
- {
- writer.WritePropertyName("splitAlertByDimensions");
- writer.WriteStartArray();
- foreach (var item in SplitAlertByDimensions)
- {
- writer.WriteStringValue(item);
- }
- writer.WriteEndArray();
- }
- if (Optional.IsCollectionDefined(HookIds))
- {
- writer.WritePropertyName("hookIds");
- writer.WriteStartArray();
- foreach (var item in HookIds)
- {
- writer.WriteStringValue(item);
- }
- writer.WriteEndArray();
- }
- if (Optional.IsCollectionDefined(MetricAlertingConfigurations))
- {
- writer.WritePropertyName("metricAlertingConfigurations");
- writer.WriteStartArray();
- foreach (var item in MetricAlertingConfigurations)
- {
- writer.WriteObjectValue(item);
- }
- writer.WriteEndArray();
- }
- writer.WriteEndObject();
- }
}
}
diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookInfoPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookInfoPatch.Serialization.cs
index f4d6c70926f1a..64062a655427a 100644
--- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookInfoPatch.Serialization.cs
+++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookInfoPatch.Serialization.cs
@@ -12,42 +12,5 @@ namespace Azure.AI.MetricsAdvisor.Models
{
internal partial class EmailHookInfoPatch : IUtf8JsonSerializable
{
- void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
- {
- writer.WriteStartObject();
- if (Optional.IsDefined(HookParameter))
- {
- writer.WritePropertyName("hookParameter");
- writer.WriteObjectValue(HookParameter);
- }
- writer.WritePropertyName("hookType");
- writer.WriteStringValue(HookType.ToString());
- if (Optional.IsDefined(HookName))
- {
- writer.WritePropertyName("hookName");
- writer.WriteStringValue(HookName);
- }
- if (Optional.IsDefined(Description))
- {
- writer.WritePropertyName("description");
- writer.WriteStringValue(Description);
- }
- if (Optional.IsDefined(ExternalLink))
- {
- writer.WritePropertyName("externalLink");
- writer.WriteStringValue(ExternalLink);
- }
- if (Optional.IsCollectionDefined(Admins))
- {
- writer.WritePropertyName("admins");
- writer.WriteStartArray();
- foreach (var item in Admins)
- {
- writer.WriteStringValue(item);
- }
- writer.WriteEndArray();
- }
- writer.WriteEndObject();
- }
}
}
diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HookInfoPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HookInfoPatch.Serialization.cs
index 5d83a94e52a6a..205950f7d8f44 100644
--- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HookInfoPatch.Serialization.cs
+++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HookInfoPatch.Serialization.cs
@@ -12,37 +12,5 @@ namespace Azure.AI.MetricsAdvisor.Models
{
internal partial class HookInfoPatch : IUtf8JsonSerializable
{
- void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
- {
- writer.WriteStartObject();
- writer.WritePropertyName("hookType");
- writer.WriteStringValue(HookType.ToString());
- if (Optional.IsDefined(HookName))
- {
- writer.WritePropertyName("hookName");
- writer.WriteStringValue(HookName);
- }
- if (Optional.IsDefined(Description))
- {
- writer.WritePropertyName("description");
- writer.WriteStringValue(Description);
- }
- if (Optional.IsDefined(ExternalLink))
- {
- writer.WritePropertyName("externalLink");
- writer.WriteStringValue(ExternalLink);
- }
- if (Optional.IsCollectionDefined(Admins))
- {
- writer.WritePropertyName("admins");
- writer.WriteStartArray();
- foreach (var item in Admins)
- {
- writer.WriteStringValue(item);
- }
- writer.WriteEndArray();
- }
- writer.WriteEndObject();
- }
}
}
diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WebhookHookInfoPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WebhookHookInfoPatch.Serialization.cs
index 42944897115b7..77a6867a0f426 100644
--- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WebhookHookInfoPatch.Serialization.cs
+++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WebhookHookInfoPatch.Serialization.cs
@@ -12,42 +12,5 @@ namespace Azure.AI.MetricsAdvisor.Models
{
internal partial class WebhookHookInfoPatch : IUtf8JsonSerializable
{
- void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
- {
- writer.WriteStartObject();
- if (Optional.IsDefined(HookParameter))
- {
- writer.WritePropertyName("hookParameter");
- writer.WriteObjectValue(HookParameter);
- }
- writer.WritePropertyName("hookType");
- writer.WriteStringValue(HookType.ToString());
- if (Optional.IsDefined(HookName))
- {
- writer.WritePropertyName("hookName");
- writer.WriteStringValue(HookName);
- }
- if (Optional.IsDefined(Description))
- {
- writer.WritePropertyName("description");
- writer.WriteStringValue(Description);
- }
- if (Optional.IsDefined(ExternalLink))
- {
- writer.WritePropertyName("externalLink");
- writer.WriteStringValue(ExternalLink);
- }
- if (Optional.IsCollectionDefined(Admins))
- {
- writer.WritePropertyName("admins");
- writer.WriteStartArray();
- foreach (var item in Admins)
- {
- writer.WriteStringValue(item);
- }
- writer.WriteEndArray();
- }
- writer.WriteEndObject();
- }
}
}
diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WebhookHookParameterPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WebhookHookParameterPatch.Serialization.cs
index 3b4835f0e3d3f..5ab37db2dc406 100644
--- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WebhookHookParameterPatch.Serialization.cs
+++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WebhookHookParameterPatch.Serialization.cs
@@ -12,46 +12,5 @@ namespace Azure.AI.MetricsAdvisor.Models
{
internal partial class WebhookHookParameterPatch : IUtf8JsonSerializable
{
- void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
- {
- writer.WriteStartObject();
- if (Optional.IsDefined(Endpoint))
- {
- writer.WritePropertyName("endpoint");
- writer.WriteStringValue(Endpoint);
- }
- if (Optional.IsDefined(Username))
- {
- writer.WritePropertyName("username");
- writer.WriteStringValue(Username);
- }
- if (Optional.IsDefined(Password))
- {
- writer.WritePropertyName("password");
- writer.WriteStringValue(Password);
- }
- if (Optional.IsCollectionDefined(Headers))
- {
- writer.WritePropertyName("headers");
- writer.WriteStartObject();
- foreach (var item in Headers)
- {
- writer.WritePropertyName(item.Key);
- writer.WriteStringValue(item.Value);
- }
- writer.WriteEndObject();
- }
- if (Optional.IsDefined(CertificateKey))
- {
- writer.WritePropertyName("certificateKey");
- writer.WriteStringValue(CertificateKey);
- }
- if (Optional.IsDefined(CertificatePassword))
- {
- writer.WritePropertyName("certificatePassword");
- writer.WriteStringValue(CertificatePassword);
- }
- writer.WriteEndObject();
- }
}
}
diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGenInternal/AnomalyAlertingConfigurationPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGenInternal/AnomalyAlertingConfigurationPatch.cs
deleted file mode 100644
index 3d874a0e786a5..0000000000000
--- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGenInternal/AnomalyAlertingConfigurationPatch.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-using System;
-using System.Collections.Generic;
-
-namespace Azure.AI.MetricsAdvisor.Models
-{
- /// The AnomalyAlertingConfigurationPatch.
- internal partial class AnomalyAlertingConfigurationPatch
- {
- /// hook unique ids.
- public IList HookIds { get; internal set; }
-
- /// Anomaly alerting configurations.
- public IList MetricAlertingConfigurations { get; internal set; }
-
- /// dimensions used to split alert.
- public IList SplitAlertByDimensions { get; internal set; }
- }
-}
diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGenInternal/HookInfoPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGenInternal/HookInfoPatch.cs
deleted file mode 100644
index 261b2dec71188..0000000000000
--- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGenInternal/HookInfoPatch.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-using System.Collections.Generic;
-
-namespace Azure.AI.MetricsAdvisor.Models
-{
- /// The HookInfoPatch.
- internal partial class HookInfoPatch
- {
- /// hook administrators.
- public IList Admins { get; internal set; }
- }
-}
diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGenInternal/PatchModels/AnomalyAlertingConfigurationPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGenInternal/PatchModels/AnomalyAlertingConfigurationPatch.cs
new file mode 100644
index 0000000000000..2661d2fd8c492
--- /dev/null
+++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGenInternal/PatchModels/AnomalyAlertingConfigurationPatch.cs
@@ -0,0 +1,68 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+using System;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.AI.MetricsAdvisor.Models
+{
+ /// The AnomalyAlertingConfigurationPatch.
+ internal partial class AnomalyAlertingConfigurationPatch
+ {
+ /// hook unique ids.
+ public IList HookIds { get; internal set; }
+
+ /// Anomaly alerting configurations.
+ public IList MetricAlertingConfigurations { get; internal set; }
+
+ /// dimensions used to split alert.
+ public IList SplitAlertByDimensions { get; internal set; }
+
+ // Full qualification must be used so CodeGen skips the generation of this method.
+ // See: https://github.com/Azure/autorest.csharp/issues/793
+ void global::Azure.Core.IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
+ {
+ writer.WriteStartObject();
+ writer.WriteNullStringValue("name", Name);
+ writer.WriteNullStringValue("description", Description);
+ if (Optional.IsDefined(CrossMetricsOperator))
+ {
+ writer.WritePropertyName("crossMetricsOperator");
+ writer.WriteStringValue(CrossMetricsOperator.Value.ToString());
+ }
+ if (Optional.IsCollectionDefined(SplitAlertByDimensions))
+ {
+ writer.WritePropertyName("splitAlertByDimensions");
+ writer.WriteStartArray();
+ foreach (var item in SplitAlertByDimensions)
+ {
+ writer.WriteStringValue(item);
+ }
+ writer.WriteEndArray();
+ }
+ if (Optional.IsCollectionDefined(HookIds))
+ {
+ writer.WritePropertyName("hookIds");
+ writer.WriteStartArray();
+ foreach (var item in HookIds)
+ {
+ writer.WriteStringValue(item);
+ }
+ writer.WriteEndArray();
+ }
+ if (Optional.IsCollectionDefined(MetricAlertingConfigurations))
+ {
+ writer.WritePropertyName("metricAlertingConfigurations");
+ writer.WriteStartArray();
+ foreach (var item in MetricAlertingConfigurations)
+ {
+ writer.WriteObjectValue(item);
+ }
+ writer.WriteEndArray();
+ }
+ writer.WriteEndObject();
+ }
+ }
+}
diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGenInternal/PatchModels/EmailHookInfoPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGenInternal/PatchModels/EmailHookInfoPatch.cs
new file mode 100644
index 0000000000000..2d415b680760e
--- /dev/null
+++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGenInternal/PatchModels/EmailHookInfoPatch.cs
@@ -0,0 +1,21 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.AI.MetricsAdvisor.Models
+{
+ internal partial class EmailHookInfoPatch : IUtf8JsonSerializable
+ {
+ // Full qualification must be used so CodeGen skips the generation of this method.
+ // See: https://github.com/Azure/autorest.csharp/issues/793
+ void global::Azure.Core.IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
+ {
+ writer.WriteStartObject();
+ writer.WriteNullObjectValue("hookParameter", HookParameter);
+ SerializeCommonProperties(writer);
+ writer.WriteEndObject();
+ }
+ }
+}
diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGenInternal/PatchModels/HookInfoPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGenInternal/PatchModels/HookInfoPatch.cs
new file mode 100644
index 0000000000000..5a454cbd15c29
--- /dev/null
+++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGenInternal/PatchModels/HookInfoPatch.cs
@@ -0,0 +1,44 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.AI.MetricsAdvisor.Models
+{
+ /// The HookInfoPatch.
+ internal partial class HookInfoPatch
+ {
+ /// hook administrators.
+ public IList Admins { get; internal set; }
+
+ protected void SerializeCommonProperties(Utf8JsonWriter writer)
+ {
+ writer.WritePropertyName("hookType");
+ writer.WriteStringValue(HookType.ToString());
+ writer.WriteNullStringValue("hookName", HookName);
+ writer.WriteNullStringValue("description", Description);
+ writer.WriteNullStringValue("externalLink", ExternalLink);
+ if (Optional.IsCollectionDefined(Admins))
+ {
+ writer.WritePropertyName("admins");
+ writer.WriteStartArray();
+ foreach (var item in Admins)
+ {
+ writer.WriteStringValue(item);
+ }
+ writer.WriteEndArray();
+ }
+ }
+
+ // Full qualification must be used so CodeGen skips the generation of this method.
+ // See: https://github.com/Azure/autorest.csharp/issues/793
+ void global::Azure.Core.IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
+ {
+ writer.WriteStartObject();
+ SerializeCommonProperties(writer);
+ writer.WriteEndObject();
+ }
+ }
+}
diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGenInternal/PatchModels/WebhookHookInfoPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGenInternal/PatchModels/WebhookHookInfoPatch.cs
new file mode 100644
index 0000000000000..8a74d7ff8222d
--- /dev/null
+++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGenInternal/PatchModels/WebhookHookInfoPatch.cs
@@ -0,0 +1,21 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.AI.MetricsAdvisor.Models
+{
+ internal partial class WebhookHookInfoPatch : IUtf8JsonSerializable
+ {
+ // Full qualification must be used so CodeGen skips the generation of this method.
+ // See: https://github.com/Azure/autorest.csharp/issues/793
+ void global::Azure.Core.IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
+ {
+ writer.WriteStartObject();
+ writer.WriteNullObjectValue("hookParameter", HookParameter);
+ SerializeCommonProperties(writer);
+ writer.WriteEndObject();
+ }
+ }
+}
diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGenInternal/PatchModels/WebhookHookParameterPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGenInternal/PatchModels/WebhookHookParameterPatch.cs
new file mode 100644
index 0000000000000..cdb948d11c088
--- /dev/null
+++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGenInternal/PatchModels/WebhookHookParameterPatch.cs
@@ -0,0 +1,38 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.AI.MetricsAdvisor.Models
+{
+ internal partial class WebhookHookParameterPatch
+ {
+ public IDictionary Headers { get; internal set; }
+
+ // Full qualification must be used so CodeGen skips the generation of this method.
+ // See: https://github.com/Azure/autorest.csharp/issues/793
+ void global::Azure.Core.IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
+ {
+ writer.WriteStartObject();
+ writer.WriteNullStringValue("endpoint", Endpoint);
+ writer.WriteNullStringValue("username", Username);
+ writer.WriteNullStringValue("password", Password);
+ if (Optional.IsCollectionDefined(Headers))
+ {
+ writer.WritePropertyName("headers");
+ writer.WriteStartObject();
+ foreach (var item in Headers)
+ {
+ writer.WritePropertyName(item.Key);
+ writer.WriteStringValue(item.Value);
+ }
+ writer.WriteEndObject();
+ }
+ writer.WriteNullStringValue("certificateKey", CertificateKey);
+ writer.WriteNullStringValue("certificatePassword", CertificatePassword);
+ writer.WriteEndObject();
+ }
+ }
+}
diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGenInternal/WebhookHookParameterPatch.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGenInternal/WebhookHookParameterPatch.cs
deleted file mode 100644
index ce0b17e114dd9..0000000000000
--- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGenInternal/WebhookHookParameterPatch.cs
+++ /dev/null
@@ -1,12 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-using System.Collections.Generic;
-
-namespace Azure.AI.MetricsAdvisor.Models
-{
- internal partial class WebhookHookParameterPatch
- {
- public IDictionary Headers { get; internal set; }
- }
-}
diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Utf8JsonWriterExtensions.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Utf8JsonWriterExtensions.cs
new file mode 100644
index 0000000000000..3bb64659292f9
--- /dev/null
+++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Utf8JsonWriterExtensions.cs
@@ -0,0 +1,116 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+using System;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.AI.MetricsAdvisor
+{
+ internal static class Utf8JsonWriterExtensions
+ {
+ public static void WriteNullStringValue(this Utf8JsonWriter writer, string propertyName, string value)
+ {
+ if (value != null)
+ {
+ writer.WritePropertyName(propertyName);
+ writer.WriteStringValue(value);
+ }
+ else
+ {
+ writer.WriteNull(propertyName);
+ }
+ }
+
+ public static void WriteNullStringValue(this Utf8JsonWriter writer, string propertyName, DateTimeOffset? value, string format)
+ {
+ if (value != null)
+ {
+ writer.WritePropertyName(propertyName);
+ writer.WriteStringValue(value.Value, format);
+ }
+ else
+ {
+ writer.WriteNull(propertyName);
+ }
+ }
+
+ public static void WriteNullStringValue(this Utf8JsonWriter writer, string propertyName, T? value) where T : struct
+ {
+ if (value != null)
+ {
+ writer.WritePropertyName(propertyName);
+ writer.WriteStringValue(value.Value.ToString());
+ }
+ else
+ {
+ writer.WriteNull(propertyName);
+ }
+ }
+
+ public static void WriteNullNumberValue(this Utf8JsonWriter writer, string propertyName, int? value)
+ {
+ if (value != null)
+ {
+ writer.WritePropertyName(propertyName);
+ writer.WriteNumberValue(value.Value);
+ }
+ else
+ {
+ writer.WriteNull(propertyName);
+ }
+ }
+
+ public static void WriteNullNumberValue(this Utf8JsonWriter writer, string propertyName, long? value)
+ {
+ if (value != null)
+ {
+ writer.WritePropertyName(propertyName);
+ writer.WriteNumberValue(value.Value);
+ }
+ else
+ {
+ writer.WriteNull(propertyName);
+ }
+ }
+
+ public static void WriteNullNumberValue(this Utf8JsonWriter writer, string propertyName, double? value)
+ {
+ if (value != null)
+ {
+ writer.WritePropertyName(propertyName);
+ writer.WriteNumberValue(value.Value);
+ }
+ else
+ {
+ writer.WriteNull(propertyName);
+ }
+ }
+
+ public static void WriteNullBooleanValue(this Utf8JsonWriter writer, string propertyName, bool? value)
+ {
+ if (value != null)
+ {
+ writer.WritePropertyName(propertyName);
+ writer.WriteBooleanValue(value.Value);
+ }
+ else
+ {
+ writer.WriteNull(propertyName);
+ }
+ }
+
+ public static void WriteNullObjectValue(this Utf8JsonWriter writer, string propertyName, IUtf8JsonSerializable value)
+ {
+ if (value != null)
+ {
+ writer.WritePropertyName(propertyName);
+ writer.WriteObjectValue(value);
+ }
+ else
+ {
+ writer.WriteNull(propertyName);
+ }
+ }
+ }
+}
diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs
index 52c6759120bfc..decfd1cf7e4c0 100644
--- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs
+++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs
@@ -642,6 +642,38 @@ public async Task UpdateAlertConfigurationWithEveryMember()
Assert.That(updatedMetricAlertConfig1.UseDetectionResultToFilterAnomalies, Is.True);
}
+ [RecordedTest]
+ public async Task UpdateRootLevelMembersWithNullSetsToDefault()
+ {
+ MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient();
+ await using DisposableDataFeed disposableDataFeed = await CreateTempDataFeedAsync(adminClient);
+ string metricId = disposableDataFeed.DataFeed.MetricIds[TempDataFeedMetricName];
+ await using DisposableDetectionConfiguration disposableDetectionConfig = await CreateTempDetectionConfigurationAsync(adminClient, metricId);
+ var detectionConfigId = disposableDetectionConfig.Configuration.Id;
+
+ string configName = Recording.GenerateAlphaNumericId("config");
+
+ var configToCreate = new AnomalyAlertConfiguration()
+ {
+ Name = configName,
+ Description = "description",
+ MetricAlertConfigurations =
+ {
+ new MetricAlertConfiguration(detectionConfigId, MetricAnomalyAlertScope.CreateScopeForWholeSeries())
+ }
+ };
+
+ await using var disposableConfig = await DisposableAlertConfiguration.CreateAlertConfigurationAsync(adminClient, configToCreate);
+
+ AnomalyAlertConfiguration configToUpdate = disposableConfig.Configuration;
+
+ configToUpdate.Description = null;
+
+ AnomalyAlertConfiguration updatedConfig = await adminClient.UpdateAlertConfigurationAsync(configToUpdate);
+
+ Assert.That(updatedConfig.Description, Is.Empty);
+ }
+
[RecordedTest]
[TestCase(true)]
[TestCase(false)]
diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/NotificationHookLiveTests.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/NotificationHookLiveTests.cs
index 982e5439d647b..2e796076ddc26 100644
--- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/NotificationHookLiveTests.cs
+++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/NotificationHookLiveTests.cs
@@ -14,6 +14,12 @@ namespace Azure.AI.MetricsAdvisor.Tests
{
public class NotificationHookLiveTests : MetricsAdvisorLiveTestBase
{
+ private static string[] NotificationHookTestCases =
+ {
+ nameof(NotificationHookKind.Email),
+ nameof(NotificationHookKind.Webhook)
+ };
+
public NotificationHookLiveTests(bool isAsync) : base(isAsync)
{
}
@@ -347,6 +353,73 @@ public async Task UpdateWebNotificationHookWithEveryMember()
Assert.That(updatedWebHook.Headers, Is.EquivalentTo(headers));
}
+ [RecordedTest]
+ [TestCaseSource(nameof(NotificationHookTestCases))]
+ public async Task UpdateCommonMembersWithNullSetsToDefault(string hookKind)
+ {
+ // https://github.com/Azure/azure-sdk-for-net/issues/21504
+ if (hookKind == nameof(NotificationHookKind.Webhook))
+ {
+ Assert.Ignore();
+ }
+
+ MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient();
+
+ string hookName = Recording.GenerateAlphaNumericId("hook");
+ NotificationHook hookToCreate = CreateMockNotificationHook(hookKind, hookName);
+
+ hookToCreate.Description = "description";
+ hookToCreate.ExternalUri = new Uri("https://fakeuri.com");
+
+ await using var disposableHook = await DisposableNotificationHook.CreateHookAsync(adminClient, hookToCreate);
+
+ NotificationHook hookToUpdate = disposableHook.Hook;
+
+ hookToUpdate.Description = null;
+ hookToUpdate.ExternalUri = null;
+
+ NotificationHook updatedHook = await adminClient.UpdateHookAsync(hookToUpdate);
+
+ Assert.That(updatedHook.Description, Is.Empty);
+ Assert.That(updatedHook.ExternalUri, Is.Null);
+ }
+
+ [RecordedTest]
+ [Ignore("https://github.com/Azure/azure-sdk-for-net/issues/21504")]
+ public async Task UpdateWebHookWithNullSetsToDefault()
+ {
+ MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient();
+
+ string hookName = Recording.GenerateAlphaNumericId("hook");
+ var hookToCreate = new WebNotificationHook(hookName, new Uri("https://fakeuri.com/"))
+ {
+ Username = "username",
+ Password = "password",
+ // https://github.com/Azure/azure-sdk-for-net/issues/17485
+ //CertificateKey = "certKey",
+ CertificatePassword = "certPass"
+ };
+
+ await using var disposableHook = await DisposableNotificationHook.CreateHookAsync(adminClient, hookToCreate);
+
+ var hookToUpdate = disposableHook.Hook as WebNotificationHook;
+
+ hookToUpdate.Username = null;
+ hookToUpdate.Password = null;
+ hookToUpdate.CertificateKey = null;
+ hookToUpdate.CertificatePassword = null;
+
+ var updatedHook = (await adminClient.UpdateHookAsync(hookToUpdate)).Value as WebNotificationHook;
+
+ var expectedPassword = (Recording.Mode == RecordedTestMode.Playback) ? "Sanitized" : string.Empty;
+ var expectedCertPassword = (Recording.Mode == RecordedTestMode.Playback) ? "Sanitized" : string.Empty;
+
+ Assert.That(updatedHook.Username, Is.Empty);
+ Assert.That(updatedHook.Password, Is.EqualTo(expectedPassword));
+ Assert.That(updatedHook.CertificateKey, Is.Empty);
+ Assert.That(updatedHook.CertificatePassword, Is.EqualTo(expectedCertPassword));
+ }
+
[RecordedTest]
[TestCase(true)]
[TestCase(false)]
@@ -482,5 +555,12 @@ public async Task DeleteNotificationHook(bool useTokenCredential)
}
}
}
+
+ private NotificationHook CreateMockNotificationHook(string kind, string name) => kind switch
+ {
+ nameof(NotificationHookKind.Email) => new EmailNotificationHook(name) { EmailsToAlert = { "fake@email.com" } },
+ nameof(NotificationHookKind.Webhook) => new WebNotificationHook(name, new Uri("https://fakeuri.com")),
+ _ => throw new ArgumentOutOfRangeException("Invalid data feed source kind.")
+ };
}
}
diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorRecordedTestSanitizer.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorRecordedTestSanitizer.cs
index fc3b14b1f7cab..c84b2a7322ae1 100644
--- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorRecordedTestSanitizer.cs
+++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorRecordedTestSanitizer.cs
@@ -14,6 +14,7 @@ public MetricsAdvisorRecordedTestSanitizer()
SanitizedHeaders.Add(Constants.SubscriptionAuthorizationHeader);
SanitizedHeaders.Add(Constants.ApiAuthorizationHeader);
AddJsonPathSanitizer("$..password");
+ AddJsonPathSanitizer("$..certificatePassword");
AddJsonPathSanitizer("$..clientSecret");
AddJsonPathSanitizer("$..keyVaultClientSecret");
AddJsonPathSanitizer("$..connectionString");
diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/UpdateRootLevelMembersWithNullSetsToDefault.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/UpdateRootLevelMembersWithNullSetsToDefault.json
new file mode 100644
index 0000000000000..7bc8a2dc9f701
--- /dev/null
+++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/UpdateRootLevelMembersWithNullSetsToDefault.json
@@ -0,0 +1,425 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds",
+ "RequestMethod": "POST",
+ "RequestHeaders": {
+ "Accept": "application/json",
+ "Content-Length": "312",
+ "Content-Type": "application/json",
+ "Ocp-Apim-Subscription-Key": "Sanitized",
+ "traceparent": "00-b90825b791c1e444815bd460a92cebf7-e66ef603ff6fa54f-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "x-api-key": "Sanitized",
+ "x-ms-client-request-id": "ad14b133b46b9b7dea7cba64e5c21daa",
+ "x-ms-return-client-request-id": "true"
+ },
+ "RequestBody": {
+ "dataSourceParameter": {
+ "connectionString": "Sanitized",
+ "query": "query"
+ },
+ "dataSourceType": "SqlServer",
+ "dataFeedName": "dataFeedEnSuPCqE",
+ "granularityName": "Daily",
+ "metrics": [
+ {
+ "metricName": "metric"
+ }
+ ],
+ "dimension": [
+ {
+ "dimensionName": "dimensionA"
+ },
+ {
+ "dimensionName": "dimensionB"
+ }
+ ],
+ "dataStartFrom": "2020-10-01T00:00:00Z"
+ },
+ "StatusCode": 201,
+ "ResponseHeaders": {
+ "apim-request-id": "6ffeaab5-2581-4a8e-a15a-da341149165c",
+ "Content-Length": "0",
+ "Date": "Tue, 06 Jul 2021 11:58:42 GMT",
+ "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds/224be07d-ffc9-4c30-91a3-788d024284c0",
+ "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options": "nosniff",
+ "x-envoy-upstream-service-time": "1258",
+ "x-request-id": "6ffeaab5-2581-4a8e-a15a-da341149165c"
+ },
+ "ResponseBody": []
+ },
+ {
+ "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds/224be07d-ffc9-4c30-91a3-788d024284c0",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/json",
+ "Ocp-Apim-Subscription-Key": "Sanitized",
+ "traceparent": "00-b90825b791c1e444815bd460a92cebf7-69182b378a495c41-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "x-api-key": "Sanitized",
+ "x-ms-client-request-id": "1753fb42dc3b849a6122d971a2103749",
+ "x-ms-return-client-request-id": "true"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "apim-request-id": "e3be73bf-a676-47f7-a19f-abc979a9726d",
+ "Content-Length": "1010",
+ "Content-Type": "application/json; charset=utf-8",
+ "Date": "Tue, 06 Jul 2021 11:58:42 GMT",
+ "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options": "nosniff",
+ "x-envoy-upstream-service-time": "376",
+ "x-request-id": "e3be73bf-a676-47f7-a19f-abc979a9726d"
+ },
+ "ResponseBody": {
+ "dataFeedId": "224be07d-ffc9-4c30-91a3-788d024284c0",
+ "dataFeedName": "dataFeedEnSuPCqE",
+ "metrics": [
+ {
+ "metricId": "d42bcc58-2682-423e-9416-63b31d98673b",
+ "metricName": "metric",
+ "metricDisplayName": "metric",
+ "metricDescription": ""
+ }
+ ],
+ "dimension": [
+ {
+ "dimensionName": "dimensionA",
+ "dimensionDisplayName": "dimensionA"
+ },
+ {
+ "dimensionName": "dimensionB",
+ "dimensionDisplayName": "dimensionB"
+ }
+ ],
+ "dataStartFrom": "2020-10-01T00:00:00Z",
+ "dataSourceType": "SqlServer",
+ "timestampColumn": "",
+ "startOffsetInSeconds": 0,
+ "maxQueryPerMinute": 30.0,
+ "granularityName": "Daily",
+ "needRollup": "NoRollup",
+ "fillMissingPointType": "PreviousValue",
+ "fillMissingPointValue": 0.0,
+ "rollUpMethod": "None",
+ "dataFeedDescription": "",
+ "stopRetryAfterInSeconds": -1,
+ "minRetryIntervalInSeconds": -1,
+ "maxConcurrency": -1,
+ "viewMode": "Private",
+ "admins": [
+ "foo@contoso.com"
+ ],
+ "viewers": [],
+ "creator": "foo@contoso.com",
+ "status": "Active",
+ "createdTime": "2021-07-06T11:58:42Z",
+ "isAdmin": true,
+ "actionLinkTemplate": "",
+ "dataSourceParameter": {
+ "query": "query"
+ },
+ "authenticationType": "Basic"
+ }
+ },
+ {
+ "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations",
+ "RequestMethod": "POST",
+ "RequestHeaders": {
+ "Accept": "application/json",
+ "Content-Length": "229",
+ "Content-Type": "application/json",
+ "Ocp-Apim-Subscription-Key": "Sanitized",
+ "traceparent": "00-d4f24a5f29ced849bf11ccb10925cfa9-60baaea88b521f4e-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "x-api-key": "Sanitized",
+ "x-ms-client-request-id": "c67f5c6aac5b951ff0cb84b1abe01856",
+ "x-ms-return-client-request-id": "true"
+ },
+ "RequestBody": {
+ "name": "dataFeedzY3AhfN7",
+ "metricId": "d42bcc58-2682-423e-9416-63b31d98673b",
+ "wholeMetricConfiguration": {
+ "hardThresholdCondition": {
+ "upperBound": 1,
+ "anomalyDetectorDirection": "Up",
+ "suppressCondition": {
+ "minNumber": 1,
+ "minRatio": 1
+ }
+ }
+ }
+ },
+ "StatusCode": 201,
+ "ResponseHeaders": {
+ "apim-request-id": "914a1ea3-aa85-4cec-b758-b0d38b851696",
+ "Content-Length": "0",
+ "Date": "Tue, 06 Jul 2021 11:58:42 GMT",
+ "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/3360a497-d430-413c-8f32-6d08c2b776ce",
+ "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options": "nosniff",
+ "x-envoy-upstream-service-time": "424",
+ "x-request-id": "914a1ea3-aa85-4cec-b758-b0d38b851696"
+ },
+ "ResponseBody": []
+ },
+ {
+ "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/3360a497-d430-413c-8f32-6d08c2b776ce",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/json",
+ "Ocp-Apim-Subscription-Key": "Sanitized",
+ "traceparent": "00-d4f24a5f29ced849bf11ccb10925cfa9-cb447f6cf9af4a45-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "x-api-key": "Sanitized",
+ "x-ms-client-request-id": "484c8f160bdad9f9457015c523301600",
+ "x-ms-return-client-request-id": "true"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "apim-request-id": "8dadb12e-cf05-4179-96ab-d91ecaf99848",
+ "Content-Length": "399",
+ "Content-Type": "application/json; charset=utf-8",
+ "Date": "Tue, 06 Jul 2021 11:58:43 GMT",
+ "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options": "nosniff",
+ "x-envoy-upstream-service-time": "203",
+ "x-request-id": "8dadb12e-cf05-4179-96ab-d91ecaf99848"
+ },
+ "ResponseBody": {
+ "anomalyDetectionConfigurationId": "3360a497-d430-413c-8f32-6d08c2b776ce",
+ "name": "dataFeedzY3AhfN7",
+ "description": "",
+ "metricId": "d42bcc58-2682-423e-9416-63b31d98673b",
+ "wholeMetricConfiguration": {
+ "hardThresholdCondition": {
+ "upperBound": 1.0,
+ "anomalyDetectorDirection": "Up",
+ "suppressCondition": {
+ "minNumber": 1,
+ "minRatio": 1.0
+ }
+ }
+ },
+ "dimensionGroupOverrideConfigurations": [],
+ "seriesOverrideConfigurations": []
+ }
+ },
+ {
+ "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations",
+ "RequestMethod": "POST",
+ "RequestHeaders": {
+ "Accept": "application/json",
+ "Content-Length": "199",
+ "Content-Type": "application/json",
+ "Ocp-Apim-Subscription-Key": "Sanitized",
+ "traceparent": "00-bd1d0f3734b20f409838b6100c63c7aa-2af2a10e87b6a540-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "x-api-key": "Sanitized",
+ "x-ms-client-request-id": "d7814403868b6e9d0749d603f6842c5e",
+ "x-ms-return-client-request-id": "true"
+ },
+ "RequestBody": {
+ "name": "config1Wj0zMK6",
+ "description": "description",
+ "hookIds": [],
+ "metricAlertingConfigurations": [
+ {
+ "anomalyDetectionConfigurationId": "3360a497-d430-413c-8f32-6d08c2b776ce",
+ "anomalyScopeType": "All"
+ }
+ ]
+ },
+ "StatusCode": 201,
+ "ResponseHeaders": {
+ "apim-request-id": "949940a2-dd0a-4761-8dfc-8d5bb269919b",
+ "Content-Length": "0",
+ "Date": "Tue, 06 Jul 2021 11:58:43 GMT",
+ "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/923ce872-5465-4284-9a8c-22e881488b62",
+ "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options": "nosniff",
+ "x-envoy-upstream-service-time": "304",
+ "x-request-id": "949940a2-dd0a-4761-8dfc-8d5bb269919b"
+ },
+ "ResponseBody": []
+ },
+ {
+ "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/923ce872-5465-4284-9a8c-22e881488b62",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/json",
+ "Ocp-Apim-Subscription-Key": "Sanitized",
+ "traceparent": "00-bd1d0f3734b20f409838b6100c63c7aa-ad35d2afebe8ac46-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "x-api-key": "Sanitized",
+ "x-ms-client-request-id": "ea81a5625a96c072b484835f323afa42",
+ "x-ms-return-client-request-id": "true"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "apim-request-id": "cc430131-d300-4a21-9820-1b4a8c456c9b",
+ "Content-Length": "325",
+ "Content-Type": "application/json; charset=utf-8",
+ "Date": "Tue, 06 Jul 2021 11:58:43 GMT",
+ "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options": "nosniff",
+ "x-envoy-upstream-service-time": "208",
+ "x-request-id": "cc430131-d300-4a21-9820-1b4a8c456c9b"
+ },
+ "ResponseBody": {
+ "anomalyAlertingConfigurationId": "923ce872-5465-4284-9a8c-22e881488b62",
+ "name": "config1Wj0zMK6",
+ "description": "description",
+ "splitAlertByDimensions": [],
+ "hookIds": [],
+ "metricAlertingConfigurations": [
+ {
+ "anomalyDetectionConfigurationId": "3360a497-d430-413c-8f32-6d08c2b776ce",
+ "anomalyScopeType": "All",
+ "negationOperation": false
+ }
+ ]
+ }
+ },
+ {
+ "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/923ce872-5465-4284-9a8c-22e881488b62",
+ "RequestMethod": "PATCH",
+ "RequestHeaders": {
+ "Accept": "application/json",
+ "Content-Length": "244",
+ "Content-Type": "application/merge-patch\u002Bjson",
+ "Ocp-Apim-Subscription-Key": "Sanitized",
+ "traceparent": "00-1047924604f0b1438419d3b7ade54fc1-55d746702e797440-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "x-api-key": "Sanitized",
+ "x-ms-client-request-id": "96459766228abf4ed2a6bdda59120aa9",
+ "x-ms-return-client-request-id": "true"
+ },
+ "RequestBody": {
+ "name": "config1Wj0zMK6",
+ "description": null,
+ "splitAlertByDimensions": [],
+ "hookIds": [],
+ "metricAlertingConfigurations": [
+ {
+ "anomalyDetectionConfigurationId": "3360a497-d430-413c-8f32-6d08c2b776ce",
+ "anomalyScopeType": "All",
+ "negationOperation": false
+ }
+ ]
+ },
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "apim-request-id": "acd291a7-17b6-4649-a580-7eb612e4e760",
+ "Content-Length": "314",
+ "Content-Type": "application/json; charset=utf-8",
+ "Date": "Tue, 06 Jul 2021 11:58:44 GMT",
+ "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options": "nosniff",
+ "x-envoy-upstream-service-time": "407",
+ "x-request-id": "acd291a7-17b6-4649-a580-7eb612e4e760"
+ },
+ "ResponseBody": {
+ "anomalyAlertingConfigurationId": "923ce872-5465-4284-9a8c-22e881488b62",
+ "name": "config1Wj0zMK6",
+ "description": "",
+ "splitAlertByDimensions": [],
+ "hookIds": [],
+ "metricAlertingConfigurations": [
+ {
+ "anomalyDetectionConfigurationId": "3360a497-d430-413c-8f32-6d08c2b776ce",
+ "anomalyScopeType": "All",
+ "negationOperation": false
+ }
+ ]
+ }
+ },
+ {
+ "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/923ce872-5465-4284-9a8c-22e881488b62",
+ "RequestMethod": "DELETE",
+ "RequestHeaders": {
+ "Accept": "application/json",
+ "Ocp-Apim-Subscription-Key": "Sanitized",
+ "traceparent": "00-a2cbbda911415e4faf29d1e5acc27527-95da79f566d60f4f-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "x-api-key": "Sanitized",
+ "x-ms-client-request-id": "b77b4e203e53a81ed2c12206023e3ccd",
+ "x-ms-return-client-request-id": "true"
+ },
+ "RequestBody": null,
+ "StatusCode": 204,
+ "ResponseHeaders": {
+ "apim-request-id": "a6b29a85-ac99-46ed-ac8b-d9d1f60d5339",
+ "Content-Length": "0",
+ "Date": "Tue, 06 Jul 2021 11:58:44 GMT",
+ "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options": "nosniff",
+ "x-envoy-upstream-service-time": "262",
+ "x-request-id": "a6b29a85-ac99-46ed-ac8b-d9d1f60d5339"
+ },
+ "ResponseBody": []
+ },
+ {
+ "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/3360a497-d430-413c-8f32-6d08c2b776ce",
+ "RequestMethod": "DELETE",
+ "RequestHeaders": {
+ "Accept": "application/json",
+ "Ocp-Apim-Subscription-Key": "Sanitized",
+ "traceparent": "00-a793084c2769af448a2007775ddbc4c1-9feb7a7947f30044-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "x-api-key": "Sanitized",
+ "x-ms-client-request-id": "5e9d934e953e40d457c118ef9c9866a1",
+ "x-ms-return-client-request-id": "true"
+ },
+ "RequestBody": null,
+ "StatusCode": 204,
+ "ResponseHeaders": {
+ "apim-request-id": "fbf29142-485b-4a57-84b6-f73f5ea880f0",
+ "Content-Length": "0",
+ "Date": "Tue, 06 Jul 2021 11:58:44 GMT",
+ "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options": "nosniff",
+ "x-envoy-upstream-service-time": "229",
+ "x-request-id": "fbf29142-485b-4a57-84b6-f73f5ea880f0"
+ },
+ "ResponseBody": []
+ },
+ {
+ "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds/224be07d-ffc9-4c30-91a3-788d024284c0",
+ "RequestMethod": "DELETE",
+ "RequestHeaders": {
+ "Accept": "application/json",
+ "Ocp-Apim-Subscription-Key": "Sanitized",
+ "traceparent": "00-ce5e335fb6c44a44aef204a1616a3e83-e70a9f2e50bf4345-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "x-api-key": "Sanitized",
+ "x-ms-client-request-id": "e33fd97a42be28ef799cc4c8ff47bc94",
+ "x-ms-return-client-request-id": "true"
+ },
+ "RequestBody": null,
+ "StatusCode": 204,
+ "ResponseHeaders": {
+ "apim-request-id": "14f5e99d-15ef-4cc2-a14f-87a3aa6f57e5",
+ "Content-Length": "0",
+ "Date": "Tue, 06 Jul 2021 11:58:46 GMT",
+ "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options": "nosniff",
+ "x-envoy-upstream-service-time": "761",
+ "x-request-id": "14f5e99d-15ef-4cc2-a14f-87a3aa6f57e5"
+ },
+ "ResponseBody": []
+ }
+ ],
+ "Variables": {
+ "METRICSADVISOR_ACCOUNT_NAME": "js-metrics-advisor",
+ "METRICSADVISOR_ENDPOINT_SUFFIX": null,
+ "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized",
+ "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized",
+ "RandomSeed": "1498060387"
+ }
+}
\ No newline at end of file
diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/UpdateRootLevelMembersWithNullSetsToDefaultAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/UpdateRootLevelMembersWithNullSetsToDefaultAsync.json
new file mode 100644
index 0000000000000..29e1a69137146
--- /dev/null
+++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/UpdateRootLevelMembersWithNullSetsToDefaultAsync.json
@@ -0,0 +1,425 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds",
+ "RequestMethod": "POST",
+ "RequestHeaders": {
+ "Accept": "application/json",
+ "Content-Length": "312",
+ "Content-Type": "application/json",
+ "Ocp-Apim-Subscription-Key": "Sanitized",
+ "traceparent": "00-6d20cb6fe3587b468c831bbd0046f587-c5f5c8e0c05d5c45-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "x-api-key": "Sanitized",
+ "x-ms-client-request-id": "19b0fa654a5144211b31dce9169cddd8",
+ "x-ms-return-client-request-id": "true"
+ },
+ "RequestBody": {
+ "dataSourceParameter": {
+ "connectionString": "Sanitized",
+ "query": "query"
+ },
+ "dataSourceType": "SqlServer",
+ "dataFeedName": "dataFeedElHyqZZ5",
+ "granularityName": "Daily",
+ "metrics": [
+ {
+ "metricName": "metric"
+ }
+ ],
+ "dimension": [
+ {
+ "dimensionName": "dimensionA"
+ },
+ {
+ "dimensionName": "dimensionB"
+ }
+ ],
+ "dataStartFrom": "2020-10-01T00:00:00Z"
+ },
+ "StatusCode": 201,
+ "ResponseHeaders": {
+ "apim-request-id": "c37db16a-b877-4f66-a4b8-1d81f4a38e5b",
+ "Content-Length": "0",
+ "Date": "Tue, 06 Jul 2021 11:58:48 GMT",
+ "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds/d093416e-7819-4d15-aad0-df8fadef4ed6",
+ "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options": "nosniff",
+ "x-envoy-upstream-service-time": "1341",
+ "x-request-id": "c37db16a-b877-4f66-a4b8-1d81f4a38e5b"
+ },
+ "ResponseBody": []
+ },
+ {
+ "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds/d093416e-7819-4d15-aad0-df8fadef4ed6",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/json",
+ "Ocp-Apim-Subscription-Key": "Sanitized",
+ "traceparent": "00-6d20cb6fe3587b468c831bbd0046f587-7aa98a0a0b2a6940-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "x-api-key": "Sanitized",
+ "x-ms-client-request-id": "5fc64b0be008eec8c0f2590ca31b75ad",
+ "x-ms-return-client-request-id": "true"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "apim-request-id": "da240c42-ee99-4cce-b03d-8f5927d41827",
+ "Content-Length": "1010",
+ "Content-Type": "application/json; charset=utf-8",
+ "Date": "Tue, 06 Jul 2021 11:58:53 GMT",
+ "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options": "nosniff",
+ "x-envoy-upstream-service-time": "5415",
+ "x-request-id": "da240c42-ee99-4cce-b03d-8f5927d41827"
+ },
+ "ResponseBody": {
+ "dataFeedId": "d093416e-7819-4d15-aad0-df8fadef4ed6",
+ "dataFeedName": "dataFeedElHyqZZ5",
+ "metrics": [
+ {
+ "metricId": "464619a1-12fc-49a3-b11f-bfbbb55db539",
+ "metricName": "metric",
+ "metricDisplayName": "metric",
+ "metricDescription": ""
+ }
+ ],
+ "dimension": [
+ {
+ "dimensionName": "dimensionA",
+ "dimensionDisplayName": "dimensionA"
+ },
+ {
+ "dimensionName": "dimensionB",
+ "dimensionDisplayName": "dimensionB"
+ }
+ ],
+ "dataStartFrom": "2020-10-01T00:00:00Z",
+ "dataSourceType": "SqlServer",
+ "timestampColumn": "",
+ "startOffsetInSeconds": 0,
+ "maxQueryPerMinute": 30.0,
+ "granularityName": "Daily",
+ "needRollup": "NoRollup",
+ "fillMissingPointType": "PreviousValue",
+ "fillMissingPointValue": 0.0,
+ "rollUpMethod": "None",
+ "dataFeedDescription": "",
+ "stopRetryAfterInSeconds": -1,
+ "minRetryIntervalInSeconds": -1,
+ "maxConcurrency": -1,
+ "viewMode": "Private",
+ "admins": [
+ "foo@contoso.com"
+ ],
+ "viewers": [],
+ "creator": "foo@contoso.com",
+ "status": "Active",
+ "createdTime": "2021-07-06T11:58:48Z",
+ "isAdmin": true,
+ "actionLinkTemplate": "",
+ "dataSourceParameter": {
+ "query": "query"
+ },
+ "authenticationType": "Basic"
+ }
+ },
+ {
+ "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations",
+ "RequestMethod": "POST",
+ "RequestHeaders": {
+ "Accept": "application/json",
+ "Content-Length": "229",
+ "Content-Type": "application/json",
+ "Ocp-Apim-Subscription-Key": "Sanitized",
+ "traceparent": "00-f73c47207e0c6f4d94b6b22ffb46e553-9892f42557a85643-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "x-api-key": "Sanitized",
+ "x-ms-client-request-id": "83e4b2a45c18ffe3ed40155274ef5484",
+ "x-ms-return-client-request-id": "true"
+ },
+ "RequestBody": {
+ "name": "dataFeedDnQ5bqfE",
+ "metricId": "464619a1-12fc-49a3-b11f-bfbbb55db539",
+ "wholeMetricConfiguration": {
+ "hardThresholdCondition": {
+ "upperBound": 1,
+ "anomalyDetectorDirection": "Up",
+ "suppressCondition": {
+ "minNumber": 1,
+ "minRatio": 1
+ }
+ }
+ }
+ },
+ "StatusCode": 201,
+ "ResponseHeaders": {
+ "apim-request-id": "69fdb45f-5dfd-43d6-b7a7-6eec091982ec",
+ "Content-Length": "0",
+ "Date": "Tue, 06 Jul 2021 11:58:59 GMT",
+ "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/46fa4cb1-4c9d-430f-ac74-20520c2be1a3",
+ "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options": "nosniff",
+ "x-envoy-upstream-service-time": "5439",
+ "x-request-id": "69fdb45f-5dfd-43d6-b7a7-6eec091982ec"
+ },
+ "ResponseBody": []
+ },
+ {
+ "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/46fa4cb1-4c9d-430f-ac74-20520c2be1a3",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/json",
+ "Ocp-Apim-Subscription-Key": "Sanitized",
+ "traceparent": "00-f73c47207e0c6f4d94b6b22ffb46e553-c9931e4fcff9854f-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "x-api-key": "Sanitized",
+ "x-ms-client-request-id": "5e58c23115f000a0bc2ecbb25595b628",
+ "x-ms-return-client-request-id": "true"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "apim-request-id": "11a84cae-9a15-43be-b34c-ee7a291f5c20",
+ "Content-Length": "399",
+ "Content-Type": "application/json; charset=utf-8",
+ "Date": "Tue, 06 Jul 2021 11:59:00 GMT",
+ "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options": "nosniff",
+ "x-envoy-upstream-service-time": "217",
+ "x-request-id": "11a84cae-9a15-43be-b34c-ee7a291f5c20"
+ },
+ "ResponseBody": {
+ "anomalyDetectionConfigurationId": "46fa4cb1-4c9d-430f-ac74-20520c2be1a3",
+ "name": "dataFeedDnQ5bqfE",
+ "description": "",
+ "metricId": "464619a1-12fc-49a3-b11f-bfbbb55db539",
+ "wholeMetricConfiguration": {
+ "hardThresholdCondition": {
+ "upperBound": 1.0,
+ "anomalyDetectorDirection": "Up",
+ "suppressCondition": {
+ "minNumber": 1,
+ "minRatio": 1.0
+ }
+ }
+ },
+ "dimensionGroupOverrideConfigurations": [],
+ "seriesOverrideConfigurations": []
+ }
+ },
+ {
+ "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations",
+ "RequestMethod": "POST",
+ "RequestHeaders": {
+ "Accept": "application/json",
+ "Content-Length": "199",
+ "Content-Type": "application/json",
+ "Ocp-Apim-Subscription-Key": "Sanitized",
+ "traceparent": "00-c84086988f0e39448edaba705cf54f15-874c5e1938335d4d-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "x-api-key": "Sanitized",
+ "x-ms-client-request-id": "631f5a0f22052e390ec216608aacc18f",
+ "x-ms-return-client-request-id": "true"
+ },
+ "RequestBody": {
+ "name": "configRybAVoPJ",
+ "description": "description",
+ "hookIds": [],
+ "metricAlertingConfigurations": [
+ {
+ "anomalyDetectionConfigurationId": "46fa4cb1-4c9d-430f-ac74-20520c2be1a3",
+ "anomalyScopeType": "All"
+ }
+ ]
+ },
+ "StatusCode": 201,
+ "ResponseHeaders": {
+ "apim-request-id": "973e525c-209b-4c62-85c2-2dd447ab78c9",
+ "Content-Length": "0",
+ "Date": "Tue, 06 Jul 2021 11:59:00 GMT",
+ "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/f6d00705-a4b9-4d04-a7cc-bd4907fffdd7",
+ "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options": "nosniff",
+ "x-envoy-upstream-service-time": "294",
+ "x-request-id": "973e525c-209b-4c62-85c2-2dd447ab78c9"
+ },
+ "ResponseBody": []
+ },
+ {
+ "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/f6d00705-a4b9-4d04-a7cc-bd4907fffdd7",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/json",
+ "Ocp-Apim-Subscription-Key": "Sanitized",
+ "traceparent": "00-c84086988f0e39448edaba705cf54f15-7451451b7956374c-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "x-api-key": "Sanitized",
+ "x-ms-client-request-id": "eac6e311309157a98aec125f34fe88ec",
+ "x-ms-return-client-request-id": "true"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "apim-request-id": "da60e13f-e6c6-437f-b09a-d742cd08b907",
+ "Content-Length": "325",
+ "Content-Type": "application/json; charset=utf-8",
+ "Date": "Tue, 06 Jul 2021 11:59:00 GMT",
+ "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options": "nosniff",
+ "x-envoy-upstream-service-time": "226",
+ "x-request-id": "da60e13f-e6c6-437f-b09a-d742cd08b907"
+ },
+ "ResponseBody": {
+ "anomalyAlertingConfigurationId": "f6d00705-a4b9-4d04-a7cc-bd4907fffdd7",
+ "name": "configRybAVoPJ",
+ "description": "description",
+ "splitAlertByDimensions": [],
+ "hookIds": [],
+ "metricAlertingConfigurations": [
+ {
+ "anomalyDetectionConfigurationId": "46fa4cb1-4c9d-430f-ac74-20520c2be1a3",
+ "anomalyScopeType": "All",
+ "negationOperation": false
+ }
+ ]
+ }
+ },
+ {
+ "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/f6d00705-a4b9-4d04-a7cc-bd4907fffdd7",
+ "RequestMethod": "PATCH",
+ "RequestHeaders": {
+ "Accept": "application/json",
+ "Content-Length": "244",
+ "Content-Type": "application/merge-patch\u002Bjson",
+ "Ocp-Apim-Subscription-Key": "Sanitized",
+ "traceparent": "00-5f2ee0f0364dd54b8b5eb8919b0425b6-459bf4ca6998bf4b-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "x-api-key": "Sanitized",
+ "x-ms-client-request-id": "954ff4ec3cf599fbf59ca3927f559e93",
+ "x-ms-return-client-request-id": "true"
+ },
+ "RequestBody": {
+ "name": "configRybAVoPJ",
+ "description": null,
+ "splitAlertByDimensions": [],
+ "hookIds": [],
+ "metricAlertingConfigurations": [
+ {
+ "anomalyDetectionConfigurationId": "46fa4cb1-4c9d-430f-ac74-20520c2be1a3",
+ "anomalyScopeType": "All",
+ "negationOperation": false
+ }
+ ]
+ },
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "apim-request-id": "cca0f32c-bd6b-451c-bfa6-4a0d49f4262e",
+ "Content-Length": "314",
+ "Content-Type": "application/json; charset=utf-8",
+ "Date": "Tue, 06 Jul 2021 11:59:01 GMT",
+ "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options": "nosniff",
+ "x-envoy-upstream-service-time": "415",
+ "x-request-id": "cca0f32c-bd6b-451c-bfa6-4a0d49f4262e"
+ },
+ "ResponseBody": {
+ "anomalyAlertingConfigurationId": "f6d00705-a4b9-4d04-a7cc-bd4907fffdd7",
+ "name": "configRybAVoPJ",
+ "description": "",
+ "splitAlertByDimensions": [],
+ "hookIds": [],
+ "metricAlertingConfigurations": [
+ {
+ "anomalyDetectionConfigurationId": "46fa4cb1-4c9d-430f-ac74-20520c2be1a3",
+ "anomalyScopeType": "All",
+ "negationOperation": false
+ }
+ ]
+ }
+ },
+ {
+ "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/f6d00705-a4b9-4d04-a7cc-bd4907fffdd7",
+ "RequestMethod": "DELETE",
+ "RequestHeaders": {
+ "Accept": "application/json",
+ "Ocp-Apim-Subscription-Key": "Sanitized",
+ "traceparent": "00-9dab64599088c64181a23f35532d70c1-f9e5ce5ac0ae234f-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "x-api-key": "Sanitized",
+ "x-ms-client-request-id": "18442a52eb7eded2b0c7d81810d9fa0f",
+ "x-ms-return-client-request-id": "true"
+ },
+ "RequestBody": null,
+ "StatusCode": 204,
+ "ResponseHeaders": {
+ "apim-request-id": "37192363-fd89-442e-bd6f-b1f3e008c9d4",
+ "Content-Length": "0",
+ "Date": "Tue, 06 Jul 2021 11:59:01 GMT",
+ "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options": "nosniff",
+ "x-envoy-upstream-service-time": "283",
+ "x-request-id": "37192363-fd89-442e-bd6f-b1f3e008c9d4"
+ },
+ "ResponseBody": []
+ },
+ {
+ "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/46fa4cb1-4c9d-430f-ac74-20520c2be1a3",
+ "RequestMethod": "DELETE",
+ "RequestHeaders": {
+ "Accept": "application/json",
+ "Ocp-Apim-Subscription-Key": "Sanitized",
+ "traceparent": "00-ef21fe97fe7f7d44834aae79b0b34747-c7c195e0204f754b-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "x-api-key": "Sanitized",
+ "x-ms-client-request-id": "9673293a2c5dd499e82df4f58c17d734",
+ "x-ms-return-client-request-id": "true"
+ },
+ "RequestBody": null,
+ "StatusCode": 204,
+ "ResponseHeaders": {
+ "apim-request-id": "a0a88d59-83d3-4d6d-8592-8dfddbab9c6d",
+ "Content-Length": "0",
+ "Date": "Tue, 06 Jul 2021 11:59:01 GMT",
+ "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options": "nosniff",
+ "x-envoy-upstream-service-time": "242",
+ "x-request-id": "a0a88d59-83d3-4d6d-8592-8dfddbab9c6d"
+ },
+ "ResponseBody": []
+ },
+ {
+ "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds/d093416e-7819-4d15-aad0-df8fadef4ed6",
+ "RequestMethod": "DELETE",
+ "RequestHeaders": {
+ "Accept": "application/json",
+ "Ocp-Apim-Subscription-Key": "Sanitized",
+ "traceparent": "00-3a40922408dbf548857ae58c58c4f5b7-f681e5660ca3604b-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "x-api-key": "Sanitized",
+ "x-ms-client-request-id": "090c7e4e6fba016d2170e42d63e2891c",
+ "x-ms-return-client-request-id": "true"
+ },
+ "RequestBody": null,
+ "StatusCode": 204,
+ "ResponseHeaders": {
+ "apim-request-id": "e830cce2-040c-4ce7-8555-ceb58d318ce0",
+ "Content-Length": "0",
+ "Date": "Tue, 06 Jul 2021 11:59:02 GMT",
+ "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options": "nosniff",
+ "x-envoy-upstream-service-time": "739",
+ "x-request-id": "e830cce2-040c-4ce7-8555-ceb58d318ce0"
+ },
+ "ResponseBody": []
+ }
+ ],
+ "Variables": {
+ "METRICSADVISOR_ACCOUNT_NAME": "js-metrics-advisor",
+ "METRICSADVISOR_ENDPOINT_SUFFIX": null,
+ "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized",
+ "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized",
+ "RandomSeed": "1598846466"
+ }
+}
\ No newline at end of file
diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/NotificationHookLiveTests/UpdateCommonMembersWithNullSetsToDefault(%Email%).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/NotificationHookLiveTests/UpdateCommonMembersWithNullSetsToDefault(%Email%).json
new file mode 100644
index 0000000000000..091b5cb3fed21
--- /dev/null
+++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/NotificationHookLiveTests/UpdateCommonMembersWithNullSetsToDefault(%Email%).json
@@ -0,0 +1,169 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks",
+ "RequestMethod": "POST",
+ "RequestHeaders": {
+ "Accept": "application/json",
+ "Content-Length": "158",
+ "Content-Type": "application/json",
+ "Ocp-Apim-Subscription-Key": "Sanitized",
+ "traceparent": "00-6659d17592bc9d4b8608ff09f31baba2-964ddbaf01c6d942-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "x-api-key": "Sanitized",
+ "x-ms-client-request-id": "d3a45c31026fe6d366deba8e446044be",
+ "x-ms-return-client-request-id": "true"
+ },
+ "RequestBody": {
+ "hookParameter": {
+ "toList": [
+ "fake@email.com"
+ ]
+ },
+ "hookType": "Email",
+ "hookName": "hooknj7EOqxM",
+ "description": "description",
+ "externalLink": "https://fakeuri.com/"
+ },
+ "StatusCode": 201,
+ "ResponseHeaders": {
+ "apim-request-id": "0f600490-523d-4cc7-89f3-f02050824d9c",
+ "Content-Length": "0",
+ "Date": "Tue, 06 Jul 2021 12:36:39 GMT",
+ "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/cb34f1c6-9b23-4a54-b657-dd0351c52006",
+ "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options": "nosniff",
+ "x-envoy-upstream-service-time": "6077",
+ "x-request-id": "0f600490-523d-4cc7-89f3-f02050824d9c"
+ },
+ "ResponseBody": []
+ },
+ {
+ "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/cb34f1c6-9b23-4a54-b657-dd0351c52006",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/json",
+ "Ocp-Apim-Subscription-Key": "Sanitized",
+ "traceparent": "00-6659d17592bc9d4b8608ff09f31baba2-020e5c77761be848-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "x-api-key": "Sanitized",
+ "x-ms-client-request-id": "75c74407d56d35498ae7a4308937eddf",
+ "x-ms-return-client-request-id": "true"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "apim-request-id": "eb47f099-ca9c-4e87-a7d5-ed73ddcfec0a",
+ "Content-Length": "235",
+ "Content-Type": "application/json; charset=utf-8",
+ "Date": "Tue, 06 Jul 2021 12:36:45 GMT",
+ "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options": "nosniff",
+ "x-envoy-upstream-service-time": "5409",
+ "x-request-id": "eb47f099-ca9c-4e87-a7d5-ed73ddcfec0a"
+ },
+ "ResponseBody": {
+ "hookId": "cb34f1c6-9b23-4a54-b657-dd0351c52006",
+ "hookName": "hooknj7EOqxM",
+ "hookType": "Email",
+ "externalLink": "https://fakeuri.com/",
+ "description": "description",
+ "admins": [
+ "foo@contoso.com"
+ ],
+ "hookParameter": {
+ "toList": [
+ "fake@email.com"
+ ]
+ }
+ }
+ },
+ {
+ "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/cb34f1c6-9b23-4a54-b657-dd0351c52006",
+ "RequestMethod": "PATCH",
+ "RequestHeaders": {
+ "Accept": "application/json",
+ "Content-Length": "160",
+ "Content-Type": "application/merge-patch\u002Bjson",
+ "Ocp-Apim-Subscription-Key": "Sanitized",
+ "traceparent": "00-382f4c495f3ded48b7a16ae0bfdc15d8-b01965c932d1ce48-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "x-api-key": "Sanitized",
+ "x-ms-client-request-id": "269fd6f432f90a3e69d21acacfc4de22",
+ "x-ms-return-client-request-id": "true"
+ },
+ "RequestBody": {
+ "hookParameter": {
+ "toList": [
+ "fake@email.com"
+ ]
+ },
+ "hookType": "Email",
+ "hookName": "hooknj7EOqxM",
+ "description": null,
+ "externalLink": null,
+ "admins": [
+ "foo@contoso.com"
+ ]
+ },
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "apim-request-id": "a0fa5f12-52e1-4275-9798-f2340ecfdbe2",
+ "Content-Length": "204",
+ "Content-Type": "application/json; charset=utf-8",
+ "Date": "Tue, 06 Jul 2021 12:36:46 GMT",
+ "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options": "nosniff",
+ "x-envoy-upstream-service-time": "1334",
+ "x-request-id": "a0fa5f12-52e1-4275-9798-f2340ecfdbe2"
+ },
+ "ResponseBody": {
+ "hookId": "cb34f1c6-9b23-4a54-b657-dd0351c52006",
+ "hookName": "hooknj7EOqxM",
+ "hookType": "Email",
+ "externalLink": "",
+ "description": "",
+ "admins": [
+ "foo@contoso.com"
+ ],
+ "hookParameter": {
+ "toList": [
+ "fake@email.com"
+ ]
+ }
+ }
+ },
+ {
+ "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/cb34f1c6-9b23-4a54-b657-dd0351c52006",
+ "RequestMethod": "DELETE",
+ "RequestHeaders": {
+ "Accept": "application/json",
+ "Ocp-Apim-Subscription-Key": "Sanitized",
+ "traceparent": "00-c45b54bb6198aa4c8d65abb7c664f1db-500b54ab52d3e846-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "x-api-key": "Sanitized",
+ "x-ms-client-request-id": "254de4daed5e5bb6136e48885da35d2f",
+ "x-ms-return-client-request-id": "true"
+ },
+ "RequestBody": null,
+ "StatusCode": 204,
+ "ResponseHeaders": {
+ "apim-request-id": "8931cea8-8e0d-40f5-bb90-d75c707c0905",
+ "Content-Length": "0",
+ "Date": "Tue, 06 Jul 2021 12:36:52 GMT",
+ "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options": "nosniff",
+ "x-envoy-upstream-service-time": "5472",
+ "x-request-id": "8931cea8-8e0d-40f5-bb90-d75c707c0905"
+ },
+ "ResponseBody": []
+ }
+ ],
+ "Variables": {
+ "METRICSADVISOR_ACCOUNT_NAME": "js-metrics-advisor",
+ "METRICSADVISOR_ENDPOINT_SUFFIX": null,
+ "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized",
+ "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized",
+ "RandomSeed": "2082964792"
+ }
+}
\ No newline at end of file
diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/NotificationHookLiveTests/UpdateCommonMembersWithNullSetsToDefault(%Email%)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/NotificationHookLiveTests/UpdateCommonMembersWithNullSetsToDefault(%Email%)Async.json
new file mode 100644
index 0000000000000..56749c9d87ce0
--- /dev/null
+++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/NotificationHookLiveTests/UpdateCommonMembersWithNullSetsToDefault(%Email%)Async.json
@@ -0,0 +1,169 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks",
+ "RequestMethod": "POST",
+ "RequestHeaders": {
+ "Accept": "application/json",
+ "Content-Length": "158",
+ "Content-Type": "application/json",
+ "Ocp-Apim-Subscription-Key": "Sanitized",
+ "traceparent": "00-123a1b0d60a5a5448f0d24ba1a026749-7e883058feb2e243-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "x-api-key": "Sanitized",
+ "x-ms-client-request-id": "157cd888ba99b313acaedbeccb8da5e2",
+ "x-ms-return-client-request-id": "true"
+ },
+ "RequestBody": {
+ "hookParameter": {
+ "toList": [
+ "fake@email.com"
+ ]
+ },
+ "hookType": "Email",
+ "hookName": "hookVnhWicUT",
+ "description": "description",
+ "externalLink": "https://fakeuri.com/"
+ },
+ "StatusCode": 201,
+ "ResponseHeaders": {
+ "apim-request-id": "e642c97d-9992-4a9a-a2e6-22959253f2a7",
+ "Content-Length": "0",
+ "Date": "Tue, 06 Jul 2021 12:37:28 GMT",
+ "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/efde20a4-019b-491d-ba17-a56e57cfbf29",
+ "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options": "nosniff",
+ "x-envoy-upstream-service-time": "1471",
+ "x-request-id": "e642c97d-9992-4a9a-a2e6-22959253f2a7"
+ },
+ "ResponseBody": []
+ },
+ {
+ "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/efde20a4-019b-491d-ba17-a56e57cfbf29",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/json",
+ "Ocp-Apim-Subscription-Key": "Sanitized",
+ "traceparent": "00-123a1b0d60a5a5448f0d24ba1a026749-1384c208ce6f1b44-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "x-api-key": "Sanitized",
+ "x-ms-client-request-id": "a6376e52b2a7a78150c071b5a15873f6",
+ "x-ms-return-client-request-id": "true"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "apim-request-id": "2854a2e5-301f-4c8e-b7e6-2ddaf02617e2",
+ "Content-Length": "235",
+ "Content-Type": "application/json; charset=utf-8",
+ "Date": "Tue, 06 Jul 2021 12:37:28 GMT",
+ "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options": "nosniff",
+ "x-envoy-upstream-service-time": "360",
+ "x-request-id": "2854a2e5-301f-4c8e-b7e6-2ddaf02617e2"
+ },
+ "ResponseBody": {
+ "hookId": "efde20a4-019b-491d-ba17-a56e57cfbf29",
+ "hookName": "hookVnhWicUT",
+ "hookType": "Email",
+ "externalLink": "https://fakeuri.com/",
+ "description": "description",
+ "admins": [
+ "foo@contoso.com"
+ ],
+ "hookParameter": {
+ "toList": [
+ "fake@email.com"
+ ]
+ }
+ }
+ },
+ {
+ "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/efde20a4-019b-491d-ba17-a56e57cfbf29",
+ "RequestMethod": "PATCH",
+ "RequestHeaders": {
+ "Accept": "application/json",
+ "Content-Length": "160",
+ "Content-Type": "application/merge-patch\u002Bjson",
+ "Ocp-Apim-Subscription-Key": "Sanitized",
+ "traceparent": "00-5e24d835d905b545b27d8cb038a9dc94-a299000fffe1b249-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "x-api-key": "Sanitized",
+ "x-ms-client-request-id": "76d8fcca5bab54153da95e6001a71a81",
+ "x-ms-return-client-request-id": "true"
+ },
+ "RequestBody": {
+ "hookParameter": {
+ "toList": [
+ "fake@email.com"
+ ]
+ },
+ "hookType": "Email",
+ "hookName": "hookVnhWicUT",
+ "description": null,
+ "externalLink": null,
+ "admins": [
+ "foo@contoso.com"
+ ]
+ },
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "apim-request-id": "4d0e9875-42d5-47d3-a93b-6247b05489a8",
+ "Content-Length": "204",
+ "Content-Type": "application/json; charset=utf-8",
+ "Date": "Tue, 06 Jul 2021 12:37:30 GMT",
+ "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options": "nosniff",
+ "x-envoy-upstream-service-time": "1660",
+ "x-request-id": "4d0e9875-42d5-47d3-a93b-6247b05489a8"
+ },
+ "ResponseBody": {
+ "hookId": "efde20a4-019b-491d-ba17-a56e57cfbf29",
+ "hookName": "hookVnhWicUT",
+ "hookType": "Email",
+ "externalLink": "",
+ "description": "",
+ "admins": [
+ "foo@contoso.com"
+ ],
+ "hookParameter": {
+ "toList": [
+ "fake@email.com"
+ ]
+ }
+ }
+ },
+ {
+ "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/efde20a4-019b-491d-ba17-a56e57cfbf29",
+ "RequestMethod": "DELETE",
+ "RequestHeaders": {
+ "Accept": "application/json",
+ "Ocp-Apim-Subscription-Key": "Sanitized",
+ "traceparent": "00-8e1e323374a113489fcdd044b9e0c634-d96a5b9638aad243-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "x-api-key": "Sanitized",
+ "x-ms-client-request-id": "005c426f9a22d6bf56d4c4d8495e1253",
+ "x-ms-return-client-request-id": "true"
+ },
+ "RequestBody": null,
+ "StatusCode": 204,
+ "ResponseHeaders": {
+ "apim-request-id": "62d91351-f4ac-42c1-ba18-89ae03094b05",
+ "Content-Length": "0",
+ "Date": "Tue, 06 Jul 2021 12:37:31 GMT",
+ "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options": "nosniff",
+ "x-envoy-upstream-service-time": "419",
+ "x-request-id": "62d91351-f4ac-42c1-ba18-89ae03094b05"
+ },
+ "ResponseBody": []
+ }
+ ],
+ "Variables": {
+ "METRICSADVISOR_ACCOUNT_NAME": "js-metrics-advisor",
+ "METRICSADVISOR_ENDPOINT_SUFFIX": null,
+ "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized",
+ "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized",
+ "RandomSeed": "1368075888"
+ }
+}
\ No newline at end of file
diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/NotificationHookLiveTests/UpdateEmailNotificationHookWithMinimumSetup(False).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/NotificationHookLiveTests/UpdateEmailNotificationHookWithMinimumSetup(False).json
index 4ba077f0f221d..768a79d9ca81b 100644
--- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/NotificationHookLiveTests/UpdateEmailNotificationHookWithMinimumSetup(False).json
+++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/NotificationHookLiveTests/UpdateEmailNotificationHookWithMinimumSetup(False).json
@@ -8,8 +8,8 @@
"Content-Length": "111",
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "Sanitized",
- "traceparent": "00-140d9525cffb344dafe2ef7b2521f0db-735e26a17ed32c49-00",
- "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210603.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "traceparent": "00-089118b8ac48a742a132dc6e1357d76f-7a01e8dcd3b00d4d-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
"x-api-key": "Sanitized",
"x-ms-client-request-id": "a292f2076d2e0e12fa978ca259aa0159",
"x-ms-return-client-request-id": "true"
@@ -26,25 +26,25 @@
},
"StatusCode": 201,
"ResponseHeaders": {
- "apim-request-id": "5b4709ba-062a-49f2-8e71-2706a90eb0f4",
+ "apim-request-id": "29c8077a-d553-40c9-b1b4-e6e169c1a68c",
"Content-Length": "0",
- "Date": "Thu, 03 Jun 2021 18:20:15 GMT",
- "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/c891416b-a661-44e5-a8ce-842cc2b25594",
+ "Date": "Tue, 06 Jul 2021 12:37:09 GMT",
+ "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/1c356fe0-4bf8-439f-85e9-ac4f4d47286b",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
"x-content-type-options": "nosniff",
- "x-envoy-upstream-service-time": "488",
- "x-request-id": "5b4709ba-062a-49f2-8e71-2706a90eb0f4"
+ "x-envoy-upstream-service-time": "1032",
+ "x-request-id": "29c8077a-d553-40c9-b1b4-e6e169c1a68c"
},
"ResponseBody": []
},
{
- "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/c891416b-a661-44e5-a8ce-842cc2b25594",
+ "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/1c356fe0-4bf8-439f-85e9-ac4f4d47286b",
"RequestMethod": "GET",
"RequestHeaders": {
"Accept": "application/json",
"Ocp-Apim-Subscription-Key": "Sanitized",
- "traceparent": "00-140d9525cffb344dafe2ef7b2521f0db-3330513bd1d2a14d-00",
- "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210603.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "traceparent": "00-089118b8ac48a742a132dc6e1357d76f-d56bf6ae07e36541-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
"x-api-key": "Sanitized",
"x-ms-client-request-id": "32bce9cb1b7f4f844d657c32ffe8b4a6",
"x-ms-return-client-request-id": "true"
@@ -52,17 +52,17 @@
"RequestBody": null,
"StatusCode": 200,
"ResponseHeaders": {
- "apim-request-id": "4c6c6cc6-ab1b-464f-9db8-0b22ffd34512",
+ "apim-request-id": "32f2f24d-2902-4178-bdb0-3317b214f4bc",
"Content-Length": "223",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 03 Jun 2021 18:20:21 GMT",
+ "Date": "Tue, 06 Jul 2021 12:37:14 GMT",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
"x-content-type-options": "nosniff",
- "x-envoy-upstream-service-time": "5183",
- "x-request-id": "4c6c6cc6-ab1b-464f-9db8-0b22ffd34512"
+ "x-envoy-upstream-service-time": "5397",
+ "x-request-id": "32f2f24d-2902-4178-bdb0-3317b214f4bc"
},
"ResponseBody": {
- "hookId": "c891416b-a661-44e5-a8ce-842cc2b25594",
+ "hookId": "1c356fe0-4bf8-439f-85e9-ac4f4d47286b",
"hookName": "hookC674MsBm",
"hookType": "Email",
"externalLink": "",
@@ -79,58 +79,17 @@
}
},
{
- "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/c891416b-a661-44e5-a8ce-842cc2b25594",
- "RequestMethod": "GET",
- "RequestHeaders": {
- "Accept": "application/json",
- "Ocp-Apim-Subscription-Key": "Sanitized",
- "traceparent": "00-f4787bcb523b024b89cab93a4af313ed-76c1eba4050bf44c-00",
- "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210603.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
- "x-api-key": "Sanitized",
- "x-ms-client-request-id": "9dad8b2f9ea0141f6102ad68bf1a76ad",
- "x-ms-return-client-request-id": "true"
- },
- "RequestBody": null,
- "StatusCode": 200,
- "ResponseHeaders": {
- "apim-request-id": "7e89523f-cc1c-4bfa-9016-cef8337f1136",
- "Content-Length": "223",
- "Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 03 Jun 2021 18:20:21 GMT",
- "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
- "x-content-type-options": "nosniff",
- "x-envoy-upstream-service-time": "232",
- "x-request-id": "7e89523f-cc1c-4bfa-9016-cef8337f1136"
- },
- "ResponseBody": {
- "hookId": "c891416b-a661-44e5-a8ce-842cc2b25594",
- "hookName": "hookC674MsBm",
- "hookType": "Email",
- "externalLink": "",
- "description": "",
- "admins": [
- "foo@contoso.com"
- ],
- "hookParameter": {
- "toList": [
- "fake1@email.com",
- "fake2@email.com"
- ]
- }
- }
- },
- {
- "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/c891416b-a661-44e5-a8ce-842cc2b25594",
+ "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/1c356fe0-4bf8-439f-85e9-ac4f4d47286b",
"RequestMethod": "PATCH",
"RequestHeaders": {
"Accept": "application/json",
- "Content-Length": "175",
+ "Content-Length": "195",
"Content-Type": "application/merge-patch\u002Bjson",
"Ocp-Apim-Subscription-Key": "Sanitized",
- "traceparent": "00-458b38f9b2a67445ad2abf9f64c89573-e34c6e7615f93042-00",
- "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210603.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "traceparent": "00-35b41aab9cd1094cb0373a1073298b60-a031c73dfd83a846-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
"x-api-key": "Sanitized",
- "x-ms-client-request-id": "5e619fc13007eb866e4254c8f1e00e11",
+ "x-ms-client-request-id": "9dad8b2f9ea0141f6102ad68bf1a76ad",
"x-ms-return-client-request-id": "true"
},
"RequestBody": {
@@ -144,23 +103,24 @@
"hookType": "Email",
"hookName": "hookC674MsBm",
"description": "",
+ "externalLink": null,
"admins": [
"foo@contoso.com"
]
},
"StatusCode": 200,
"ResponseHeaders": {
- "apim-request-id": "ca938c1b-c221-4636-8163-3587e7cb8a02",
+ "apim-request-id": "4a575836-fe70-4f07-a676-a6631e0b91bd",
"Content-Length": "241",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 03 Jun 2021 18:20:27 GMT",
+ "Date": "Tue, 06 Jul 2021 12:37:20 GMT",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
"x-content-type-options": "nosniff",
- "x-envoy-upstream-service-time": "5727",
- "x-request-id": "ca938c1b-c221-4636-8163-3587e7cb8a02"
+ "x-envoy-upstream-service-time": "6698",
+ "x-request-id": "4a575836-fe70-4f07-a676-a6631e0b91bd"
},
"ResponseBody": {
- "hookId": "c891416b-a661-44e5-a8ce-842cc2b25594",
+ "hookId": "1c356fe0-4bf8-439f-85e9-ac4f4d47286b",
"hookName": "hookC674MsBm",
"hookType": "Email",
"externalLink": "",
@@ -178,69 +138,27 @@
}
},
{
- "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/c891416b-a661-44e5-a8ce-842cc2b25594",
- "RequestMethod": "GET",
- "RequestHeaders": {
- "Accept": "application/json",
- "Ocp-Apim-Subscription-Key": "Sanitized",
- "traceparent": "00-e073ffd0ac5c054d8da5490e167d1dd5-3eff92cae583b741-00",
- "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210603.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
- "x-api-key": "Sanitized",
- "x-ms-client-request-id": "ce73e5e363fc2cb8caa7d07d6e1c8f33",
- "x-ms-return-client-request-id": "true"
- },
- "RequestBody": null,
- "StatusCode": 200,
- "ResponseHeaders": {
- "apim-request-id": "7794589f-73be-48ec-86fa-43f1bbeb5ce8",
- "Content-Length": "241",
- "Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 03 Jun 2021 18:20:27 GMT",
- "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
- "x-content-type-options": "nosniff",
- "x-envoy-upstream-service-time": "174",
- "x-request-id": "7794589f-73be-48ec-86fa-43f1bbeb5ce8"
- },
- "ResponseBody": {
- "hookId": "c891416b-a661-44e5-a8ce-842cc2b25594",
- "hookName": "hookC674MsBm",
- "hookType": "Email",
- "externalLink": "",
- "description": "",
- "admins": [
- "foo@contoso.com"
- ],
- "hookParameter": {
- "toList": [
- "fake1@email.com",
- "fake2@email.com",
- "fake3@email.com"
- ]
- }
- }
- },
- {
- "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/c891416b-a661-44e5-a8ce-842cc2b25594",
+ "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/1c356fe0-4bf8-439f-85e9-ac4f4d47286b",
"RequestMethod": "DELETE",
"RequestHeaders": {
"Accept": "application/json",
"Ocp-Apim-Subscription-Key": "Sanitized",
- "traceparent": "00-46989308824c4b47b7416a8a84df5fa2-d0ec873a9710ae4f-00",
- "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210603.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "traceparent": "00-14bd518575d97b4c838a458b68231bef-ffb5ab0ac2f61448-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
"x-api-key": "Sanitized",
- "x-ms-client-request-id": "5f70ceef5587ff9f04c12f5d49562381",
+ "x-ms-client-request-id": "5e619fc13007eb866e4254c8f1e00e11",
"x-ms-return-client-request-id": "true"
},
"RequestBody": null,
"StatusCode": 204,
"ResponseHeaders": {
- "apim-request-id": "d684da34-5b21-41cf-a09b-6914ed9c2980",
+ "apim-request-id": "d5187c8d-a3e1-49fb-9a1c-37a6be72f80b",
"Content-Length": "0",
- "Date": "Thu, 03 Jun 2021 18:20:27 GMT",
+ "Date": "Tue, 06 Jul 2021 12:37:26 GMT",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
"x-content-type-options": "nosniff",
- "x-envoy-upstream-service-time": "310",
- "x-request-id": "d684da34-5b21-41cf-a09b-6914ed9c2980"
+ "x-envoy-upstream-service-time": "5467",
+ "x-request-id": "d5187c8d-a3e1-49fb-9a1c-37a6be72f80b"
},
"ResponseBody": []
}
diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/NotificationHookLiveTests/UpdateEmailNotificationHookWithMinimumSetup(False)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/NotificationHookLiveTests/UpdateEmailNotificationHookWithMinimumSetup(False)Async.json
index 188b63ae8f252..f5d1f3875b661 100644
--- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/NotificationHookLiveTests/UpdateEmailNotificationHookWithMinimumSetup(False)Async.json
+++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/NotificationHookLiveTests/UpdateEmailNotificationHookWithMinimumSetup(False)Async.json
@@ -8,8 +8,8 @@
"Content-Length": "111",
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "Sanitized",
- "traceparent": "00-9361943cd83b8641bdeb9ec4d1db16a2-3a1a2661fe143540-00",
- "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210603.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "traceparent": "00-05becaef4f5b2140aeed06190658d6e3-22538fc2be7ef449-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
"x-api-key": "Sanitized",
"x-ms-client-request-id": "c0bd03356926376ce3a9e715abff87c9",
"x-ms-return-client-request-id": "true"
@@ -26,25 +26,25 @@
},
"StatusCode": 201,
"ResponseHeaders": {
- "apim-request-id": "a306ae11-1417-4e4c-ac7c-34667ebc1861",
+ "apim-request-id": "a66ea652-2d8b-4a17-be7c-0314ecfac2c3",
"Content-Length": "0",
- "Date": "Thu, 03 Jun 2021 18:20:46 GMT",
- "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/d868ad73-2a0e-49ef-84a6-b7830e4580bf",
+ "Date": "Tue, 06 Jul 2021 12:37:40 GMT",
+ "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/e9824e4b-67d6-4718-bec4-cafbdf0b673b",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
"x-content-type-options": "nosniff",
- "x-envoy-upstream-service-time": "317",
- "x-request-id": "a306ae11-1417-4e4c-ac7c-34667ebc1861"
+ "x-envoy-upstream-service-time": "997",
+ "x-request-id": "a66ea652-2d8b-4a17-be7c-0314ecfac2c3"
},
"ResponseBody": []
},
{
- "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/d868ad73-2a0e-49ef-84a6-b7830e4580bf",
+ "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/e9824e4b-67d6-4718-bec4-cafbdf0b673b",
"RequestMethod": "GET",
"RequestHeaders": {
"Accept": "application/json",
"Ocp-Apim-Subscription-Key": "Sanitized",
- "traceparent": "00-9361943cd83b8641bdeb9ec4d1db16a2-df4531752c98ff47-00",
- "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210603.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "traceparent": "00-05becaef4f5b2140aeed06190658d6e3-765fe037342c7745-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
"x-api-key": "Sanitized",
"x-ms-client-request-id": "c62e59d08cb008599cd3e9b613ff4fc5",
"x-ms-return-client-request-id": "true"
@@ -52,17 +52,17 @@
"RequestBody": null,
"StatusCode": 200,
"ResponseHeaders": {
- "apim-request-id": "0bd34a26-a421-4a41-bf4d-b4786fe541c8",
+ "apim-request-id": "27a63cca-e018-4b63-858b-328d255abfcb",
"Content-Length": "223",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 03 Jun 2021 18:20:47 GMT",
+ "Date": "Tue, 06 Jul 2021 12:37:41 GMT",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
"x-content-type-options": "nosniff",
- "x-envoy-upstream-service-time": "229",
- "x-request-id": "0bd34a26-a421-4a41-bf4d-b4786fe541c8"
+ "x-envoy-upstream-service-time": "358",
+ "x-request-id": "27a63cca-e018-4b63-858b-328d255abfcb"
},
"ResponseBody": {
- "hookId": "d868ad73-2a0e-49ef-84a6-b7830e4580bf",
+ "hookId": "e9824e4b-67d6-4718-bec4-cafbdf0b673b",
"hookName": "hookVHsNsODG",
"hookType": "Email",
"externalLink": "",
@@ -79,58 +79,17 @@
}
},
{
- "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/d868ad73-2a0e-49ef-84a6-b7830e4580bf",
- "RequestMethod": "GET",
- "RequestHeaders": {
- "Accept": "application/json",
- "Ocp-Apim-Subscription-Key": "Sanitized",
- "traceparent": "00-1838c5c428023d4d95c7f14e4fd601ce-f7449719fe02ec49-00",
- "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210603.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
- "x-api-key": "Sanitized",
- "x-ms-client-request-id": "9cb46fdd3675aff098307a07dc4a5902",
- "x-ms-return-client-request-id": "true"
- },
- "RequestBody": null,
- "StatusCode": 200,
- "ResponseHeaders": {
- "apim-request-id": "f6f578f2-96fd-4aaa-a0dc-b142baa4e4e5",
- "Content-Length": "223",
- "Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 03 Jun 2021 18:20:47 GMT",
- "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
- "x-content-type-options": "nosniff",
- "x-envoy-upstream-service-time": "218",
- "x-request-id": "f6f578f2-96fd-4aaa-a0dc-b142baa4e4e5"
- },
- "ResponseBody": {
- "hookId": "d868ad73-2a0e-49ef-84a6-b7830e4580bf",
- "hookName": "hookVHsNsODG",
- "hookType": "Email",
- "externalLink": "",
- "description": "",
- "admins": [
- "foo@contoso.com"
- ],
- "hookParameter": {
- "toList": [
- "fake1@email.com",
- "fake2@email.com"
- ]
- }
- }
- },
- {
- "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/d868ad73-2a0e-49ef-84a6-b7830e4580bf",
+ "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/e9824e4b-67d6-4718-bec4-cafbdf0b673b",
"RequestMethod": "PATCH",
"RequestHeaders": {
"Accept": "application/json",
- "Content-Length": "175",
+ "Content-Length": "195",
"Content-Type": "application/merge-patch\u002Bjson",
"Ocp-Apim-Subscription-Key": "Sanitized",
- "traceparent": "00-0295f8852606b8499d7037c0fb2eef30-9c0a6c7db9569d4c-00",
- "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210603.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "traceparent": "00-a6a6d88c0b430f4d815998703a33e94f-b80bc9ffb58fa24d-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
"x-api-key": "Sanitized",
- "x-ms-client-request-id": "93b80610dadda9bdaab4235380b623e3",
+ "x-ms-client-request-id": "9cb46fdd3675aff098307a07dc4a5902",
"x-ms-return-client-request-id": "true"
},
"RequestBody": {
@@ -144,23 +103,24 @@
"hookType": "Email",
"hookName": "hookVHsNsODG",
"description": "",
+ "externalLink": null,
"admins": [
"foo@contoso.com"
]
},
"StatusCode": 200,
"ResponseHeaders": {
- "apim-request-id": "229c99af-722e-43db-a4e1-a831080ba355",
+ "apim-request-id": "190e0c4c-4bb2-42a5-a6b7-de021f85d9da",
"Content-Length": "241",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 03 Jun 2021 18:20:53 GMT",
+ "Date": "Tue, 06 Jul 2021 12:37:42 GMT",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
"x-content-type-options": "nosniff",
- "x-envoy-upstream-service-time": "5593",
- "x-request-id": "229c99af-722e-43db-a4e1-a831080ba355"
+ "x-envoy-upstream-service-time": "1541",
+ "x-request-id": "190e0c4c-4bb2-42a5-a6b7-de021f85d9da"
},
"ResponseBody": {
- "hookId": "d868ad73-2a0e-49ef-84a6-b7830e4580bf",
+ "hookId": "e9824e4b-67d6-4718-bec4-cafbdf0b673b",
"hookName": "hookVHsNsODG",
"hookType": "Email",
"externalLink": "",
@@ -178,69 +138,27 @@
}
},
{
- "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/d868ad73-2a0e-49ef-84a6-b7830e4580bf",
- "RequestMethod": "GET",
- "RequestHeaders": {
- "Accept": "application/json",
- "Ocp-Apim-Subscription-Key": "Sanitized",
- "traceparent": "00-6b1ab49714ca4a48b9e99e34e27ab02b-de6bfa14894fa246-00",
- "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210603.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
- "x-api-key": "Sanitized",
- "x-ms-client-request-id": "3b37225aea4b9954687f2d8011512b51",
- "x-ms-return-client-request-id": "true"
- },
- "RequestBody": null,
- "StatusCode": 200,
- "ResponseHeaders": {
- "apim-request-id": "5e084210-cb4f-4485-a472-5751ba5b8caa",
- "Content-Length": "241",
- "Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 03 Jun 2021 18:20:53 GMT",
- "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
- "x-content-type-options": "nosniff",
- "x-envoy-upstream-service-time": "191",
- "x-request-id": "5e084210-cb4f-4485-a472-5751ba5b8caa"
- },
- "ResponseBody": {
- "hookId": "d868ad73-2a0e-49ef-84a6-b7830e4580bf",
- "hookName": "hookVHsNsODG",
- "hookType": "Email",
- "externalLink": "",
- "description": "",
- "admins": [
- "foo@contoso.com"
- ],
- "hookParameter": {
- "toList": [
- "fake1@email.com",
- "fake2@email.com",
- "fake3@email.com"
- ]
- }
- }
- },
- {
- "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/d868ad73-2a0e-49ef-84a6-b7830e4580bf",
+ "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/e9824e4b-67d6-4718-bec4-cafbdf0b673b",
"RequestMethod": "DELETE",
"RequestHeaders": {
"Accept": "application/json",
"Ocp-Apim-Subscription-Key": "Sanitized",
- "traceparent": "00-7ce81d346c1466469359b889ff810283-1f22dd7df5dabd44-00",
- "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210603.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "traceparent": "00-9964b2acfc4f534faad4b345107d9146-d99020506dc1d842-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
"x-api-key": "Sanitized",
- "x-ms-client-request-id": "0da5e77abc4602e8b10af2c0129d2fe2",
+ "x-ms-client-request-id": "93b80610dadda9bdaab4235380b623e3",
"x-ms-return-client-request-id": "true"
},
"RequestBody": null,
"StatusCode": 204,
"ResponseHeaders": {
- "apim-request-id": "ed720444-f30d-46c9-9f99-72bacbb8e8a3",
+ "apim-request-id": "434e9c71-99f0-47cd-8b8f-eea6eba1c023",
"Content-Length": "0",
- "Date": "Thu, 03 Jun 2021 18:20:53 GMT",
+ "Date": "Tue, 06 Jul 2021 12:37:43 GMT",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
"x-content-type-options": "nosniff",
- "x-envoy-upstream-service-time": "208",
- "x-request-id": "ed720444-f30d-46c9-9f99-72bacbb8e8a3"
+ "x-envoy-upstream-service-time": "434",
+ "x-request-id": "434e9c71-99f0-47cd-8b8f-eea6eba1c023"
},
"ResponseBody": []
}
diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/NotificationHookLiveTests/UpdateEmailNotificationHookWithMinimumSetup(True).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/NotificationHookLiveTests/UpdateEmailNotificationHookWithMinimumSetup(True).json
index 719ee0c9e79e0..ead0fd639ebf7 100644
--- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/NotificationHookLiveTests/UpdateEmailNotificationHookWithMinimumSetup(True).json
+++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/NotificationHookLiveTests/UpdateEmailNotificationHookWithMinimumSetup(True).json
@@ -8,8 +8,8 @@
"Authorization": "Sanitized",
"Content-Length": "111",
"Content-Type": "application/json",
- "traceparent": "00-d6c632f57d07114aa4c659bc225a63a3-0767d8c479246d45-00",
- "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210603.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "traceparent": "00-44acc0c14a9fd3478f49cfaeec394057-d4535cfaa1d76847-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
"x-ms-client-request-id": "62c34e7ef571d4504f4d00cc323f3955",
"x-ms-return-client-request-id": "true"
},
@@ -25,42 +25,42 @@
},
"StatusCode": 201,
"ResponseHeaders": {
- "apim-request-id": "9c44c740-9a50-4978-9a45-34184e11927e",
+ "apim-request-id": "69f615a0-b6d0-46ab-8bd7-7e52670b300a",
"Content-Length": "0",
- "Date": "Thu, 03 Jun 2021 18:20:09 GMT",
- "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/d7aed06b-891d-4030-a895-1bf2edb8f72c",
+ "Date": "Tue, 06 Jul 2021 12:36:55 GMT",
+ "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/63851df1-d76a-470f-ab78-866f7185659f",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
"x-content-type-options": "nosniff",
- "x-envoy-upstream-service-time": "551",
- "x-request-id": "9c44c740-9a50-4978-9a45-34184e11927e"
+ "x-envoy-upstream-service-time": "1258",
+ "x-request-id": "69f615a0-b6d0-46ab-8bd7-7e52670b300a"
},
"ResponseBody": []
},
{
- "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/d7aed06b-891d-4030-a895-1bf2edb8f72c",
+ "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/63851df1-d76a-470f-ab78-866f7185659f",
"RequestMethod": "GET",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
- "traceparent": "00-d6c632f57d07114aa4c659bc225a63a3-0b179299371a9943-00",
- "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210603.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "traceparent": "00-44acc0c14a9fd3478f49cfaeec394057-ba4fe60934113f45-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
"x-ms-client-request-id": "8f78cdcffe7cf0da7d7e476753a102fe",
"x-ms-return-client-request-id": "true"
},
"RequestBody": null,
"StatusCode": 200,
"ResponseHeaders": {
- "apim-request-id": "6534c904-c5b1-48b1-b1dd-22938cb3ee63",
+ "apim-request-id": "e936c003-3fd5-4fef-a3d5-e19729bb93be",
"Content-Length": "244",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 03 Jun 2021 18:20:09 GMT",
+ "Date": "Tue, 06 Jul 2021 12:36:55 GMT",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
"x-content-type-options": "nosniff",
- "x-envoy-upstream-service-time": "80",
- "x-request-id": "6534c904-c5b1-48b1-b1dd-22938cb3ee63"
+ "x-envoy-upstream-service-time": "271",
+ "x-request-id": "e936c003-3fd5-4fef-a3d5-e19729bb93be"
},
"ResponseBody": {
- "hookId": "d7aed06b-891d-4030-a895-1bf2edb8f72c",
+ "hookId": "63851df1-d76a-470f-ab78-866f7185659f",
"hookName": "hookmKAYdTxX",
"hookType": "Email",
"externalLink": "",
@@ -77,56 +77,16 @@
}
},
{
- "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/d7aed06b-891d-4030-a895-1bf2edb8f72c",
- "RequestMethod": "GET",
- "RequestHeaders": {
- "Accept": "application/json",
- "Authorization": "Sanitized",
- "traceparent": "00-edc838fb0d73f34da7ba9a27cb25d48a-9ea8bb9758b0b744-00",
- "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210603.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
- "x-ms-client-request-id": "b879dcf176f133863c429918a53f107a",
- "x-ms-return-client-request-id": "true"
- },
- "RequestBody": null,
- "StatusCode": 200,
- "ResponseHeaders": {
- "apim-request-id": "51891024-e7a4-4e42-9ebe-9cf09427c962",
- "Content-Length": "244",
- "Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 03 Jun 2021 18:20:09 GMT",
- "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
- "x-content-type-options": "nosniff",
- "x-envoy-upstream-service-time": "158",
- "x-request-id": "51891024-e7a4-4e42-9ebe-9cf09427c962"
- },
- "ResponseBody": {
- "hookId": "d7aed06b-891d-4030-a895-1bf2edb8f72c",
- "hookName": "hookmKAYdTxX",
- "hookType": "Email",
- "externalLink": "",
- "description": "",
- "admins": [
- "94dc466b-52e4-4678-892d-70a0c45c5f42"
- ],
- "hookParameter": {
- "toList": [
- "fake1@email.com",
- "fake2@email.com"
- ]
- }
- }
- },
- {
- "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/d7aed06b-891d-4030-a895-1bf2edb8f72c",
+ "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/63851df1-d76a-470f-ab78-866f7185659f",
"RequestMethod": "PATCH",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
- "Content-Length": "196",
+ "Content-Length": "216",
"Content-Type": "application/merge-patch\u002Bjson",
- "traceparent": "00-4fa963af9824af46b902f723415fa341-f2d6facce309a342-00",
- "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210603.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
- "x-ms-client-request-id": "03aa63aa73bb7f6a74d2e5f2ade980ad",
+ "traceparent": "00-ba3a2f6aabff6e41a46f7087c0e09b30-1ab1f71dadd1ef48-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "x-ms-client-request-id": "b879dcf176f133863c429918a53f107a",
"x-ms-return-client-request-id": "true"
},
"RequestBody": {
@@ -140,23 +100,24 @@
"hookType": "Email",
"hookName": "hookmKAYdTxX",
"description": "",
+ "externalLink": null,
"admins": [
"94dc466b-52e4-4678-892d-70a0c45c5f42"
]
},
"StatusCode": 200,
"ResponseHeaders": {
- "apim-request-id": "d3e3bbdc-96cb-459a-9b15-7073833da432",
+ "apim-request-id": "476a425d-d788-42e3-856b-757eb9f8a833",
"Content-Length": "262",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 03 Jun 2021 18:20:10 GMT",
+ "Date": "Tue, 06 Jul 2021 12:37:02 GMT",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
"x-content-type-options": "nosniff",
- "x-envoy-upstream-service-time": "632",
- "x-request-id": "d3e3bbdc-96cb-459a-9b15-7073833da432"
+ "x-envoy-upstream-service-time": "5945",
+ "x-request-id": "476a425d-d788-42e3-856b-757eb9f8a833"
},
"ResponseBody": {
- "hookId": "d7aed06b-891d-4030-a895-1bf2edb8f72c",
+ "hookId": "63851df1-d76a-470f-ab78-866f7185659f",
"hookName": "hookmKAYdTxX",
"hookType": "Email",
"externalLink": "",
@@ -174,67 +135,26 @@
}
},
{
- "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/d7aed06b-891d-4030-a895-1bf2edb8f72c",
- "RequestMethod": "GET",
- "RequestHeaders": {
- "Accept": "application/json",
- "Authorization": "Sanitized",
- "traceparent": "00-56e6a04e54911f40a6e47a815a96b562-421a6b53a66fe843-00",
- "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210603.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
- "x-ms-client-request-id": "55db014a81c658644645533964c24b3e",
- "x-ms-return-client-request-id": "true"
- },
- "RequestBody": null,
- "StatusCode": 200,
- "ResponseHeaders": {
- "apim-request-id": "d946fd7c-65f9-4c18-8944-beb99a38cb07",
- "Content-Length": "262",
- "Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 03 Jun 2021 18:20:10 GMT",
- "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
- "x-content-type-options": "nosniff",
- "x-envoy-upstream-service-time": "184",
- "x-request-id": "d946fd7c-65f9-4c18-8944-beb99a38cb07"
- },
- "ResponseBody": {
- "hookId": "d7aed06b-891d-4030-a895-1bf2edb8f72c",
- "hookName": "hookmKAYdTxX",
- "hookType": "Email",
- "externalLink": "",
- "description": "",
- "admins": [
- "94dc466b-52e4-4678-892d-70a0c45c5f42"
- ],
- "hookParameter": {
- "toList": [
- "fake1@email.com",
- "fake2@email.com",
- "fake3@email.com"
- ]
- }
- }
- },
- {
- "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/d7aed06b-891d-4030-a895-1bf2edb8f72c",
+ "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/63851df1-d76a-470f-ab78-866f7185659f",
"RequestMethod": "DELETE",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
- "traceparent": "00-cedf118b7560954fa26fdd3cdddbb153-abdccd3ada62e34c-00",
- "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210603.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
- "x-ms-client-request-id": "efbdcd6dfff77d4272f9441e91948553",
+ "traceparent": "00-d2bdbd829b0cd2489676f4a83e63c430-cdd09f9c4a2cfa43-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "x-ms-client-request-id": "03aa63aa73bb7f6a74d2e5f2ade980ad",
"x-ms-return-client-request-id": "true"
},
"RequestBody": null,
"StatusCode": 204,
"ResponseHeaders": {
- "apim-request-id": "2379b133-176b-4f59-b7a1-09b5f9ad3f90",
+ "apim-request-id": "fd4db742-7b98-4de1-b2a5-f564d12e35c9",
"Content-Length": "0",
- "Date": "Thu, 03 Jun 2021 18:20:15 GMT",
+ "Date": "Tue, 06 Jul 2021 12:37:08 GMT",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
"x-content-type-options": "nosniff",
- "x-envoy-upstream-service-time": "5217",
- "x-request-id": "2379b133-176b-4f59-b7a1-09b5f9ad3f90"
+ "x-envoy-upstream-service-time": "5493",
+ "x-request-id": "fd4db742-7b98-4de1-b2a5-f564d12e35c9"
},
"ResponseBody": []
}
diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/NotificationHookLiveTests/UpdateEmailNotificationHookWithMinimumSetup(True)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/NotificationHookLiveTests/UpdateEmailNotificationHookWithMinimumSetup(True)Async.json
index ecbcf5b723c42..d5d377fd133d3 100644
--- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/NotificationHookLiveTests/UpdateEmailNotificationHookWithMinimumSetup(True)Async.json
+++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/NotificationHookLiveTests/UpdateEmailNotificationHookWithMinimumSetup(True)Async.json
@@ -8,8 +8,8 @@
"Authorization": "Sanitized",
"Content-Length": "111",
"Content-Type": "application/json",
- "traceparent": "00-20f8109460e5f647ab05d6f1f7718ecc-465b03bb7259e54e-00",
- "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210603.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "traceparent": "00-1b2d7722cd003747af4e220a67720fd0-8d6622ca44416f4d-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
"x-ms-client-request-id": "5f4947188a4c7c5caa8c925bb0ab44f1",
"x-ms-return-client-request-id": "true"
},
@@ -25,42 +25,42 @@
},
"StatusCode": 201,
"ResponseHeaders": {
- "apim-request-id": "79b2a1ff-cc2a-413f-9a1a-a9a349b306da",
+ "apim-request-id": "9adb243f-28a0-4246-8669-33928657685b",
"Content-Length": "0",
- "Date": "Thu, 03 Jun 2021 18:20:36 GMT",
- "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/dd9d3c6c-c09a-4ff2-94cf-867aefcfeac7",
+ "Date": "Tue, 06 Jul 2021 12:37:37 GMT",
+ "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/bfa95089-9bb3-41e9-b8c3-c007c79f35d2",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
"x-content-type-options": "nosniff",
- "x-envoy-upstream-service-time": "5608",
- "x-request-id": "79b2a1ff-cc2a-413f-9a1a-a9a349b306da"
+ "x-envoy-upstream-service-time": "6156",
+ "x-request-id": "9adb243f-28a0-4246-8669-33928657685b"
},
"ResponseBody": []
},
{
- "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/dd9d3c6c-c09a-4ff2-94cf-867aefcfeac7",
+ "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/bfa95089-9bb3-41e9-b8c3-c007c79f35d2",
"RequestMethod": "GET",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
- "traceparent": "00-20f8109460e5f647ab05d6f1f7718ecc-b965452d46d2d34b-00",
- "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210603.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "traceparent": "00-1b2d7722cd003747af4e220a67720fd0-af93b3e7d5347543-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
"x-ms-client-request-id": "f298c26b80b396e32e0f8bee0e46e68f",
"x-ms-return-client-request-id": "true"
},
"RequestBody": null,
"StatusCode": 200,
"ResponseHeaders": {
- "apim-request-id": "03376d7e-c286-406c-8465-1514d62224c8",
+ "apim-request-id": "0b1b9298-3841-435d-8984-e567424cf7ae",
"Content-Length": "244",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 03 Jun 2021 18:20:36 GMT",
+ "Date": "Tue, 06 Jul 2021 12:37:37 GMT",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
"x-content-type-options": "nosniff",
- "x-envoy-upstream-service-time": "193",
- "x-request-id": "03376d7e-c286-406c-8465-1514d62224c8"
+ "x-envoy-upstream-service-time": "183",
+ "x-request-id": "0b1b9298-3841-435d-8984-e567424cf7ae"
},
"ResponseBody": {
- "hookId": "dd9d3c6c-c09a-4ff2-94cf-867aefcfeac7",
+ "hookId": "bfa95089-9bb3-41e9-b8c3-c007c79f35d2",
"hookName": "hooksvvcRVbp",
"hookType": "Email",
"externalLink": "",
@@ -77,56 +77,16 @@
}
},
{
- "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/dd9d3c6c-c09a-4ff2-94cf-867aefcfeac7",
- "RequestMethod": "GET",
- "RequestHeaders": {
- "Accept": "application/json",
- "Authorization": "Sanitized",
- "traceparent": "00-fab54ca90531524aa63213153e76cb59-1db157c708ec2045-00",
- "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210603.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
- "x-ms-client-request-id": "2c793c85cc2677135d82020e383c1cb8",
- "x-ms-return-client-request-id": "true"
- },
- "RequestBody": null,
- "StatusCode": 200,
- "ResponseHeaders": {
- "apim-request-id": "9be93d45-8889-4921-89e9-a45204aea425",
- "Content-Length": "244",
- "Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 03 Jun 2021 18:20:41 GMT",
- "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
- "x-content-type-options": "nosniff",
- "x-envoy-upstream-service-time": "3554",
- "x-request-id": "9be93d45-8889-4921-89e9-a45204aea425"
- },
- "ResponseBody": {
- "hookId": "dd9d3c6c-c09a-4ff2-94cf-867aefcfeac7",
- "hookName": "hooksvvcRVbp",
- "hookType": "Email",
- "externalLink": "",
- "description": "",
- "admins": [
- "94dc466b-52e4-4678-892d-70a0c45c5f42"
- ],
- "hookParameter": {
- "toList": [
- "fake1@email.com",
- "fake2@email.com"
- ]
- }
- }
- },
- {
- "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/dd9d3c6c-c09a-4ff2-94cf-867aefcfeac7",
+ "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/bfa95089-9bb3-41e9-b8c3-c007c79f35d2",
"RequestMethod": "PATCH",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
- "Content-Length": "196",
+ "Content-Length": "216",
"Content-Type": "application/merge-patch\u002Bjson",
- "traceparent": "00-290379f8ea5c4e4b8efa6a491abb109a-267fb4960f5cae46-00",
- "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210603.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
- "x-ms-client-request-id": "20ce9555c236980a64b3303dfe6d6e64",
+ "traceparent": "00-727a69422e938b45b4520c26c04b169d-3485fa2f387d9f42-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "x-ms-client-request-id": "2c793c85cc2677135d82020e383c1cb8",
"x-ms-return-client-request-id": "true"
},
"RequestBody": {
@@ -140,23 +100,24 @@
"hookType": "Email",
"hookName": "hooksvvcRVbp",
"description": "",
+ "externalLink": null,
"admins": [
"94dc466b-52e4-4678-892d-70a0c45c5f42"
]
},
"StatusCode": 200,
"ResponseHeaders": {
- "apim-request-id": "a09a9014-cdec-4b19-8ea6-2be3f708470e",
+ "apim-request-id": "9f9cb4bf-d406-47bd-8529-77da2258c8f7",
"Content-Length": "262",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 03 Jun 2021 18:20:46 GMT",
+ "Date": "Tue, 06 Jul 2021 12:37:38 GMT",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
"x-content-type-options": "nosniff",
- "x-envoy-upstream-service-time": "5565",
- "x-request-id": "a09a9014-cdec-4b19-8ea6-2be3f708470e"
+ "x-envoy-upstream-service-time": "1472",
+ "x-request-id": "9f9cb4bf-d406-47bd-8529-77da2258c8f7"
},
"ResponseBody": {
- "hookId": "dd9d3c6c-c09a-4ff2-94cf-867aefcfeac7",
+ "hookId": "bfa95089-9bb3-41e9-b8c3-c007c79f35d2",
"hookName": "hooksvvcRVbp",
"hookType": "Email",
"externalLink": "",
@@ -174,67 +135,26 @@
}
},
{
- "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/dd9d3c6c-c09a-4ff2-94cf-867aefcfeac7",
- "RequestMethod": "GET",
- "RequestHeaders": {
- "Accept": "application/json",
- "Authorization": "Sanitized",
- "traceparent": "00-ff72b56eb24ff549a31df2e7d58bc530-6e875c5f3819eb44-00",
- "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210603.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
- "x-ms-client-request-id": "73d602a517329fcbae2194307dd45df2",
- "x-ms-return-client-request-id": "true"
- },
- "RequestBody": null,
- "StatusCode": 200,
- "ResponseHeaders": {
- "apim-request-id": "ee6ef495-08b4-4453-9785-e45820dc15f4",
- "Content-Length": "262",
- "Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 03 Jun 2021 18:20:46 GMT",
- "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
- "x-content-type-options": "nosniff",
- "x-envoy-upstream-service-time": "192",
- "x-request-id": "ee6ef495-08b4-4453-9785-e45820dc15f4"
- },
- "ResponseBody": {
- "hookId": "dd9d3c6c-c09a-4ff2-94cf-867aefcfeac7",
- "hookName": "hooksvvcRVbp",
- "hookType": "Email",
- "externalLink": "",
- "description": "",
- "admins": [
- "94dc466b-52e4-4678-892d-70a0c45c5f42"
- ],
- "hookParameter": {
- "toList": [
- "fake1@email.com",
- "fake2@email.com",
- "fake3@email.com"
- ]
- }
- }
- },
- {
- "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/dd9d3c6c-c09a-4ff2-94cf-867aefcfeac7",
+ "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/bfa95089-9bb3-41e9-b8c3-c007c79f35d2",
"RequestMethod": "DELETE",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
- "traceparent": "00-c27a61a615d29f4aaf78a773408cf5bb-a3e6457faf76a24d-00",
- "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210603.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
- "x-ms-client-request-id": "7898d3f2c677c35932e1c7729cd578ef",
+ "traceparent": "00-5f5ba2d6676e334389dc6612870fbcaa-4699dc049dadcc42-00",
+ "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210706.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )",
+ "x-ms-client-request-id": "20ce9555c236980a64b3303dfe6d6e64",
"x-ms-return-client-request-id": "true"
},
"RequestBody": null,
"StatusCode": 204,
"ResponseHeaders": {
- "apim-request-id": "cdefdc97-71e7-4b2e-a839-07e60fa64c4f",
+ "apim-request-id": "1dc9cb01-9333-4084-aee1-d60462d2b668",
"Content-Length": "0",
- "Date": "Thu, 03 Jun 2021 18:20:46 GMT",
+ "Date": "Tue, 06 Jul 2021 12:37:38 GMT",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
"x-content-type-options": "nosniff",
- "x-envoy-upstream-service-time": "169",
- "x-request-id": "cdefdc97-71e7-4b2e-a839-07e60fa64c4f"
+ "x-envoy-upstream-service-time": "249",
+ "x-request-id": "1dc9cb01-9333-4084-aee1-d60462d2b668"
},
"ResponseBody": []
}