From 8a25b8b049347d6bc5716cb7ad57aa2f23ba3b31 Mon Sep 17 00:00:00 2001 From: Christopher Scott Date: Tue, 29 Sep 2020 18:05:31 -0500 Subject: [PATCH 1/3] initial copy over --- .../src/ClientCommon.cs | 17 + .../Models/AnomalyFeedback.Serialization.cs | 34 +- .../src/Generated/Models/AnomalyFeedback.cs | 23 -- .../src/Generated/Models/AnomalyValue.cs | 2 +- .../ChangePointFeedback.Serialization.cs | 2 +- .../Generated/Models/ChangePointFeedback.cs | 26 +- .../ChangePointFeedbackValue.Serialization.cs | 2 +- .../Models/ChangePointFeedbackValue.cs | 4 +- .../src/Generated/Models/ChangePointValue.cs | 2 +- .../Models/CommentFeedback.Serialization.cs | 38 +- .../src/Generated/Models/CommentFeedback.cs | 22 +- .../CommentFeedbackValue.Serialization.cs | 2 +- .../Generated/Models/CommentFeedbackValue.cs | 2 +- .../Models/EnrichmentStatus.Serialization.cs | 2 +- .../src/Generated/Models/EnrichmentStatus.cs | 2 +- .../FeedbackDimensionFilter.Serialization.cs | 2 +- .../Models/FeedbackDimensionFilter.cs | 2 +- .../Generated/Models/FeedbackQueryTimeMode.cs | 2 +- .../src/Generated/Models/FeedbackType.cs | 2 +- .../Models/MetricFeedback.Serialization.cs | 2 +- .../src/Generated/Models/MetricFeedback.cs | 28 +- .../Models/PeriodFeedback.Serialization.cs | 2 +- .../src/Generated/Models/PeriodFeedback.cs | 6 +- .../PeriodFeedbackValue.Serialization.cs | 2 +- .../Generated/Models/PeriodFeedbackValue.cs | 2 +- .../src/Generated/Models/PeriodType.cs | 2 +- .../src/MetricsAdvisorAdministrationClient.cs | 94 +++++ .../src/MetricsAdvisorClient.cs | 332 ++++++++++++++++++ .../src/Models/CodeGen/AnomalyValue.cs | 9 - .../CodeGen/ChangePointFeedbackValue.cs | 15 + .../src/Models/CodeGen/ChangePointValue.cs | 9 - .../Models/CodeGen/CommentFeedbackValue.cs | 9 + .../Models/CodeGen/FeedbackQueryTimeMode.cs | 9 - .../src/Models/CodeGen/FeedbackType.cs | 9 - .../src/Models/CodeGen/PeriodType.cs | 9 - .../src/Models/DimensionKey.cs | 12 +- .../src/Models/Metrics/AnomalyFeedback.cs | 59 ++++ .../src/Models/Metrics/ChangePointFeedback.cs | 64 ++++ .../src/Models/Metrics/CommentFeedback.cs | 56 +++ .../src/Models/Metrics/EnrichmentStatus.cs | 9 + .../Models/Metrics/FeedbackDimensionFilter.cs | 9 + .../Metrics/GetEnrichmentStatusOptions.cs | 34 ++ .../Metrics/GetMetricFeedbackOptions.cs | 52 +++ .../src/Models/Metrics/MetricFeedback.cs | 43 +++ .../src/Models/Metrics/PeriodFeedback.cs | 14 + .../src/Models/Metrics/PeriodFeedbackValue.cs | 9 + .../Azure.AI.MetricsAdvisor/src/autorest.md | 32 ++ ...icsAdvisorAdministrationClientLiveTests.cs | 25 +- .../tests/MetricsAdvisorClientLiveTests.cs | 109 +++++- .../tests/MetricsAdvisorLiveTestBase.cs | 8 + .../AnomalyAlertConfigurationOperations.json | 2 +- ...malyAlertConfigurationOperationsAsync.json | 2 +- ...teMetricAnomalyDetectionConfiguration.json | 138 ++++++-- ...ricAnomalyDetectionConfigurationAsync.json | 138 ++++++-- .../GetDataFeed.json | 2 +- .../GetDataFeedAsync.json | 2 +- .../GetDataFeedIngestionStatuses.json | 2 +- .../GetDataFeedIngestionStatusesAsync.json | 2 +- .../GetDataFeeds.json | 176 +++++++++- .../GetDataFeedsAsync.json | 176 +++++++++- ...tMetricAnomalyDetectionConfigurations.json | 207 +++++++++++ ...icAnomalyDetectionConfigurationsAsync.json | 207 +++++++++++ .../HookOperations.json | 2 +- .../HookOperationsAsync.json | 2 +- .../CreateMetricFeedback.json | 189 ++++++++++ .../CreateMetricFeedbackAsync.json | 189 ++++++++++ .../GetEnrichmentStatus.json | 106 ++++++ .../GetEnrichmentStatusAsync.json | 106 ++++++ .../GetMetricDimensionValues.json | 2 +- .../GetMetricDimensionValuesAsync.json | 2 +- .../GetMetricFeedbacks.json | 156 ++++++++ .../GetMetricFeedbacksAsync.json | 156 ++++++++ .../GetMetricSeriesData.json | 2 +- .../GetMetricSeriesDataAsync.json | 2 +- .../GetMetricSeriesDefinitions.json | 2 +- .../GetMetricSeriesDefinitionsAsync.json | 2 +- 76 files changed, 2941 insertions(+), 293 deletions(-) delete mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGen/AnomalyValue.cs create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGen/ChangePointFeedbackValue.cs delete mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGen/ChangePointValue.cs create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGen/CommentFeedbackValue.cs delete mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGen/FeedbackQueryTimeMode.cs delete mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGen/FeedbackType.cs delete mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGen/PeriodType.cs create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/Metrics/AnomalyFeedback.cs create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/Metrics/ChangePointFeedback.cs create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/Metrics/CommentFeedback.cs create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/Metrics/EnrichmentStatus.cs create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/Metrics/FeedbackDimensionFilter.cs create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/Metrics/GetEnrichmentStatusOptions.cs create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/Metrics/GetMetricFeedbackOptions.cs create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/Metrics/MetricFeedback.cs create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/Metrics/PeriodFeedback.cs create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/Metrics/PeriodFeedbackValue.cs create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetMetricAnomalyDetectionConfigurations.json create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetMetricAnomalyDetectionConfigurationsAsync.json create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/CreateMetricFeedback.json create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/CreateMetricFeedbackAsync.json create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetEnrichmentStatus.json create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetEnrichmentStatusAsync.json create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricFeedbacks.json create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricFeedbacksAsync.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/ClientCommon.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/ClientCommon.cs index 2153e79b8b63a..299d2001c8e13 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/ClientCommon.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/ClientCommon.cs @@ -3,6 +3,7 @@ using System; using System.Text.RegularExpressions; +using Azure.AI.MetricsAdvisor.Models; namespace Azure.AI.MetricsAdvisor { @@ -108,5 +109,21 @@ public static string GetHookId(string locationHeader) throw new ArgumentException(UnexpectedHeaderFormat); } } + + private static readonly Regex s_feedbackIdRegex = new Regex(@"/feedback/metric/(?[\d\w-]*)$", RegexOptions.Compiled, TimeSpan.FromSeconds(2)); + + public static Guid GetFeedbackId(string locationHeader) + { + Match match = s_feedbackIdRegex.Match(locationHeader); + + if (match.Success) + { + return new Guid(match.Groups["feedbackId"].Value); + } + else + { + throw new ArgumentException(UnexpectedHeaderFormat); + } + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyFeedback.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyFeedback.Serialization.cs index 3d2bcb11e897f..08b4b59f8e7f9 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyFeedback.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyFeedback.Serialization.cs @@ -24,13 +24,27 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteObjectValue(Value); if (Optional.IsDefined(AnomalyDetectionConfigurationId)) { - writer.WritePropertyName("anomalyDetectionConfigurationId"); - writer.WriteStringValue(AnomalyDetectionConfigurationId.Value); + if (AnomalyDetectionConfigurationId != null) + { + writer.WritePropertyName("anomalyDetectionConfigurationId"); + writer.WriteStringValue(AnomalyDetectionConfigurationId.Value); + } + else + { + writer.WriteNull("anomalyDetectionConfigurationId"); + } } if (Optional.IsDefined(AnomalyDetectionConfigurationSnapshot)) { - writer.WritePropertyName("anomalyDetectionConfigurationSnapshot"); - writer.WriteObjectValue(AnomalyDetectionConfigurationSnapshot); + if (AnomalyDetectionConfigurationSnapshot != null) + { + writer.WritePropertyName("anomalyDetectionConfigurationSnapshot"); + writer.WriteObjectValue(AnomalyDetectionConfigurationSnapshot); + } + else + { + writer.WriteNull("anomalyDetectionConfigurationSnapshot"); + } } writer.WritePropertyName("feedbackType"); writer.WriteStringValue(FeedbackType.ToString()); @@ -46,7 +60,7 @@ internal static AnomalyFeedback DeserializeAnomalyFeedback(JsonElement element) DateTimeOffset startTime = default; DateTimeOffset endTime = default; AnomalyFeedbackValue value = default; - Optional anomalyDetectionConfigurationId = default; + Optional anomalyDetectionConfigurationId = default; Optional anomalyDetectionConfigurationSnapshot = default; FeedbackType feedbackType = default; Optional feedbackId = default; @@ -73,11 +87,21 @@ internal static AnomalyFeedback DeserializeAnomalyFeedback(JsonElement element) } if (property.NameEquals("anomalyDetectionConfigurationId")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + anomalyDetectionConfigurationId = null; + continue; + } anomalyDetectionConfigurationId = property.Value.GetGuid(); continue; } if (property.NameEquals("anomalyDetectionConfigurationSnapshot")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + anomalyDetectionConfigurationSnapshot = null; + continue; + } anomalyDetectionConfigurationSnapshot = MetricAnomalyDetectionConfiguration.DeserializeMetricAnomalyDetectionConfiguration(property.Value); continue; } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyFeedback.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyFeedback.cs index 4807810616a9e..7e5984b636a18 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyFeedback.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyFeedback.cs @@ -12,29 +12,6 @@ namespace Azure.AI.MetricsAdvisor.Models /// The AnomalyFeedback. internal partial class AnomalyFeedback : MetricFeedback { - /// Initializes a new instance of AnomalyFeedback. - /// metric unique id. - /// . - /// the start timestamp of feedback timerange. - /// the end timestamp of feedback timerange, when equals to startTime means only one timestamp. - /// . - /// or is null. - public AnomalyFeedback(Guid metricId, FeedbackDimensionFilter dimensionFilter, DateTimeOffset startTime, DateTimeOffset endTime, AnomalyFeedbackValue value) : base(metricId, dimensionFilter) - { - if (dimensionFilter == null) - { - throw new ArgumentNullException(nameof(dimensionFilter)); - } - if (value == null) - { - throw new ArgumentNullException(nameof(value)); - } - - StartTime = startTime; - EndTime = endTime; - Value = value; - FeedbackType = FeedbackType.Anomaly; - } /// Initializes a new instance of AnomalyFeedback. /// feedback type. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyValue.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyValue.cs index 15fe3092f8962..0a429b86830e1 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyValue.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyValue.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The AnomalyValue. - internal readonly partial struct AnomalyValue : IEquatable + public readonly partial struct AnomalyValue : IEquatable { private readonly string _value; diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangePointFeedback.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangePointFeedback.Serialization.cs index c4b38e494826f..cd493571656f5 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangePointFeedback.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangePointFeedback.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class ChangePointFeedback : IUtf8JsonSerializable + public partial class ChangePointFeedback : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangePointFeedback.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangePointFeedback.cs index 90754d5c25084..ef4cbe6f86a1e 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangePointFeedback.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangePointFeedback.cs @@ -10,31 +10,8 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The ChangePointFeedback. - internal partial class ChangePointFeedback : MetricFeedback + public partial class ChangePointFeedback : MetricFeedback { - /// Initializes a new instance of ChangePointFeedback. - /// metric unique id. - /// . - /// the start timestamp of feedback timerange. - /// the end timestamp of feedback timerange, when equals to startTime means only one timestamp. - /// . - /// or is null. - public ChangePointFeedback(Guid metricId, FeedbackDimensionFilter dimensionFilter, DateTimeOffset startTime, DateTimeOffset endTime, ChangePointFeedbackValue value) : base(metricId, dimensionFilter) - { - if (dimensionFilter == null) - { - throw new ArgumentNullException(nameof(dimensionFilter)); - } - if (value == null) - { - throw new ArgumentNullException(nameof(value)); - } - - StartTime = startTime; - EndTime = endTime; - Value = value; - FeedbackType = FeedbackType.ChangePoint; - } /// Initializes a new instance of ChangePointFeedback. /// feedback type. @@ -58,6 +35,5 @@ internal ChangePointFeedback(FeedbackType feedbackType, Guid? feedbackId, DateTi public DateTimeOffset StartTime { get; set; } /// the end timestamp of feedback timerange, when equals to startTime means only one timestamp. public DateTimeOffset EndTime { get; set; } - public ChangePointFeedbackValue Value { get; set; } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangePointFeedbackValue.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangePointFeedbackValue.Serialization.cs index 8fd39639c4e2c..9c0f92deb7425 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangePointFeedbackValue.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangePointFeedbackValue.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class ChangePointFeedbackValue : IUtf8JsonSerializable + public partial class ChangePointFeedbackValue : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangePointFeedbackValue.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangePointFeedbackValue.cs index ecd7e116d9c7f..fa98410b4e569 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangePointFeedbackValue.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangePointFeedbackValue.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The ChangePointFeedbackValue. - internal partial class ChangePointFeedbackValue + public partial class ChangePointFeedbackValue { /// Initializes a new instance of ChangePointFeedbackValue. /// . @@ -16,7 +16,5 @@ public ChangePointFeedbackValue(ChangePointValue changePointValue) { ChangePointValue = changePointValue; } - - public ChangePointValue ChangePointValue { get; set; } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangePointValue.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangePointValue.cs index 7536eeaa7566f..ac05f73a3543e 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangePointValue.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangePointValue.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The ChangePointValue. - internal readonly partial struct ChangePointValue : IEquatable + public readonly partial struct ChangePointValue : IEquatable { private readonly string _value; diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/CommentFeedback.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/CommentFeedback.Serialization.cs index 5bdb405b91393..401e2a2f53b2b 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/CommentFeedback.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/CommentFeedback.Serialization.cs @@ -11,20 +11,34 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class CommentFeedback : IUtf8JsonSerializable + public partial class CommentFeedback : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); if (Optional.IsDefined(StartTime)) { - writer.WritePropertyName("startTime"); - writer.WriteStringValue(StartTime.Value, "O"); + if (StartTime != null) + { + writer.WritePropertyName("startTime"); + writer.WriteStringValue(StartTime.Value, "O"); + } + else + { + writer.WriteNull("startTime"); + } } if (Optional.IsDefined(EndTime)) { - writer.WritePropertyName("endTime"); - writer.WriteStringValue(EndTime.Value, "O"); + if (EndTime != null) + { + writer.WritePropertyName("endTime"); + writer.WriteStringValue(EndTime.Value, "O"); + } + else + { + writer.WriteNull("endTime"); + } } writer.WritePropertyName("value"); writer.WriteObjectValue(Value); @@ -39,8 +53,8 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) internal static CommentFeedback DeserializeCommentFeedback(JsonElement element) { - Optional startTime = default; - Optional endTime = default; + Optional startTime = default; + Optional endTime = default; CommentFeedbackValue value = default; FeedbackType feedbackType = default; Optional feedbackId = default; @@ -52,11 +66,21 @@ internal static CommentFeedback DeserializeCommentFeedback(JsonElement element) { if (property.NameEquals("startTime")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + startTime = null; + continue; + } startTime = property.Value.GetDateTimeOffset("O"); continue; } if (property.NameEquals("endTime")) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + endTime = null; + continue; + } endTime = property.Value.GetDateTimeOffset("O"); continue; } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/CommentFeedback.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/CommentFeedback.cs index 3926625ac61e3..7334b31311e53 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/CommentFeedback.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/CommentFeedback.cs @@ -10,27 +10,8 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The CommentFeedback. - internal partial class CommentFeedback : MetricFeedback + public partial class CommentFeedback : MetricFeedback { - /// Initializes a new instance of CommentFeedback. - /// metric unique id. - /// . - /// . - /// or is null. - public CommentFeedback(Guid metricId, FeedbackDimensionFilter dimensionFilter, CommentFeedbackValue value) : base(metricId, dimensionFilter) - { - if (dimensionFilter == null) - { - throw new ArgumentNullException(nameof(dimensionFilter)); - } - if (value == null) - { - throw new ArgumentNullException(nameof(value)); - } - - Value = value; - FeedbackType = FeedbackType.Comment; - } /// Initializes a new instance of CommentFeedback. /// feedback type. @@ -54,6 +35,5 @@ internal CommentFeedback(FeedbackType feedbackType, Guid? feedbackId, DateTimeOf public DateTimeOffset? StartTime { get; set; } /// the end timestamp of feedback timerange, when equals to startTime means only one timestamp. public DateTimeOffset? EndTime { get; set; } - public CommentFeedbackValue Value { get; set; } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/CommentFeedbackValue.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/CommentFeedbackValue.Serialization.cs index 77ee818055af5..3493a9d276369 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/CommentFeedbackValue.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/CommentFeedbackValue.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class CommentFeedbackValue : IUtf8JsonSerializable + public partial class CommentFeedbackValue : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/CommentFeedbackValue.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/CommentFeedbackValue.cs index 18ef7d53a390d..df6db771f8818 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/CommentFeedbackValue.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/CommentFeedbackValue.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The CommentFeedbackValue. - internal partial class CommentFeedbackValue + public partial class CommentFeedbackValue { /// Initializes a new instance of CommentFeedbackValue. /// the comment string. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatus.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatus.Serialization.cs index 11b89bdeec84e..cb423735b0955 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatus.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatus.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class EnrichmentStatus + public partial class EnrichmentStatus { internal static EnrichmentStatus DeserializeEnrichmentStatus(JsonElement element) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatus.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatus.cs index 321d564707fe1..c7e2a8d809d6a 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatus.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatus.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The EnrichmentStatus. - internal partial class EnrichmentStatus + public partial class EnrichmentStatus { /// Initializes a new instance of EnrichmentStatus. internal EnrichmentStatus() diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/FeedbackDimensionFilter.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/FeedbackDimensionFilter.Serialization.cs index f314e29736fdd..d91f1417f2d1d 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/FeedbackDimensionFilter.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/FeedbackDimensionFilter.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class FeedbackDimensionFilter : IUtf8JsonSerializable + public partial class FeedbackDimensionFilter : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/FeedbackDimensionFilter.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/FeedbackDimensionFilter.cs index 719bc9f6ebb31..f26fa6d8b41e5 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/FeedbackDimensionFilter.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/FeedbackDimensionFilter.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The FeedbackDimensionFilter. - internal partial class FeedbackDimensionFilter + public partial class FeedbackDimensionFilter { /// Initializes a new instance of FeedbackDimensionFilter. /// metric dimension filter. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/FeedbackQueryTimeMode.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/FeedbackQueryTimeMode.cs index ac1fc407b3240..41f75626ddabf 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/FeedbackQueryTimeMode.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/FeedbackQueryTimeMode.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// time mode to filter feedback. - internal readonly partial struct FeedbackQueryTimeMode : IEquatable + public readonly partial struct FeedbackQueryTimeMode : IEquatable { private readonly string _value; diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/FeedbackType.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/FeedbackType.cs index 5830d0c5ab3bf..7e29a709cd28b 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/FeedbackType.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/FeedbackType.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// feedback type. - internal readonly partial struct FeedbackType : IEquatable + public readonly partial struct FeedbackType : IEquatable { private readonly string _value; diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedback.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedback.Serialization.cs index c7dc947b2e1e0..199eca3d56ec8 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedback.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedback.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class MetricFeedback : IUtf8JsonSerializable + public partial class MetricFeedback : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedback.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedback.cs index 46a7d4264753e..4261dd2f9efe5 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedback.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedback.cs @@ -10,22 +10,8 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The MetricFeedback. - internal partial class MetricFeedback + public partial class MetricFeedback { - /// Initializes a new instance of MetricFeedback. - /// metric unique id. - /// . - /// is null. - public MetricFeedback(Guid metricId, FeedbackDimensionFilter dimensionFilter) - { - if (dimensionFilter == null) - { - throw new ArgumentNullException(nameof(dimensionFilter)); - } - - MetricId = metricId; - DimensionFilter = dimensionFilter; - } /// Initializes a new instance of MetricFeedback. /// feedback type. @@ -43,17 +29,5 @@ internal MetricFeedback(FeedbackType feedbackType, Guid? feedbackId, DateTimeOff MetricId = metricId; DimensionFilter = dimensionFilter; } - - /// feedback type. - internal FeedbackType FeedbackType { get; set; } - /// feedback unique id. - public Guid? FeedbackId { get; } - /// feedback created time. - public DateTimeOffset? CreatedTime { get; } - /// user who gives this feedback. - public string UserPrincipal { get; } - /// metric unique id. - public Guid MetricId { get; set; } - public FeedbackDimensionFilter DimensionFilter { get; set; } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PeriodFeedback.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PeriodFeedback.Serialization.cs index ba02147a466b7..7101ab771e51f 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PeriodFeedback.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PeriodFeedback.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class PeriodFeedback : IUtf8JsonSerializable + public partial class PeriodFeedback : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PeriodFeedback.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PeriodFeedback.cs index 244292ef805f5..eb44ae46b255c 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PeriodFeedback.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PeriodFeedback.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The PeriodFeedback. - internal partial class PeriodFeedback : MetricFeedback + public partial class PeriodFeedback : MetricFeedback { /// Initializes a new instance of PeriodFeedback. /// metric unique id. @@ -29,7 +29,7 @@ public PeriodFeedback(Guid metricId, FeedbackDimensionFilter dimensionFilter, Pe } Value = value; - FeedbackType = FeedbackType.Period; + FeedbackType = Models.FeedbackType.Period; } /// Initializes a new instance of PeriodFeedback. @@ -45,7 +45,5 @@ internal PeriodFeedback(FeedbackType feedbackType, Guid? feedbackId, DateTimeOff Value = value; FeedbackType = feedbackType; } - - public PeriodFeedbackValue Value { get; set; } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PeriodFeedbackValue.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PeriodFeedbackValue.Serialization.cs index 13adea59eb5e3..c4150167d1502 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PeriodFeedbackValue.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PeriodFeedbackValue.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.AI.MetricsAdvisor.Models { - internal partial class PeriodFeedbackValue : IUtf8JsonSerializable + public partial class PeriodFeedbackValue : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PeriodFeedbackValue.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PeriodFeedbackValue.cs index 00cc06fe8171d..07a03da8e1958 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PeriodFeedbackValue.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PeriodFeedbackValue.cs @@ -8,7 +8,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// The PeriodFeedbackValue. - internal partial class PeriodFeedbackValue + public partial class PeriodFeedbackValue { /// Initializes a new instance of PeriodFeedbackValue. /// the type of setting period. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PeriodType.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PeriodType.cs index ff65f7ab85c1c..f6962f6742b7a 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PeriodType.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PeriodType.cs @@ -11,7 +11,7 @@ namespace Azure.AI.MetricsAdvisor.Models { /// the type of setting period. - internal readonly partial struct PeriodType : IEquatable + public readonly partial struct PeriodType : IEquatable { private readonly string _value; diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/MetricsAdvisorAdministrationClient.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/MetricsAdvisorAdministrationClient.cs index 3323ef711bff1..291b972eac601 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/MetricsAdvisorAdministrationClient.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/MetricsAdvisorAdministrationClient.cs @@ -651,6 +651,52 @@ public virtual Response GetMetricAnomalyDet } } + /// + /// + public virtual async Task>> GetMetricAnomalyDetectionConfigurationsAsync(string metricId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(metricId, nameof(metricId)); + + Guid metricIdGuid = ClientCommon.ValidateGuid(metricId, nameof(metricId)); + + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorAdministrationClient)}.{nameof(GetMetricAnomalyDetectionConfigurations)}"); + scope.Start(); + + try + { + Response response = await _serviceRestClient.GetAnomalyDetectionConfigurationsByMetricAsync(metricIdGuid, cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value.Value, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// + public virtual Response> GetMetricAnomalyDetectionConfigurations(string metricId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(metricId, nameof(metricId)); + + Guid metricIdGuid = ClientCommon.ValidateGuid(metricId, nameof(metricId)); + + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorAdministrationClient)}.{nameof(GetMetricAnomalyDetectionConfigurations)}"); + scope.Start(); + + try + { + Response response = _serviceRestClient.GetAnomalyDetectionConfigurationsByMetric(metricIdGuid, cancellationToken); + return Response.FromValue(response.Value.Value, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + /// /// public virtual async Task DeleteMetricAnomalyDetectionConfigurationAsync(string detectionConfigurationId, CancellationToken cancellationToken = default) @@ -941,6 +987,54 @@ public virtual Response CreateHook(AlertingHook hook, Cancellation } } + // /// + // /// + // public virtual async Task> UpdateHookAsync(string hookId, CancellationToken cancellationToken = default) + // { + // Argument.AssertNotNullOrEmpty(hookId, nameof(hookId)); + + // Guid hookGuid = ClientCommon.ValidateGuid(hookId, nameof(hookId)); + + // using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorAdministrationClient)}.{nameof(UpdateHook)}"); + // scope.Start(); + + // try + // { + // ResponseWithHeaders response = await _serviceRestClient.UpdateHookAsync(hookGuid, cancellationToken).ConfigureAwait(false); + + // return Response.FromValue(hook, response.GetRawResponse()); + // } + // catch (Exception e) + // { + // scope.Failed(e); + // throw; + // } + // } + + // /// + // /// + // public virtual Response UpdateHook(string hookId, CancellationToken cancellationToken = default) + // { + // Argument.AssertNotNullOrEmpty(hookId, nameof(hookId)); + + // Guid hookGuid = ClientCommon.ValidateGuid(hookId, nameof(hookId)); + + // using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorAdministrationClient)}.{nameof(UpdateHook)}"); + // scope.Start(); + + // try + // { + // ResponseWithHeaders response = _serviceRestClient.UpdateHook(hookGuid, cancellationToken); + + // return Response.FromValue(hookId, response.GetRawResponse()); + // } + // catch (Exception e) + // { + // scope.Failed(e); + // throw; + // } + // } + /// /// public virtual async Task> GetHookAsync(string hookId, CancellationToken cancellationToken = default) diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/MetricsAdvisorClient.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/MetricsAdvisorClient.cs index c899299662d66..bb83d5d00c9e2 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/MetricsAdvisorClient.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/MetricsAdvisorClient.cs @@ -342,6 +342,338 @@ public virtual Response> GetMetricSeriesData(str } } + /// + /// + /// + /// + /// + /// + /// + public virtual AsyncPageable GetEnrichmentStatusesAsync(string metricId, GetEnrichmentStatusOptions options, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(metricId, nameof(metricId)); + Argument.AssertNotNull(options, nameof(options)); + + Guid metricGuid = ClientCommon.ValidateGuid(metricId, nameof(metricId)); + EnrichmentStatusQueryOption queryOptions = new EnrichmentStatusQueryOption(ClientCommon.NormalizeDateTimeOffset(options.StartTime), ClientCommon.NormalizeDateTimeOffset(options.EndTime)); + int? skip = options?.SkipCount; + int? top = options?.TopCount; + + async Task> FirstPageFunc(int? pageSizeHint) + { + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(GetEnrichmentStatusesAsync)}"); + scope.Start(); + + try + { + Response response = await _serviceRestClient.GetEnrichmentStatusByMetricAsync(metricGuid, queryOptions, skip, top, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + async Task> NextPageFunc(string nextLink, int? pageSizeHint) + { + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(GetEnrichmentStatusesAsync)}"); + scope.Start(); + + try + { + Response response = await _serviceRestClient.GetEnrichmentStatusByMetricNextAsync(nextLink, queryOptions, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); + } + + /// + /// + /// + /// + /// + /// + /// + public virtual Pageable GetEnrichmentStatuses(string metricId, GetEnrichmentStatusOptions options, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(metricId, nameof(metricId)); + Argument.AssertNotNull(options, nameof(options)); + + Guid metricGuid = ClientCommon.ValidateGuid(metricId, nameof(metricId)); + EnrichmentStatusQueryOption queryOptions = new EnrichmentStatusQueryOption(ClientCommon.NormalizeDateTimeOffset(options.StartTime), ClientCommon.NormalizeDateTimeOffset(options.EndTime)); + int? skip = options?.SkipCount; + int? top = options?.TopCount; + + Page FirstPageFunc(int? pageSizeHint) + { + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(GetEnrichmentStatusesAsync)}"); + scope.Start(); + + try + { + Response response = _serviceRestClient.GetEnrichmentStatusByMetric(metricGuid, queryOptions, skip, top, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + Page NextPageFunc(string nextLink, int? pageSizeHint) + { + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(GetEnrichmentStatusesAsync)}"); + scope.Start(); + + try + { + Response response = _serviceRestClient.GetEnrichmentStatusByMetricNext(nextLink, queryOptions, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); + } + + /// + /// + /// + /// + /// + /// + public virtual AsyncPageable GetMetricFeedbacksAsync(GetMetricFeedbackOptions options, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(options, nameof(options)); + + MetricFeedbackFilter queryOptions = new MetricFeedbackFilter(options.MetricId) + { + DimensionFilter = options.DimensionFilter, + EndTime = options.EndTime, + FeedbackType = options.FeedbackType, + StartTime = options.StartTime, + TimeMode = options.TimeMode + }; + int? skip = options?.SkipCount; + int? top = options?.TopCount; + + async Task> FirstPageFunc(int? pageSizeHint) + { + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(GetMetricFeedbacks)}"); + scope.Start(); + + try + { + Response response = await _serviceRestClient.ListMetricFeedbacksAsync(queryOptions, skip, top, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + async Task> NextPageFunc(string nextLink, int? pageSizeHint) + { + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(GetMetricFeedbacks)}"); + scope.Start(); + + try + { + Response response = await _serviceRestClient.ListMetricFeedbacksNextAsync(nextLink, queryOptions, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); + } + + /// + /// + /// + /// + /// + /// + public virtual Pageable GetMetricFeedbacks(GetMetricFeedbackOptions options, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(options, nameof(options)); + + MetricFeedbackFilter queryOptions = new MetricFeedbackFilter(options.MetricId) + { + DimensionFilter = options.DimensionFilter, + EndTime = options.EndTime, + FeedbackType = options.FeedbackType, + StartTime = options.StartTime, + TimeMode = options.TimeMode + }; + int? skip = options?.SkipCount; + int? top = options?.TopCount; + + Page FirstPageFunc(int? pageSizeHint) + { + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(GetMetricFeedbacks)}"); + scope.Start(); + + try + { + Response response = _serviceRestClient.ListMetricFeedbacks(queryOptions, skip, top, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + Page NextPageFunc(string nextLink, int? pageSizeHint) + { + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(GetMetricFeedbacks)}"); + scope.Start(); + + try + { + Response response = _serviceRestClient.ListMetricFeedbacksNext(nextLink, queryOptions, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); + } + + /// + /// + /// + /// + /// + /// + public virtual async Task> CreateMetricFeedbackAsync(MetricFeedback feedback, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(feedback, nameof(feedback)); + + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(CreateMetricFeedback)}"); + scope.Start(); + + try + { + ResponseWithHeaders response = await _serviceRestClient.CreateMetricFeedbackAsync(feedback, cancellationToken).ConfigureAwait(false); + + feedback.FeedbackId = ClientCommon.GetFeedbackId(response.Headers.Location); + + return Response.FromValue(feedback, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// + /// + /// + /// + /// + public virtual Response CreateMetricFeedback(MetricFeedback feedback, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(feedback, nameof(feedback)); + + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(CreateMetricFeedback)}"); + scope.Start(); + + try + { + ResponseWithHeaders response = _serviceRestClient.CreateMetricFeedback(feedback, cancellationToken); + + feedback.FeedbackId = ClientCommon.GetFeedbackId(response.Headers.Location); + + return Response.FromValue(feedback, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// + /// + /// + /// + /// + public virtual async Task> GetMetricFeedbackAsync(string feedbackId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(feedbackId, nameof(feedbackId)); + + Guid feedbackIdGuid = ClientCommon.ValidateGuid(feedbackId, nameof(feedbackId)); + + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(GetMetricFeedback)}"); + scope.Start(); + + try + { + return await _serviceRestClient.GetMetricFeedbackAsync(feedbackIdGuid, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// + /// + /// + /// + /// + public virtual Response GetMetricFeedback(string feedbackId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(feedbackId, nameof(feedbackId)); + + Guid feedbackIdGuid = ClientCommon.ValidateGuid(feedbackId, nameof(feedbackId)); + + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(GetMetricFeedback)}"); + scope.Start(); + + try + { + return _serviceRestClient.GetMetricFeedback(feedbackIdGuid, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + #endregion Metrics #region AnomalyDetection diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGen/AnomalyValue.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGen/AnomalyValue.cs deleted file mode 100644 index a31580a8affaf..0000000000000 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGen/AnomalyValue.cs +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -namespace Azure.AI.MetricsAdvisor.Models -{ - internal readonly partial struct AnomalyValue - { - } -} diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGen/ChangePointFeedbackValue.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGen/ChangePointFeedbackValue.cs new file mode 100644 index 0000000000000..71688d7327ec3 --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGen/ChangePointFeedbackValue.cs @@ -0,0 +1,15 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +namespace Azure.AI.MetricsAdvisor.Models +{ + /// The ChangePointFeedbackValue. + public partial class ChangePointFeedbackValue + { + /// + /// The change point feedback value. + /// + /// + public ChangePointValue ChangePointValue { get; set; } + } +} diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGen/ChangePointValue.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGen/ChangePointValue.cs deleted file mode 100644 index fed8850788399..0000000000000 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGen/ChangePointValue.cs +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -namespace Azure.AI.MetricsAdvisor.Models -{ - internal readonly partial struct ChangePointValue - { - } -} diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGen/CommentFeedbackValue.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGen/CommentFeedbackValue.cs new file mode 100644 index 0000000000000..a1bed850f817a --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGen/CommentFeedbackValue.cs @@ -0,0 +1,9 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +namespace Azure.AI.MetricsAdvisor.Models +{ + /// The CommentFeedbackValue. + public partial class CommentFeedbackValue + { } +} diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGen/FeedbackQueryTimeMode.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGen/FeedbackQueryTimeMode.cs deleted file mode 100644 index 47f12ee02c54e..0000000000000 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGen/FeedbackQueryTimeMode.cs +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -namespace Azure.AI.MetricsAdvisor.Models -{ - internal readonly partial struct FeedbackQueryTimeMode - { - } -} diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGen/FeedbackType.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGen/FeedbackType.cs deleted file mode 100644 index d0b43a38d6e9c..0000000000000 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGen/FeedbackType.cs +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -namespace Azure.AI.MetricsAdvisor.Models -{ - internal readonly partial struct FeedbackType - { - } -} diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGen/PeriodType.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGen/PeriodType.cs deleted file mode 100644 index 67c91b203a473..0000000000000 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGen/PeriodType.cs +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -namespace Azure.AI.MetricsAdvisor.Models -{ - internal readonly partial struct PeriodType - { - } -} diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/DimensionKey.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/DimensionKey.cs index ef1485bba848a..6362e1addaf82 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/DimensionKey.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/DimensionKey.cs @@ -23,16 +23,14 @@ public DimensionKey() internal DimensionKey(IEnumerable> dimension) { - if (dimension == null) - { - throw new ArgumentNullException(nameof(dimension)); - } - Dimension = new Dictionary(); - foreach (KeyValuePair kvp in dimension) + if (dimension != default) { - Dimension.Add(kvp); + foreach (KeyValuePair kvp in dimension) + { + Dimension.Add(kvp); + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/Metrics/AnomalyFeedback.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/Metrics/AnomalyFeedback.cs new file mode 100644 index 0000000000000..4b103eb43a5f6 --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/Metrics/AnomalyFeedback.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; + +namespace Azure.AI.MetricsAdvisor.Models +{ + internal partial class AnomalyFeedback : MetricFeedback + { + /// Initializes a new instance of AnomalyFeedback. + /// The metric unique id. + /// The dimension filter. + /// The start timestamp of feedback timerange. + /// The end timestamp of feedback timerange, when equals to startTime means only one timestamp. + /// The value for the feedback. + /// or is null. + public AnomalyFeedback(Guid metricId, FeedbackDimensionFilter dimensionFilter, DateTimeOffset startTime, DateTimeOffset endTime, AnomalyValue value) : base(metricId, dimensionFilter) + { + if (dimensionFilter == null) + { + throw new ArgumentNullException(nameof(dimensionFilter)); + } + if (value == default) + { + throw new ArgumentNullException(nameof(value)); + } + + DimensionFilter = dimensionFilter; + StartTime = startTime; + EndTime = endTime; + Value = new AnomalyFeedbackValue(value); + FeedbackType = FeedbackType.Anomaly; + } + + /// Initializes a new instance of AnomalyFeedback. + /// metric unique id. + /// . + /// the start timestamp of feedback timerange. + /// the end timestamp of feedback timerange, when equals to startTime means only one timestamp. + /// . + /// or is null. + internal AnomalyFeedback(Guid metricId, FeedbackDimensionFilter dimensionFilter, DateTimeOffset startTime, DateTimeOffset endTime, AnomalyFeedbackValue value) : base(metricId, dimensionFilter) + { + if (dimensionFilter == null) + { + throw new ArgumentNullException(nameof(dimensionFilter)); + } + if (value == null) + { + throw new ArgumentNullException(nameof(value)); + } + + StartTime = startTime; + EndTime = endTime; + Value = value; + FeedbackType = Models.FeedbackType.Anomaly; + } + } +} diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/Metrics/ChangePointFeedback.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/Metrics/ChangePointFeedback.cs new file mode 100644 index 0000000000000..c61abf04dca3a --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/Metrics/ChangePointFeedback.cs @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; + +namespace Azure.AI.MetricsAdvisor.Models +{ + /// The ChangePointFeedback. + public partial class ChangePointFeedback : MetricFeedback + { + /// Initializes a new instance of ChangePointFeedback. + /// The metric unique id. + /// The dimension filter. + /// The start timestamp of feedback timerange. + /// The end timestamp of feedback timerange, when equals to startTime means only one timestamp. + /// The value for the feedback. + /// or is null. + public ChangePointFeedback(Guid metricId, FeedbackDimensionFilter dimensionFilter, DateTimeOffset startTime, DateTimeOffset endTime, ChangePointValue value) : base(metricId, dimensionFilter) + { + if (dimensionFilter == null) + { + throw new ArgumentNullException(nameof(dimensionFilter)); + } + if (value == default) + { + throw new ArgumentNullException(nameof(value)); + } + + StartTime = startTime; + EndTime = endTime; + Value = new ChangePointFeedbackValue(value); + FeedbackType = FeedbackType.ChangePoint; + } + + /// Initializes a new instance of ChangePointFeedback. + /// metric unique id. + /// . + /// the start timestamp of feedback timerange. + /// the end timestamp of feedback timerange, when equals to startTime means only one timestamp. + /// . + /// or is null. + internal ChangePointFeedback(Guid metricId, FeedbackDimensionFilter dimensionFilter, DateTimeOffset startTime, DateTimeOffset endTime, ChangePointFeedbackValue value) : base(metricId, dimensionFilter) + { + if (dimensionFilter == null) + { + throw new ArgumentNullException(nameof(dimensionFilter)); + } + if (value == null) + { + throw new ArgumentNullException(nameof(value)); + } + + StartTime = startTime; + EndTime = endTime; + Value = value; + FeedbackType = Models.FeedbackType.ChangePoint; + } + + /// + /// The value of the feedback. + /// + public ChangePointFeedbackValue Value { get; set; } + } +} diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/Metrics/CommentFeedback.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/Metrics/CommentFeedback.cs new file mode 100644 index 0000000000000..366bed06eb9b6 --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/Metrics/CommentFeedback.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; + +namespace Azure.AI.MetricsAdvisor.Models +{ + /// The CommentFeedback. + public partial class CommentFeedback : MetricFeedback + { + /// Initializes a new instance of CommentFeedbackInternal. + /// The metric unique id. + /// The dimension filter. + /// The value for the feedback. + /// or is null. + public CommentFeedback(Guid metricId, FeedbackDimensionFilter dimensionFilter, string value) : base(metricId, dimensionFilter) + { + if (dimensionFilter == null) + { + throw new ArgumentNullException(nameof(dimensionFilter)); + } + if (value == null) + { + throw new ArgumentNullException(nameof(value)); + } + + Value = new CommentFeedbackValue(value); + FeedbackType = FeedbackType.Comment; + } + + /// Initializes a new instance of CommentFeedback. + /// metric unique id. + /// . + /// . + /// or is null. + internal CommentFeedback(Guid metricId, FeedbackDimensionFilter dimensionFilter, CommentFeedbackValue value) : base(metricId, dimensionFilter) + { + if (dimensionFilter == null) + { + throw new ArgumentNullException(nameof(dimensionFilter)); + } + if (value == null) + { + throw new ArgumentNullException(nameof(value)); + } + + Value = value; + FeedbackType = Models.FeedbackType.Comment; + } + + /// + /// The value of the feedback. + /// + public CommentFeedbackValue Value { get; set; } + } +} diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/Metrics/EnrichmentStatus.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/Metrics/EnrichmentStatus.cs new file mode 100644 index 0000000000000..addc7a9d9c7d5 --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/Metrics/EnrichmentStatus.cs @@ -0,0 +1,9 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +namespace Azure.AI.MetricsAdvisor.Models +{ + /// The EnrichmentStatus. + public partial class EnrichmentStatus + { } +} diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/Metrics/FeedbackDimensionFilter.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/Metrics/FeedbackDimensionFilter.cs new file mode 100644 index 0000000000000..9a3ff35eaf340 --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/Metrics/FeedbackDimensionFilter.cs @@ -0,0 +1,9 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +namespace Azure.AI.MetricsAdvisor.Models +{ + /// The FeedbackDimensionFilter. + public partial class FeedbackDimensionFilter + { } +} diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/Metrics/GetEnrichmentStatusOptions.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/Metrics/GetEnrichmentStatusOptions.cs new file mode 100644 index 0000000000000..15cce7fb960a3 --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/Metrics/GetEnrichmentStatusOptions.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using Azure.Core; + +namespace Azure.AI.MetricsAdvisor.Models +{ + /// The GetEnrichmentStatusOptions. + public partial class GetEnrichmentStatusOptions + { + /// Initializes a new instance of GetEnrichmentStatusOptions. + /// the start point of time range to query anomaly detection status. + /// the end point of time range to query anomaly detection status. + public GetEnrichmentStatusOptions(DateTimeOffset startTime, DateTimeOffset endTime) + { + StartTime = startTime; + EndTime = endTime; + } + + /// the start point of time range to query anomaly detection status. + public DateTimeOffset StartTime { get; } + /// the end point of time range to query anomaly detection status. + public DateTimeOffset EndTime { get; } + + /// + /// + public int? SkipCount { get; set; } + + /// + /// + public int? TopCount { get; set; } + } +} diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/Metrics/GetMetricFeedbackOptions.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/Metrics/GetMetricFeedbackOptions.cs new file mode 100644 index 0000000000000..9b8eeb4b90077 --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/Metrics/GetMetricFeedbackOptions.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using Azure.Core; + +namespace Azure.AI.MetricsAdvisor.Models +{ + + /// The GetMetricFeedbackOptions. + public partial class GetMetricFeedbackOptions + { + internal MetricFeedbackFilter _metricFeedbackFilter; + + /// Initializes a new instance of GetMetricFeedbackOptions. + /// filter feedbacks by metric id. + public GetMetricFeedbackOptions(string metricId) + { + Argument.AssertNotNullOrEmpty(metricId, nameof(metricId)); + Guid metricIdGuid = ClientCommon.ValidateGuid(metricId, nameof(metricId)); + + MetricId = metricIdGuid; + } + + /// The metric Id used to filter the feedbacks. + public Guid MetricId { get; } + + + /// The dimension filter. + public FeedbackDimensionFilter DimensionFilter { get; set; } + + /// filter feedbacks by type. + public FeedbackType? FeedbackType { get; set; } + + /// start time filter under chosen time mode. + public DateTimeOffset? StartTime { get; set; } + + /// end time filter under chosen time mode. + public DateTimeOffset? EndTime { get; set; } + + /// time mode to filter feedback. + public FeedbackQueryTimeMode? TimeMode { get; set; } + + /// + /// + public int? SkipCount { get; set; } + + /// + /// + public int? TopCount { get; set; } + } +} diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/Metrics/MetricFeedback.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/Metrics/MetricFeedback.cs new file mode 100644 index 0000000000000..e77b306db8642 --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/Metrics/MetricFeedback.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using Azure.Core; + +namespace Azure.AI.MetricsAdvisor.Models +{ + /// The MetricFeedback. + public partial class MetricFeedback + { + /// Initializes a new instance of MetricFeedback. + /// metric unique id. + /// . + /// is null. + internal MetricFeedback(Guid metricId, FeedbackDimensionFilter dimensionFilter) + { + Argument.AssertNotNull(dimensionFilter, nameof(dimensionFilter)); + + MetricId = metricId; + DimensionFilter = dimensionFilter; + } + + /// feedback type. + public FeedbackType FeedbackType { get; internal set; } + + /// feedback unique id. + public Guid? FeedbackId { get; internal set;} + + /// feedback created time. + public DateTimeOffset? CreatedTime { get; } + + /// user who gives this feedback. + public string UserPrincipal { get; } + + /// metric unique id. + public Guid MetricId { get; internal set; } + + + /// The dimension filter. + public FeedbackDimensionFilter DimensionFilter { get; internal set; } + } +} diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/Metrics/PeriodFeedback.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/Metrics/PeriodFeedback.cs new file mode 100644 index 0000000000000..2fe98e6d02f01 --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/Metrics/PeriodFeedback.cs @@ -0,0 +1,14 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +namespace Azure.AI.MetricsAdvisor.Models +{ + /// The PeriodFeedback. + public partial class PeriodFeedback : MetricFeedback + { + /// + /// The value of the feedback. + /// + public PeriodFeedbackValue Value { get; set; } + } +} diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/Metrics/PeriodFeedbackValue.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/Metrics/PeriodFeedbackValue.cs new file mode 100644 index 0000000000000..974b33ca10b13 --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/Metrics/PeriodFeedbackValue.cs @@ -0,0 +1,9 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +namespace Azure.AI.MetricsAdvisor.Models +{ + /// The PeriodFeedbackValue. + public partial class PeriodFeedbackValue + { } +} diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/autorest.md b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/autorest.md index 29ca0c163f693..ff8177ed19574 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/autorest.md +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/autorest.md @@ -38,6 +38,38 @@ directive: $.properties.latestSuccessTimestamp["x-nullable"] = true ``` +``` yaml +directive: + from: swagger-document + where: $.definitions.CommentFeedback + transform: > + $.allOf[1].properties.startTime["x-nullable"] = true +``` + +``` yaml +directive: + from: swagger-document + where: $.definitions.CommentFeedback + transform: > + $.allOf[1].properties.endTime["x-nullable"] = true +``` + +``` yaml +directive: + from: swagger-document + where: $.definitions.AnomalyFeedback + transform: > + $.allOf[1].properties.anomalyDetectionConfigurationId["x-nullable"] = true +``` + +``` yaml +directive: + from: swagger-document + where: $.definitions.AnomalyFeedback + transform: > + $.allOf[1].properties.anomalyDetectionConfigurationSnapshot["x-nullable"] = true +``` + ### Add required properties ``` yaml diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClientLiveTests.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClientLiveTests.cs index 3826cbe61fc96..451589d24c956 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClientLiveTests.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClientLiveTests.cs @@ -13,8 +13,6 @@ namespace Azure.AI.MetricsAdvisor.Tests { public class MetricsAdvisorAdministrationClientLiveTests : MetricsAdvisorLiveTestBase { - private const string DataFeedId = "dd64cd95-f22f-4176-9554-ded0b8db83a1"; - public MetricsAdvisorAdministrationClientLiveTests(bool isAsync) : base(isAsync, RecordedTestMode.Playback /* To record tests, add this argument, RecordedTestMode.Record */) { } @@ -74,16 +72,7 @@ public async Task CreateMetricAnomalyDetectionConfiguration() { var adminClient = GetMetricsAdvisorAdministrationClient(); - DataFeed feed = await GetFirstDataFeed(adminClient).ConfigureAwait(false); - - var config = new MetricAnomalyDetectionConfiguration( - feed.MetricIds.First(), - Recording.GenerateAlphaNumericId("Name"), - new MetricAnomalyDetectionConditions( - DetectionConditionsOperator.And, - new SmartDetectionCondition(42, AnomalyDetectorDirection.Both, new SuppressCondition(1, 67)), - new HardThresholdCondition(23, 45, AnomalyDetectorDirection.Both, new SuppressCondition(1, 50)), - new ChangeThresholdCondition(12, 5, true, AnomalyDetectorDirection.Both, new SuppressCondition(1, 1)))); + var config = await CreateMetricAnomalyDetectionConfiguration(adminClient); MetricAnomalyDetectionConfiguration createdConfiguration = await adminClient.CreateMetricAnomalyDetectionConfigurationAsync(config).ConfigureAwait(false); @@ -144,7 +133,7 @@ public async Task AnomalyAlertConfigurationOperations() AnomalyAlertConfiguration createdAlertConfig = await adminClient.CreateAnomalyAlertConfigurationAsync( new AnomalyAlertConfiguration( Recording.GenerateAlphaNumericId("test"), - new List (), + new List(), new List { new MetricAnomalyAlertConfiguration( @@ -196,5 +185,15 @@ public async Task ResetDataFeedIngestionStatus() await adminClient.ResetDataFeedIngestionStatusAsync(DataFeedId, new DateTimeOffset(2020, 9, 1, 0, 0, 0, TimeSpan.Zero), new DateTimeOffset(2020, 9, 2, 0, 0, 0, TimeSpan.Zero)).ConfigureAwait(false); } + + [RecordedTest] + public async Task GetMetricAnomalyDetectionConfigurations() + { + var adminClient = GetMetricsAdvisorAdministrationClient(); + + Response> configs = await adminClient.GetMetricAnomalyDetectionConfigurationsAsync(MetricId).ConfigureAwait(false); + + Assert.That(configs.Value, Is.Not.Empty); + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorClientLiveTests.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorClientLiveTests.cs index 2badfc41815fb..b10898b482113 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorClientLiveTests.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorClientLiveTests.cs @@ -1,6 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; @@ -12,12 +13,6 @@ namespace Azure.AI.MetricsAdvisor.Tests { public class MetricsAdvisorClientLiveTests : MetricsAdvisorLiveTestBase { - private const string DetectionConfigurationId = "59f26a57-55f7-41eb-8899-a7268d125557"; - private const string IncidentId = "013c34456c5aed901c66ca1dff0714aa-174995c5800"; - private const string AlertConfigurationId = "08318302-6006-4019-9afc-975bc63ee566"; - private const string AlertId = "174995c5800"; - private const string MetricId = "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5"; - public MetricsAdvisorClientLiveTests(bool isAsync) : base(isAsync, RecordedTestMode.Playback /* To record tests, add this argument, RecordedTestMode.Record */) { } @@ -280,5 +275,107 @@ public async Task GetMetricEnrichedSeriesData() Assert.That(pages, Is.GreaterThan(0)); } + + [RecordedTest] + public async Task GetEnrichmentStatus() + { + var client = GetMetricsAdvisorClient(); + + int pages = 0; + + await foreach (var status in client.GetEnrichmentStatusesAsync(MetricId, new GetEnrichmentStatusOptions(Recording.UtcNow.AddYears(-5), Recording.UtcNow) { TopCount = 2 })) + { + Assert.That(status, Is.Not.Null); + + // Just fetch 2 pages + if (++pages > 2) + { + break; + } + } + + Assert.That(pages, Is.GreaterThan(0)); + } + + [RecordedTest] + public async Task GetMetricFeedbacks() + { + var client = GetMetricsAdvisorClient(); + + Guid expectedId = new Guid(MetricId); + int pages = 0; + + await foreach (MetricFeedback feedback in client.GetMetricFeedbacksAsync(new GetMetricFeedbackOptions(MetricId) { TopCount = 2 })) + { + Assert.That(feedback, Is.Not.Null); + Assert.That(feedback.MetricId, Is.EqualTo(expectedId)); + switch (feedback.FeedbackType.ToString()) + { + case "Anomaly": + Assert.That(feedback is AnomalyFeedback); + break; + case "ChangePoint": + Assert.That(feedback is ChangePointFeedback); + break; + case "Period": + Assert.That(feedback is PeriodFeedback); + break; + case "Comment": + Assert.That(feedback is CommentFeedback); + break; + default: + Assert.Fail("Unexpected MetricFeedback type"); + break; + } + + // Just fetch 2 pages + if (++pages > 2) + { + break; + } + } + + Assert.That(pages, Is.GreaterThan(0)); + } + + [RecordedTest] + public async Task CreateMetricFeedback() + { + var client = GetMetricsAdvisorClient(); + Guid metricIdGuid = new Guid(MetricId); + FeedbackDimensionFilter dimensionFilter = new FeedbackDimensionFilter( + new Dictionary + { + {"Dim1", "Common Lime"}, + {"Dim2", "Ant"} + }); + DateTimeOffset start = Recording.UtcNow.AddMonths(-4); + DateTimeOffset end = Recording.UtcNow; + + AnomalyFeedback anomalyFeedback = new AnomalyFeedback(metricIdGuid, dimensionFilter, start, end, AnomalyValue.NotAnomaly); + ChangePointFeedback changePointFeedback = new ChangePointFeedback(metricIdGuid, dimensionFilter, start, end, ChangePointValue.NotChangePoint); + PeriodFeedback periodFeedback = new PeriodFeedback(metricIdGuid, dimensionFilter, new PeriodFeedbackValue(PeriodType.AssignValue, 5)); + CommentFeedback commentFeedback = new CommentFeedback(metricIdGuid, dimensionFilter, "my comment"); + + var feedbacks = new List + { + anomalyFeedback, + changePointFeedback, + periodFeedback, + commentFeedback + }; + + foreach (var feedback in feedbacks) + { + MetricFeedback createdFeedback = await client.CreateMetricFeedbackAsync(feedback).ConfigureAwait(false); + + Assert.That(createdFeedback.MetricId, Is.EqualTo(metricIdGuid)); + Assert.That(createdFeedback.FeedbackId, Is.Not.Null); + + MetricFeedback getFeedback = await client.GetMetricFeedbackAsync(createdFeedback.FeedbackId.ToString()).ConfigureAwait(false); + + Assert.That(createdFeedback.FeedbackId, Is.EqualTo(getFeedback.FeedbackId)); + } + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorLiveTestBase.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorLiveTestBase.cs index f52f0ae54a8da..8ebf137d9b4d9 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorLiveTestBase.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorLiveTestBase.cs @@ -23,6 +23,14 @@ public MetricsAdvisorLiveTestBase(bool isAsync) : base(isAsync) Sanitizer = new MetricsAdvisorRecordedTestSanitizer(); } + internal const string DetectionConfigurationId = "59f26a57-55f7-41eb-8899-a7268d125557"; + internal const string IncidentId = "013c34456c5aed901c66ca1dff0714aa-174995c5800"; + internal const string AlertConfigurationId = "08318302-6006-4019-9afc-975bc63ee566"; + internal const string AlertId = "174995c5800"; + internal const string MetricId = "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5"; + internal const string DataFeedId = "dd64cd95-f22f-4176-9554-ded0b8db83a1"; + + public void InitDataFeedSources() { _blobFeedName = Recording.GenerateAlphaNumericId("test"); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/AnomalyAlertConfigurationOperations.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/AnomalyAlertConfigurationOperations.json index 43baf2671011a..10c35847c8938 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/AnomalyAlertConfigurationOperations.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/AnomalyAlertConfigurationOperations.json @@ -516,4 +516,4 @@ "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", "RandomSeed": "1799920595" } -} \ No newline at end of file +} diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/AnomalyAlertConfigurationOperationsAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/AnomalyAlertConfigurationOperationsAsync.json index 603c912f2c5f6..76c292c6619b9 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/AnomalyAlertConfigurationOperationsAsync.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/AnomalyAlertConfigurationOperationsAsync.json @@ -516,4 +516,4 @@ "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", "RandomSeed": "1209037483" } -} \ No newline at end of file +} diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/CreateMetricAnomalyDetectionConfiguration.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/CreateMetricAnomalyDetectionConfiguration.json index f8c56cc0e505f..d9c074f9cb090 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/CreateMetricAnomalyDetectionConfiguration.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/CreateMetricAnomalyDetectionConfiguration.json @@ -7,7 +7,7 @@ "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", @@ -17,29 +17,29 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "cb469ed9-0b45-4ecb-8668-3d493d8eaf95", - "Content-Length": "1631", + "apim-request-id": "b2e67f57-cad0-479a-ba90-0ad1afe2e844", + "Content-Length": "1630", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:27 GMT", + "Date": "Tue, 29 Sep 2020 15:26:27 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "103", - "X-Request-ID": "cb469ed9-0b45-4ecb-8668-3d493d8eaf95" + "x-envoy-upstream-service-time": "5273", + "X-Request-ID": "b2e67f57-cad0-479a-ba90-0ad1afe2e844" }, "ResponseBody": { "value": [ { - "dataFeedId": "dd64cd95-f22f-4176-9554-ded0b8db83a1", - "dataFeedName": "testElasticsearchDataFeed2", + "dataFeedId": "0072a752-1476-4cfa-8cf0-f226995201a0", + "dataFeedName": "testElasticsearchDataFeed", "metrics": [ { - "metricId": "2b11308b-9233-403c-bb9e-6b573cda3c08", + "metricId": "04f6e969-2302-412e-98b2-8c41e3a0e22e", "metricName": "Metric1", "metricDisplayName": "Metric1", "metricDescription": "" }, { - "metricId": "36fe66a2-b1fe-4930-baa0-09efe7d08a31", + "metricId": "4e5ea50b-d983-4d91-bc00-f9630941fd2d", "metricName": "Metric2", "metricDisplayName": "Metric2", "metricDescription": "" @@ -89,7 +89,7 @@ "viewers": [], "creator": "foo@contoso.com", "status": "Active", - "createdTime": "2020-09-25T17:11:17Z", + "createdTime": "2020-09-25T00:58:52Z", "isAdmin": true, "actionLinkTemplate": "", "dataSourceParameter": { @@ -111,9 +111,9 @@ "Content-Length": "568", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-aa93f67faa13334396067eef640b141d-d92dd9cd89946440-00", + "traceparent": "00-0e2d44b8923b0d4d966baa00231d68e6-5530a874f9f0f444-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", @@ -122,7 +122,7 @@ }, "RequestBody": { "name": "Name9WSUfLQ8", - "metricId": "2b11308b-9233-403c-bb9e-6b573cda3c08", + "metricId": "04f6e969-2302-412e-98b2-8c41e3a0e22e", "wholeMetricConfiguration": { "conditionOperator": "AND", "smartDetectionCondition": { @@ -156,49 +156,113 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "86b7027c-79af-44c3-9082-23a7e6a203f6", + "apim-request-id": "41097cde-1b76-47ef-86ab-bdbd38255406", "Content-Length": "0", - "Date": "Sat, 26 Sep 2020 00:10:27 GMT", - "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/b0618dfa-df66-4596-a82c-d0f7df13adb4", + "Date": "Tue, 29 Sep 2020 15:26:34 GMT", + "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/c097a60a-6303-490f-a070-3906d043bdf1", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "86", - "X-Request-ID": "86b7027c-79af-44c3-9082-23a7e6a203f6" + "x-envoy-upstream-service-time": "6060", + "X-Request-ID": "41097cde-1b76-47ef-86ab-bdbd38255406" }, "ResponseBody": [] }, { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/b0618dfa-df66-4596-a82c-d0f7df13adb4", - "RequestMethod": "GET", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations", + "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", + "Content-Length": "568", + "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-2e17003850ee04429a4cee6685e2d80e-c4b9f4b3e39e0544-00", + "traceparent": "00-a4e41839f8d3234b9a9878fba832a0fe-ffe998ef8aa21244-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", "x-ms-client-request-id": "46985504053545ef4ccb40258cae9b24", "x-ms-return-client-request-id": "true" }, + "RequestBody": { + "name": "Name9WSUfLQ8", + "metricId": "04f6e969-2302-412e-98b2-8c41e3a0e22e", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "smartDetectionCondition": { + "sensitivity": 42, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 67 + } + }, + "hardThresholdCondition": { + "lowerBound": 23, + "upperBound": 45, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 50 + } + }, + "changeThresholdCondition": { + "changePercentage": 12, + "shiftPoint": 5, + "withinRange": true, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 1 + } + } + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "apim-request-id": "fd13be4a-85c4-414a-b21c-a21092805d75", + "Content-Length": "0", + "Date": "Tue, 29 Sep 2020 15:26:34 GMT", + "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/f0547f9b-4db9-4014-a40d-79a02c800f2d", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "211", + "X-Request-ID": "fd13be4a-85c4-414a-b21c-a21092805d75" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/f0547f9b-4db9-4014-a40d-79a02c800f2d", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-b77b3a0e13c6774d9bb3af560d6cf022-5308588d33863542-00", + "User-Agent": [ + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-api-key": "Sanitized", + "x-ms-client-request-id": "4e640f40a506cf62f793b9ea36956fc1", + "x-ms-return-client-request-id": "true" + }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "0348b202-bfb3-415a-b54b-ab9875dbf594", + "apim-request-id": "27defd7f-179f-4534-8ed1-348a77965e1f", "Content-Length": "748", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:28 GMT", + "Date": "Tue, 29 Sep 2020 15:26:34 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "67", - "X-Request-ID": "0348b202-bfb3-415a-b54b-ab9875dbf594" + "x-envoy-upstream-service-time": "178", + "X-Request-ID": "27defd7f-179f-4534-8ed1-348a77965e1f" }, "ResponseBody": { - "anomalyDetectionConfigurationId": "b0618dfa-df66-4596-a82c-d0f7df13adb4", + "anomalyDetectionConfigurationId": "f0547f9b-4db9-4014-a40d-79a02c800f2d", "name": "Name9WSUfLQ8", "description": "", - "metricId": "2b11308b-9233-403c-bb9e-6b573cda3c08", + "metricId": "04f6e969-2302-412e-98b2-8c41e3a0e22e", "wholeMetricConfiguration": { "conditionOperator": "AND", "smartDetectionCondition": { @@ -234,30 +298,30 @@ } }, { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/b0618dfa-df66-4596-a82c-d0f7df13adb4", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/f0547f9b-4db9-4014-a40d-79a02c800f2d", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-1b62cbac18f93f4eb3e5ea977e68554a-c118edad6061f042-00", + "traceparent": "00-35e675e8ab1f3741a9354312976c4885-b7508f843aa2c94c-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "4e640f40a506cf62f793b9ea36956fc1", + "x-ms-client-request-id": "10d60d7de75ff6b674440e93e49e25fd", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "6f9c5cbc-0379-4048-b7a5-8d504d2a32e0", + "apim-request-id": "c48609ef-7ab7-41cc-a089-e0b942d199c1", "Content-Length": "0", - "Date": "Sat, 26 Sep 2020 00:10:28 GMT", + "Date": "Tue, 29 Sep 2020 15:26:35 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "92", - "X-Request-ID": "6f9c5cbc-0379-4048-b7a5-8d504d2a32e0" + "x-envoy-upstream-service-time": "152", + "X-Request-ID": "c48609ef-7ab7-41cc-a089-e0b942d199c1" }, "ResponseBody": [] } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/CreateMetricAnomalyDetectionConfigurationAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/CreateMetricAnomalyDetectionConfigurationAsync.json index 3a73b31fea257..44331d8c63663 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/CreateMetricAnomalyDetectionConfigurationAsync.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/CreateMetricAnomalyDetectionConfigurationAsync.json @@ -7,7 +7,7 @@ "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", @@ -17,29 +17,29 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "01f40b7a-6dbd-42b8-9bc8-3bd71309520b", - "Content-Length": "1631", + "apim-request-id": "7cf9fdc1-6c3a-456f-8bff-8e4f96f3fc6d", + "Content-Length": "1630", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:37 GMT", + "Date": "Tue, 29 Sep 2020 15:26:35 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "126", - "X-Request-ID": "01f40b7a-6dbd-42b8-9bc8-3bd71309520b" + "x-envoy-upstream-service-time": "100", + "X-Request-ID": "7cf9fdc1-6c3a-456f-8bff-8e4f96f3fc6d" }, "ResponseBody": { "value": [ { - "dataFeedId": "dd64cd95-f22f-4176-9554-ded0b8db83a1", - "dataFeedName": "testElasticsearchDataFeed2", + "dataFeedId": "0072a752-1476-4cfa-8cf0-f226995201a0", + "dataFeedName": "testElasticsearchDataFeed", "metrics": [ { - "metricId": "2b11308b-9233-403c-bb9e-6b573cda3c08", + "metricId": "04f6e969-2302-412e-98b2-8c41e3a0e22e", "metricName": "Metric1", "metricDisplayName": "Metric1", "metricDescription": "" }, { - "metricId": "36fe66a2-b1fe-4930-baa0-09efe7d08a31", + "metricId": "4e5ea50b-d983-4d91-bc00-f9630941fd2d", "metricName": "Metric2", "metricDisplayName": "Metric2", "metricDescription": "" @@ -89,7 +89,7 @@ "viewers": [], "creator": "foo@contoso.com", "status": "Active", - "createdTime": "2020-09-25T17:11:17Z", + "createdTime": "2020-09-25T00:58:52Z", "isAdmin": true, "actionLinkTemplate": "", "dataSourceParameter": { @@ -111,9 +111,9 @@ "Content-Length": "568", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-db641ecb104ef14b968c2b81e5582c7d-ae17abebed5c0940-00", + "traceparent": "00-dbaa8c556a226c488a5fc58fb20c9aeb-c293a2cd5aadae49-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", @@ -122,7 +122,7 @@ }, "RequestBody": { "name": "NameKNfmYET7", - "metricId": "2b11308b-9233-403c-bb9e-6b573cda3c08", + "metricId": "04f6e969-2302-412e-98b2-8c41e3a0e22e", "wholeMetricConfiguration": { "conditionOperator": "AND", "smartDetectionCondition": { @@ -156,49 +156,113 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "036ea74f-aa3e-4487-afeb-455b969696cb", + "apim-request-id": "1c82e503-464b-4ea7-9b16-5f91de7bda2d", "Content-Length": "0", - "Date": "Sat, 26 Sep 2020 00:10:37 GMT", - "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/ee0c0d15-3ca4-41e3-91ce-3ff065b3fe85", + "Date": "Tue, 29 Sep 2020 15:26:35 GMT", + "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/1b44efda-741f-4ee1-943c-410aed9521ea", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "86", - "X-Request-ID": "036ea74f-aa3e-4487-afeb-455b969696cb" + "x-envoy-upstream-service-time": "90", + "X-Request-ID": "1c82e503-464b-4ea7-9b16-5f91de7bda2d" }, "ResponseBody": [] }, { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/ee0c0d15-3ca4-41e3-91ce-3ff065b3fe85", - "RequestMethod": "GET", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations", + "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", + "Content-Length": "568", + "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-942161636960664ca9c79e8766c57502-f2c06d39d39edd4d-00", + "traceparent": "00-9767fd50b5d3124abc52c81733fc2583-c21fa7abb26be94e-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", "x-ms-client-request-id": "6bbdb2d58da73f3270b819a1ab4759e8", "x-ms-return-client-request-id": "true" }, + "RequestBody": { + "name": "NameKNfmYET7", + "metricId": "04f6e969-2302-412e-98b2-8c41e3a0e22e", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "smartDetectionCondition": { + "sensitivity": 42, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 67 + } + }, + "hardThresholdCondition": { + "lowerBound": 23, + "upperBound": 45, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 50 + } + }, + "changeThresholdCondition": { + "changePercentage": 12, + "shiftPoint": 5, + "withinRange": true, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 1 + } + } + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "apim-request-id": "28a2a419-eb3f-40ad-99f0-6d6d618ded3e", + "Content-Length": "0", + "Date": "Tue, 29 Sep 2020 15:26:36 GMT", + "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/5eea23f6-c9b0-4eb2-a042-a1d6177d2836", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "95", + "X-Request-ID": "28a2a419-eb3f-40ad-99f0-6d6d618ded3e" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/5eea23f6-c9b0-4eb2-a042-a1d6177d2836", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-90f0fb901ebf3a4b8bd1fa0b17058026-f1362c681224a842-00", + "User-Agent": [ + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-api-key": "Sanitized", + "x-ms-client-request-id": "7501547b48d5ac353720923edc8e9d4e", + "x-ms-return-client-request-id": "true" + }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "4c601a30-043d-495e-ad9d-e503799c2626", + "apim-request-id": "c5da4cff-7908-4f82-8665-339308c1e21e", "Content-Length": "748", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:37 GMT", + "Date": "Tue, 29 Sep 2020 15:26:36 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "91", - "X-Request-ID": "4c601a30-043d-495e-ad9d-e503799c2626" + "x-envoy-upstream-service-time": "84", + "X-Request-ID": "c5da4cff-7908-4f82-8665-339308c1e21e" }, "ResponseBody": { - "anomalyDetectionConfigurationId": "ee0c0d15-3ca4-41e3-91ce-3ff065b3fe85", + "anomalyDetectionConfigurationId": "5eea23f6-c9b0-4eb2-a042-a1d6177d2836", "name": "NameKNfmYET7", "description": "", - "metricId": "2b11308b-9233-403c-bb9e-6b573cda3c08", + "metricId": "04f6e969-2302-412e-98b2-8c41e3a0e22e", "wholeMetricConfiguration": { "conditionOperator": "AND", "smartDetectionCondition": { @@ -234,30 +298,30 @@ } }, { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/ee0c0d15-3ca4-41e3-91ce-3ff065b3fe85", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/5eea23f6-c9b0-4eb2-a042-a1d6177d2836", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-23d5f15bd70f814d8d5341ffd892e9a8-cf7c71031b5c8345-00", + "traceparent": "00-41eade1663d01f498aecb43aa80e1b54-f94e0b26b6da2f46-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "7501547b48d5ac353720923edc8e9d4e", + "x-ms-client-request-id": "d916014cb9d8b91d896818725820ddb9", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "8e56604f-31f2-4c5f-a4ab-35abc236dee7", + "apim-request-id": "0fa255e6-e3d1-47ad-9c4e-52e784fc0435", "Content-Length": "0", - "Date": "Sat, 26 Sep 2020 00:10:37 GMT", + "Date": "Tue, 29 Sep 2020 15:26:36 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "100", - "X-Request-ID": "8e56604f-31f2-4c5f-a4ab-35abc236dee7" + "x-envoy-upstream-service-time": "96", + "X-Request-ID": "0fa255e6-e3d1-47ad-9c4e-52e784fc0435" }, "ResponseBody": [] } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeed.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeed.json index 1eefbf007c04c..5b5df4789c8dd 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeed.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeed.json @@ -716,4 +716,4 @@ "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", "RandomSeed": "1794682748" } -} \ No newline at end of file +} diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeedAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeedAsync.json index 2f7edc1b5ce2b..609a2f24a0bfa 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeedAsync.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeedAsync.json @@ -716,4 +716,4 @@ "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", "RandomSeed": "66946421" } -} \ No newline at end of file +} diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeedIngestionStatuses.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeedIngestionStatuses.json index 81e2734f1421d..6eb253d096533 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeedIngestionStatuses.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeedIngestionStatuses.json @@ -575,4 +575,4 @@ "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", "RandomSeed": "903490464" } -} \ No newline at end of file +} diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeedIngestionStatusesAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeedIngestionStatusesAsync.json index fb37506b07aac..2f1db8dca5996 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeedIngestionStatusesAsync.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeedIngestionStatusesAsync.json @@ -575,4 +575,4 @@ "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", "RandomSeed": "2106815534" } -} \ No newline at end of file +} diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeeds.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeeds.json index 2b040f6223b0f..f16be763cd549 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeeds.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeeds.json @@ -174,6 +174,180 @@ "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/dataFeeds?$top=2\u0026$skip=2" } }, + { + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds?$top=2\u0026$skip=2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": [ + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-api-key": "Sanitized", + "x-ms-client-request-id": "e74c31713c0004e5d361dac0f124df42", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "2aa49041-778e-4c36-945c-c14fd684ab4a", + "Content-Length": "3020", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 26 Sep 2020 00:10:33 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "105", + "X-Request-ID": "2aa49041-778e-4c36-945c-c14fd684ab4a" + }, + "ResponseBody": { + "value": [ + { + "dataFeedId": "dd64cd95-f22f-4176-9554-ded0b8db83a1", + "dataFeedName": "testElasticsearchDataFeed2", + "metrics": [ + { + "metricId": "2b11308b-9233-403c-bb9e-6b573cda3c08", + "metricName": "Metric1", + "metricDisplayName": "Metric1", + "metricDescription": "" + }, + { + "metricId": "36fe66a2-b1fe-4930-baa0-09efe7d08a31", + "metricName": "Metric2", + "metricDisplayName": "Metric2", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "Dim1", + "dimensionDisplayName": "Dim1" + }, + { + "dimensionName": "Dim2", + "dimensionDisplayName": "Dim2" + } + ], + "dataStartFrom": "2020-08-09T00:00:00Z", + "dataSourceType": "Elasticsearch", + "timestampColumn": "Timestamp", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "granularityAmount": null, + "allUpIdentification": null, + "needRollup": "NoRollup", + "fillMissingPointType": "SmartFilling", + "fillMissingPointValue": 0.0, + "rollUpMethod": "None", + "rollUpColumns": [], + "dataFeedDescription": "", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com" + ], + "viewers": [], + "creator": "foo@contoso.com", + "status": "Active", + "createdTime": "2020-09-25T17:11:17Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "authHeader": "Sanitized", + "port": "9200", + "query": "select * from adsample where timestamp = @StartTime", + "host": "ad-sample-es.westus2.cloudapp.azure.com" + } + }, + { + "dataFeedId": "0072a752-1476-4cfa-8cf0-f226995201a0", + "dataFeedName": "testElasticsearchDataFeed", + "metrics": [ + { + "metricId": "04f6e969-2302-412e-98b2-8c41e3a0e22e", + "metricName": "Metric1", + "metricDisplayName": "Metric1", + "metricDescription": "" + }, + { + "metricId": "4e5ea50b-d983-4d91-bc00-f9630941fd2d", + "metricName": "Metric2", + "metricDisplayName": "Metric2", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "Dim1", + "dimensionDisplayName": "Dim1" + }, + { + "dimensionName": "Dim2", + "dimensionDisplayName": "Dim2" + } + ], + "dataStartFrom": "2020-08-09T00:00:00Z", + "dataSourceType": "Elasticsearch", + "timestampColumn": "Timestamp", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "granularityAmount": null, + "allUpIdentification": null, + "needRollup": "NoRollup", + "fillMissingPointType": "SmartFilling", + "fillMissingPointValue": 0.0, + "rollUpMethod": "None", + "rollUpColumns": [], + "dataFeedDescription": "", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com" + ], + "viewers": [], + "creator": "foo@contoso.com", + "status": "Active", + "createdTime": "2020-09-25T00:58:52Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "authHeader": "Sanitized", + "port": "9200", + "query": "select * from adsample where timestamp = @StartTime", + "host": "ad-sample-es.westus2.cloudapp.azure.com" + } + } + ], + "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/dataFeeds?$top=2\u0026$skip=2" + } + }, { "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds?$top=2\u0026$skip=2", "RequestMethod": "GET", @@ -385,4 +559,4 @@ "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", "RandomSeed": "137167150" } -} \ No newline at end of file +} diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeedsAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeedsAsync.json index 1defb2ab3aa47..0469f2024aab9 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeedsAsync.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeedsAsync.json @@ -174,6 +174,180 @@ "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/dataFeeds?$top=2\u0026$skip=2" } }, + { + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds?$top=2\u0026$skip=2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": [ + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-api-key": "Sanitized", + "x-ms-client-request-id": "516034d0e6e3aa86cb95da896d97e5a0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "d139629b-17dd-4a3f-848b-853838889e0c", + "Content-Length": "3020", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 26 Sep 2020 00:10:41 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "123", + "X-Request-ID": "d139629b-17dd-4a3f-848b-853838889e0c" + }, + "ResponseBody": { + "value": [ + { + "dataFeedId": "dd64cd95-f22f-4176-9554-ded0b8db83a1", + "dataFeedName": "testElasticsearchDataFeed2", + "metrics": [ + { + "metricId": "2b11308b-9233-403c-bb9e-6b573cda3c08", + "metricName": "Metric1", + "metricDisplayName": "Metric1", + "metricDescription": "" + }, + { + "metricId": "36fe66a2-b1fe-4930-baa0-09efe7d08a31", + "metricName": "Metric2", + "metricDisplayName": "Metric2", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "Dim1", + "dimensionDisplayName": "Dim1" + }, + { + "dimensionName": "Dim2", + "dimensionDisplayName": "Dim2" + } + ], + "dataStartFrom": "2020-08-09T00:00:00Z", + "dataSourceType": "Elasticsearch", + "timestampColumn": "Timestamp", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "granularityAmount": null, + "allUpIdentification": null, + "needRollup": "NoRollup", + "fillMissingPointType": "SmartFilling", + "fillMissingPointValue": 0.0, + "rollUpMethod": "None", + "rollUpColumns": [], + "dataFeedDescription": "", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com" + ], + "viewers": [], + "creator": "foo@contoso.com", + "status": "Active", + "createdTime": "2020-09-25T17:11:17Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "authHeader": "Sanitized", + "port": "9200", + "query": "select * from adsample where timestamp = @StartTime", + "host": "ad-sample-es.westus2.cloudapp.azure.com" + } + }, + { + "dataFeedId": "0072a752-1476-4cfa-8cf0-f226995201a0", + "dataFeedName": "testElasticsearchDataFeed", + "metrics": [ + { + "metricId": "04f6e969-2302-412e-98b2-8c41e3a0e22e", + "metricName": "Metric1", + "metricDisplayName": "Metric1", + "metricDescription": "" + }, + { + "metricId": "4e5ea50b-d983-4d91-bc00-f9630941fd2d", + "metricName": "Metric2", + "metricDisplayName": "Metric2", + "metricDescription": "" + } + ], + "dimension": [ + { + "dimensionName": "Dim1", + "dimensionDisplayName": "Dim1" + }, + { + "dimensionName": "Dim2", + "dimensionDisplayName": "Dim2" + } + ], + "dataStartFrom": "2020-08-09T00:00:00Z", + "dataSourceType": "Elasticsearch", + "timestampColumn": "Timestamp", + "startOffsetInSeconds": 0, + "maxQueryPerMinute": 30.0, + "granularityName": "Daily", + "granularityAmount": null, + "allUpIdentification": null, + "needRollup": "NoRollup", + "fillMissingPointType": "SmartFilling", + "fillMissingPointValue": 0.0, + "rollUpMethod": "None", + "rollUpColumns": [], + "dataFeedDescription": "", + "stopRetryAfterInSeconds": -1, + "minRetryIntervalInSeconds": -1, + "maxConcurrency": -1, + "viewMode": "Private", + "admins": [ + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com", + "foo@contoso.com" + ], + "viewers": [], + "creator": "foo@contoso.com", + "status": "Active", + "createdTime": "2020-09-25T00:58:52Z", + "isAdmin": true, + "actionLinkTemplate": "", + "dataSourceParameter": { + "authHeader": "Sanitized", + "port": "9200", + "query": "select * from adsample where timestamp = @StartTime", + "host": "ad-sample-es.westus2.cloudapp.azure.com" + } + } + ], + "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/dataFeeds?$top=2\u0026$skip=2" + } + }, { "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds?$top=2\u0026$skip=2", "RequestMethod": "GET", @@ -385,4 +559,4 @@ "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", "RandomSeed": "1745502526" } -} \ No newline at end of file +} diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetMetricAnomalyDetectionConfigurations.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetMetricAnomalyDetectionConfigurations.json new file mode 100644 index 0000000000000..7f2e720765a9b --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetMetricAnomalyDetectionConfigurations.json @@ -0,0 +1,207 @@ +{ + "Entries": [ + { + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5/enrichment/anomalyDetection/configurations", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-3ca6cd044313734cbcb44398eee1fd9a-cc8636a953862d4b-00", + "User-Agent": [ + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200928.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-api-key": "Sanitized", + "x-ms-client-request-id": "054fa8e1f68ed8011ba0067b8a963988", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "550155df-9fc8-46f9-ba48-22bdda015d2d", + "Content-Length": "2925", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 28 Sep 2020 19:19:01 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "216", + "X-Request-ID": "550155df-9fc8-46f9-ba48-22bdda015d2d" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "2fe9e687-4c9e-4e1b-8ec8-6541553db969", + "name": "new Name", + "description": "new description", + "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", + "wholeMetricConfiguration": { + "conditionOperator": "OR", + "hardThresholdCondition": { + "upperBound": 500.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 5, + "minRatio": 5.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 44.0, + "shiftPoint": 2, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 4, + "minRatio": 4.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [ + { + "group": { + "dimension": { + "Dim1": "Common Lime" + } + }, + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + } + ], + "seriesOverrideConfigurations": [ + { + "series": { + "seriesId": "54bdef99c03c71c764fd3ea671cd1260", + "dimension": { + "Dim1": "Common Beech", + "Dim2": "Ant" + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + } + ] + }, + { + "anomalyDetectionConfigurationId": "bd309211-64b5-4a7a-bb81-a2789599c526", + "name": "js-all-as-anomaly", + "description": "", + "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", + "wholeMetricConfiguration": { + "hardThresholdCondition": { + "upperBound": 0.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 1, + "minRatio": 100.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "a420626b-b09b-4938-9bd3-91f263f50612", + "name": "test_detection_configuration_java", + "description": "", + "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "smartDetectionCondition": { + "sensitivity": 68.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 1, + "minRatio": 100.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 5.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Up", + "withinRange": false, + "suppressCondition": { + "minNumber": 1, + "minRatio": 100.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [ + { + "group": { + "dimension": { + "Dim1": "Common Alder" + } + }, + "smartDetectionCondition": { + "sensitivity": 80.0, + "anomalyDetectorDirection": "Down", + "suppressCondition": { + "minNumber": 1, + "minRatio": 100.0 + } + } + } + ], + "seriesOverrideConfigurations": [ + { + "series": { + "seriesId": "8f0847fcd60e1002241f4da0f02b6d57", + "dimension": { + "Dim1": "Common Alder", + "Dim2": "American robin" + } + }, + "smartDetectionCondition": { + "sensitivity": 68.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 100.0 + } + } + } + ] + }, + { + "anomalyDetectionConfigurationId": "c0f2539f-b804-4ab9-a70f-0da0c89c76d8", + "name": "Default", + "description": "", + "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 60.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 100.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ] + } + } + ], + "Variables": { + "METRICSADVISOR_ACCOUNT_NAME": "anuchan-cg-metric-advisor", + "METRICSADVISOR_ENDPOINT_SUFFIX": null, + "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", + "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", + "RandomSeed": "1176024278" + } +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetMetricAnomalyDetectionConfigurationsAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetMetricAnomalyDetectionConfigurationsAsync.json new file mode 100644 index 0000000000000..92f83fe643995 --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetMetricAnomalyDetectionConfigurationsAsync.json @@ -0,0 +1,207 @@ +{ + "Entries": [ + { + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5/enrichment/anomalyDetection/configurations", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-2435840a60101b4d9a3e03e164ce70f7-82b3a18cba54d64e-00", + "User-Agent": [ + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200928.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-api-key": "Sanitized", + "x-ms-client-request-id": "af7ea8aac15955d8c02009fff1e04253", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "03028331-53bc-4faa-aee2-0492be6c04d2", + "Content-Length": "2925", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 28 Sep 2020 19:19:06 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "5249", + "X-Request-ID": "03028331-53bc-4faa-aee2-0492be6c04d2" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "2fe9e687-4c9e-4e1b-8ec8-6541553db969", + "name": "new Name", + "description": "new description", + "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", + "wholeMetricConfiguration": { + "conditionOperator": "OR", + "hardThresholdCondition": { + "upperBound": 500.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 5, + "minRatio": 5.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 44.0, + "shiftPoint": 2, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 4, + "minRatio": 4.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [ + { + "group": { + "dimension": { + "Dim1": "Common Lime" + } + }, + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + } + ], + "seriesOverrideConfigurations": [ + { + "series": { + "seriesId": "54bdef99c03c71c764fd3ea671cd1260", + "dimension": { + "Dim1": "Common Beech", + "Dim2": "Ant" + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + } + ] + }, + { + "anomalyDetectionConfigurationId": "bd309211-64b5-4a7a-bb81-a2789599c526", + "name": "js-all-as-anomaly", + "description": "", + "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", + "wholeMetricConfiguration": { + "hardThresholdCondition": { + "upperBound": 0.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 1, + "minRatio": 100.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "a420626b-b09b-4938-9bd3-91f263f50612", + "name": "test_detection_configuration_java", + "description": "", + "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "smartDetectionCondition": { + "sensitivity": 68.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 1, + "minRatio": 100.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 5.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Up", + "withinRange": false, + "suppressCondition": { + "minNumber": 1, + "minRatio": 100.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [ + { + "group": { + "dimension": { + "Dim1": "Common Alder" + } + }, + "smartDetectionCondition": { + "sensitivity": 80.0, + "anomalyDetectorDirection": "Down", + "suppressCondition": { + "minNumber": 1, + "minRatio": 100.0 + } + } + } + ], + "seriesOverrideConfigurations": [ + { + "series": { + "seriesId": "8f0847fcd60e1002241f4da0f02b6d57", + "dimension": { + "Dim1": "Common Alder", + "Dim2": "American robin" + } + }, + "smartDetectionCondition": { + "sensitivity": 68.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 100.0 + } + } + } + ] + }, + { + "anomalyDetectionConfigurationId": "c0f2539f-b804-4ab9-a70f-0da0c89c76d8", + "name": "Default", + "description": "", + "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 60.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 100.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ] + } + } + ], + "Variables": { + "METRICSADVISOR_ACCOUNT_NAME": "anuchan-cg-metric-advisor", + "METRICSADVISOR_ENDPOINT_SUFFIX": null, + "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", + "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", + "RandomSeed": "1219315523" + } +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/HookOperations.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/HookOperations.json index 20cce8d6f1182..5c0ca86312deb 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/HookOperations.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/HookOperations.json @@ -169,4 +169,4 @@ "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", "RandomSeed": "653416426" } -} \ No newline at end of file +} diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/HookOperationsAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/HookOperationsAsync.json index 46c07c8159971..53ad29bc65e9f 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/HookOperationsAsync.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/HookOperationsAsync.json @@ -169,4 +169,4 @@ "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", "RandomSeed": "2141747034" } -} \ No newline at end of file +} diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/CreateMetricFeedback.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/CreateMetricFeedback.json new file mode 100644 index 0000000000000..963ab18eaedc0 --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/CreateMetricFeedback.json @@ -0,0 +1,189 @@ +{ + "Entries": [ + { + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Content-Length": "266", + "Content-Type": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-93e8d2d2b8277646885180976e27db58-0d465ff91304504a-00", + "User-Agent": [ + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-api-key": "Sanitized", + "x-ms-client-request-id": "57b2961051926b3c42cae257f50a5ec6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "startTime": "2020-05-29T21:25:03.1450673Z", + "endTime": "2020-09-29T21:25:03.1450673Z", + "value": { + "anomalyValue": "NotAnomaly" + }, + "feedbackType": "Anomaly", + "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", + "dimensionFilter": { + "dimension": { + "Dim1": "Common Lime", + "Dim2": "Ant" + } + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "apim-request-id": "9e70d222-c79c-49fb-b110-0e2a3cdf1263", + "Content-Length": "0", + "Date": "Tue, 29 Sep 2020 21:25:03 GMT", + "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/2b7a7dde-f417-4f22-8c3e-8da317322f3e", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "416", + "X-Request-ID": "9e70d222-c79c-49fb-b110-0e2a3cdf1263" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Content-Length": "278", + "Content-Type": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-8f0e23aa14c47845968adf5a790e2384-775f5495ae25fb44-00", + "User-Agent": [ + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-api-key": "Sanitized", + "x-ms-client-request-id": "dd1f936cb5a41862f7d6fed5147c5b5c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "startTime": "2020-05-29T21:25:03.1450673Z", + "endTime": "2020-09-29T21:25:03.1450673Z", + "value": { + "changePointValue": "NotChangePoint" + }, + "feedbackType": "ChangePoint", + "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", + "dimensionFilter": { + "dimension": { + "Dim1": "Common Lime", + "Dim2": "Ant" + } + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "apim-request-id": "f6d8c927-e60a-4141-9abd-3a11e12680d0", + "Content-Length": "0", + "Date": "Tue, 29 Sep 2020 21:25:04 GMT", + "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/fa98d4c0-803c-42a3-8251-55a620de2cd9", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "416", + "X-Request-ID": "f6d8c927-e60a-4141-9abd-3a11e12680d0" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Content-Length": "196", + "Content-Type": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-8badad727ead444792d0b8795963e498-f77a1e74be2cd74d-00", + "User-Agent": [ + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-api-key": "Sanitized", + "x-ms-client-request-id": "6b6ec2d00cc49c0530da69c9f7493f69", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "value": { + "periodType": "AssignValue", + "periodValue": 5 + }, + "feedbackType": "Period", + "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", + "dimensionFilter": { + "dimension": { + "Dim1": "Common Lime", + "Dim2": "Ant" + } + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "apim-request-id": "a7f6ffdf-340c-4227-9b7c-17b7f01d1355", + "Content-Length": "0", + "Date": "Tue, 29 Sep 2020 21:25:10 GMT", + "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/2806569d-1bb2-4959-b145-10b2215ebd58", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "5446", + "X-Request-ID": "a7f6ffdf-340c-4227-9b7c-17b7f01d1355" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Content-Length": "182", + "Content-Type": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-3603cef60404a349877422949f64c33a-e06d75f4a94bbf4f-00", + "User-Agent": [ + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-api-key": "Sanitized", + "x-ms-client-request-id": "cc187bba50a05a01349960bb536756c6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "value": { + "commentValue": "my comment" + }, + "feedbackType": "Comment", + "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", + "dimensionFilter": { + "dimension": { + "Dim1": "Common Lime", + "Dim2": "Ant" + } + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "apim-request-id": "4e484fdd-90be-4e5f-a7c0-9deb9a3c6831", + "Content-Length": "0", + "Date": "Tue, 29 Sep 2020 21:25:10 GMT", + "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/3eacdd08-cfa1-4d57-bc7e-452343e01d92", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "254", + "X-Request-ID": "4e484fdd-90be-4e5f-a7c0-9deb9a3c6831" + }, + "ResponseBody": [] + } + ], + "Variables": { + "DateTimeOffsetNow": "2020-09-29T16:25:03.1450673-05:00", + "METRICSADVISOR_ACCOUNT_NAME": "anuchan-cg-metric-advisor", + "METRICSADVISOR_ENDPOINT_SUFFIX": null, + "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", + "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", + "RandomSeed": "2099604715" + } +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/CreateMetricFeedbackAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/CreateMetricFeedbackAsync.json new file mode 100644 index 0000000000000..3de92dfcb8154 --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/CreateMetricFeedbackAsync.json @@ -0,0 +1,189 @@ +{ + "Entries": [ + { + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Content-Length": "266", + "Content-Type": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-d51ecd7c3aaf1b4e969c9abc249fb301-621456174fe8794a-00", + "User-Agent": [ + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-api-key": "Sanitized", + "x-ms-client-request-id": "3f8cf269c328fe102a77b4ec24f0740d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "startTime": "2020-05-29T21:25:11.3315111Z", + "endTime": "2020-09-29T21:25:11.3315111Z", + "value": { + "anomalyValue": "NotAnomaly" + }, + "feedbackType": "Anomaly", + "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", + "dimensionFilter": { + "dimension": { + "Dim1": "Common Lime", + "Dim2": "Ant" + } + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "apim-request-id": "5565e234-ac41-434d-9dd8-d6d9d6d86c51", + "Content-Length": "0", + "Date": "Tue, 29 Sep 2020 21:25:11 GMT", + "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/ee288903-f369-46bd-a667-536b448a602a", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "282", + "X-Request-ID": "5565e234-ac41-434d-9dd8-d6d9d6d86c51" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Content-Length": "278", + "Content-Type": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-dcd778af7c89c14193470328f628ba01-8b3c694f765c9e42-00", + "User-Agent": [ + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-api-key": "Sanitized", + "x-ms-client-request-id": "418d2fb2cf2528a3887e27abfef2d851", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "startTime": "2020-05-29T21:25:11.3315111Z", + "endTime": "2020-09-29T21:25:11.3315111Z", + "value": { + "changePointValue": "NotChangePoint" + }, + "feedbackType": "ChangePoint", + "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", + "dimensionFilter": { + "dimension": { + "Dim1": "Common Lime", + "Dim2": "Ant" + } + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "apim-request-id": "9d06004a-80a2-4578-a898-98dc2655d3b7", + "Content-Length": "0", + "Date": "Tue, 29 Sep 2020 21:25:11 GMT", + "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/2b0883e6-ff87-415e-93d0-85218add6cc7", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "314", + "X-Request-ID": "9d06004a-80a2-4578-a898-98dc2655d3b7" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Content-Length": "196", + "Content-Type": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-2ca7f6957059ad4e9b0ae507d5d0f793-ca773ec3204f624e-00", + "User-Agent": [ + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-api-key": "Sanitized", + "x-ms-client-request-id": "f592159bcc79fa68ae84a4acebc43588", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "value": { + "periodType": "AssignValue", + "periodValue": 5 + }, + "feedbackType": "Period", + "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", + "dimensionFilter": { + "dimension": { + "Dim1": "Common Lime", + "Dim2": "Ant" + } + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "apim-request-id": "d3d11343-d08e-41ce-b47c-f28ed73adf49", + "Content-Length": "0", + "Date": "Tue, 29 Sep 2020 21:25:12 GMT", + "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/0ec6be06-5f1e-4317-b40e-dbf252547efa", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "312", + "X-Request-ID": "d3d11343-d08e-41ce-b47c-f28ed73adf49" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Content-Length": "182", + "Content-Type": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-79000ef1977ec542b40798e804d83598-4c663cd08ad34b44-00", + "User-Agent": [ + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-api-key": "Sanitized", + "x-ms-client-request-id": "85a8c5de05609a214e64b6aa9b650037", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "value": { + "commentValue": "my comment" + }, + "feedbackType": "Comment", + "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", + "dimensionFilter": { + "dimension": { + "Dim1": "Common Lime", + "Dim2": "Ant" + } + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "apim-request-id": "2febe8d6-0699-4125-9102-6f4ba1b60e8d", + "Content-Length": "0", + "Date": "Tue, 29 Sep 2020 21:25:12 GMT", + "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/2b353f77-8333-46a4-83dc-76da528b69ca", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "282", + "X-Request-ID": "2febe8d6-0699-4125-9102-6f4ba1b60e8d" + }, + "ResponseBody": [] + } + ], + "Variables": { + "DateTimeOffsetNow": "2020-09-29T16:25:11.3315111-05:00", + "METRICSADVISOR_ACCOUNT_NAME": "anuchan-cg-metric-advisor", + "METRICSADVISOR_ENDPOINT_SUFFIX": null, + "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", + "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", + "RandomSeed": "633668253" + } +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetEnrichmentStatus.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetEnrichmentStatus.json new file mode 100644 index 0000000000000..e63b5e9e863c5 --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetEnrichmentStatus.json @@ -0,0 +1,106 @@ +{ + "Entries": [ + { + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5/status/enrichment/anomalyDetection/query?$top=2", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Content-Length": "69", + "Content-Type": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": [ + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200928.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-api-key": "Sanitized", + "x-ms-client-request-id": "e0fb7aeb72cdf608bb55d87770f9168f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "startTime": "2015-09-28T20:21:25Z", + "endTime": "2020-09-28T20:21:25Z" + }, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "da74732c-a394-40f7-bec9-34ba7ae61f7c", + "Content-Length": "532", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 28 Sep 2020 20:21:25 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "223", + "X-Request-ID": "da74732c-a394-40f7-bec9-34ba7ae61f7c" + }, + "ResponseBody": { + "value": [ + { + "timestamp": "2019-10-01T00:00:00Z", + "status": "Succeeded", + "message": "{\u0022UpdateTime\u0022:\u00222020-09-22T02:09:00.295Z\u0022,\u0022CreateTime\u0022:\u00222020-09-22T02:09:00.295Z\u0022}" + }, + { + "timestamp": "2019-10-02T00:00:00Z", + "status": "Succeeded", + "message": "{\u0022UpdateTime\u0022:\u00222020-09-22T02:09:00.295Z\u0022,\u0022CreateTime\u0022:\u00222020-09-22T02:09:00.295Z\u0022}" + } + ], + "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/metrics/3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5/status/enrichment/anomalyDetection/query?$top=2\u0026$skip=2" + } + }, + { + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5/status/enrichment/anomalyDetection/query?$top=2\u0026$skip=2", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Content-Length": "69", + "Content-Type": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": [ + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200928.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-api-key": "Sanitized", + "x-ms-client-request-id": "f53bafbeffd34b5535e12d1a1f80a16d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "startTime": "2015-09-28T20:21:25Z", + "endTime": "2020-09-28T20:21:25Z" + }, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "8ce43125-d00c-419a-bb0d-39acda826d95", + "Content-Length": "532", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 28 Sep 2020 20:21:26 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "157", + "X-Request-ID": "8ce43125-d00c-419a-bb0d-39acda826d95" + }, + "ResponseBody": { + "value": [ + { + "timestamp": "2019-10-03T00:00:00Z", + "status": "Succeeded", + "message": "{\u0022UpdateTime\u0022:\u00222020-09-22T02:08:40.292Z\u0022,\u0022CreateTime\u0022:\u00222020-09-22T02:08:40.292Z\u0022}" + }, + { + "timestamp": "2019-10-04T00:00:00Z", + "status": "Succeeded", + "message": "{\u0022UpdateTime\u0022:\u00222020-09-22T02:09:00.295Z\u0022,\u0022CreateTime\u0022:\u00222020-09-22T02:09:00.295Z\u0022}" + } + ], + "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/metrics/3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5/status/enrichment/anomalyDetection/query?$top=2\u0026$skip=4" + } + } + ], + "Variables": { + "DateTimeOffsetNow": "2020-09-28T15:21:25.3204603-05:00", + "METRICSADVISOR_ACCOUNT_NAME": "anuchan-cg-metric-advisor", + "METRICSADVISOR_ENDPOINT_SUFFIX": null, + "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", + "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", + "RandomSeed": "1391027914" + } +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetEnrichmentStatusAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetEnrichmentStatusAsync.json new file mode 100644 index 0000000000000..54e1d7e5be81f --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetEnrichmentStatusAsync.json @@ -0,0 +1,106 @@ +{ + "Entries": [ + { + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5/status/enrichment/anomalyDetection/query?$top=2", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Content-Length": "69", + "Content-Type": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": [ + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200928.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-api-key": "Sanitized", + "x-ms-client-request-id": "31be08c38a925b21064557ec7145ad1e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "startTime": "2015-09-28T20:21:26Z", + "endTime": "2020-09-28T20:21:26Z" + }, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "737e8761-2680-46d0-ac09-44135b7ebd3b", + "Content-Length": "532", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 28 Sep 2020 20:21:31 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "5223", + "X-Request-ID": "737e8761-2680-46d0-ac09-44135b7ebd3b" + }, + "ResponseBody": { + "value": [ + { + "timestamp": "2019-10-01T00:00:00Z", + "status": "Succeeded", + "message": "{\u0022UpdateTime\u0022:\u00222020-09-22T02:09:00.295Z\u0022,\u0022CreateTime\u0022:\u00222020-09-22T02:09:00.295Z\u0022}" + }, + { + "timestamp": "2019-10-02T00:00:00Z", + "status": "Succeeded", + "message": "{\u0022UpdateTime\u0022:\u00222020-09-22T02:09:00.295Z\u0022,\u0022CreateTime\u0022:\u00222020-09-22T02:09:00.295Z\u0022}" + } + ], + "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/metrics/3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5/status/enrichment/anomalyDetection/query?$top=2\u0026$skip=2" + } + }, + { + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5/status/enrichment/anomalyDetection/query?$top=2\u0026$skip=2", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Content-Length": "69", + "Content-Type": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": [ + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200928.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-api-key": "Sanitized", + "x-ms-client-request-id": "25a6d35b78abd1786af51a5c08593c96", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "startTime": "2015-09-28T20:21:26Z", + "endTime": "2020-09-28T20:21:26Z" + }, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "2ef2e474-2d6a-446d-a25b-59a56f8b7380", + "Content-Length": "532", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 28 Sep 2020 20:21:31 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "156", + "X-Request-ID": "2ef2e474-2d6a-446d-a25b-59a56f8b7380" + }, + "ResponseBody": { + "value": [ + { + "timestamp": "2019-10-03T00:00:00Z", + "status": "Succeeded", + "message": "{\u0022UpdateTime\u0022:\u00222020-09-22T02:08:40.292Z\u0022,\u0022CreateTime\u0022:\u00222020-09-22T02:08:40.292Z\u0022}" + }, + { + "timestamp": "2019-10-04T00:00:00Z", + "status": "Succeeded", + "message": "{\u0022UpdateTime\u0022:\u00222020-09-22T02:09:00.295Z\u0022,\u0022CreateTime\u0022:\u00222020-09-22T02:09:00.295Z\u0022}" + } + ], + "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/metrics/3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5/status/enrichment/anomalyDetection/query?$top=2\u0026$skip=4" + } + } + ], + "Variables": { + "DateTimeOffsetNow": "2020-09-28T15:21:26.7413945-05:00", + "METRICSADVISOR_ACCOUNT_NAME": "anuchan-cg-metric-advisor", + "METRICSADVISOR_ENDPOINT_SUFFIX": null, + "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", + "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", + "RandomSeed": "1559158761" + } +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricDimensionValues.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricDimensionValues.json index a4b60b0f43e41..7ec8a825ee3fb 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricDimensionValues.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricDimensionValues.json @@ -251,4 +251,4 @@ "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", "RandomSeed": "1712533915" } -} \ No newline at end of file +} diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricDimensionValuesAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricDimensionValuesAsync.json index b3ebe11d50d48..c9d58c3f68aa4 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricDimensionValuesAsync.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricDimensionValuesAsync.json @@ -251,4 +251,4 @@ "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", "RandomSeed": "377768748" } -} \ No newline at end of file +} diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricFeedbacks.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricFeedbacks.json new file mode 100644 index 0000000000000..87c0f38f69fcf --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricFeedbacks.json @@ -0,0 +1,156 @@ +{ + "Entries": [ + { + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/query?$top=2", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Content-Length": "51", + "Content-Type": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": [ + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-api-key": "Sanitized", + "x-ms-client-request-id": "8a0010be4647ee1458de7bbe77b92036", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5" + }, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "cd9c3667-6b1e-4968-abca-78bff016f8c1", + "Content-Length": "826", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Sep 2020 14:21:45 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "137", + "X-Request-ID": "cd9c3667-6b1e-4968-abca-78bff016f8c1" + }, + "ResponseBody": { + "value": [ + { + "feedbackId": "3b1954b3-b053-4508-ba0f-1fd6593ddf6a", + "createdTime": "2020-09-28T18:13:58.252Z", + "userPrincipal": "foo@contoso.com", + "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", + "dimensionFilter": { + "dimension": { + "Dim1": "Common Lime", + "Dim2": "Amphibian" + } + }, + "feedbackType": "Comment", + "startTime": null, + "endTime": null, + "value": { + "commentValue": "This is a comment" + } + }, + { + "feedbackId": "2103664c-a540-410e-84a6-fb949089a9f9", + "createdTime": "2020-09-28T18:13:56.267Z", + "userPrincipal": "foo@contoso.com", + "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", + "dimensionFilter": { + "dimension": { + "Dim1": "Common Lime", + "Dim2": "Ant" + } + }, + "feedbackType": "Period", + "value": { + "periodType": "AutoDetect", + "periodValue": 4 + } + } + ], + "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/feedback/metric/query?$top=2\u0026$skip=2" + } + }, + { + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/query?$top=2\u0026$skip=2", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Content-Length": "51", + "Content-Type": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": [ + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-api-key": "Sanitized", + "x-ms-client-request-id": "7194a137dc3bd5f45f12ed92a9d7b514", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5" + }, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "10872df8-d44b-43f8-97f8-da123a68dbf8", + "Content-Length": "997", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Sep 2020 14:21:45 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "140", + "X-Request-ID": "10872df8-d44b-43f8-97f8-da123a68dbf8" + }, + "ResponseBody": { + "value": [ + { + "feedbackId": "552ced7f-5f73-468b-80d9-dafd07f29e07", + "createdTime": "2020-09-28T18:13:54.582Z", + "userPrincipal": "foo@contoso.com", + "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", + "dimensionFilter": { + "dimension": { + "Dim1": "Common Lime", + "Dim2": "Ant" + } + }, + "feedbackType": "ChangePoint", + "startTime": "2020-08-05T07:00:00Z", + "endTime": "2020-08-05T07:00:00Z", + "value": { + "changePointValue": "ChangePoint" + } + }, + { + "feedbackId": "23132657-ab7b-4fff-8221-b97cdbedcba4", + "createdTime": "2020-09-28T18:13:51.585Z", + "userPrincipal": "foo@contoso.com", + "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", + "dimensionFilter": { + "dimension": { + "Dim1": "Common Lime", + "Dim2": "Ant" + } + }, + "feedbackType": "Anomaly", + "startTime": "2020-08-05T07:00:00Z", + "endTime": "2020-08-07T07:00:00Z", + "value": { + "anomalyValue": "NotAnomaly" + }, + "anomalyDetectionConfigurationId": null, + "anomalyDetectionConfigurationSnapshot": null + } + ], + "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/feedback/metric/query?$top=2\u0026$skip=4" + } + } + ], + "Variables": { + "METRICSADVISOR_ACCOUNT_NAME": "anuchan-cg-metric-advisor", + "METRICSADVISOR_ENDPOINT_SUFFIX": null, + "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", + "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", + "RandomSeed": "1890793544" + } +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricFeedbacksAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricFeedbacksAsync.json new file mode 100644 index 0000000000000..ad8e29c83d867 --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricFeedbacksAsync.json @@ -0,0 +1,156 @@ +{ + "Entries": [ + { + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/query?$top=2", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Content-Length": "51", + "Content-Type": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": [ + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-api-key": "Sanitized", + "x-ms-client-request-id": "21de015dd3bc09338e9e6959c6369830", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5" + }, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "7d62ff7e-874a-4a9d-9c82-a4e4a46e24c8", + "Content-Length": "826", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Sep 2020 14:21:45 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "138", + "X-Request-ID": "7d62ff7e-874a-4a9d-9c82-a4e4a46e24c8" + }, + "ResponseBody": { + "value": [ + { + "feedbackId": "3b1954b3-b053-4508-ba0f-1fd6593ddf6a", + "createdTime": "2020-09-28T18:13:58.252Z", + "userPrincipal": "foo@contoso.com", + "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", + "dimensionFilter": { + "dimension": { + "Dim1": "Common Lime", + "Dim2": "Amphibian" + } + }, + "feedbackType": "Comment", + "startTime": null, + "endTime": null, + "value": { + "commentValue": "This is a comment" + } + }, + { + "feedbackId": "2103664c-a540-410e-84a6-fb949089a9f9", + "createdTime": "2020-09-28T18:13:56.267Z", + "userPrincipal": "foo@contoso.com", + "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", + "dimensionFilter": { + "dimension": { + "Dim1": "Common Lime", + "Dim2": "Ant" + } + }, + "feedbackType": "Period", + "value": { + "periodType": "AutoDetect", + "periodValue": 4 + } + } + ], + "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/feedback/metric/query?$top=2\u0026$skip=2" + } + }, + { + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/query?$top=2\u0026$skip=2", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Content-Length": "51", + "Content-Type": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": [ + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-api-key": "Sanitized", + "x-ms-client-request-id": "447e6e465efec31cc9cb78f7a929ab96", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5" + }, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "b0edd74c-4ceb-4256-ad3f-e61c4d521c32", + "Content-Length": "997", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Sep 2020 14:21:46 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "94", + "X-Request-ID": "b0edd74c-4ceb-4256-ad3f-e61c4d521c32" + }, + "ResponseBody": { + "value": [ + { + "feedbackId": "552ced7f-5f73-468b-80d9-dafd07f29e07", + "createdTime": "2020-09-28T18:13:54.582Z", + "userPrincipal": "foo@contoso.com", + "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", + "dimensionFilter": { + "dimension": { + "Dim1": "Common Lime", + "Dim2": "Ant" + } + }, + "feedbackType": "ChangePoint", + "startTime": "2020-08-05T07:00:00Z", + "endTime": "2020-08-05T07:00:00Z", + "value": { + "changePointValue": "ChangePoint" + } + }, + { + "feedbackId": "23132657-ab7b-4fff-8221-b97cdbedcba4", + "createdTime": "2020-09-28T18:13:51.585Z", + "userPrincipal": "foo@contoso.com", + "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", + "dimensionFilter": { + "dimension": { + "Dim1": "Common Lime", + "Dim2": "Ant" + } + }, + "feedbackType": "Anomaly", + "startTime": "2020-08-05T07:00:00Z", + "endTime": "2020-08-07T07:00:00Z", + "value": { + "anomalyValue": "NotAnomaly" + }, + "anomalyDetectionConfigurationId": null, + "anomalyDetectionConfigurationSnapshot": null + } + ], + "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/feedback/metric/query?$top=2\u0026$skip=4" + } + } + ], + "Variables": { + "METRICSADVISOR_ACCOUNT_NAME": "anuchan-cg-metric-advisor", + "METRICSADVISOR_ENDPOINT_SUFFIX": null, + "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", + "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", + "RandomSeed": "1821697463" + } +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricSeriesData.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricSeriesData.json index 722fd5f4b781f..151fab5e94e83 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricSeriesData.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricSeriesData.json @@ -63,4 +63,4 @@ "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", "RandomSeed": "549759138" } -} \ No newline at end of file +} diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricSeriesDataAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricSeriesDataAsync.json index a7569c680c463..a852cae7bf022 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricSeriesDataAsync.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricSeriesDataAsync.json @@ -63,4 +63,4 @@ "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", "RandomSeed": "640491152" } -} \ No newline at end of file +} diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricSeriesDefinitions.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricSeriesDefinitions.json index f0b2a249aefab..36827980c722c 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricSeriesDefinitions.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricSeriesDefinitions.json @@ -663,4 +663,4 @@ "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", "RandomSeed": "1584337364" } -} \ No newline at end of file +} diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricSeriesDefinitionsAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricSeriesDefinitionsAsync.json index d611b8714d465..24770749789f6 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricSeriesDefinitionsAsync.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricSeriesDefinitionsAsync.json @@ -663,4 +663,4 @@ "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", "RandomSeed": "938070574" } -} \ No newline at end of file +} From 8af0344f66c994f1dfee29f3a05c0ca705b04eb2 Mon Sep 17 00:00:00 2001 From: Christopher Scott Date: Tue, 29 Sep 2020 18:14:41 -0500 Subject: [PATCH 2/3] re-generate client --- .../Azure.AI.MetricsAdvisor.netstandard2.0.cs | 181 ++++++++++++++++++ ...ateAnomalyAlertingConfigurationHeaders.cs} | 4 +- ...ateAnomalyDetectionConfigurationHeaders.cs | 23 +++ ...rRestAPIOpenAPIV2CreateDataFeedHeaders.cs} | 4 +- ...visorRestAPIOpenAPIV2CreateHookHeaders.cs} | 4 +- ...PIOpenAPIV2CreateMetricFeedbackHeaders.cs} | 4 +- ...tricsAdvisorRestAPIOpenAPIV2RestClient.cs} | 46 ++--- .../ServiceCreateMetricFeedbackHeaders.cs | 23 --- .../src/MetricsAdvisorAdministrationClient.cs | 70 ++----- .../src/MetricsAdvisorClient.cs | 10 +- 10 files changed, 251 insertions(+), 118 deletions(-) rename sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/{ServiceCreateHookHeaders.cs => AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2CreateAnomalyAlertingConfigurationHeaders.cs} (67%) create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2CreateAnomalyDetectionConfigurationHeaders.cs rename sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/{ServiceCreateAnomalyDetectionConfigurationHeaders.cs => AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2CreateDataFeedHeaders.cs} (71%) rename sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/{ServiceCreateAnomalyAlertingConfigurationHeaders.cs => AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2CreateHookHeaders.cs} (72%) rename sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/{ServiceCreateDataFeedHeaders.cs => AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2CreateMetricFeedbackHeaders.cs} (70%) rename sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/{ServiceRestClient.cs => AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2RestClient.cs} (98%) delete mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/ServiceCreateMetricFeedbackHeaders.cs diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/api/Azure.AI.MetricsAdvisor.netstandard2.0.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/api/Azure.AI.MetricsAdvisor.netstandard2.0.cs index 5172c4f5a6a14..62e10f2045d6b 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/api/Azure.AI.MetricsAdvisor.netstandard2.0.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/api/Azure.AI.MetricsAdvisor.netstandard2.0.cs @@ -7,12 +7,16 @@ public MetricsAdvisorClient(System.Uri endpoint, Azure.AI.MetricsAdvisor.Metrics public MetricsAdvisorClient(System.Uri endpoint, Azure.AI.MetricsAdvisor.MetricsAdvisorKeyCredential credential, Azure.AI.MetricsAdvisor.MetricsAdvisorClientOptions options) { } public MetricsAdvisorClient(System.Uri endpoint, Azure.Core.TokenCredential credential) { } public MetricsAdvisorClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.AI.MetricsAdvisor.MetricsAdvisorClientOptions options) { } + public virtual Azure.Response CreateMetricFeedback(Azure.AI.MetricsAdvisor.Models.MetricFeedback feedback, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateMetricFeedbackAsync(Azure.AI.MetricsAdvisor.Models.MetricFeedback feedback, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetAlerts(string alertConfigurationId, Azure.AI.MetricsAdvisor.Models.GetAlertsOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetAlertsAsync(string alertConfigurationId, Azure.AI.MetricsAdvisor.Models.GetAlertsOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetAnomaliesForAlert(string alertConfigurationId, string alertId, Azure.AI.MetricsAdvisor.Models.GetAnomaliesForAlertOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetAnomaliesForAlertAsync(string alertConfigurationId, string alertId, Azure.AI.MetricsAdvisor.Models.GetAnomaliesForAlertOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetAnomaliesForDetectionConfiguration(string detectionConfigurationId, Azure.AI.MetricsAdvisor.Models.GetAnomaliesForDetectionConfigurationOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetAnomaliesForDetectionConfigurationAsync(string detectionConfigurationId, Azure.AI.MetricsAdvisor.Models.GetAnomaliesForDetectionConfigurationOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetEnrichmentStatuses(string metricId, Azure.AI.MetricsAdvisor.Models.GetEnrichmentStatusOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetEnrichmentStatusesAsync(string metricId, Azure.AI.MetricsAdvisor.Models.GetEnrichmentStatusOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response> GetIncidentRootCauses(string detectionConfigurationId, string incidentId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task>> GetIncidentRootCausesAsync(string detectionConfigurationId, string incidentId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetIncidentsForAlert(string alertConfigurationId, string alertId, Azure.AI.MetricsAdvisor.Models.GetIncidentsForAlertOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -23,6 +27,10 @@ public MetricsAdvisorClient(System.Uri endpoint, Azure.Core.TokenCredential cred public virtual Azure.AsyncPageable GetMetricDimensionValuesAsync(string metricId, string dimensionName, Azure.AI.MetricsAdvisor.Models.GetMetricDimensionValuesOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response> GetMetricEnrichedSeriesData(System.Collections.Generic.IEnumerable seriesKeys, string detectionConfigurationId, System.DateTimeOffset startTime, System.DateTimeOffset endTime, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task>> GetMetricEnrichedSeriesDataAsync(System.Collections.Generic.IEnumerable seriesKeys, string detectionConfigurationId, System.DateTimeOffset startTime, System.DateTimeOffset endTime, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetMetricFeedback(string feedbackId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetMetricFeedbackAsync(string feedbackId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetMetricFeedbacks(Azure.AI.MetricsAdvisor.Models.GetMetricFeedbackOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetMetricFeedbacksAsync(Azure.AI.MetricsAdvisor.Models.GetMetricFeedbackOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response> GetMetricSeriesData(string metricId, Azure.AI.MetricsAdvisor.Models.GetMetricSeriesDataOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task>> GetMetricSeriesDataAsync(string metricId, Azure.AI.MetricsAdvisor.Models.GetMetricSeriesDataOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetMetricSeriesDefinitions(string metricId, Azure.AI.MetricsAdvisor.Models.GetMetricSeriesDefinitionsOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -89,6 +97,8 @@ public MetricsAdvisorAdministrationClient(System.Uri endpoint, Azure.Core.TokenC public virtual Azure.AsyncPageable GetHooksAsync(Azure.AI.MetricsAdvisor.Models.GetHooksOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetMetricAnomalyDetectionConfiguration(string detectionConfigurationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetMetricAnomalyDetectionConfigurationAsync(string detectionConfigurationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response> GetMetricAnomalyDetectionConfigurations(string metricId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task>> GetMetricAnomalyDetectionConfigurationsAsync(string metricId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response ResetDataFeedIngestionStatus(string dataFeedId, System.DateTimeOffset startTime, System.DateTimeOffset endTime, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task ResetDataFeedIngestionStatusAsync(string dataFeedId, System.DateTimeOffset startTime, System.DateTimeOffset endTime, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } @@ -217,6 +227,25 @@ internal AnomalyIncident() { } public static bool operator !=(Azure.AI.MetricsAdvisor.Models.AnomalyStatus left, Azure.AI.MetricsAdvisor.Models.AnomalyStatus right) { throw null; } public override string ToString() { throw null; } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct AnomalyValue : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AnomalyValue(string value) { throw null; } + public static Azure.AI.MetricsAdvisor.Models.AnomalyValue Anomaly { get { throw null; } } + public static Azure.AI.MetricsAdvisor.Models.AnomalyValue AutoDetect { get { throw null; } } + public static Azure.AI.MetricsAdvisor.Models.AnomalyValue NotAnomaly { get { throw null; } } + public bool Equals(Azure.AI.MetricsAdvisor.Models.AnomalyValue other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.AI.MetricsAdvisor.Models.AnomalyValue left, Azure.AI.MetricsAdvisor.Models.AnomalyValue right) { throw null; } + public static implicit operator Azure.AI.MetricsAdvisor.Models.AnomalyValue (string value) { throw null; } + public static bool operator !=(Azure.AI.MetricsAdvisor.Models.AnomalyValue left, Azure.AI.MetricsAdvisor.Models.AnomalyValue right) { throw null; } + public override string ToString() { throw null; } + } public partial class AzureApplicationInsightsDataFeedSource : Azure.AI.MetricsAdvisor.Models.DataFeedSource { public AzureApplicationInsightsDataFeedSource(string azureCloud, string applicationId, string apiKey, string query) { } @@ -260,6 +289,37 @@ public AzureTableDataFeedSource(string connectionString, string table, string qu public static bool operator !=(Azure.AI.MetricsAdvisor.Models.BoundaryDirection left, Azure.AI.MetricsAdvisor.Models.BoundaryDirection right) { throw null; } public override string ToString() { throw null; } } + public partial class ChangePointFeedback : Azure.AI.MetricsAdvisor.Models.MetricFeedback + { + public ChangePointFeedback(System.Guid metricId, Azure.AI.MetricsAdvisor.Models.FeedbackDimensionFilter dimensionFilter, System.DateTimeOffset startTime, System.DateTimeOffset endTime, Azure.AI.MetricsAdvisor.Models.ChangePointValue value) { } + public System.DateTimeOffset EndTime { get { throw null; } set { } } + public System.DateTimeOffset StartTime { get { throw null; } set { } } + public Azure.AI.MetricsAdvisor.Models.ChangePointFeedbackValue Value { get { throw null; } set { } } + } + public partial class ChangePointFeedbackValue + { + public ChangePointFeedbackValue(Azure.AI.MetricsAdvisor.Models.ChangePointValue changePointValue) { } + public Azure.AI.MetricsAdvisor.Models.ChangePointValue ChangePointValue { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ChangePointValue : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ChangePointValue(string value) { throw null; } + public static Azure.AI.MetricsAdvisor.Models.ChangePointValue AutoDetect { get { throw null; } } + public static Azure.AI.MetricsAdvisor.Models.ChangePointValue ChangePoint { get { throw null; } } + public static Azure.AI.MetricsAdvisor.Models.ChangePointValue NotChangePoint { get { throw null; } } + public bool Equals(Azure.AI.MetricsAdvisor.Models.ChangePointValue other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.AI.MetricsAdvisor.Models.ChangePointValue left, Azure.AI.MetricsAdvisor.Models.ChangePointValue right) { throw null; } + public static implicit operator Azure.AI.MetricsAdvisor.Models.ChangePointValue (string value) { throw null; } + public static bool operator !=(Azure.AI.MetricsAdvisor.Models.ChangePointValue left, Azure.AI.MetricsAdvisor.Models.ChangePointValue right) { throw null; } + public override string ToString() { throw null; } + } public partial class ChangeThresholdCondition { public ChangeThresholdCondition(double changePercentage, int shiftPoint, bool isWithinRange, Azure.AI.MetricsAdvisor.Models.AnomalyDetectorDirection anomalyDetectorDirection, Azure.AI.MetricsAdvisor.Models.SuppressCondition suppressCondition) { } @@ -269,6 +329,18 @@ public ChangeThresholdCondition(double changePercentage, int shiftPoint, bool is public int ShiftPoint { get { throw null; } } public Azure.AI.MetricsAdvisor.Models.SuppressCondition SuppressCondition { get { throw null; } } } + public partial class CommentFeedback : Azure.AI.MetricsAdvisor.Models.MetricFeedback + { + public CommentFeedback(System.Guid metricId, Azure.AI.MetricsAdvisor.Models.FeedbackDimensionFilter dimensionFilter, string value) { } + public System.DateTimeOffset? EndTime { get { throw null; } set { } } + public System.DateTimeOffset? StartTime { get { throw null; } set { } } + public Azure.AI.MetricsAdvisor.Models.CommentFeedbackValue Value { get { throw null; } set { } } + } + public partial class CommentFeedbackValue + { + public CommentFeedbackValue(string commentValue) { } + public string CommentValue { get { throw null; } set { } } + } public partial class DataAnomaly { internal DataAnomaly() { } @@ -539,6 +611,56 @@ public partial class EmailHook : Azure.AI.MetricsAdvisor.Models.AlertingHook public EmailHook(string name, System.Collections.Generic.IList emailsToAlert) { } public System.Collections.Generic.IList EmailsToAlert { get { throw null; } } } + public partial class EnrichmentStatus + { + internal EnrichmentStatus() { } + public string Message { get { throw null; } } + public string Status { get { throw null; } } + public System.DateTimeOffset? Timestamp { get { throw null; } } + } + public partial class FeedbackDimensionFilter + { + public FeedbackDimensionFilter(System.Collections.Generic.IDictionary dimension) { } + public System.Collections.Generic.IDictionary Dimension { get { throw null; } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct FeedbackQueryTimeMode : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public FeedbackQueryTimeMode(string value) { throw null; } + public static Azure.AI.MetricsAdvisor.Models.FeedbackQueryTimeMode FeedbackCreatedTime { get { throw null; } } + public static Azure.AI.MetricsAdvisor.Models.FeedbackQueryTimeMode MetricTimestamp { get { throw null; } } + public bool Equals(Azure.AI.MetricsAdvisor.Models.FeedbackQueryTimeMode other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.AI.MetricsAdvisor.Models.FeedbackQueryTimeMode left, Azure.AI.MetricsAdvisor.Models.FeedbackQueryTimeMode right) { throw null; } + public static implicit operator Azure.AI.MetricsAdvisor.Models.FeedbackQueryTimeMode (string value) { throw null; } + public static bool operator !=(Azure.AI.MetricsAdvisor.Models.FeedbackQueryTimeMode left, Azure.AI.MetricsAdvisor.Models.FeedbackQueryTimeMode right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct FeedbackType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public FeedbackType(string value) { throw null; } + public static Azure.AI.MetricsAdvisor.Models.FeedbackType Anomaly { get { throw null; } } + public static Azure.AI.MetricsAdvisor.Models.FeedbackType ChangePoint { get { throw null; } } + public static Azure.AI.MetricsAdvisor.Models.FeedbackType Comment { get { throw null; } } + public static Azure.AI.MetricsAdvisor.Models.FeedbackType Period { get { throw null; } } + public bool Equals(Azure.AI.MetricsAdvisor.Models.FeedbackType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.AI.MetricsAdvisor.Models.FeedbackType left, Azure.AI.MetricsAdvisor.Models.FeedbackType right) { throw null; } + public static implicit operator Azure.AI.MetricsAdvisor.Models.FeedbackType (string value) { throw null; } + public static bool operator !=(Azure.AI.MetricsAdvisor.Models.FeedbackType left, Azure.AI.MetricsAdvisor.Models.FeedbackType right) { throw null; } + public override string ToString() { throw null; } + } public partial class GetAlertsOptions { public GetAlertsOptions(System.DateTimeOffset startTime, System.DateTimeOffset endTime, Azure.AI.MetricsAdvisor.Models.TimeMode timeMode) { } @@ -595,6 +717,14 @@ public GetDataFeedsOptions() { } public int? SkipCount { get { throw null; } set { } } public int? TopCount { get { throw null; } set { } } } + public partial class GetEnrichmentStatusOptions + { + public GetEnrichmentStatusOptions(System.DateTimeOffset startTime, System.DateTimeOffset endTime) { } + public System.DateTimeOffset EndTime { get { throw null; } } + public int? SkipCount { get { throw null; } set { } } + public System.DateTimeOffset StartTime { get { throw null; } } + public int? TopCount { get { throw null; } set { } } + } public partial class GetHooksOptions { public GetHooksOptions() { } @@ -624,6 +754,18 @@ public GetMetricDimensionValuesOptions() { } public int? SkipCount { get { throw null; } set { } } public int? TopCount { get { throw null; } set { } } } + public partial class GetMetricFeedbackOptions + { + public GetMetricFeedbackOptions(string metricId) { } + public Azure.AI.MetricsAdvisor.Models.FeedbackDimensionFilter DimensionFilter { get { throw null; } set { } } + public System.DateTimeOffset? EndTime { get { throw null; } set { } } + public Azure.AI.MetricsAdvisor.Models.FeedbackType? FeedbackType { get { throw null; } set { } } + public System.Guid MetricId { get { throw null; } } + public int? SkipCount { get { throw null; } set { } } + public System.DateTimeOffset? StartTime { get { throw null; } set { } } + public Azure.AI.MetricsAdvisor.Models.FeedbackQueryTimeMode? TimeMode { get { throw null; } set { } } + public int? TopCount { get { throw null; } set { } } + } public partial class GetMetricSeriesDataOptions { public GetMetricSeriesDataOptions(System.Collections.Generic.IEnumerable seriesToFilter, System.DateTimeOffset startTime, System.DateTimeOffset endTime) { } @@ -832,6 +974,16 @@ internal MetricEnrichedSeriesData() { } public System.Collections.Generic.IReadOnlyList UpperBoundaries { get { throw null; } } public System.Collections.Generic.IReadOnlyList Values { get { throw null; } } } + public partial class MetricFeedback + { + internal MetricFeedback() { } + public System.DateTimeOffset? CreatedTime { get { throw null; } } + public Azure.AI.MetricsAdvisor.Models.FeedbackDimensionFilter DimensionFilter { get { throw null; } } + public System.Guid? FeedbackId { get { throw null; } } + public Azure.AI.MetricsAdvisor.Models.FeedbackType FeedbackType { get { throw null; } } + public System.Guid MetricId { get { throw null; } } + public string UserPrincipal { get { throw null; } } + } public partial class MetricSeriesData { internal MetricSeriesData() { } @@ -863,6 +1015,35 @@ public partial class MySqlDataFeedSource : Azure.AI.MetricsAdvisor.Models.DataFe { public MySqlDataFeedSource(string connectionString, string query) { } } + public partial class PeriodFeedback : Azure.AI.MetricsAdvisor.Models.MetricFeedback + { + public PeriodFeedback(System.Guid metricId, Azure.AI.MetricsAdvisor.Models.FeedbackDimensionFilter dimensionFilter, Azure.AI.MetricsAdvisor.Models.PeriodFeedbackValue value) { } + public Azure.AI.MetricsAdvisor.Models.PeriodFeedbackValue Value { get { throw null; } set { } } + } + public partial class PeriodFeedbackValue + { + public PeriodFeedbackValue(Azure.AI.MetricsAdvisor.Models.PeriodType periodType, int periodValue) { } + public Azure.AI.MetricsAdvisor.Models.PeriodType PeriodType { get { throw null; } set { } } + public int PeriodValue { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct PeriodType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public PeriodType(string value) { throw null; } + public static Azure.AI.MetricsAdvisor.Models.PeriodType AssignValue { get { throw null; } } + public static Azure.AI.MetricsAdvisor.Models.PeriodType AutoDetect { get { throw null; } } + public bool Equals(Azure.AI.MetricsAdvisor.Models.PeriodType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.AI.MetricsAdvisor.Models.PeriodType left, Azure.AI.MetricsAdvisor.Models.PeriodType right) { throw null; } + public static implicit operator Azure.AI.MetricsAdvisor.Models.PeriodType (string value) { throw null; } + public static bool operator !=(Azure.AI.MetricsAdvisor.Models.PeriodType left, Azure.AI.MetricsAdvisor.Models.PeriodType right) { throw null; } + public override string ToString() { throw null; } + } public partial class PostgreSqlDataFeedSource : Azure.AI.MetricsAdvisor.Models.DataFeedSource { public PostgreSqlDataFeedSource(string connectionString, string query) { } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/ServiceCreateHookHeaders.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2CreateAnomalyAlertingConfigurationHeaders.cs similarity index 67% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/ServiceCreateHookHeaders.cs rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2CreateAnomalyAlertingConfigurationHeaders.cs index b1ccfd55b1107..96efa4f645249 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/ServiceCreateHookHeaders.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2CreateAnomalyAlertingConfigurationHeaders.cs @@ -10,10 +10,10 @@ namespace Azure.AI.MetricsAdvisor { - internal class ServiceCreateHookHeaders + internal class AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2CreateAnomalyAlertingConfigurationHeaders { private readonly Response _response; - public ServiceCreateHookHeaders(Response response) + public AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2CreateAnomalyAlertingConfigurationHeaders(Response response) { _response = response; } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2CreateAnomalyDetectionConfigurationHeaders.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2CreateAnomalyDetectionConfigurationHeaders.cs new file mode 100644 index 0000000000000..f109fc2651f9c --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2CreateAnomalyDetectionConfigurationHeaders.cs @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure; +using Azure.Core; + +namespace Azure.AI.MetricsAdvisor +{ + internal class AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2CreateAnomalyDetectionConfigurationHeaders + { + private readonly Response _response; + public AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2CreateAnomalyDetectionConfigurationHeaders(Response response) + { + _response = response; + } + /// Location of the newly created resource. + public string Location => _response.Headers.TryGetValue("Location", out string value) ? value : null; + } +} diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/ServiceCreateAnomalyDetectionConfigurationHeaders.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2CreateDataFeedHeaders.cs similarity index 71% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/ServiceCreateAnomalyDetectionConfigurationHeaders.cs rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2CreateDataFeedHeaders.cs index 69d4d9c62e326..fd98b702e7ef3 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/ServiceCreateAnomalyDetectionConfigurationHeaders.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2CreateDataFeedHeaders.cs @@ -10,10 +10,10 @@ namespace Azure.AI.MetricsAdvisor { - internal class ServiceCreateAnomalyDetectionConfigurationHeaders + internal class AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2CreateDataFeedHeaders { private readonly Response _response; - public ServiceCreateAnomalyDetectionConfigurationHeaders(Response response) + public AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2CreateDataFeedHeaders(Response response) { _response = response; } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/ServiceCreateAnomalyAlertingConfigurationHeaders.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2CreateHookHeaders.cs similarity index 72% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/ServiceCreateAnomalyAlertingConfigurationHeaders.cs rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2CreateHookHeaders.cs index bc6fbaefe66b0..902aa1417ec25 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/ServiceCreateAnomalyAlertingConfigurationHeaders.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2CreateHookHeaders.cs @@ -10,10 +10,10 @@ namespace Azure.AI.MetricsAdvisor { - internal class ServiceCreateAnomalyAlertingConfigurationHeaders + internal class AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2CreateHookHeaders { private readonly Response _response; - public ServiceCreateAnomalyAlertingConfigurationHeaders(Response response) + public AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2CreateHookHeaders(Response response) { _response = response; } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/ServiceCreateDataFeedHeaders.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2CreateMetricFeedbackHeaders.cs similarity index 70% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/ServiceCreateDataFeedHeaders.cs rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2CreateMetricFeedbackHeaders.cs index 3d565bfdf40b8..1d8ef9c58757d 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/ServiceCreateDataFeedHeaders.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2CreateMetricFeedbackHeaders.cs @@ -10,10 +10,10 @@ namespace Azure.AI.MetricsAdvisor { - internal class ServiceCreateDataFeedHeaders + internal class AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2CreateMetricFeedbackHeaders { private readonly Response _response; - public ServiceCreateDataFeedHeaders(Response response) + public AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2CreateMetricFeedbackHeaders(Response response) { _response = response; } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/ServiceRestClient.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2RestClient.cs similarity index 98% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/ServiceRestClient.cs rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2RestClient.cs index be6f910190d99..e7098eb2136cf 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/ServiceRestClient.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2RestClient.cs @@ -16,18 +16,18 @@ namespace Azure.AI.MetricsAdvisor { - internal partial class ServiceRestClient + internal partial class AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2RestClient { private string endpoint; private ClientDiagnostics _clientDiagnostics; private HttpPipeline _pipeline; - /// Initializes a new instance of ServiceRestClient. + /// Initializes a new instance of AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2RestClient. /// The handler for diagnostic messaging in the client. /// The HTTP pipeline for sending and receiving REST requests and responses. /// Supported Cognitive Services endpoints (protocol and hostname, for example: https://<resource-name>.cognitiveservices.azure.com). /// is null. - public ServiceRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string endpoint) + public AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2RestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string endpoint) { if (endpoint == null) { @@ -284,7 +284,7 @@ internal HttpMessage CreateCreateAnomalyAlertingConfigurationRequest(AnomalyAler /// anomaly alerting configuration. /// The cancellation token to use. /// is null. - public async Task> CreateAnomalyAlertingConfigurationAsync(AnomalyAlertConfiguration body, CancellationToken cancellationToken = default) + public async Task> CreateAnomalyAlertingConfigurationAsync(AnomalyAlertConfiguration body, CancellationToken cancellationToken = default) { if (body == null) { @@ -293,7 +293,7 @@ public async Task anomaly alerting configuration. /// The cancellation token to use. /// is null. - public ResponseWithHeaders CreateAnomalyAlertingConfiguration(AnomalyAlertConfiguration body, CancellationToken cancellationToken = default) + public ResponseWithHeaders CreateAnomalyAlertingConfiguration(AnomalyAlertConfiguration body, CancellationToken cancellationToken = default) { if (body == null) { @@ -316,7 +316,7 @@ public ResponseWithHeaders Cre using var message = CreateCreateAnomalyAlertingConfigurationRequest(body); _pipeline.Send(message, cancellationToken); - var headers = new ServiceCreateAnomalyAlertingConfigurationHeaders(message.Response); + var headers = new AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2CreateAnomalyAlertingConfigurationHeaders(message.Response); switch (message.Response.Status) { case 201: @@ -777,7 +777,7 @@ internal HttpMessage CreateCreateAnomalyDetectionConfigurationRequest(MetricAnom /// anomaly detection configuration. /// The cancellation token to use. /// is null. - public async Task> CreateAnomalyDetectionConfigurationAsync(MetricAnomalyDetectionConfiguration body, CancellationToken cancellationToken = default) + public async Task> CreateAnomalyDetectionConfigurationAsync(MetricAnomalyDetectionConfiguration body, CancellationToken cancellationToken = default) { if (body == null) { @@ -786,7 +786,7 @@ public async Task anomaly detection configuration. /// The cancellation token to use. /// is null. - public ResponseWithHeaders CreateAnomalyDetectionConfiguration(MetricAnomalyDetectionConfiguration body, CancellationToken cancellationToken = default) + public ResponseWithHeaders CreateAnomalyDetectionConfiguration(MetricAnomalyDetectionConfiguration body, CancellationToken cancellationToken = default) { if (body == null) { @@ -809,7 +809,7 @@ public ResponseWithHeaders Cr using var message = CreateCreateAnomalyDetectionConfigurationRequest(body); _pipeline.Send(message, cancellationToken); - var headers = new ServiceCreateAnomalyDetectionConfigurationHeaders(message.Response); + var headers = new AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2CreateAnomalyDetectionConfigurationHeaders(message.Response); switch (message.Response.Status) { case 201: @@ -1473,7 +1473,7 @@ internal HttpMessage CreateCreateDataFeedRequest(DataFeedDetail body) /// parameters to create a data feed. /// The cancellation token to use. /// is null. - public async Task> CreateDataFeedAsync(DataFeedDetail body, CancellationToken cancellationToken = default) + public async Task> CreateDataFeedAsync(DataFeedDetail body, CancellationToken cancellationToken = default) { if (body == null) { @@ -1482,7 +1482,7 @@ public async Task> CreateDataF using var message = CreateCreateDataFeedRequest(body); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - var headers = new ServiceCreateDataFeedHeaders(message.Response); + var headers = new AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2CreateDataFeedHeaders(message.Response); switch (message.Response.Status) { case 201: @@ -1496,7 +1496,7 @@ public async Task> CreateDataF /// parameters to create a data feed. /// The cancellation token to use. /// is null. - public ResponseWithHeaders CreateDataFeed(DataFeedDetail body, CancellationToken cancellationToken = default) + public ResponseWithHeaders CreateDataFeed(DataFeedDetail body, CancellationToken cancellationToken = default) { if (body == null) { @@ -1505,7 +1505,7 @@ public ResponseWithHeaders CreateDataFeed(DataFeed using var message = CreateCreateDataFeedRequest(body); _pipeline.Send(message, cancellationToken); - var headers = new ServiceCreateDataFeedHeaders(message.Response); + var headers = new AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2CreateDataFeedHeaders(message.Response); switch (message.Response.Status) { case 201: @@ -1847,7 +1847,7 @@ internal HttpMessage CreateCreateMetricFeedbackRequest(MetricFeedback body) /// metric feedback. /// The cancellation token to use. /// is null. - public async Task> CreateMetricFeedbackAsync(MetricFeedback body, CancellationToken cancellationToken = default) + public async Task> CreateMetricFeedbackAsync(MetricFeedback body, CancellationToken cancellationToken = default) { if (body == null) { @@ -1856,7 +1856,7 @@ public async Task> Creat using var message = CreateCreateMetricFeedbackRequest(body); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - var headers = new ServiceCreateMetricFeedbackHeaders(message.Response); + var headers = new AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2CreateMetricFeedbackHeaders(message.Response); switch (message.Response.Status) { case 201: @@ -1870,7 +1870,7 @@ public async Task> Creat /// metric feedback. /// The cancellation token to use. /// is null. - public ResponseWithHeaders CreateMetricFeedback(MetricFeedback body, CancellationToken cancellationToken = default) + public ResponseWithHeaders CreateMetricFeedback(MetricFeedback body, CancellationToken cancellationToken = default) { if (body == null) { @@ -1879,7 +1879,7 @@ public ResponseWithHeaders CreateMetricFeedb using var message = CreateCreateMetricFeedbackRequest(body); _pipeline.Send(message, cancellationToken); - var headers = new ServiceCreateMetricFeedbackHeaders(message.Response); + var headers = new AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2CreateMetricFeedbackHeaders(message.Response); switch (message.Response.Status) { case 201: @@ -1983,7 +1983,7 @@ internal HttpMessage CreateCreateHookRequest(AlertingHook body) /// Create hook request. /// The cancellation token to use. /// is null. - public async Task> CreateHookAsync(AlertingHook body, CancellationToken cancellationToken = default) + public async Task> CreateHookAsync(AlertingHook body, CancellationToken cancellationToken = default) { if (body == null) { @@ -1992,7 +1992,7 @@ public async Task> CreateHookAsync using var message = CreateCreateHookRequest(body); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - var headers = new ServiceCreateHookHeaders(message.Response); + var headers = new AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2CreateHookHeaders(message.Response); switch (message.Response.Status) { case 201: @@ -2006,7 +2006,7 @@ public async Task> CreateHookAsync /// Create hook request. /// The cancellation token to use. /// is null. - public ResponseWithHeaders CreateHook(AlertingHook body, CancellationToken cancellationToken = default) + public ResponseWithHeaders CreateHook(AlertingHook body, CancellationToken cancellationToken = default) { if (body == null) { @@ -2015,7 +2015,7 @@ public ResponseWithHeaders CreateHook(AlertingHook bod using var message = CreateCreateHookRequest(body); _pipeline.Send(message, cancellationToken); - var headers = new ServiceCreateHookHeaders(message.Response); + var headers = new AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2CreateHookHeaders(message.Response); switch (message.Response.Status) { case 201: diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/ServiceCreateMetricFeedbackHeaders.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/ServiceCreateMetricFeedbackHeaders.cs deleted file mode 100644 index 9131fdbf618a6..0000000000000 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/ServiceCreateMetricFeedbackHeaders.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using Azure; -using Azure.Core; - -namespace Azure.AI.MetricsAdvisor -{ - internal class ServiceCreateMetricFeedbackHeaders - { - private readonly Response _response; - public ServiceCreateMetricFeedbackHeaders(Response response) - { - _response = response; - } - /// Location of the newly created resource. - public string Location => _response.Headers.TryGetValue("Location", out string value) ? value : null; - } -} diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/MetricsAdvisorAdministrationClient.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/MetricsAdvisorAdministrationClient.cs index 291b972eac601..d703eb48726a3 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/MetricsAdvisorAdministrationClient.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/MetricsAdvisorAdministrationClient.cs @@ -17,7 +17,7 @@ public class MetricsAdvisorAdministrationClient { private readonly ClientDiagnostics _clientDiagnostics; - private readonly ServiceRestClient _serviceRestClient; + private readonly AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2RestClient _serviceRestClient; /// /// @@ -38,7 +38,7 @@ public MetricsAdvisorAdministrationClient(Uri endpoint, MetricsAdvisorKeyCredent _clientDiagnostics = new ClientDiagnostics(options); HttpPipeline pipeline = HttpPipelineBuilder.Build(options, new MetricsAdvisorKeyCredentialPolicy(credential)); - _serviceRestClient = new ServiceRestClient(_clientDiagnostics, pipeline, endpoint.AbsoluteUri); + _serviceRestClient = new AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2RestClient(_clientDiagnostics, pipeline, endpoint.AbsoluteUri); } /// @@ -60,7 +60,7 @@ public MetricsAdvisorAdministrationClient(Uri endpoint, TokenCredential credenti _clientDiagnostics = new ClientDiagnostics(options); HttpPipeline pipeline = HttpPipelineBuilder.Build(options, new BearerTokenAuthenticationPolicy(credential, Constants.DefaultCognitiveScope)); - _serviceRestClient = new ServiceRestClient(_clientDiagnostics, pipeline, endpoint.AbsoluteUri); + _serviceRestClient = new AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2RestClient(_clientDiagnostics, pipeline, endpoint.AbsoluteUri); } /// @@ -240,7 +240,7 @@ public virtual async Task> CreateDataFeedAsync(string dataFee try { dataSource.SetDetail(dataFeedName, dataFeedGranularity, dataFeedSchema, dataFeedIngestionSettings, dataFeedOptions); - ResponseWithHeaders response = await _serviceRestClient.CreateDataFeedAsync(dataSource.DataFeedDetail, cancellationToken).ConfigureAwait(false); + ResponseWithHeaders response = await _serviceRestClient.CreateDataFeedAsync(dataSource.DataFeedDetail, cancellationToken).ConfigureAwait(false); string dataFeedId = ClientCommon.GetDataFeedId(response.Headers.Location); var createdDataFeed = new DataFeed(dataSource.DataFeedDetail) { Id = dataFeedId }; @@ -278,7 +278,7 @@ public virtual Response CreateDataFeed(string dataFeedName, DataFeedSo try { dataSource.SetDetail(dataFeedName, dataFeedGranularity, dataFeedSchema, dataFeedIngestionSettings, dataFeedOptions); - ResponseWithHeaders response = _serviceRestClient.CreateDataFeed(dataSource.DataFeedDetail, cancellationToken); + ResponseWithHeaders response = _serviceRestClient.CreateDataFeed(dataSource.DataFeedDetail, cancellationToken); string dataFeedId = ClientCommon.GetDataFeedId(response.Headers.Location); var createdDataFeed = new DataFeed(dataSource.DataFeedDetail) { Id = dataFeedId }; @@ -572,7 +572,7 @@ public virtual async Task> CreateM try { - ResponseWithHeaders response = await _serviceRestClient.CreateAnomalyDetectionConfigurationAsync(detectionConfiguration, cancellationToken).ConfigureAwait(false); + ResponseWithHeaders response = await _serviceRestClient.CreateAnomalyDetectionConfigurationAsync(detectionConfiguration, cancellationToken).ConfigureAwait(false); detectionConfiguration.Id = ClientCommon.GetAnomalyDetectionConfigurationId(response.Headers.Location); return Response.FromValue(detectionConfiguration, response.GetRawResponse()); @@ -595,7 +595,7 @@ public virtual Response CreateMetricAnomaly try { - ResponseWithHeaders response = _serviceRestClient.CreateAnomalyDetectionConfiguration(detectionConfiguration, cancellationToken); + ResponseWithHeaders response = _serviceRestClient.CreateAnomalyDetectionConfiguration(detectionConfiguration, cancellationToken); detectionConfiguration.Id = ClientCommon.GetAnomalyDetectionConfigurationId(response.Headers.Location); return Response.FromValue(detectionConfiguration, response.GetRawResponse()); @@ -757,7 +757,7 @@ public virtual async Task> CreateAnomalyAler try { - ResponseWithHeaders response = await _serviceRestClient.CreateAnomalyAlertingConfigurationAsync(alertConfiguration, cancellationToken).ConfigureAwait(false); + ResponseWithHeaders response = await _serviceRestClient.CreateAnomalyAlertingConfigurationAsync(alertConfiguration, cancellationToken).ConfigureAwait(false); alertConfiguration.Id = ClientCommon.GetAnomalyAlertConfigurationId(response.Headers.Location); return Response.FromValue(alertConfiguration, response.GetRawResponse()); @@ -781,7 +781,7 @@ public virtual Response CreateAnomalyAlertConfigurati try { - ResponseWithHeaders response = _serviceRestClient.CreateAnomalyAlertingConfiguration(alertConfiguration, cancellationToken); + ResponseWithHeaders response = _serviceRestClient.CreateAnomalyAlertingConfiguration(alertConfiguration, cancellationToken); alertConfiguration.Id = ClientCommon.GetAnomalyAlertConfigurationId(response.Headers.Location); return Response.FromValue(alertConfiguration, response.GetRawResponse()); @@ -947,7 +947,7 @@ public virtual async Task> CreateHookAsync(AlertingHook h try { - ResponseWithHeaders response = await _serviceRestClient.CreateHookAsync(hook, cancellationToken).ConfigureAwait(false); + ResponseWithHeaders response = await _serviceRestClient.CreateHookAsync(hook, cancellationToken).ConfigureAwait(false); hook.Id = ClientCommon.GetHookId(response.Headers.Location); return Response.FromValue(hook, response.GetRawResponse()); @@ -975,7 +975,7 @@ public virtual Response CreateHook(AlertingHook hook, Cancellation try { - ResponseWithHeaders response = _serviceRestClient.CreateHook(hook, cancellationToken); + ResponseWithHeaders response = _serviceRestClient.CreateHook(hook, cancellationToken); hook.Id = ClientCommon.GetHookId(response.Headers.Location); return Response.FromValue(hook, response.GetRawResponse()); @@ -987,54 +987,6 @@ public virtual Response CreateHook(AlertingHook hook, Cancellation } } - // /// - // /// - // public virtual async Task> UpdateHookAsync(string hookId, CancellationToken cancellationToken = default) - // { - // Argument.AssertNotNullOrEmpty(hookId, nameof(hookId)); - - // Guid hookGuid = ClientCommon.ValidateGuid(hookId, nameof(hookId)); - - // using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorAdministrationClient)}.{nameof(UpdateHook)}"); - // scope.Start(); - - // try - // { - // ResponseWithHeaders response = await _serviceRestClient.UpdateHookAsync(hookGuid, cancellationToken).ConfigureAwait(false); - - // return Response.FromValue(hook, response.GetRawResponse()); - // } - // catch (Exception e) - // { - // scope.Failed(e); - // throw; - // } - // } - - // /// - // /// - // public virtual Response UpdateHook(string hookId, CancellationToken cancellationToken = default) - // { - // Argument.AssertNotNullOrEmpty(hookId, nameof(hookId)); - - // Guid hookGuid = ClientCommon.ValidateGuid(hookId, nameof(hookId)); - - // using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorAdministrationClient)}.{nameof(UpdateHook)}"); - // scope.Start(); - - // try - // { - // ResponseWithHeaders response = _serviceRestClient.UpdateHook(hookGuid, cancellationToken); - - // return Response.FromValue(hookId, response.GetRawResponse()); - // } - // catch (Exception e) - // { - // scope.Failed(e); - // throw; - // } - // } - /// /// public virtual async Task> GetHookAsync(string hookId, CancellationToken cancellationToken = default) diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/MetricsAdvisorClient.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/MetricsAdvisorClient.cs index bb83d5d00c9e2..da506e2092d4d 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/MetricsAdvisorClient.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/MetricsAdvisorClient.cs @@ -18,7 +18,7 @@ public class MetricsAdvisorClient { private readonly ClientDiagnostics _clientDiagnostics; - private readonly ServiceRestClient _serviceRestClient; + private readonly AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2RestClient _serviceRestClient; /// /// @@ -39,7 +39,7 @@ public MetricsAdvisorClient(Uri endpoint, MetricsAdvisorKeyCredential credential _clientDiagnostics = new ClientDiagnostics(options); HttpPipeline pipeline = HttpPipelineBuilder.Build(options, new MetricsAdvisorKeyCredentialPolicy(credential)); - _serviceRestClient = new ServiceRestClient(_clientDiagnostics, pipeline, endpoint.AbsoluteUri); + _serviceRestClient = new AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2RestClient(_clientDiagnostics, pipeline, endpoint.AbsoluteUri); } /// @@ -61,7 +61,7 @@ public MetricsAdvisorClient(Uri endpoint, TokenCredential credential, MetricsAdv _clientDiagnostics = new ClientDiagnostics(options); HttpPipeline pipeline = HttpPipelineBuilder.Build(options, new BearerTokenAuthenticationPolicy(credential, Constants.DefaultCognitiveScope)); - _serviceRestClient = new ServiceRestClient(_clientDiagnostics, pipeline, endpoint.AbsoluteUri); + _serviceRestClient = new AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2RestClient(_clientDiagnostics, pipeline, endpoint.AbsoluteUri); } /// @@ -581,7 +581,7 @@ public virtual async Task> CreateMetricFeedbackAsync(Me try { - ResponseWithHeaders response = await _serviceRestClient.CreateMetricFeedbackAsync(feedback, cancellationToken).ConfigureAwait(false); + ResponseWithHeaders response = await _serviceRestClient.CreateMetricFeedbackAsync(feedback, cancellationToken).ConfigureAwait(false); feedback.FeedbackId = ClientCommon.GetFeedbackId(response.Headers.Location); @@ -609,7 +609,7 @@ public virtual Response CreateMetricFeedback(MetricFeedback feed try { - ResponseWithHeaders response = _serviceRestClient.CreateMetricFeedback(feedback, cancellationToken); + ResponseWithHeaders response = _serviceRestClient.CreateMetricFeedback(feedback, cancellationToken); feedback.FeedbackId = ClientCommon.GetFeedbackId(response.Headers.Location); From 978d9189003e7c2078f12d7188831b719a7bfe3e Mon Sep 17 00:00:00 2001 From: Christopher Scott Date: Tue, 29 Sep 2020 18:48:31 -0500 Subject: [PATCH 3/3] update recordings --- .../tests/MetricsAdvisorLiveTestBase.cs | 2 +- .../AnomalyAlertConfigurationOperations.json | 172 ++++----- ...malyAlertConfigurationOperationsAsync.json | 172 ++++----- .../CreateBlobDataFeed.json | 40 +-- .../CreateBlobDataFeedAsync.json | 40 +-- ...teMetricAnomalyDetectionConfiguration.json | 76 ++-- ...ricAnomalyDetectionConfigurationAsync.json | 74 ++-- .../GetDataFeed.json | 230 ++---------- .../GetDataFeedAsync.json | 230 ++---------- .../GetDataFeedIngestionProgress.json | 20 +- .../GetDataFeedIngestionProgressAsync.json | 20 +- .../GetDataFeedIngestionStatuses.json | 237 ++++--------- .../GetDataFeedIngestionStatusesAsync.json | 237 ++++--------- .../GetDataFeeds.json | 328 ++---------------- .../GetDataFeedsAsync.json | 328 ++---------------- ...tMetricAnomalyDetectionConfigurations.json | 16 +- ...icAnomalyDetectionConfigurationsAsync.json | 16 +- .../HookOperations.json | 76 ++-- .../HookOperationsAsync.json | 76 ++-- .../ResetDataFeedIngestionStatus.json | 18 +- .../ResetDataFeedIngestionStatusAsync.json | 18 +- .../CreateMetricFeedback.json | 253 ++++++++++++-- .../CreateMetricFeedbackAsync.json | 253 ++++++++++++-- .../GetAlerts.json | 52 +-- .../GetAlertsAsync.json | 52 +-- .../GetAnomaliesForAlert.json | 38 +- .../GetAnomaliesForAlertAsync.json | 38 +- ...GetAnomaliesForDetectionConfiguration.json | 20 +- ...omaliesForDetectionConfigurationAsync.json | 20 +- .../GetEnrichmentStatus.json | 36 +- .../GetEnrichmentStatusAsync.json | 34 +- .../GetIncidentRootCauses.json | 16 +- .../GetIncidentRootCausesAsync.json | 16 +- .../GetIncidentsForAlert.json | 38 +- .../GetIncidentsForAlertAsync.json | 38 +- ...GetIncidentsForDetectionConfiguration.json | 54 +-- ...cidentsForDetectionConfigurationAsync.json | 54 +-- .../GetMetricDimensionValues.json | 84 ++--- .../GetMetricDimensionValuesAsync.json | 84 ++--- .../GetMetricEnrichedSeriesData.json | 22 +- .../GetMetricEnrichedSeriesDataAsync.json | 22 +- .../GetMetricFeedbacks.json | 82 ++--- .../GetMetricFeedbacksAsync.json | 82 ++--- .../GetMetricSeriesData.json | 24 +- .../GetMetricSeriesDataAsync.json | 24 +- .../GetMetricSeriesDefinitions.json | 255 +++----------- .../GetMetricSeriesDefinitionsAsync.json | 255 +++----------- .../GetValuesOfDimensionWithAnomalies.json | 52 +-- ...etValuesOfDimensionWithAnomaliesAsync.json | 52 +-- 49 files changed, 1723 insertions(+), 2753 deletions(-) diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorLiveTestBase.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorLiveTestBase.cs index 8ebf137d9b4d9..af38638148e8a 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorLiveTestBase.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorLiveTestBase.cs @@ -28,7 +28,7 @@ public MetricsAdvisorLiveTestBase(bool isAsync) : base(isAsync) internal const string AlertConfigurationId = "08318302-6006-4019-9afc-975bc63ee566"; internal const string AlertId = "174995c5800"; internal const string MetricId = "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5"; - internal const string DataFeedId = "dd64cd95-f22f-4176-9554-ded0b8db83a1"; + internal const string DataFeedId = "0072a752-1476-4cfa-8cf0-f226995201a0"; public void InitDataFeedSources() diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/AnomalyAlertConfigurationOperations.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/AnomalyAlertConfigurationOperations.json index 10c35847c8938..da001f69dc877 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/AnomalyAlertConfigurationOperations.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/AnomalyAlertConfigurationOperations.json @@ -7,39 +7,39 @@ "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200928.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "7fb36a7e8c8702bfbfe6826ec5906253", + "x-ms-client-request-id": "e91d3424ba26b1e58dc06e5ded846a78", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "4190b530-dfbd-44eb-b180-dd5d637dc698", - "Content-Length": "1631", + "apim-request-id": "747e5bf8-6783-465c-a5d0-f20dc7766594", + "Content-Length": "1630", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 28 Sep 2020 17:27:23 GMT", + "Date": "Tue, 29 Sep 2020 23:41:57 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "252", - "X-Request-ID": "4190b530-dfbd-44eb-b180-dd5d637dc698" + "x-envoy-upstream-service-time": "226", + "X-Request-ID": "747e5bf8-6783-465c-a5d0-f20dc7766594" }, "ResponseBody": { "value": [ { - "dataFeedId": "dd64cd95-f22f-4176-9554-ded0b8db83a1", - "dataFeedName": "testElasticsearchDataFeed2", + "dataFeedId": "0072a752-1476-4cfa-8cf0-f226995201a0", + "dataFeedName": "testElasticsearchDataFeed", "metrics": [ { - "metricId": "2b11308b-9233-403c-bb9e-6b573cda3c08", + "metricId": "04f6e969-2302-412e-98b2-8c41e3a0e22e", "metricName": "Metric1", "metricDisplayName": "Metric1", "metricDescription": "" }, { - "metricId": "36fe66a2-b1fe-4930-baa0-09efe7d08a31", + "metricId": "4e5ea50b-d983-4d91-bc00-f9630941fd2d", "metricName": "Metric2", "metricDisplayName": "Metric2", "metricDescription": "" @@ -89,7 +89,7 @@ "viewers": [], "creator": "foo@contoso.com", "status": "Active", - "createdTime": "2020-09-25T17:11:17Z", + "createdTime": "2020-09-25T00:58:52Z", "isAdmin": true, "actionLinkTemplate": "", "dataSourceParameter": { @@ -110,39 +110,39 @@ "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200928.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "b0ca62ee4d4e346c2be8de73abc930ba", + "x-ms-client-request-id": "e8b28b0f46db365e51f89dd76ac929c4", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "f8397373-0b09-4561-8ce3-05cbe8f5ed2a", - "Content-Length": "1631", + "apim-request-id": "cf4ba81f-4c0e-49c7-a977-67f73a2a1476", + "Content-Length": "1630", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 28 Sep 2020 17:27:23 GMT", + "Date": "Tue, 29 Sep 2020 23:41:58 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "273", - "X-Request-ID": "f8397373-0b09-4561-8ce3-05cbe8f5ed2a" + "x-envoy-upstream-service-time": "102", + "X-Request-ID": "cf4ba81f-4c0e-49c7-a977-67f73a2a1476" }, "ResponseBody": { "value": [ { - "dataFeedId": "dd64cd95-f22f-4176-9554-ded0b8db83a1", - "dataFeedName": "testElasticsearchDataFeed2", + "dataFeedId": "0072a752-1476-4cfa-8cf0-f226995201a0", + "dataFeedName": "testElasticsearchDataFeed", "metrics": [ { - "metricId": "2b11308b-9233-403c-bb9e-6b573cda3c08", + "metricId": "04f6e969-2302-412e-98b2-8c41e3a0e22e", "metricName": "Metric1", "metricDisplayName": "Metric1", "metricDescription": "" }, { - "metricId": "36fe66a2-b1fe-4930-baa0-09efe7d08a31", + "metricId": "4e5ea50b-d983-4d91-bc00-f9630941fd2d", "metricName": "Metric2", "metricDisplayName": "Metric2", "metricDescription": "" @@ -192,7 +192,7 @@ "viewers": [], "creator": "foo@contoso.com", "status": "Active", - "createdTime": "2020-09-25T17:11:17Z", + "createdTime": "2020-09-25T00:58:52Z", "isAdmin": true, "actionLinkTemplate": "", "dataSourceParameter": { @@ -214,18 +214,18 @@ "Content-Length": "568", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-f128862e6ec72f46906f48ac216093ba-dbb79e4dd3fc894d-00", + "traceparent": "00-3b2c571c0aedbf45902ced5de9ec91f4-7bb5db5c43f9bc48-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200928.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "b711794eec5df95ded8ebfeb053a4530", + "x-ms-client-request-id": "8cd8d19019573e5a39236b84a8733ede", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "name": "NameOjhbDRMB", - "metricId": "2b11308b-9233-403c-bb9e-6b573cda3c08", + "name": "NamebN2ov5kz", + "metricId": "04f6e969-2302-412e-98b2-8c41e3a0e22e", "wholeMetricConfiguration": { "conditionOperator": "AND", "smartDetectionCondition": { @@ -259,14 +259,14 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "fa9dad58-472e-463b-af02-2b1d0f261e9f", + "apim-request-id": "d8393573-2fa5-47de-b9ec-390bcb6537fd", "Content-Length": "0", - "Date": "Mon, 28 Sep 2020 17:27:24 GMT", - "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/dd2f3b51-378f-44a5-a2c6-ca0e86d9b7b1", + "Date": "Tue, 29 Sep 2020 23:42:08 GMT", + "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/74e70b27-2605-4020-8c63-91113ee38c55", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "272", - "X-Request-ID": "fa9dad58-472e-463b-af02-2b1d0f261e9f" + "x-envoy-upstream-service-time": "10220", + "X-Request-ID": "d8393573-2fa5-47de-b9ec-390bcb6537fd" }, "ResponseBody": [] }, @@ -278,18 +278,18 @@ "Content-Length": "568", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-2bef1e8fff81cc4bbb131dbba393f2fe-7bb0896896247b49-00", + "traceparent": "00-4f4b2eae87035a47a315c53bf76c1fae-3faf1702eb27fd40-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200928.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "9f537ffd4caef656b5c824f23a69fdcf", + "x-ms-client-request-id": "2d97e6d50d1dc44796a9973848a5ad89", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "name": "NameOjhbDRMB", - "metricId": "2b11308b-9233-403c-bb9e-6b573cda3c08", + "name": "NamebN2ov5kz", + "metricId": "04f6e969-2302-412e-98b2-8c41e3a0e22e", "wholeMetricConfiguration": { "conditionOperator": "AND", "smartDetectionCondition": { @@ -323,14 +323,14 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "32825f07-779b-407f-8998-c75a62eb9009", + "apim-request-id": "8f57175d-a598-41a9-85cf-6ad1a3f41a50", "Content-Length": "0", - "Date": "Mon, 28 Sep 2020 17:27:24 GMT", - "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/9ac7c8ac-6e0b-4aba-8627-6591ff8c3ba1", + "Date": "Tue, 29 Sep 2020 23:42:08 GMT", + "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/08b79ad1-397b-4780-8088-3eb9e6a66dc0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "87", - "X-Request-ID": "32825f07-779b-407f-8998-c75a62eb9009" + "x-envoy-upstream-service-time": "99", + "X-Request-ID": "8f57175d-a598-41a9-85cf-6ad1a3f41a50" }, "ResponseBody": [] }, @@ -342,21 +342,21 @@ "Content-Length": "281", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-df2025094cc2d3469c089c24186b8888-4150d64475e9a640-00", + "traceparent": "00-5f96c694f4add4458f541fca1c5931c4-8cfe3ce80138564f-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200928.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "1d85e48a450a0fb48d24fad6cbb19e02", + "x-ms-client-request-id": "469e5f9da55d531c765defe4ee017083", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "name": "testbi9OI9l8", + "name": "test8DS005qN", "hookIds": [], "metricAlertingConfigurations": [ { - "anomalyDetectionConfigurationId": "9ac7c8ac-6e0b-4aba-8627-6591ff8c3ba1", + "anomalyDetectionConfigurationId": "08b79ad1-397b-4780-8088-3eb9e6a66dc0", "anomalyScopeType": "TopN", "dimensionAnomalyScope": { "dimension": { @@ -373,52 +373,52 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "7e6322c4-56ed-46b0-baa1-4562f7c12d8f", + "apim-request-id": "cea11bf2-8a0c-44bd-9c39-63de75a282be", "Content-Length": "0", - "Date": "Mon, 28 Sep 2020 17:27:24 GMT", - "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/014c2581-6094-45f5-ac62-bfddb0573fbf", + "Date": "Tue, 29 Sep 2020 23:42:09 GMT", + "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/5350e5a3-6c4a-4c59-976b-1252eeb75e4c", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "122", - "X-Request-ID": "7e6322c4-56ed-46b0-baa1-4562f7c12d8f" + "x-envoy-upstream-service-time": "745", + "X-Request-ID": "cea11bf2-8a0c-44bd-9c39-63de75a282be" }, "ResponseBody": [] }, { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/014c2581-6094-45f5-ac62-bfddb0573fbf", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/5350e5a3-6c4a-4c59-976b-1252eeb75e4c", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-da81e55cff982843b8d4df65647d5f4a-473dfdc2d670e247-00", + "traceparent": "00-67a56c897ab1af4fb4c649dce698338d-9717e79d0e88c34d-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200928.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "95021b236bc783be91efd888d871f448", + "x-ms-client-request-id": "aef5148a228293f576e127821a347002", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "8ef4f523-bdef-4ec0-bbf2-7eafdaaa69da", + "apim-request-id": "338ced26-3822-45c7-b578-89d2810610f1", "Content-Length": "341", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 28 Sep 2020 17:27:26 GMT", + "Date": "Tue, 29 Sep 2020 23:42:10 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "87", - "X-Request-ID": "8ef4f523-bdef-4ec0-bbf2-7eafdaaa69da" + "x-envoy-upstream-service-time": "155", + "X-Request-ID": "338ced26-3822-45c7-b578-89d2810610f1" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "014c2581-6094-45f5-ac62-bfddb0573fbf", - "name": "testbi9OI9l8", + "anomalyAlertingConfigurationId": "5350e5a3-6c4a-4c59-976b-1252eeb75e4c", + "name": "test8DS005qN", "description": "", "hookIds": [], "metricAlertingConfigurations": [ { - "anomalyDetectionConfigurationId": "9ac7c8ac-6e0b-4aba-8627-6591ff8c3ba1", + "anomalyDetectionConfigurationId": "08b79ad1-397b-4780-8088-3eb9e6a66dc0", "anomalyScopeType": "TopN", "negationOperation": false, "topNAnomalyScope": { @@ -431,42 +431,42 @@ } }, { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/9ac7c8ac-6e0b-4aba-8627-6591ff8c3ba1/alert/anomaly/configurations", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/08b79ad1-397b-4780-8088-3eb9e6a66dc0/alert/anomaly/configurations", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-c6ec6d7111040f4c8895de089833bbe2-01c61c47ae1afe4e-00", + "traceparent": "00-c413e734d27c2f42afee2fa71a8beb6b-0fad19c01ee58745-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200928.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "c91414a839c670eb131565156e260361", + "x-ms-client-request-id": "be8f5f08006ef1668c43c1ebb6c89b5b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "2f496f42-cc8d-4814-959c-62512c66493a", + "apim-request-id": "a12c999f-9a9b-4c01-b797-99427a1e2423", "Content-Length": "353", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 28 Sep 2020 17:27:26 GMT", + "Date": "Tue, 29 Sep 2020 23:42:10 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "92", - "X-Request-ID": "2f496f42-cc8d-4814-959c-62512c66493a" + "x-envoy-upstream-service-time": "96", + "X-Request-ID": "a12c999f-9a9b-4c01-b797-99427a1e2423" }, "ResponseBody": { "value": [ { - "anomalyAlertingConfigurationId": "014c2581-6094-45f5-ac62-bfddb0573fbf", - "name": "testbi9OI9l8", + "anomalyAlertingConfigurationId": "5350e5a3-6c4a-4c59-976b-1252eeb75e4c", + "name": "test8DS005qN", "description": "", "hookIds": [], "metricAlertingConfigurations": [ { - "anomalyDetectionConfigurationId": "9ac7c8ac-6e0b-4aba-8627-6591ff8c3ba1", + "anomalyDetectionConfigurationId": "08b79ad1-397b-4780-8088-3eb9e6a66dc0", "anomalyScopeType": "TopN", "negationOperation": false, "topNAnomalyScope": { @@ -481,30 +481,30 @@ } }, { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/014c2581-6094-45f5-ac62-bfddb0573fbf", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/5350e5a3-6c4a-4c59-976b-1252eeb75e4c", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-263a8e1ef133d54d8c0aec0f4ab64785-9bfd2897ed60bf4e-00", + "traceparent": "00-1bc2ee3c26054e4aac9002c06f35c601-a518e078448d1942-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200928.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "21b15fdf41b21f7726018c1a6c2c361b", + "x-ms-client-request-id": "597fd5b430dd7ab5690acf7c7d9a3841", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "a0fff4e3-7818-4463-93c8-995412756e37", + "apim-request-id": "dd4326a9-86ef-4885-ad9e-a16c743f73d3", "Content-Length": "0", - "Date": "Mon, 28 Sep 2020 17:27:26 GMT", + "Date": "Tue, 29 Sep 2020 23:42:10 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "108", - "X-Request-ID": "a0fff4e3-7818-4463-93c8-995412756e37" + "x-envoy-upstream-service-time": "101", + "X-Request-ID": "dd4326a9-86ef-4885-ad9e-a16c743f73d3" }, "ResponseBody": [] } @@ -514,6 +514,6 @@ "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "1799920595" + "RandomSeed": "848324583" } -} +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/AnomalyAlertConfigurationOperationsAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/AnomalyAlertConfigurationOperationsAsync.json index 76c292c6619b9..07bc806ba2258 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/AnomalyAlertConfigurationOperationsAsync.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/AnomalyAlertConfigurationOperationsAsync.json @@ -7,39 +7,39 @@ "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200928.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "f8b4887e650ce1978b8a7fe97893b710", + "x-ms-client-request-id": "d9f2f6fc7095cd8599ab83c4eea817e5", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "75db314a-f201-46b9-a611-cdce0f040d62", - "Content-Length": "1631", + "apim-request-id": "c3e545fe-888c-4925-856f-e695083fe60d", + "Content-Length": "1630", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 28 Sep 2020 17:27:27 GMT", + "Date": "Tue, 29 Sep 2020 23:42:19 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "113", - "X-Request-ID": "75db314a-f201-46b9-a611-cdce0f040d62" + "x-envoy-upstream-service-time": "111", + "X-Request-ID": "c3e545fe-888c-4925-856f-e695083fe60d" }, "ResponseBody": { "value": [ { - "dataFeedId": "dd64cd95-f22f-4176-9554-ded0b8db83a1", - "dataFeedName": "testElasticsearchDataFeed2", + "dataFeedId": "0072a752-1476-4cfa-8cf0-f226995201a0", + "dataFeedName": "testElasticsearchDataFeed", "metrics": [ { - "metricId": "2b11308b-9233-403c-bb9e-6b573cda3c08", + "metricId": "04f6e969-2302-412e-98b2-8c41e3a0e22e", "metricName": "Metric1", "metricDisplayName": "Metric1", "metricDescription": "" }, { - "metricId": "36fe66a2-b1fe-4930-baa0-09efe7d08a31", + "metricId": "4e5ea50b-d983-4d91-bc00-f9630941fd2d", "metricName": "Metric2", "metricDisplayName": "Metric2", "metricDescription": "" @@ -89,7 +89,7 @@ "viewers": [], "creator": "foo@contoso.com", "status": "Active", - "createdTime": "2020-09-25T17:11:17Z", + "createdTime": "2020-09-25T00:58:52Z", "isAdmin": true, "actionLinkTemplate": "", "dataSourceParameter": { @@ -110,39 +110,39 @@ "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200928.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "ce4066423e80876e128568e3514c1baf", + "x-ms-client-request-id": "dd04ab88f426e56b6f96a59bec8ea9a3", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "fcdd5d97-a279-43eb-a5ac-17ae8bae8c27", - "Content-Length": "1631", + "apim-request-id": "bd69f392-2378-46a4-84a9-d38ba0df2828", + "Content-Length": "1630", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 28 Sep 2020 17:27:27 GMT", + "Date": "Tue, 29 Sep 2020 23:42:19 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "126", - "X-Request-ID": "fcdd5d97-a279-43eb-a5ac-17ae8bae8c27" + "x-envoy-upstream-service-time": "114", + "X-Request-ID": "bd69f392-2378-46a4-84a9-d38ba0df2828" }, "ResponseBody": { "value": [ { - "dataFeedId": "dd64cd95-f22f-4176-9554-ded0b8db83a1", - "dataFeedName": "testElasticsearchDataFeed2", + "dataFeedId": "0072a752-1476-4cfa-8cf0-f226995201a0", + "dataFeedName": "testElasticsearchDataFeed", "metrics": [ { - "metricId": "2b11308b-9233-403c-bb9e-6b573cda3c08", + "metricId": "04f6e969-2302-412e-98b2-8c41e3a0e22e", "metricName": "Metric1", "metricDisplayName": "Metric1", "metricDescription": "" }, { - "metricId": "36fe66a2-b1fe-4930-baa0-09efe7d08a31", + "metricId": "4e5ea50b-d983-4d91-bc00-f9630941fd2d", "metricName": "Metric2", "metricDisplayName": "Metric2", "metricDescription": "" @@ -192,7 +192,7 @@ "viewers": [], "creator": "foo@contoso.com", "status": "Active", - "createdTime": "2020-09-25T17:11:17Z", + "createdTime": "2020-09-25T00:58:52Z", "isAdmin": true, "actionLinkTemplate": "", "dataSourceParameter": { @@ -214,18 +214,18 @@ "Content-Length": "568", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-28618c28ce857b42be619e99d55f3f9e-6e79a20d329bcd4b-00", + "traceparent": "00-ddfbd4dfe95b134391501648687419a6-ac6238d4dcf65b44-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200928.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "062b54ddbaeae89d3acc451c5772a740", + "x-ms-client-request-id": "918bedaa0aa52b943b7c4a6e7feff107", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "name": "NamehgxSM4S6", - "metricId": "2b11308b-9233-403c-bb9e-6b573cda3c08", + "name": "NameQxRrjnPc", + "metricId": "04f6e969-2302-412e-98b2-8c41e3a0e22e", "wholeMetricConfiguration": { "conditionOperator": "AND", "smartDetectionCondition": { @@ -259,14 +259,14 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "b2f6ae37-4a54-476e-8cc2-eddb5343d0a0", + "apim-request-id": "9c7f90c6-e019-49d8-9ad1-b93a03476059", "Content-Length": "0", - "Date": "Mon, 28 Sep 2020 17:27:27 GMT", - "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/97399e2b-24f7-4d19-b50a-0af4c71edef7", + "Date": "Tue, 29 Sep 2020 23:42:20 GMT", + "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/03e80505-2aa3-4caa-a549-fb71754f163a", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "138", - "X-Request-ID": "b2f6ae37-4a54-476e-8cc2-eddb5343d0a0" + "x-envoy-upstream-service-time": "102", + "X-Request-ID": "9c7f90c6-e019-49d8-9ad1-b93a03476059" }, "ResponseBody": [] }, @@ -278,18 +278,18 @@ "Content-Length": "568", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-94523a016247354ca3014119957ae2fe-0910a378d31bba4f-00", + "traceparent": "00-b7784e090efa1f4aa256e27f85c2184d-14856da164dc7f4d-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200928.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "87e52c1ab4fc3e906ecfb4652525123a", + "x-ms-client-request-id": "fe6a0d8ae9ca0be002e0e0eb1cc9ec10", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "name": "NamehgxSM4S6", - "metricId": "2b11308b-9233-403c-bb9e-6b573cda3c08", + "name": "NameQxRrjnPc", + "metricId": "04f6e969-2302-412e-98b2-8c41e3a0e22e", "wholeMetricConfiguration": { "conditionOperator": "AND", "smartDetectionCondition": { @@ -323,14 +323,14 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "911bbb33-7fa8-4d41-97ee-b752f51c8690", + "apim-request-id": "1b83e54e-f948-4b84-a75b-b24930e0b373", "Content-Length": "0", - "Date": "Mon, 28 Sep 2020 17:27:27 GMT", - "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/9ed3b70c-b84f-484e-8bed-417c6b89551e", + "Date": "Tue, 29 Sep 2020 23:42:20 GMT", + "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/681aada7-c11e-47f1-9daa-a72e540406bd", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "84", - "X-Request-ID": "911bbb33-7fa8-4d41-97ee-b752f51c8690" + "x-envoy-upstream-service-time": "269", + "X-Request-ID": "1b83e54e-f948-4b84-a75b-b24930e0b373" }, "ResponseBody": [] }, @@ -342,21 +342,21 @@ "Content-Length": "281", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-845f7daa2e6e6242a06ce85ca4f12544-036850a56a515149-00", + "traceparent": "00-ed9310e4c6e38140bf5de47a1f816e7f-5045a73f97d0974b-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200928.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "84a980e8ff07c2576b2d77d123941e29", + "x-ms-client-request-id": "70607a013b43f4231184c3ec0dd765c1", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "name": "testhfd1lbcF", + "name": "testZcZJyBfQ", "hookIds": [], "metricAlertingConfigurations": [ { - "anomalyDetectionConfigurationId": "9ed3b70c-b84f-484e-8bed-417c6b89551e", + "anomalyDetectionConfigurationId": "681aada7-c11e-47f1-9daa-a72e540406bd", "anomalyScopeType": "TopN", "dimensionAnomalyScope": { "dimension": { @@ -373,52 +373,52 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "a63afbc3-780a-4a12-b386-70a505bbd818", + "apim-request-id": "0772e819-91ee-4ae2-b321-00e3f8122637", "Content-Length": "0", - "Date": "Mon, 28 Sep 2020 17:27:28 GMT", - "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/dda1964b-bfb4-462c-b440-9ebb1a1a2be0", + "Date": "Tue, 29 Sep 2020 23:42:20 GMT", + "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/16dd5475-c964-4ad4-abbd-ddbfbbf8dfef", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "102", - "X-Request-ID": "a63afbc3-780a-4a12-b386-70a505bbd818" + "x-envoy-upstream-service-time": "116", + "X-Request-ID": "0772e819-91ee-4ae2-b321-00e3f8122637" }, "ResponseBody": [] }, { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/dda1964b-bfb4-462c-b440-9ebb1a1a2be0", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/16dd5475-c964-4ad4-abbd-ddbfbbf8dfef", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-09ee8475c4f0394e95272def1f7ea9aa-a231ea161e349e4a-00", + "traceparent": "00-c4c8376a5343b547b5c6cf1aab17bf84-44170b450dd3104f-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200928.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "1a98edc3370615c2ba0bd032807a2db2", + "x-ms-client-request-id": "c58f800da929710f903a98aabcb99eb0", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "a7803d2d-c1a8-4f85-a6b0-e2aeaf6f052d", + "apim-request-id": "5a8fde85-68e5-4863-8ab3-51a89be0c5f3", "Content-Length": "341", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 28 Sep 2020 17:27:28 GMT", + "Date": "Tue, 29 Sep 2020 23:42:21 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "89", - "X-Request-ID": "a7803d2d-c1a8-4f85-a6b0-e2aeaf6f052d" + "x-envoy-upstream-service-time": "76", + "X-Request-ID": "5a8fde85-68e5-4863-8ab3-51a89be0c5f3" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "dda1964b-bfb4-462c-b440-9ebb1a1a2be0", - "name": "testhfd1lbcF", + "anomalyAlertingConfigurationId": "16dd5475-c964-4ad4-abbd-ddbfbbf8dfef", + "name": "testZcZJyBfQ", "description": "", "hookIds": [], "metricAlertingConfigurations": [ { - "anomalyDetectionConfigurationId": "9ed3b70c-b84f-484e-8bed-417c6b89551e", + "anomalyDetectionConfigurationId": "681aada7-c11e-47f1-9daa-a72e540406bd", "anomalyScopeType": "TopN", "negationOperation": false, "topNAnomalyScope": { @@ -431,42 +431,42 @@ } }, { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/9ed3b70c-b84f-484e-8bed-417c6b89551e/alert/anomaly/configurations", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/681aada7-c11e-47f1-9daa-a72e540406bd/alert/anomaly/configurations", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-1e3d8a9b7665354abf25fda52d55f930-1b954b842a917448-00", + "traceparent": "00-e7a703e5d942a041b170e279b193faf5-bad9e6d6a954574a-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200928.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "7c9e8d8f0c0a6f3777f2faf8ad4016b7", + "x-ms-client-request-id": "50fd05cd7088c6c7bcecd99706ff03fd", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "5db6c08e-854b-4c81-99ef-4c14f9b03fce", + "apim-request-id": "963ae626-673d-4b86-8189-711017407867", "Content-Length": "353", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 28 Sep 2020 17:27:28 GMT", + "Date": "Tue, 29 Sep 2020 23:42:21 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "85", - "X-Request-ID": "5db6c08e-854b-4c81-99ef-4c14f9b03fce" + "x-envoy-upstream-service-time": "88", + "X-Request-ID": "963ae626-673d-4b86-8189-711017407867" }, "ResponseBody": { "value": [ { - "anomalyAlertingConfigurationId": "dda1964b-bfb4-462c-b440-9ebb1a1a2be0", - "name": "testhfd1lbcF", + "anomalyAlertingConfigurationId": "16dd5475-c964-4ad4-abbd-ddbfbbf8dfef", + "name": "testZcZJyBfQ", "description": "", "hookIds": [], "metricAlertingConfigurations": [ { - "anomalyDetectionConfigurationId": "9ed3b70c-b84f-484e-8bed-417c6b89551e", + "anomalyDetectionConfigurationId": "681aada7-c11e-47f1-9daa-a72e540406bd", "anomalyScopeType": "TopN", "negationOperation": false, "topNAnomalyScope": { @@ -481,30 +481,30 @@ } }, { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/dda1964b-bfb4-462c-b440-9ebb1a1a2be0", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/16dd5475-c964-4ad4-abbd-ddbfbbf8dfef", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-cf4bf9855f4335478354094124ac2d3c-1f2629029ef67c49-00", + "traceparent": "00-8e7a0003fb7b3344935b79b33407516f-c9ae7cac43111044-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200928.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "2568c80683cfb152bd94c9fb2e2541f1", + "x-ms-client-request-id": "e82a706e7a4a583b6aefe009a2793758", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "f8f0714f-f3b1-4286-ad39-6235ed099aba", + "apim-request-id": "73f7a130-b75d-4497-9ec1-884cd85faf81", "Content-Length": "0", - "Date": "Mon, 28 Sep 2020 17:27:28 GMT", + "Date": "Tue, 29 Sep 2020 23:42:21 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "97", - "X-Request-ID": "f8f0714f-f3b1-4286-ad39-6235ed099aba" + "x-envoy-upstream-service-time": "123", + "X-Request-ID": "73f7a130-b75d-4497-9ec1-884cd85faf81" }, "ResponseBody": [] } @@ -514,6 +514,6 @@ "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "1209037483" + "RandomSeed": "848285796" } -} +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/CreateBlobDataFeed.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/CreateBlobDataFeed.json index 2a8e1da77ab2c..d15b54629dcca 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/CreateBlobDataFeed.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/CreateBlobDataFeed.json @@ -8,13 +8,13 @@ "Content-Length": "394", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-7b324975e7e6f3439ad4e86d720147d7-f033e6340509f448-00", + "traceparent": "00-14d5a8b956089c42abc72358f95f4eac-51e73dc8497f4e4e-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "84e5fec53c81abd4b9b040a03978e9db", + "x-ms-client-request-id": "3d01a04fb3a90228d1e3498fdb27673e", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -24,7 +24,7 @@ "blobTemplate": "template" }, "dataSourceType": "AzureBlob", - "dataFeedName": "test8u0bnAlK", + "dataFeedName": "test1vGWurHL", "dataFeedDescription": "my feed description", "granularityName": "Daily", "metrics": [ @@ -34,57 +34,57 @@ "metricDescription": "someDescription" } ], - "dataStartFrom": "2020-09-25T00:00:00Z" + "dataStartFrom": "2020-09-29T00:00:00Z" }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "42c8f631-5852-4c92-b8b4-9a3a3fbdd1ef", + "apim-request-id": "3f02f699-065e-4ecb-9a58-fd7994428ce0", "Content-Length": "0", - "Date": "Fri, 25 Sep 2020 15:59:50 GMT", - "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds/5f03987a-e37a-48d0-8b4e-dbdcac46eff2", + "Date": "Tue, 29 Sep 2020 23:42:11 GMT", + "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds/9ded3f41-2686-4258-8521-44691f072e0e", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "5520", - "X-Request-ID": "42c8f631-5852-4c92-b8b4-9a3a3fbdd1ef" + "x-envoy-upstream-service-time": "465", + "X-Request-ID": "3f02f699-065e-4ecb-9a58-fd7994428ce0" }, "ResponseBody": [] }, { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds/5f03987a-e37a-48d0-8b4e-dbdcac46eff2", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds/9ded3f41-2686-4258-8521-44691f072e0e", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-19e4c9e4abbc7948989f04a9b2133fd5-79d67c13bf04724e-00", + "traceparent": "00-89300ca1aa0b6247a2bf77937dc10ea8-ccb81f6fa88c2648-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "616c9b7cf740a2cd8cfaf5b022fe16c1", + "x-ms-client-request-id": "663a795739a314c621bf071515ca9a4b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "44e5fa43-1a31-4a5c-b9a5-6c8ce06382c4", + "apim-request-id": "02a43fec-9510-4f72-81f7-5b9c4968caa2", "Content-Length": "0", - "Date": "Fri, 25 Sep 2020 15:59:50 GMT", + "Date": "Tue, 29 Sep 2020 23:42:11 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "272", - "X-Request-ID": "44e5fa43-1a31-4a5c-b9a5-6c8ce06382c4" + "x-envoy-upstream-service-time": "301", + "X-Request-ID": "02a43fec-9510-4f72-81f7-5b9c4968caa2" }, "ResponseBody": [] } ], "Variables": { - "DateTimeOffsetNow": "2020-09-25T10:59:45.1832318-05:00", + "DateTimeOffsetNow": "2020-09-29T18:42:11.3366247-05:00", "METRICSADVISOR_ACCOUNT_NAME": "anuchan-cg-metric-advisor", "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_PRIMARY_STORAGE_ACCOUNT_KEY": "Kg==", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "184726141" + "RandomSeed": "927324940" } } \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/CreateBlobDataFeedAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/CreateBlobDataFeedAsync.json index fc833585576cf..88f3620d76a57 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/CreateBlobDataFeedAsync.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/CreateBlobDataFeedAsync.json @@ -8,13 +8,13 @@ "Content-Length": "394", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-5c18799f4d4a4c4c9f9a755a4bfe9ba6-ecd53e54e543fd49-00", + "traceparent": "00-58a206ea8b369d4e9007b0d7ef43c87e-165979baf1def745-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "c7f0984f51fe12f64e8098b9c0f78c98", + "x-ms-client-request-id": "ab74b1f76e41baafaa647ae1f29f4e0f", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -24,7 +24,7 @@ "blobTemplate": "template" }, "dataSourceType": "AzureBlob", - "dataFeedName": "testpkaD2Vit", + "dataFeedName": "testLtg3HvAE", "dataFeedDescription": "my feed description", "granularityName": "Daily", "metrics": [ @@ -34,57 +34,57 @@ "metricDescription": "someDescription" } ], - "dataStartFrom": "2020-09-25T00:00:00Z" + "dataStartFrom": "2020-09-29T00:00:00Z" }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "65f4b7a1-7782-4dc3-9357-c44453299bb8", + "apim-request-id": "42101cc0-e9b0-4b4e-a21f-4e29d08ad75b", "Content-Length": "0", - "Date": "Fri, 25 Sep 2020 15:59:56 GMT", - "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds/1889d9e8-2c23-41d9-b574-2cf89165e60d", + "Date": "Tue, 29 Sep 2020 23:42:21 GMT", + "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds/f4bdd4b0-858d-4565-9ca5-23b4aed8aef3", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "325", - "X-Request-ID": "65f4b7a1-7782-4dc3-9357-c44453299bb8" + "x-envoy-upstream-service-time": "310", + "X-Request-ID": "42101cc0-e9b0-4b4e-a21f-4e29d08ad75b" }, "ResponseBody": [] }, { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds/1889d9e8-2c23-41d9-b574-2cf89165e60d", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds/f4bdd4b0-858d-4565-9ca5-23b4aed8aef3", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-fd1814572acb5b4d855dd08bd3fed7bb-d66bda27d03cae4f-00", + "traceparent": "00-58ed98108646984187902c9c38168b69-3dfbb701a81e604a-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "853f09b1c7e7ca64ceaa4851a93ee56c", + "x-ms-client-request-id": "2765054ed3a4b7c59642fcbc21746971", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "d0d37b51-2bfc-40d5-94d1-ed4e1ee192b2", + "apim-request-id": "72b243db-1991-46c9-800c-8d91e1923604", "Content-Length": "0", - "Date": "Fri, 25 Sep 2020 15:59:56 GMT", + "Date": "Tue, 29 Sep 2020 23:42:22 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "247", - "X-Request-ID": "d0d37b51-2bfc-40d5-94d1-ed4e1ee192b2" + "x-envoy-upstream-service-time": "236", + "X-Request-ID": "72b243db-1991-46c9-800c-8d91e1923604" }, "ResponseBody": [] } ], "Variables": { - "DateTimeOffsetNow": "2020-09-25T10:59:56.6651211-05:00", + "DateTimeOffsetNow": "2020-09-29T18:42:22.2298735-05:00", "METRICSADVISOR_ACCOUNT_NAME": "anuchan-cg-metric-advisor", "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_PRIMARY_STORAGE_ACCOUNT_KEY": "Kg==", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "97207621" + "RandomSeed": "1694694471" } } \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/CreateMetricAnomalyDetectionConfiguration.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/CreateMetricAnomalyDetectionConfiguration.json index d9c074f9cb090..a0eca3ad6ae3c 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/CreateMetricAnomalyDetectionConfiguration.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/CreateMetricAnomalyDetectionConfiguration.json @@ -11,20 +11,20 @@ "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "60fb6e1c90b2c000f4ba4664aea89e99", + "x-ms-client-request-id": "1ed78f050ef30d5838e42a99b4788a30", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "b2e67f57-cad0-479a-ba90-0ad1afe2e844", + "apim-request-id": "87f0234e-b1b9-4e46-97c0-d627f27b4630", "Content-Length": "1630", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 29 Sep 2020 15:26:27 GMT", + "Date": "Tue, 29 Sep 2020 23:42:12 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "5273", - "X-Request-ID": "b2e67f57-cad0-479a-ba90-0ad1afe2e844" + "x-envoy-upstream-service-time": "108", + "X-Request-ID": "87f0234e-b1b9-4e46-97c0-d627f27b4630" }, "ResponseBody": { "value": [ @@ -111,17 +111,17 @@ "Content-Length": "568", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-0e2d44b8923b0d4d966baa00231d68e6-5530a874f9f0f444-00", + "traceparent": "00-437f502d8728884c89213057d582bcf5-4db74a1b30bc2b40-00", "User-Agent": [ "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "5b8964fb255eb2c3abc471092960ee3b", + "x-ms-client-request-id": "d476a8b3f85f2f95a29ef92496dc80b7", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "name": "Name9WSUfLQ8", + "name": "NameDutEsdGj", "metricId": "04f6e969-2302-412e-98b2-8c41e3a0e22e", "wholeMetricConfiguration": { "conditionOperator": "AND", @@ -156,14 +156,14 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "41097cde-1b76-47ef-86ab-bdbd38255406", + "apim-request-id": "46a20236-866e-4ca4-a7ee-e08e54883e46", "Content-Length": "0", - "Date": "Tue, 29 Sep 2020 15:26:34 GMT", - "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/c097a60a-6303-490f-a070-3906d043bdf1", + "Date": "Tue, 29 Sep 2020 23:42:12 GMT", + "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/a717f5b5-a448-46e1-aa6f-b4e465a9fd1f", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "6060", - "X-Request-ID": "41097cde-1b76-47ef-86ab-bdbd38255406" + "x-envoy-upstream-service-time": "98", + "X-Request-ID": "46a20236-866e-4ca4-a7ee-e08e54883e46" }, "ResponseBody": [] }, @@ -175,17 +175,17 @@ "Content-Length": "568", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-a4e41839f8d3234b9a9878fba832a0fe-ffe998ef8aa21244-00", + "traceparent": "00-896506968cc3ec4ca5621c55c3d31d9c-353d44543c83c948-00", "User-Agent": [ "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "46985504053545ef4ccb40258cae9b24", + "x-ms-client-request-id": "e4e106debead6a3e3021a8684173f0b5", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "name": "Name9WSUfLQ8", + "name": "NameDutEsdGj", "metricId": "04f6e969-2302-412e-98b2-8c41e3a0e22e", "wholeMetricConfiguration": { "conditionOperator": "AND", @@ -220,47 +220,47 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "fd13be4a-85c4-414a-b21c-a21092805d75", + "apim-request-id": "62efca23-62cf-44a5-af2d-9c4c2de0f4fd", "Content-Length": "0", - "Date": "Tue, 29 Sep 2020 15:26:34 GMT", - "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/f0547f9b-4db9-4014-a40d-79a02c800f2d", + "Date": "Tue, 29 Sep 2020 23:42:12 GMT", + "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/87c68f2e-91ee-4d2e-b0e8-74bad7c43c3e", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "211", - "X-Request-ID": "fd13be4a-85c4-414a-b21c-a21092805d75" + "x-envoy-upstream-service-time": "93", + "X-Request-ID": "62efca23-62cf-44a5-af2d-9c4c2de0f4fd" }, "ResponseBody": [] }, { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/f0547f9b-4db9-4014-a40d-79a02c800f2d", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/87c68f2e-91ee-4d2e-b0e8-74bad7c43c3e", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-b77b3a0e13c6774d9bb3af560d6cf022-5308588d33863542-00", + "traceparent": "00-b0ff5a2dfe1a3c4aacd036e179edbbd3-f9fc5347e2855a47-00", "User-Agent": [ "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "4e640f40a506cf62f793b9ea36956fc1", + "x-ms-client-request-id": "4b6aa7d9839740ad4ffbf7167e65992a", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "27defd7f-179f-4534-8ed1-348a77965e1f", + "apim-request-id": "3e2d7f68-ae94-4391-b1dd-dce96a632de3", "Content-Length": "748", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 29 Sep 2020 15:26:34 GMT", + "Date": "Tue, 29 Sep 2020 23:42:12 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "178", - "X-Request-ID": "27defd7f-179f-4534-8ed1-348a77965e1f" + "x-envoy-upstream-service-time": "96", + "X-Request-ID": "3e2d7f68-ae94-4391-b1dd-dce96a632de3" }, "ResponseBody": { - "anomalyDetectionConfigurationId": "f0547f9b-4db9-4014-a40d-79a02c800f2d", - "name": "Name9WSUfLQ8", + "anomalyDetectionConfigurationId": "87c68f2e-91ee-4d2e-b0e8-74bad7c43c3e", + "name": "NameDutEsdGj", "description": "", "metricId": "04f6e969-2302-412e-98b2-8c41e3a0e22e", "wholeMetricConfiguration": { @@ -298,30 +298,30 @@ } }, { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/f0547f9b-4db9-4014-a40d-79a02c800f2d", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/87c68f2e-91ee-4d2e-b0e8-74bad7c43c3e", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-35e675e8ab1f3741a9354312976c4885-b7508f843aa2c94c-00", + "traceparent": "00-793b05969ad4fd4ab6f7d1698e5b01b2-3fea310ba965f14f-00", "User-Agent": [ "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "10d60d7de75ff6b674440e93e49e25fd", + "x-ms-client-request-id": "4f5f57eed16ef482690ca43e502ced2f", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "c48609ef-7ab7-41cc-a089-e0b942d199c1", + "apim-request-id": "846a9ac7-c2e3-4411-ab8b-bff24d4fedc9", "Content-Length": "0", - "Date": "Tue, 29 Sep 2020 15:26:35 GMT", + "Date": "Tue, 29 Sep 2020 23:42:13 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "152", - "X-Request-ID": "c48609ef-7ab7-41cc-a089-e0b942d199c1" + "x-envoy-upstream-service-time": "81", + "X-Request-ID": "846a9ac7-c2e3-4411-ab8b-bff24d4fedc9" }, "ResponseBody": [] } @@ -331,6 +331,6 @@ "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "1051909502" + "RandomSeed": "2031060117" } } \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/CreateMetricAnomalyDetectionConfigurationAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/CreateMetricAnomalyDetectionConfigurationAsync.json index 44331d8c63663..5020f8c702330 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/CreateMetricAnomalyDetectionConfigurationAsync.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/CreateMetricAnomalyDetectionConfigurationAsync.json @@ -11,20 +11,20 @@ "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "491aa07e7d3060d11ef9a993ea834819", + "x-ms-client-request-id": "c8f71773b6188596a5d99615df2b6e40", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "7cf9fdc1-6c3a-456f-8bff-8e4f96f3fc6d", + "apim-request-id": "5d84aeca-c027-455d-aa12-bf08d46fb6ce", "Content-Length": "1630", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 29 Sep 2020 15:26:35 GMT", + "Date": "Tue, 29 Sep 2020 23:42:22 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "100", - "X-Request-ID": "7cf9fdc1-6c3a-456f-8bff-8e4f96f3fc6d" + "x-envoy-upstream-service-time": "98", + "X-Request-ID": "5d84aeca-c027-455d-aa12-bf08d46fb6ce" }, "ResponseBody": { "value": [ @@ -111,17 +111,17 @@ "Content-Length": "568", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-dbaa8c556a226c488a5fc58fb20c9aeb-c293a2cd5aadae49-00", + "traceparent": "00-01e18b523b3743408eeb73e5f0826371-168e94a1570e9e46-00", "User-Agent": [ "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "88a7bb47722a88c100aba7b97b990514", + "x-ms-client-request-id": "c098cb9a726c4b5cdbaaeb8ce502cb60", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "name": "NameKNfmYET7", + "name": "NameesKzWhNU", "metricId": "04f6e969-2302-412e-98b2-8c41e3a0e22e", "wholeMetricConfiguration": { "conditionOperator": "AND", @@ -156,14 +156,14 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "1c82e503-464b-4ea7-9b16-5f91de7bda2d", + "apim-request-id": "3323d3ad-eebe-4379-810f-b87927c80d6d", "Content-Length": "0", - "Date": "Tue, 29 Sep 2020 15:26:35 GMT", - "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/1b44efda-741f-4ee1-943c-410aed9521ea", + "Date": "Tue, 29 Sep 2020 23:42:22 GMT", + "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/3261dc3f-ee76-41a3-8a31-764401e4eb85", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "90", - "X-Request-ID": "1c82e503-464b-4ea7-9b16-5f91de7bda2d" + "x-envoy-upstream-service-time": "95", + "X-Request-ID": "3323d3ad-eebe-4379-810f-b87927c80d6d" }, "ResponseBody": [] }, @@ -175,17 +175,17 @@ "Content-Length": "568", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-9767fd50b5d3124abc52c81733fc2583-c21fa7abb26be94e-00", + "traceparent": "00-3b977702fd5350428e9b4f70701a88e3-aef03bd920c2fb47-00", "User-Agent": [ "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "6bbdb2d58da73f3270b819a1ab4759e8", + "x-ms-client-request-id": "51290efd5d2f7b84c7b27a8a908986f0", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "name": "NameKNfmYET7", + "name": "NameesKzWhNU", "metricId": "04f6e969-2302-412e-98b2-8c41e3a0e22e", "wholeMetricConfiguration": { "conditionOperator": "AND", @@ -220,47 +220,47 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "28a2a419-eb3f-40ad-99f0-6d6d618ded3e", + "apim-request-id": "7fb50e96-0276-4508-b718-d8467dad353f", "Content-Length": "0", - "Date": "Tue, 29 Sep 2020 15:26:36 GMT", - "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/5eea23f6-c9b0-4eb2-a042-a1d6177d2836", + "Date": "Tue, 29 Sep 2020 23:42:23 GMT", + "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/285086d8-51b3-4f73-87a8-b8dd5089a147", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "95", - "X-Request-ID": "28a2a419-eb3f-40ad-99f0-6d6d618ded3e" + "x-envoy-upstream-service-time": "93", + "X-Request-ID": "7fb50e96-0276-4508-b718-d8467dad353f" }, "ResponseBody": [] }, { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/5eea23f6-c9b0-4eb2-a042-a1d6177d2836", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/285086d8-51b3-4f73-87a8-b8dd5089a147", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-90f0fb901ebf3a4b8bd1fa0b17058026-f1362c681224a842-00", + "traceparent": "00-f17cd227d26e2a4892f177a8c576dc83-78f84956966d6f46-00", "User-Agent": [ "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "7501547b48d5ac353720923edc8e9d4e", + "x-ms-client-request-id": "4d2d4f14d51e33197c4b3a343fe15b80", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "c5da4cff-7908-4f82-8665-339308c1e21e", + "apim-request-id": "db6196d1-1dc0-44dc-95b8-0f16b08c6b83", "Content-Length": "748", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 29 Sep 2020 15:26:36 GMT", + "Date": "Tue, 29 Sep 2020 23:42:23 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", "x-envoy-upstream-service-time": "84", - "X-Request-ID": "c5da4cff-7908-4f82-8665-339308c1e21e" + "X-Request-ID": "db6196d1-1dc0-44dc-95b8-0f16b08c6b83" }, "ResponseBody": { - "anomalyDetectionConfigurationId": "5eea23f6-c9b0-4eb2-a042-a1d6177d2836", - "name": "NameKNfmYET7", + "anomalyDetectionConfigurationId": "285086d8-51b3-4f73-87a8-b8dd5089a147", + "name": "NameesKzWhNU", "description": "", "metricId": "04f6e969-2302-412e-98b2-8c41e3a0e22e", "wholeMetricConfiguration": { @@ -298,30 +298,30 @@ } }, { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/5eea23f6-c9b0-4eb2-a042-a1d6177d2836", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/285086d8-51b3-4f73-87a8-b8dd5089a147", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-41eade1663d01f498aecb43aa80e1b54-f94e0b26b6da2f46-00", + "traceparent": "00-3385abeb9759aa4fb0ffc7a67c94fa06-cc569390d1221346-00", "User-Agent": [ "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "d916014cb9d8b91d896818725820ddb9", + "x-ms-client-request-id": "5a1c8d44b0593c78461cf9b9f7d1bb51", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "0fa255e6-e3d1-47ad-9c4e-52e784fc0435", + "apim-request-id": "c40f4110-b1dd-42a6-81eb-96498f116551", "Content-Length": "0", - "Date": "Tue, 29 Sep 2020 15:26:36 GMT", + "Date": "Tue, 29 Sep 2020 23:42:23 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "96", - "X-Request-ID": "0fa255e6-e3d1-47ad-9c4e-52e784fc0435" + "x-envoy-upstream-service-time": "77", + "X-Request-ID": "c40f4110-b1dd-42a6-81eb-96498f116551" }, "ResponseBody": [] } @@ -331,6 +331,6 @@ "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "1373262478" + "RandomSeed": "1738732240" } } \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeed.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeed.json index 5b5df4789c8dd..c1c3974d4e60a 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeed.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeed.json @@ -7,98 +7,27 @@ "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "ecc2b3e114d563b2f5bec1af297167c6", + "x-ms-client-request-id": "0064f1bf4357dbe83fa3d523246ff060", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "053b429d-a7b6-4402-a14b-24ff2ad73e6d", - "Content-Length": "5901", + "apim-request-id": "269fa1e8-6403-4991-a8df-635c450e10ea", + "Content-Length": "4406", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:28 GMT", + "Date": "Tue, 29 Sep 2020 23:42:13 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "132", - "X-Request-ID": "053b429d-a7b6-4402-a14b-24ff2ad73e6d" + "x-envoy-upstream-service-time": "111", + "X-Request-ID": "269fa1e8-6403-4991-a8df-635c450e10ea" }, "ResponseBody": { "value": [ - { - "dataFeedId": "dd64cd95-f22f-4176-9554-ded0b8db83a1", - "dataFeedName": "testElasticsearchDataFeed2", - "metrics": [ - { - "metricId": "2b11308b-9233-403c-bb9e-6b573cda3c08", - "metricName": "Metric1", - "metricDisplayName": "Metric1", - "metricDescription": "" - }, - { - "metricId": "36fe66a2-b1fe-4930-baa0-09efe7d08a31", - "metricName": "Metric2", - "metricDisplayName": "Metric2", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "Dim1", - "dimensionDisplayName": "Dim1" - }, - { - "dimensionName": "Dim2", - "dimensionDisplayName": "Dim2" - } - ], - "dataStartFrom": "2020-08-09T00:00:00Z", - "dataSourceType": "Elasticsearch", - "timestampColumn": "Timestamp", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "granularityAmount": null, - "allUpIdentification": null, - "needRollup": "NoRollup", - "fillMissingPointType": "SmartFilling", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "rollUpColumns": [], - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": -1, - "viewMode": "Private", - "admins": [ - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com" - ], - "viewers": [], - "creator": "foo@contoso.com", - "status": "Active", - "createdTime": "2020-09-25T17:11:17Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "authHeader": "Sanitized", - "port": "9200", - "query": "select * from adsample where timestamp = @StartTime", - "host": "ad-sample-es.westus2.cloudapp.azure.com" - } - }, { "dataFeedId": "0072a752-1476-4cfa-8cf0-f226995201a0", "dataFeedName": "testElasticsearchDataFeed", @@ -314,131 +243,32 @@ "@nextLink": null } }, - { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds/dd64cd95-f22f-4176-9554-ded0b8db83a1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-75100f8ce611bc43b09ba11cb82f6fe6-71ddb7adfd238b46-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", - "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" - ], - "x-api-key": "Sanitized", - "x-ms-client-request-id": "a528cd6f53f6108e6b970240ae5cc360", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "8539a1cd-c8c9-47d7-8df4-25d2b367c907", - "Content-Length": "1494", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:28 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "123", - "X-Request-ID": "8539a1cd-c8c9-47d7-8df4-25d2b367c907" - }, - "ResponseBody": { - "dataFeedId": "dd64cd95-f22f-4176-9554-ded0b8db83a1", - "dataFeedName": "testElasticsearchDataFeed2", - "metrics": [ - { - "metricId": "2b11308b-9233-403c-bb9e-6b573cda3c08", - "metricName": "Metric1", - "metricDisplayName": "Metric1", - "metricDescription": "" - }, - { - "metricId": "36fe66a2-b1fe-4930-baa0-09efe7d08a31", - "metricName": "Metric2", - "metricDisplayName": "Metric2", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "Dim1", - "dimensionDisplayName": "Dim1" - }, - { - "dimensionName": "Dim2", - "dimensionDisplayName": "Dim2" - } - ], - "dataStartFrom": "2020-08-09T00:00:00Z", - "dataSourceType": "Elasticsearch", - "timestampColumn": "Timestamp", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "granularityAmount": null, - "allUpIdentification": null, - "needRollup": "NoRollup", - "fillMissingPointType": "SmartFilling", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "rollUpColumns": [], - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": -1, - "viewMode": "Private", - "admins": [ - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com" - ], - "viewers": [], - "creator": "foo@contoso.com", - "status": "Active", - "createdTime": "2020-09-25T17:11:17Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "authHeader": "Sanitized", - "port": "9200", - "query": "select * from adsample where timestamp = @StartTime", - "host": "ad-sample-es.westus2.cloudapp.azure.com" - } - } - }, { "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds/0072a752-1476-4cfa-8cf0-f226995201a0", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-31e452f70a088541bd6584f4e3937550-9d275a1b38d6f04c-00", + "traceparent": "00-9b574f6d317912469524410110aba4ed-649484e560b2e545-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "345ddcd3b3ac1fe2d1ff77fb6061060e", + "x-ms-client-request-id": "6b1085e06fc4e3d3ecc58453041e9fda", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "44c36409-d6ff-405a-9886-ecc899f237f2", + "apim-request-id": "406440f6-2101-48a0-8127-67eddb3fbaa2", "Content-Length": "1493", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:29 GMT", + "Date": "Tue, 29 Sep 2020 23:42:13 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "122", - "X-Request-ID": "44c36409-d6ff-405a-9886-ecc899f237f2" + "x-envoy-upstream-service-time": "123", + "X-Request-ID": "406440f6-2101-48a0-8127-67eddb3fbaa2" }, "ResponseBody": { "dataFeedId": "0072a752-1476-4cfa-8cf0-f226995201a0", @@ -518,26 +348,26 @@ "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-e975d84168edc14dacc3363f4e53dda9-ee9335ff4cfffc44-00", + "traceparent": "00-5dd9a1efe2ff18478adbc829c241ca01-61dd9db069298744-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "b67196074ff58d4025b1803e1171b499", + "x-ms-client-request-id": "10c6d7a2e043aa03893c2bf04f685653", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "9bc33c73-7928-479a-8a36-ef47cae18d9e", + "apim-request-id": "c21370b5-f546-4926-9d3d-ed2a217bac81", "Content-Length": "1453", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:29 GMT", + "Date": "Tue, 29 Sep 2020 23:42:13 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "136", - "X-Request-ID": "9bc33c73-7928-479a-8a36-ef47cae18d9e" + "x-envoy-upstream-service-time": "139", + "X-Request-ID": "c21370b5-f546-4926-9d3d-ed2a217bac81" }, "ResponseBody": { "dataFeedId": "4957a2f7-a0f4-4fc0-b8d7-d866c1df0f4c", @@ -617,26 +447,26 @@ "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-8f134f62d77b3e478470da9176c64f88-883956948f405943-00", + "traceparent": "00-588ae39f57ebc54d95777c41eaae08d0-bb189d879476474c-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "4cdb60fb3214bb1aea08d3f7db93b00a", + "x-ms-client-request-id": "65e523af712f4f2c1d801491bf94d621", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "8f48401c-a4dd-4e0b-9dc9-56c9213b0f58", + "apim-request-id": "c8aec9dd-76af-4ae2-b1d9-8ac80ecdea5c", "Content-Length": "1429", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:29 GMT", + "Date": "Tue, 29 Sep 2020 23:42:14 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "133", - "X-Request-ID": "8f48401c-a4dd-4e0b-9dc9-56c9213b0f58" + "x-envoy-upstream-service-time": "122", + "X-Request-ID": "c8aec9dd-76af-4ae2-b1d9-8ac80ecdea5c" }, "ResponseBody": { "dataFeedId": "b9dae651-63bc-4a98-a7c5-d8322b20c962", @@ -714,6 +544,6 @@ "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "1794682748" + "RandomSeed": "1986631409" } -} +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeedAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeedAsync.json index 609a2f24a0bfa..7a486ccc75c66 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeedAsync.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeedAsync.json @@ -7,98 +7,27 @@ "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "760aeaea15e6d68057d5523b78a42212", + "x-ms-client-request-id": "4c4b956fb3a7a0b1c488e54b083d7f3e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "91c81008-f8aa-478e-beb8-ea7aead4826e", - "Content-Length": "5901", + "apim-request-id": "019426e1-0ac8-45d4-8f06-3400b5f6a2e7", + "Content-Length": "4406", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:38 GMT", + "Date": "Tue, 29 Sep 2020 23:42:23 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "103", - "X-Request-ID": "91c81008-f8aa-478e-beb8-ea7aead4826e" + "x-envoy-upstream-service-time": "107", + "X-Request-ID": "019426e1-0ac8-45d4-8f06-3400b5f6a2e7" }, "ResponseBody": { "value": [ - { - "dataFeedId": "dd64cd95-f22f-4176-9554-ded0b8db83a1", - "dataFeedName": "testElasticsearchDataFeed2", - "metrics": [ - { - "metricId": "2b11308b-9233-403c-bb9e-6b573cda3c08", - "metricName": "Metric1", - "metricDisplayName": "Metric1", - "metricDescription": "" - }, - { - "metricId": "36fe66a2-b1fe-4930-baa0-09efe7d08a31", - "metricName": "Metric2", - "metricDisplayName": "Metric2", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "Dim1", - "dimensionDisplayName": "Dim1" - }, - { - "dimensionName": "Dim2", - "dimensionDisplayName": "Dim2" - } - ], - "dataStartFrom": "2020-08-09T00:00:00Z", - "dataSourceType": "Elasticsearch", - "timestampColumn": "Timestamp", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "granularityAmount": null, - "allUpIdentification": null, - "needRollup": "NoRollup", - "fillMissingPointType": "SmartFilling", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "rollUpColumns": [], - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": -1, - "viewMode": "Private", - "admins": [ - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com" - ], - "viewers": [], - "creator": "foo@contoso.com", - "status": "Active", - "createdTime": "2020-09-25T17:11:17Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "authHeader": "Sanitized", - "port": "9200", - "query": "select * from adsample where timestamp = @StartTime", - "host": "ad-sample-es.westus2.cloudapp.azure.com" - } - }, { "dataFeedId": "0072a752-1476-4cfa-8cf0-f226995201a0", "dataFeedName": "testElasticsearchDataFeed", @@ -314,131 +243,32 @@ "@nextLink": null } }, - { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds/dd64cd95-f22f-4176-9554-ded0b8db83a1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-51fffffd9ee8f447a7f5486ee37d1c2d-d70af37780c8f747-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", - "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" - ], - "x-api-key": "Sanitized", - "x-ms-client-request-id": "c5eabc84a0aabf5637b850b59f4cc29c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "ee6b4bb4-aad8-4d69-9532-a2669ca75d3f", - "Content-Length": "1494", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:38 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "125", - "X-Request-ID": "ee6b4bb4-aad8-4d69-9532-a2669ca75d3f" - }, - "ResponseBody": { - "dataFeedId": "dd64cd95-f22f-4176-9554-ded0b8db83a1", - "dataFeedName": "testElasticsearchDataFeed2", - "metrics": [ - { - "metricId": "2b11308b-9233-403c-bb9e-6b573cda3c08", - "metricName": "Metric1", - "metricDisplayName": "Metric1", - "metricDescription": "" - }, - { - "metricId": "36fe66a2-b1fe-4930-baa0-09efe7d08a31", - "metricName": "Metric2", - "metricDisplayName": "Metric2", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "Dim1", - "dimensionDisplayName": "Dim1" - }, - { - "dimensionName": "Dim2", - "dimensionDisplayName": "Dim2" - } - ], - "dataStartFrom": "2020-08-09T00:00:00Z", - "dataSourceType": "Elasticsearch", - "timestampColumn": "Timestamp", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "granularityAmount": null, - "allUpIdentification": null, - "needRollup": "NoRollup", - "fillMissingPointType": "SmartFilling", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "rollUpColumns": [], - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": -1, - "viewMode": "Private", - "admins": [ - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com" - ], - "viewers": [], - "creator": "foo@contoso.com", - "status": "Active", - "createdTime": "2020-09-25T17:11:17Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "authHeader": "Sanitized", - "port": "9200", - "query": "select * from adsample where timestamp = @StartTime", - "host": "ad-sample-es.westus2.cloudapp.azure.com" - } - } - }, { "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds/0072a752-1476-4cfa-8cf0-f226995201a0", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-e6510959d94eb44fa686857539987dc9-70ff9f50f509af45-00", + "traceparent": "00-fbc3ee571e0e3d4f890eb452f028240f-0778a26a70d1664f-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "cc247ffc92bd09f46162f267005e8c04", + "x-ms-client-request-id": "d47eaf4b58c50101104081f8e393769a", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "5efeff62-4ce8-474b-98c1-3974a77c6281", + "apim-request-id": "3e4fd564-26cb-4839-a312-5808eb40a958", "Content-Length": "1493", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:38 GMT", + "Date": "Tue, 29 Sep 2020 23:42:24 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "121", - "X-Request-ID": "5efeff62-4ce8-474b-98c1-3974a77c6281" + "x-envoy-upstream-service-time": "123", + "X-Request-ID": "3e4fd564-26cb-4839-a312-5808eb40a958" }, "ResponseBody": { "dataFeedId": "0072a752-1476-4cfa-8cf0-f226995201a0", @@ -518,26 +348,26 @@ "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-28aae8757c762049922fabe991ad2321-e6224e041e366b4a-00", + "traceparent": "00-f3c55601729ce34eafbb2553872afd97-e2e75a65bda2944d-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "d2312980fd124a30934a3f2ec4cb370a", + "x-ms-client-request-id": "ec9eaeda5d63ab33c0858076c563be5c", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "a11653c2-510b-4529-b293-0bf26c97a172", + "apim-request-id": "34d3a28a-ee1b-4f04-9399-aec20b8533a1", "Content-Length": "1453", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:38 GMT", + "Date": "Tue, 29 Sep 2020 23:42:24 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "112", - "X-Request-ID": "a11653c2-510b-4529-b293-0bf26c97a172" + "x-envoy-upstream-service-time": "134", + "X-Request-ID": "34d3a28a-ee1b-4f04-9399-aec20b8533a1" }, "ResponseBody": { "dataFeedId": "4957a2f7-a0f4-4fc0-b8d7-d866c1df0f4c", @@ -617,26 +447,26 @@ "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-62572901099e1b4880869e16bfdb0ecb-613e6970b282ba42-00", + "traceparent": "00-ab114fa54dd0064ba6cacdd61f2c6afc-1145450ed19c474b-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "f93eb512557ff155c8e06348adefbed8", + "x-ms-client-request-id": "40aabc1947b71742934a3c6632b8bc30", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "9036606a-4e25-4dba-a36c-65311075ab01", + "apim-request-id": "302dc425-9629-4c3e-8f98-78c2ed30c73f", "Content-Length": "1429", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:39 GMT", + "Date": "Tue, 29 Sep 2020 23:42:24 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "126", - "X-Request-ID": "9036606a-4e25-4dba-a36c-65311075ab01" + "x-envoy-upstream-service-time": "127", + "X-Request-ID": "302dc425-9629-4c3e-8f98-78c2ed30c73f" }, "ResponseBody": { "dataFeedId": "b9dae651-63bc-4a98-a7c5-d8322b20c962", @@ -714,6 +544,6 @@ "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "66946421" + "RandomSeed": "1775229853" } -} +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeedIngestionProgress.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeedIngestionProgress.json index 0a9c43d1230f3..f60f143e2e9f6 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeedIngestionProgress.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeedIngestionProgress.json @@ -1,35 +1,35 @@ { "Entries": [ { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds/dd64cd95-f22f-4176-9554-ded0b8db83a1/ingestionProgress", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds/0072a752-1476-4cfa-8cf0-f226995201a0/ingestionProgress", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-0708c270b24e52439106d363947ca0ac-fd1e3ce820a63e41-00", + "traceparent": "00-22b0faa4ef739b4b888a63147514a355-259d63ba350ad44d-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200928.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "6c4da4eb9858245efcc6d68609848b86", + "x-ms-client-request-id": "f587932a90ce069a073775be58dc45b9", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "bce1d03c-cfcc-4ec3-a4fe-a3138796164b", + "apim-request-id": "5f9b18e6-4179-4aba-a972-f58aecc82192", "Content-Length": "78", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 28 Sep 2020 16:06:23 GMT", + "Date": "Tue, 29 Sep 2020 23:47:29 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "10387", - "X-Request-ID": "bce1d03c-cfcc-4ec3-a4fe-a3138796164b" + "x-envoy-upstream-service-time": "332", + "X-Request-ID": "5f9b18e6-4179-4aba-a972-f58aecc82192" }, "ResponseBody": { "latestSuccessTimestamp": null, - "latestActiveTimestamp": "2020-09-27T00:00:00Z" + "latestActiveTimestamp": "2020-09-28T00:00:00Z" } } ], @@ -38,6 +38,6 @@ "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "1585802083" + "RandomSeed": "1785591074" } } \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeedIngestionProgressAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeedIngestionProgressAsync.json index e8e344ac7e559..07bf344104742 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeedIngestionProgressAsync.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeedIngestionProgressAsync.json @@ -1,35 +1,35 @@ { "Entries": [ { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds/dd64cd95-f22f-4176-9554-ded0b8db83a1/ingestionProgress", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds/0072a752-1476-4cfa-8cf0-f226995201a0/ingestionProgress", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-a57a5e54103c3d4fb59ae49249f38a7b-49d8dd4cc90a334a-00", + "traceparent": "00-fa97a71856a30b4dbbf5a6866ae4ebd6-2b725ed50739be44-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200928.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "3f42ac7dc0ba2bb3b24e58cf2973c7dd", + "x-ms-client-request-id": "2ac9c9dd878f56e5e0ab8a5616c83457", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "852c9471-448e-493f-9bb1-b7769cd04b49", + "apim-request-id": "18cdb971-e208-4533-be03-a9713e86fc25", "Content-Length": "78", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 28 Sep 2020 16:06:29 GMT", + "Date": "Tue, 29 Sep 2020 23:47:45 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "5324", - "X-Request-ID": "852c9471-448e-493f-9bb1-b7769cd04b49" + "x-envoy-upstream-service-time": "5288", + "X-Request-ID": "18cdb971-e208-4533-be03-a9713e86fc25" }, "ResponseBody": { "latestSuccessTimestamp": null, - "latestActiveTimestamp": "2020-09-27T00:00:00Z" + "latestActiveTimestamp": "2020-09-28T00:00:00Z" } } ], @@ -38,6 +38,6 @@ "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "652838391" + "RandomSeed": "108596429" } } \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeedIngestionStatuses.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeedIngestionStatuses.json index 6eb253d096533..367e5e58918c0 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeedIngestionStatuses.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeedIngestionStatuses.json @@ -7,98 +7,27 @@ "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "d3be678c54a13aae69c353cd19e4adaa", + "x-ms-client-request-id": "40d8c18c811b37195845f01a443ab858", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "29176f4a-54ca-4ed2-972c-54fa6194e138", - "Content-Length": "5901", + "apim-request-id": "da0aadb0-a6b1-4e9f-8d49-7780c1f0f004", + "Content-Length": "4406", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:29 GMT", + "Date": "Tue, 29 Sep 2020 23:42:14 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "97", - "X-Request-ID": "29176f4a-54ca-4ed2-972c-54fa6194e138" + "x-envoy-upstream-service-time": "114", + "X-Request-ID": "da0aadb0-a6b1-4e9f-8d49-7780c1f0f004" }, "ResponseBody": { "value": [ - { - "dataFeedId": "dd64cd95-f22f-4176-9554-ded0b8db83a1", - "dataFeedName": "testElasticsearchDataFeed2", - "metrics": [ - { - "metricId": "2b11308b-9233-403c-bb9e-6b573cda3c08", - "metricName": "Metric1", - "metricDisplayName": "Metric1", - "metricDescription": "" - }, - { - "metricId": "36fe66a2-b1fe-4930-baa0-09efe7d08a31", - "metricName": "Metric2", - "metricDisplayName": "Metric2", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "Dim1", - "dimensionDisplayName": "Dim1" - }, - { - "dimensionName": "Dim2", - "dimensionDisplayName": "Dim2" - } - ], - "dataStartFrom": "2020-08-09T00:00:00Z", - "dataSourceType": "Elasticsearch", - "timestampColumn": "Timestamp", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "granularityAmount": null, - "allUpIdentification": null, - "needRollup": "NoRollup", - "fillMissingPointType": "SmartFilling", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "rollUpColumns": [], - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": -1, - "viewMode": "Private", - "admins": [ - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com" - ], - "viewers": [], - "creator": "foo@contoso.com", - "status": "Active", - "createdTime": "2020-09-25T17:11:17Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "authHeader": "Sanitized", - "port": "9200", - "query": "select * from adsample where timestamp = @StartTime", - "host": "ad-sample-es.westus2.cloudapp.azure.com" - } - }, { "dataFeedId": "0072a752-1476-4cfa-8cf0-f226995201a0", "dataFeedName": "testElasticsearchDataFeed", @@ -315,49 +244,7 @@ } }, { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds/dd64cd95-f22f-4176-9554-ded0b8db83a1/ingestionStatus/query?$top=1", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "85", - "Content-Type": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", - "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" - ], - "x-api-key": "Sanitized", - "x-ms-client-request-id": "6a2014971f582e1568532afb3309acfd", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "startTime": "2015-09-26T00:10:31.1640928Z", - "endTime": "2020-09-26T00:10:31.1640928Z" - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "b66f3c60-bfcf-498b-9698-ac58c29ccca3", - "Content-Length": "294", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:31 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "159", - "X-Request-ID": "b66f3c60-bfcf-498b-9698-ac58c29ccca3" - }, - "ResponseBody": { - "value": [ - { - "timestamp": "2020-09-25T00:00:00Z", - "status": "Failed", - "message": "Cannot fetch data from source. " - } - ], - "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/dataFeeds/dd64cd95-f22f-4176-9554-ded0b8db83a1/ingestionStatus/query?$top=1\u0026$skip=1" - } - }, - { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds/dd64cd95-f22f-4176-9554-ded0b8db83a1/ingestionStatus/query?$top=1\u0026$skip=1", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds/0072a752-1476-4cfa-8cf0-f226995201a0/ingestionStatus/query?$top=1", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -365,41 +252,41 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "d22e3e6b17b2ca1fe2b26010c4bd566e", + "x-ms-client-request-id": "5456473d0c844f2ff25f27d1e149faa9", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "startTime": "2015-09-26T00:10:31.1640928Z", - "endTime": "2020-09-26T00:10:31.1640928Z" + "startTime": "2015-09-29T23:42:15.4913815Z", + "endTime": "2020-09-29T23:42:15.4913815Z" }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "098920ed-d30b-44dd-8ad3-ac84f1d66831", + "apim-request-id": "8b85fe64-f031-42d1-bb0b-0ec3054322b5", "Content-Length": "294", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:31 GMT", + "Date": "Tue, 29 Sep 2020 23:42:15 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "160", - "X-Request-ID": "098920ed-d30b-44dd-8ad3-ac84f1d66831" + "x-envoy-upstream-service-time": "462", + "X-Request-ID": "8b85fe64-f031-42d1-bb0b-0ec3054322b5" }, "ResponseBody": { "value": [ { - "timestamp": "2020-09-24T00:00:00Z", + "timestamp": "2020-09-28T00:00:00Z", "status": "Failed", "message": "Cannot fetch data from source. " } ], - "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/dataFeeds/dd64cd95-f22f-4176-9554-ded0b8db83a1/ingestionStatus/query?$top=1\u0026$skip=2" + "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/dataFeeds/0072a752-1476-4cfa-8cf0-f226995201a0/ingestionStatus/query?$top=1\u0026$skip=1" } }, { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds/dd64cd95-f22f-4176-9554-ded0b8db83a1/ingestionStatus/query?$top=1\u0026$skip=2", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds/0072a752-1476-4cfa-8cf0-f226995201a0/ingestionStatus/query?$top=1\u0026$skip=1", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -407,41 +294,41 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "f3647e0b5fc76c41528f6b4e29b2065f", + "x-ms-client-request-id": "d7d73a62b3366f4b709a566b6ffa9181", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "startTime": "2015-09-26T00:10:31.1640928Z", - "endTime": "2020-09-26T00:10:31.1640928Z" + "startTime": "2015-09-29T23:42:15.4913815Z", + "endTime": "2020-09-29T23:42:15.4913815Z" }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "039162f5-0afd-4f9b-beb2-3dd7f02b6119", + "apim-request-id": "781e86ef-1742-49b4-b17a-9f3c1f5e31d4", "Content-Length": "294", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:31 GMT", + "Date": "Tue, 29 Sep 2020 23:42:15 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "178", - "X-Request-ID": "039162f5-0afd-4f9b-beb2-3dd7f02b6119" + "x-envoy-upstream-service-time": "202", + "X-Request-ID": "781e86ef-1742-49b4-b17a-9f3c1f5e31d4" }, "ResponseBody": { "value": [ { - "timestamp": "2020-09-23T00:00:00Z", + "timestamp": "2020-09-27T00:00:00Z", "status": "Failed", "message": "Cannot fetch data from source. " } ], - "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/dataFeeds/dd64cd95-f22f-4176-9554-ded0b8db83a1/ingestionStatus/query?$top=1\u0026$skip=3" + "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/dataFeeds/0072a752-1476-4cfa-8cf0-f226995201a0/ingestionStatus/query?$top=1\u0026$skip=2" } }, { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds/0072a752-1476-4cfa-8cf0-f226995201a0/ingestionStatus/query?$top=1", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds/0072a752-1476-4cfa-8cf0-f226995201a0/ingestionStatus/query?$top=1\u0026$skip=2", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -449,37 +336,37 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "db625617dbb57ff8f55587a5bf0469aa", + "x-ms-client-request-id": "6f81de4881ca80ec92884dbc5948550f", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "startTime": "2015-09-26T00:10:31.1640928Z", - "endTime": "2020-09-26T00:10:31.1640928Z" + "startTime": "2015-09-29T23:42:15.4913815Z", + "endTime": "2020-09-29T23:42:15.4913815Z" }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "abfbbd3f-9557-4197-bfa4-c7617ff9807c", + "apim-request-id": "8a46d1d8-e79c-4c7c-b5db-9b87bf557ffc", "Content-Length": "294", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:32 GMT", + "Date": "Tue, 29 Sep 2020 23:42:16 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "192", - "X-Request-ID": "abfbbd3f-9557-4197-bfa4-c7617ff9807c" + "x-envoy-upstream-service-time": "221", + "X-Request-ID": "8a46d1d8-e79c-4c7c-b5db-9b87bf557ffc" }, "ResponseBody": { "value": [ { - "timestamp": "2020-09-25T00:00:00Z", + "timestamp": "2020-09-26T00:00:00Z", "status": "Failed", "message": "Cannot fetch data from source. " } ], - "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/dataFeeds/0072a752-1476-4cfa-8cf0-f226995201a0/ingestionStatus/query?$top=1\u0026$skip=1" + "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/dataFeeds/0072a752-1476-4cfa-8cf0-f226995201a0/ingestionStatus/query?$top=1\u0026$skip=3" } }, { @@ -491,32 +378,32 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "b4efbcfcb9a50b36fcc17f22abd0a12f", + "x-ms-client-request-id": "09b7464ae1638922fbe6e3eab5c3dff8", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "startTime": "2015-09-26T00:10:31.1640928Z", - "endTime": "2020-09-26T00:10:31.1640928Z" + "startTime": "2015-09-29T23:42:15.4913815Z", + "endTime": "2020-09-29T23:42:15.4913815Z" }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "ee89184c-7e8f-475c-90ff-acff9535c24a", + "apim-request-id": "ac8ab89f-68c8-4e56-bf7d-6497b0281914", "Content-Length": "294", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:32 GMT", + "Date": "Tue, 29 Sep 2020 23:42:16 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "164", - "X-Request-ID": "ee89184c-7e8f-475c-90ff-acff9535c24a" + "x-envoy-upstream-service-time": "226", + "X-Request-ID": "ac8ab89f-68c8-4e56-bf7d-6497b0281914" }, "ResponseBody": { "value": [ { - "timestamp": "2020-09-25T00:00:00Z", + "timestamp": "2020-09-28T00:00:00Z", "status": "Failed", "message": "Cannot fetch data from source. " } @@ -533,34 +420,34 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "6ef900ab7b5a30b886e4fd71d89bad4e", + "x-ms-client-request-id": "0388a6cd8bc7e0df4d5745ad658e1628", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "startTime": "2015-09-26T00:10:31.1640928Z", - "endTime": "2020-09-26T00:10:31.1640928Z" + "startTime": "2015-09-29T23:42:15.4913815Z", + "endTime": "2020-09-29T23:42:15.4913815Z" }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "6f03ed67-48c1-42fb-b642-bf9348cadba6", + "apim-request-id": "a27c3f79-1a2c-45c2-aad0-73b9ab8ec3d0", "Content-Length": "342", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:32 GMT", + "Date": "Tue, 29 Sep 2020 23:42:16 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "202", - "X-Request-ID": "6f03ed67-48c1-42fb-b642-bf9348cadba6" + "x-envoy-upstream-service-time": "246", + "X-Request-ID": "a27c3f79-1a2c-45c2-aad0-73b9ab8ec3d0" }, "ResponseBody": { "value": [ { - "timestamp": "2020-09-25T00:00:00Z", + "timestamp": "2020-09-28T00:00:00Z", "status": "Failed", - "message": "No valid record pulled from source for current timestamp 2020-09-25 00:00:00.0." + "message": "No valid record pulled from source for current timestamp 2020-09-28 00:00:00.0." } ], "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/dataFeeds/b9dae651-63bc-4a98-a7c5-d8322b20c962/ingestionStatus/query?$top=1\u0026$skip=1" @@ -568,11 +455,11 @@ } ], "Variables": { - "DateTimeOffsetNow": "2020-09-25T19:10:31.1640928-05:00", + "DateTimeOffsetNow": "2020-09-29T18:42:15.4913815-05:00", "METRICSADVISOR_ACCOUNT_NAME": "anuchan-cg-metric-advisor", "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "903490464" + "RandomSeed": "550617388" } -} +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeedIngestionStatusesAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeedIngestionStatusesAsync.json index 2f1db8dca5996..5497981cfda9e 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeedIngestionStatusesAsync.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeedIngestionStatusesAsync.json @@ -7,98 +7,27 @@ "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "6bc36c9c45199f817ac19b3eb77e2ec5", + "x-ms-client-request-id": "cbc13407f4c5d82ea3907173cdaf385c", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "c2285e27-e374-4d72-bc4b-e10b00dd205b", - "Content-Length": "5901", + "apim-request-id": "e0c5ba82-2b46-4574-a4d9-1ce36225e8b0", + "Content-Length": "4406", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:39 GMT", + "Date": "Tue, 29 Sep 2020 23:42:25 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "106", - "X-Request-ID": "c2285e27-e374-4d72-bc4b-e10b00dd205b" + "x-envoy-upstream-service-time": "102", + "X-Request-ID": "e0c5ba82-2b46-4574-a4d9-1ce36225e8b0" }, "ResponseBody": { "value": [ - { - "dataFeedId": "dd64cd95-f22f-4176-9554-ded0b8db83a1", - "dataFeedName": "testElasticsearchDataFeed2", - "metrics": [ - { - "metricId": "2b11308b-9233-403c-bb9e-6b573cda3c08", - "metricName": "Metric1", - "metricDisplayName": "Metric1", - "metricDescription": "" - }, - { - "metricId": "36fe66a2-b1fe-4930-baa0-09efe7d08a31", - "metricName": "Metric2", - "metricDisplayName": "Metric2", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "Dim1", - "dimensionDisplayName": "Dim1" - }, - { - "dimensionName": "Dim2", - "dimensionDisplayName": "Dim2" - } - ], - "dataStartFrom": "2020-08-09T00:00:00Z", - "dataSourceType": "Elasticsearch", - "timestampColumn": "Timestamp", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "granularityAmount": null, - "allUpIdentification": null, - "needRollup": "NoRollup", - "fillMissingPointType": "SmartFilling", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "rollUpColumns": [], - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": -1, - "viewMode": "Private", - "admins": [ - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com" - ], - "viewers": [], - "creator": "foo@contoso.com", - "status": "Active", - "createdTime": "2020-09-25T17:11:17Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "authHeader": "Sanitized", - "port": "9200", - "query": "select * from adsample where timestamp = @StartTime", - "host": "ad-sample-es.westus2.cloudapp.azure.com" - } - }, { "dataFeedId": "0072a752-1476-4cfa-8cf0-f226995201a0", "dataFeedName": "testElasticsearchDataFeed", @@ -315,49 +244,7 @@ } }, { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds/dd64cd95-f22f-4176-9554-ded0b8db83a1/ingestionStatus/query?$top=1", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "85", - "Content-Type": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", - "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" - ], - "x-api-key": "Sanitized", - "x-ms-client-request-id": "9c333274d2d1e123ce3afe99e2b5e648", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "startTime": "2015-09-26T00:10:39.9856616Z", - "endTime": "2020-09-26T00:10:39.9856616Z" - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "38143433-9b54-4207-af81-728517e4f9d0", - "Content-Length": "294", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:39 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "166", - "X-Request-ID": "38143433-9b54-4207-af81-728517e4f9d0" - }, - "ResponseBody": { - "value": [ - { - "timestamp": "2020-09-25T00:00:00Z", - "status": "Failed", - "message": "Cannot fetch data from source. " - } - ], - "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/dataFeeds/dd64cd95-f22f-4176-9554-ded0b8db83a1/ingestionStatus/query?$top=1\u0026$skip=1" - } - }, - { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds/dd64cd95-f22f-4176-9554-ded0b8db83a1/ingestionStatus/query?$top=1\u0026$skip=1", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds/0072a752-1476-4cfa-8cf0-f226995201a0/ingestionStatus/query?$top=1", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -365,41 +252,41 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "889d48010e30e69e4c2f14d792a2850c", + "x-ms-client-request-id": "4f85f6e4a0679b169a0a608b07f53dcc", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "startTime": "2015-09-26T00:10:39.9856616Z", - "endTime": "2020-09-26T00:10:39.9856616Z" + "startTime": "2015-09-29T23:42:25.8943676Z", + "endTime": "2020-09-29T23:42:25.8943676Z" }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "46f5d4d4-8491-4aae-83d5-4883a4b344ff", + "apim-request-id": "d28e357d-5c32-4845-942d-e19758e5367d", "Content-Length": "294", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:39 GMT", + "Date": "Tue, 29 Sep 2020 23:42:25 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "184", - "X-Request-ID": "46f5d4d4-8491-4aae-83d5-4883a4b344ff" + "x-envoy-upstream-service-time": "303", + "X-Request-ID": "d28e357d-5c32-4845-942d-e19758e5367d" }, "ResponseBody": { "value": [ { - "timestamp": "2020-09-24T00:00:00Z", + "timestamp": "2020-09-28T00:00:00Z", "status": "Failed", "message": "Cannot fetch data from source. " } ], - "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/dataFeeds/dd64cd95-f22f-4176-9554-ded0b8db83a1/ingestionStatus/query?$top=1\u0026$skip=2" + "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/dataFeeds/0072a752-1476-4cfa-8cf0-f226995201a0/ingestionStatus/query?$top=1\u0026$skip=1" } }, { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds/dd64cd95-f22f-4176-9554-ded0b8db83a1/ingestionStatus/query?$top=1\u0026$skip=2", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds/0072a752-1476-4cfa-8cf0-f226995201a0/ingestionStatus/query?$top=1\u0026$skip=1", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -407,41 +294,41 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "d88036ef4671c92249e19dde47e8bdc4", + "x-ms-client-request-id": "747eee9f6e5b6f7ed2f8c46f15ba031f", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "startTime": "2015-09-26T00:10:39.9856616Z", - "endTime": "2020-09-26T00:10:39.9856616Z" + "startTime": "2015-09-29T23:42:25.8943676Z", + "endTime": "2020-09-29T23:42:25.8943676Z" }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "63068649-3a40-4e99-9044-b21cf4a3726d", + "apim-request-id": "232b37f7-e6e0-4142-ab50-f5800ef56825", "Content-Length": "294", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:40 GMT", + "Date": "Tue, 29 Sep 2020 23:42:25 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "171", - "X-Request-ID": "63068649-3a40-4e99-9044-b21cf4a3726d" + "x-envoy-upstream-service-time": "248", + "X-Request-ID": "232b37f7-e6e0-4142-ab50-f5800ef56825" }, "ResponseBody": { "value": [ { - "timestamp": "2020-09-23T00:00:00Z", + "timestamp": "2020-09-27T00:00:00Z", "status": "Failed", "message": "Cannot fetch data from source. " } ], - "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/dataFeeds/dd64cd95-f22f-4176-9554-ded0b8db83a1/ingestionStatus/query?$top=1\u0026$skip=3" + "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/dataFeeds/0072a752-1476-4cfa-8cf0-f226995201a0/ingestionStatus/query?$top=1\u0026$skip=2" } }, { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds/0072a752-1476-4cfa-8cf0-f226995201a0/ingestionStatus/query?$top=1", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds/0072a752-1476-4cfa-8cf0-f226995201a0/ingestionStatus/query?$top=1\u0026$skip=2", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -449,37 +336,37 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "6f3c53dba5e06694934c50a2bd4b4e2b", + "x-ms-client-request-id": "6493b31a15c867111d2530bb94a2d1ae", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "startTime": "2015-09-26T00:10:39.9856616Z", - "endTime": "2020-09-26T00:10:39.9856616Z" + "startTime": "2015-09-29T23:42:25.8943676Z", + "endTime": "2020-09-29T23:42:25.8943676Z" }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "4e6c879b-177f-47de-a4e0-0fb3c8063915", + "apim-request-id": "40385037-3389-4b2f-aa1c-2fb441a2fe1e", "Content-Length": "294", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:40 GMT", + "Date": "Tue, 29 Sep 2020 23:42:26 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "180", - "X-Request-ID": "4e6c879b-177f-47de-a4e0-0fb3c8063915" + "x-envoy-upstream-service-time": "205", + "X-Request-ID": "40385037-3389-4b2f-aa1c-2fb441a2fe1e" }, "ResponseBody": { "value": [ { - "timestamp": "2020-09-25T00:00:00Z", + "timestamp": "2020-09-26T00:00:00Z", "status": "Failed", "message": "Cannot fetch data from source. " } ], - "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/dataFeeds/0072a752-1476-4cfa-8cf0-f226995201a0/ingestionStatus/query?$top=1\u0026$skip=1" + "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/dataFeeds/0072a752-1476-4cfa-8cf0-f226995201a0/ingestionStatus/query?$top=1\u0026$skip=3" } }, { @@ -491,32 +378,32 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "aba9f2b40d34bad625d43f4e71bf9e63", + "x-ms-client-request-id": "ded3a552c331760178157c6fdba786df", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "startTime": "2015-09-26T00:10:39.9856616Z", - "endTime": "2020-09-26T00:10:39.9856616Z" + "startTime": "2015-09-29T23:42:25.8943676Z", + "endTime": "2020-09-29T23:42:25.8943676Z" }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "55a99b9a-8e18-499b-b784-3f2851604376", + "apim-request-id": "9b8fdc51-7c43-4aed-89fc-4495b187fcc4", "Content-Length": "294", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:40 GMT", + "Date": "Tue, 29 Sep 2020 23:42:26 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "161", - "X-Request-ID": "55a99b9a-8e18-499b-b784-3f2851604376" + "x-envoy-upstream-service-time": "204", + "X-Request-ID": "9b8fdc51-7c43-4aed-89fc-4495b187fcc4" }, "ResponseBody": { "value": [ { - "timestamp": "2020-09-25T00:00:00Z", + "timestamp": "2020-09-28T00:00:00Z", "status": "Failed", "message": "Cannot fetch data from source. " } @@ -533,34 +420,34 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "3efc4f721665492ba11a4424f6800bfd", + "x-ms-client-request-id": "53714106d9618a04dd1656353dc2db30", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "startTime": "2015-09-26T00:10:39.9856616Z", - "endTime": "2020-09-26T00:10:39.9856616Z" + "startTime": "2015-09-29T23:42:25.8943676Z", + "endTime": "2020-09-29T23:42:25.8943676Z" }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "0393ada0-264f-448f-915a-af19de7b5e12", + "apim-request-id": "12e56550-f7d7-4f29-9e19-5bc11f38095e", "Content-Length": "342", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:41 GMT", + "Date": "Tue, 29 Sep 2020 23:42:27 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "169", - "X-Request-ID": "0393ada0-264f-448f-915a-af19de7b5e12" + "x-envoy-upstream-service-time": "232", + "X-Request-ID": "12e56550-f7d7-4f29-9e19-5bc11f38095e" }, "ResponseBody": { "value": [ { - "timestamp": "2020-09-25T00:00:00Z", + "timestamp": "2020-09-28T00:00:00Z", "status": "Failed", - "message": "No valid record pulled from source for current timestamp 2020-09-25 00:00:00.0." + "message": "No valid record pulled from source for current timestamp 2020-09-28 00:00:00.0." } ], "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/dataFeeds/b9dae651-63bc-4a98-a7c5-d8322b20c962/ingestionStatus/query?$top=1\u0026$skip=1" @@ -568,11 +455,11 @@ } ], "Variables": { - "DateTimeOffsetNow": "2020-09-25T19:10:39.9856616-05:00", + "DateTimeOffsetNow": "2020-09-29T18:42:25.8943676-05:00", "METRICSADVISOR_ACCOUNT_NAME": "anuchan-cg-metric-advisor", "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "2106815534" + "RandomSeed": "872014768" } -} +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeeds.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeeds.json index f16be763cd549..497ccd794951e 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeeds.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeeds.json @@ -7,98 +7,27 @@ "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "88c77a1cdb5b6e9bbb50deec36305717", + "x-ms-client-request-id": "781d81322a1b1d4765665b0831f8bd85", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "02010b9b-1e46-4fa5-85f6-92d8917ade0c", - "Content-Length": "3125", + "apim-request-id": "2181806c-24f3-4e7d-abda-a28235260eef", + "Content-Length": "3084", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:33 GMT", + "Date": "Tue, 29 Sep 2020 23:42:17 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "110", - "X-Request-ID": "02010b9b-1e46-4fa5-85f6-92d8917ade0c" + "x-envoy-upstream-service-time": "105", + "X-Request-ID": "2181806c-24f3-4e7d-abda-a28235260eef" }, "ResponseBody": { "value": [ - { - "dataFeedId": "dd64cd95-f22f-4176-9554-ded0b8db83a1", - "dataFeedName": "testElasticsearchDataFeed2", - "metrics": [ - { - "metricId": "2b11308b-9233-403c-bb9e-6b573cda3c08", - "metricName": "Metric1", - "metricDisplayName": "Metric1", - "metricDescription": "" - }, - { - "metricId": "36fe66a2-b1fe-4930-baa0-09efe7d08a31", - "metricName": "Metric2", - "metricDisplayName": "Metric2", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "Dim1", - "dimensionDisplayName": "Dim1" - }, - { - "dimensionName": "Dim2", - "dimensionDisplayName": "Dim2" - } - ], - "dataStartFrom": "2020-08-09T00:00:00Z", - "dataSourceType": "Elasticsearch", - "timestampColumn": "Timestamp", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "granularityAmount": null, - "allUpIdentification": null, - "needRollup": "NoRollup", - "fillMissingPointType": "SmartFilling", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "rollUpColumns": [], - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": -1, - "viewMode": "Private", - "admins": [ - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com" - ], - "viewers": [], - "creator": "foo@contoso.com", - "status": "Active", - "createdTime": "2020-09-25T17:11:17Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "authHeader": "Sanitized", - "port": "9200", - "query": "select * from adsample where timestamp = @StartTime", - "host": "ad-sample-es.westus2.cloudapp.azure.com" - } - }, { "dataFeedId": "0072a752-1476-4cfa-8cf0-f226995201a0", "dataFeedName": "testElasticsearchDataFeed", @@ -169,122 +98,19 @@ "query": "select * from adsample where timestamp = @StartTime", "host": "ad-sample-es.westus2.cloudapp.azure.com" } - } - ], - "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/dataFeeds?$top=2\u0026$skip=2" - } - }, - { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds?$top=2\u0026$skip=2", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", - "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" - ], - "x-api-key": "Sanitized", - "x-ms-client-request-id": "e74c31713c0004e5d361dac0f124df42", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "2aa49041-778e-4c36-945c-c14fd684ab4a", - "Content-Length": "3020", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:33 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "105", - "X-Request-ID": "2aa49041-778e-4c36-945c-c14fd684ab4a" - }, - "ResponseBody": { - "value": [ - { - "dataFeedId": "dd64cd95-f22f-4176-9554-ded0b8db83a1", - "dataFeedName": "testElasticsearchDataFeed2", - "metrics": [ - { - "metricId": "2b11308b-9233-403c-bb9e-6b573cda3c08", - "metricName": "Metric1", - "metricDisplayName": "Metric1", - "metricDescription": "" - }, - { - "metricId": "36fe66a2-b1fe-4930-baa0-09efe7d08a31", - "metricName": "Metric2", - "metricDisplayName": "Metric2", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "Dim1", - "dimensionDisplayName": "Dim1" - }, - { - "dimensionName": "Dim2", - "dimensionDisplayName": "Dim2" - } - ], - "dataStartFrom": "2020-08-09T00:00:00Z", - "dataSourceType": "Elasticsearch", - "timestampColumn": "Timestamp", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "granularityAmount": null, - "allUpIdentification": null, - "needRollup": "NoRollup", - "fillMissingPointType": "SmartFilling", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "rollUpColumns": [], - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": -1, - "viewMode": "Private", - "admins": [ - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com" - ], - "viewers": [], - "creator": "foo@contoso.com", - "status": "Active", - "createdTime": "2020-09-25T17:11:17Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "authHeader": "Sanitized", - "port": "9200", - "query": "select * from adsample where timestamp = @StartTime", - "host": "ad-sample-es.westus2.cloudapp.azure.com" - } }, { - "dataFeedId": "0072a752-1476-4cfa-8cf0-f226995201a0", - "dataFeedName": "testElasticsearchDataFeed", + "dataFeedId": "4957a2f7-a0f4-4fc0-b8d7-d866c1df0f4c", + "dataFeedName": "testDataFeed1", "metrics": [ { - "metricId": "04f6e969-2302-412e-98b2-8c41e3a0e22e", + "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", "metricName": "Metric1", "metricDisplayName": "Metric1", "metricDescription": "" }, { - "metricId": "4e5ea50b-d983-4d91-bc00-f9630941fd2d", + "metricId": "6b593f73-345c-40eb-a15c-7ec1fc73b028", "metricName": "Metric2", "metricDisplayName": "Metric2", "metricDescription": "" @@ -301,7 +127,7 @@ } ], "dataStartFrom": "2020-08-09T00:00:00Z", - "dataSourceType": "Elasticsearch", + "dataSourceType": "AzureBlob", "timestampColumn": "Timestamp", "startOffsetInSeconds": 0, "maxQueryPerMinute": 30.0, @@ -334,14 +160,14 @@ "viewers": [], "creator": "foo@contoso.com", "status": "Active", - "createdTime": "2020-09-25T00:58:52Z", + "createdTime": "2020-09-12T00:43:30Z", "isAdmin": true, "actionLinkTemplate": "", "dataSourceParameter": { - "authHeader": "Sanitized", - "port": "9200", - "query": "select * from adsample where timestamp = @StartTime", - "host": "ad-sample-es.westus2.cloudapp.azure.com" + "container": "adsample", + "connectionString": "Sanitized", + "blobTemplate": "%Y/%m/%d/%h/JsonFormatV2.json", + "jsonFormatVersion": "V2" } } ], @@ -355,98 +181,27 @@ "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "e74c31713c0004e5d361dac0f124df42", + "x-ms-client-request-id": "7a8d5f9479b15ee06c2173115ba32936", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "2aa49041-778e-4c36-945c-c14fd684ab4a", - "Content-Length": "3020", + "apim-request-id": "9bc7fe6a-7902-4679-a603-53aa1a2b796e", + "Content-Length": "1458", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:33 GMT", + "Date": "Tue, 29 Sep 2020 23:42:17 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "105", - "X-Request-ID": "2aa49041-778e-4c36-945c-c14fd684ab4a" + "x-envoy-upstream-service-time": "101", + "X-Request-ID": "9bc7fe6a-7902-4679-a603-53aa1a2b796e" }, "ResponseBody": { "value": [ - { - "dataFeedId": "4957a2f7-a0f4-4fc0-b8d7-d866c1df0f4c", - "dataFeedName": "testDataFeed1", - "metrics": [ - { - "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", - "metricName": "Metric1", - "metricDisplayName": "Metric1", - "metricDescription": "" - }, - { - "metricId": "6b593f73-345c-40eb-a15c-7ec1fc73b028", - "metricName": "Metric2", - "metricDisplayName": "Metric2", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "Dim1", - "dimensionDisplayName": "Dim1" - }, - { - "dimensionName": "Dim2", - "dimensionDisplayName": "Dim2" - } - ], - "dataStartFrom": "2020-08-09T00:00:00Z", - "dataSourceType": "AzureBlob", - "timestampColumn": "Timestamp", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "granularityAmount": null, - "allUpIdentification": null, - "needRollup": "NoRollup", - "fillMissingPointType": "SmartFilling", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "rollUpColumns": [], - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": -1, - "viewMode": "Private", - "admins": [ - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com" - ], - "viewers": [], - "creator": "foo@contoso.com", - "status": "Active", - "createdTime": "2020-09-12T00:43:30Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "container": "adsample", - "connectionString": "Sanitized", - "blobTemplate": "%Y/%m/%d/%h/JsonFormatV2.json", - "jsonFormatVersion": "V2" - } - }, { "dataFeedId": "b9dae651-63bc-4a98-a7c5-d8322b20c962", "dataFeedName": "azsqlDatafeed", @@ -517,37 +272,6 @@ } } ], - "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/dataFeeds?$top=2\u0026$skip=4" - } - }, - { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds?$top=2\u0026$skip=4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", - "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" - ], - "x-api-key": "Sanitized", - "x-ms-client-request-id": "79966ebcb82ea6e07b8648ea1faf528f", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "eeb86a8a-a0ef-4faa-ba4e-308e5aa04f65", - "Content-Length": "29", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:33 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "74", - "X-Request-ID": "eeb86a8a-a0ef-4faa-ba4e-308e5aa04f65" - }, - "ResponseBody": { - "value": [], "@nextLink": null } } @@ -557,6 +281,6 @@ "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "137167150" + "RandomSeed": "1993286529" } -} +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeedsAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeedsAsync.json index 0469f2024aab9..0e006fd7e7bba 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeedsAsync.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetDataFeedsAsync.json @@ -7,98 +7,27 @@ "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "c0bfc0365ed282a8c5b13851eb5a11e2", + "x-ms-client-request-id": "b1965c24d46f51a97b6523ce07df5d5f", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "4be21b57-1c7c-4fab-851b-5fade1419002", - "Content-Length": "3125", + "apim-request-id": "e46f7a77-6c14-4837-91ca-cbd6050d777c", + "Content-Length": "3084", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:41 GMT", + "Date": "Tue, 29 Sep 2020 23:42:27 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "116", - "X-Request-ID": "4be21b57-1c7c-4fab-851b-5fade1419002" + "x-envoy-upstream-service-time": "168", + "X-Request-ID": "e46f7a77-6c14-4837-91ca-cbd6050d777c" }, "ResponseBody": { "value": [ - { - "dataFeedId": "dd64cd95-f22f-4176-9554-ded0b8db83a1", - "dataFeedName": "testElasticsearchDataFeed2", - "metrics": [ - { - "metricId": "2b11308b-9233-403c-bb9e-6b573cda3c08", - "metricName": "Metric1", - "metricDisplayName": "Metric1", - "metricDescription": "" - }, - { - "metricId": "36fe66a2-b1fe-4930-baa0-09efe7d08a31", - "metricName": "Metric2", - "metricDisplayName": "Metric2", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "Dim1", - "dimensionDisplayName": "Dim1" - }, - { - "dimensionName": "Dim2", - "dimensionDisplayName": "Dim2" - } - ], - "dataStartFrom": "2020-08-09T00:00:00Z", - "dataSourceType": "Elasticsearch", - "timestampColumn": "Timestamp", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "granularityAmount": null, - "allUpIdentification": null, - "needRollup": "NoRollup", - "fillMissingPointType": "SmartFilling", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "rollUpColumns": [], - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": -1, - "viewMode": "Private", - "admins": [ - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com" - ], - "viewers": [], - "creator": "foo@contoso.com", - "status": "Active", - "createdTime": "2020-09-25T17:11:17Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "authHeader": "Sanitized", - "port": "9200", - "query": "select * from adsample where timestamp = @StartTime", - "host": "ad-sample-es.westus2.cloudapp.azure.com" - } - }, { "dataFeedId": "0072a752-1476-4cfa-8cf0-f226995201a0", "dataFeedName": "testElasticsearchDataFeed", @@ -169,122 +98,19 @@ "query": "select * from adsample where timestamp = @StartTime", "host": "ad-sample-es.westus2.cloudapp.azure.com" } - } - ], - "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/dataFeeds?$top=2\u0026$skip=2" - } - }, - { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds?$top=2\u0026$skip=2", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", - "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" - ], - "x-api-key": "Sanitized", - "x-ms-client-request-id": "516034d0e6e3aa86cb95da896d97e5a0", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d139629b-17dd-4a3f-848b-853838889e0c", - "Content-Length": "3020", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:41 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "123", - "X-Request-ID": "d139629b-17dd-4a3f-848b-853838889e0c" - }, - "ResponseBody": { - "value": [ - { - "dataFeedId": "dd64cd95-f22f-4176-9554-ded0b8db83a1", - "dataFeedName": "testElasticsearchDataFeed2", - "metrics": [ - { - "metricId": "2b11308b-9233-403c-bb9e-6b573cda3c08", - "metricName": "Metric1", - "metricDisplayName": "Metric1", - "metricDescription": "" - }, - { - "metricId": "36fe66a2-b1fe-4930-baa0-09efe7d08a31", - "metricName": "Metric2", - "metricDisplayName": "Metric2", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "Dim1", - "dimensionDisplayName": "Dim1" - }, - { - "dimensionName": "Dim2", - "dimensionDisplayName": "Dim2" - } - ], - "dataStartFrom": "2020-08-09T00:00:00Z", - "dataSourceType": "Elasticsearch", - "timestampColumn": "Timestamp", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "granularityAmount": null, - "allUpIdentification": null, - "needRollup": "NoRollup", - "fillMissingPointType": "SmartFilling", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "rollUpColumns": [], - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": -1, - "viewMode": "Private", - "admins": [ - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com" - ], - "viewers": [], - "creator": "foo@contoso.com", - "status": "Active", - "createdTime": "2020-09-25T17:11:17Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "authHeader": "Sanitized", - "port": "9200", - "query": "select * from adsample where timestamp = @StartTime", - "host": "ad-sample-es.westus2.cloudapp.azure.com" - } }, { - "dataFeedId": "0072a752-1476-4cfa-8cf0-f226995201a0", - "dataFeedName": "testElasticsearchDataFeed", + "dataFeedId": "4957a2f7-a0f4-4fc0-b8d7-d866c1df0f4c", + "dataFeedName": "testDataFeed1", "metrics": [ { - "metricId": "04f6e969-2302-412e-98b2-8c41e3a0e22e", + "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", "metricName": "Metric1", "metricDisplayName": "Metric1", "metricDescription": "" }, { - "metricId": "4e5ea50b-d983-4d91-bc00-f9630941fd2d", + "metricId": "6b593f73-345c-40eb-a15c-7ec1fc73b028", "metricName": "Metric2", "metricDisplayName": "Metric2", "metricDescription": "" @@ -301,7 +127,7 @@ } ], "dataStartFrom": "2020-08-09T00:00:00Z", - "dataSourceType": "Elasticsearch", + "dataSourceType": "AzureBlob", "timestampColumn": "Timestamp", "startOffsetInSeconds": 0, "maxQueryPerMinute": 30.0, @@ -334,14 +160,14 @@ "viewers": [], "creator": "foo@contoso.com", "status": "Active", - "createdTime": "2020-09-25T00:58:52Z", + "createdTime": "2020-09-12T00:43:30Z", "isAdmin": true, "actionLinkTemplate": "", "dataSourceParameter": { - "authHeader": "Sanitized", - "port": "9200", - "query": "select * from adsample where timestamp = @StartTime", - "host": "ad-sample-es.westus2.cloudapp.azure.com" + "container": "adsample", + "connectionString": "Sanitized", + "blobTemplate": "%Y/%m/%d/%h/JsonFormatV2.json", + "jsonFormatVersion": "V2" } } ], @@ -355,98 +181,27 @@ "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "516034d0e6e3aa86cb95da896d97e5a0", + "x-ms-client-request-id": "bc46268155d938f30e5de6e8a5f48a8f", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "d139629b-17dd-4a3f-848b-853838889e0c", - "Content-Length": "3020", + "apim-request-id": "81977ddb-0ac1-4e6e-b3b5-653ee54bf1a1", + "Content-Length": "1458", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:41 GMT", + "Date": "Tue, 29 Sep 2020 23:42:27 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "123", - "X-Request-ID": "d139629b-17dd-4a3f-848b-853838889e0c" + "x-envoy-upstream-service-time": "99", + "X-Request-ID": "81977ddb-0ac1-4e6e-b3b5-653ee54bf1a1" }, "ResponseBody": { "value": [ - { - "dataFeedId": "4957a2f7-a0f4-4fc0-b8d7-d866c1df0f4c", - "dataFeedName": "testDataFeed1", - "metrics": [ - { - "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", - "metricName": "Metric1", - "metricDisplayName": "Metric1", - "metricDescription": "" - }, - { - "metricId": "6b593f73-345c-40eb-a15c-7ec1fc73b028", - "metricName": "Metric2", - "metricDisplayName": "Metric2", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "Dim1", - "dimensionDisplayName": "Dim1" - }, - { - "dimensionName": "Dim2", - "dimensionDisplayName": "Dim2" - } - ], - "dataStartFrom": "2020-08-09T00:00:00Z", - "dataSourceType": "AzureBlob", - "timestampColumn": "Timestamp", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "granularityAmount": null, - "allUpIdentification": null, - "needRollup": "NoRollup", - "fillMissingPointType": "SmartFilling", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "rollUpColumns": [], - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": -1, - "viewMode": "Private", - "admins": [ - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com" - ], - "viewers": [], - "creator": "foo@contoso.com", - "status": "Active", - "createdTime": "2020-09-12T00:43:30Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "container": "adsample", - "connectionString": "Sanitized", - "blobTemplate": "%Y/%m/%d/%h/JsonFormatV2.json", - "jsonFormatVersion": "V2" - } - }, { "dataFeedId": "b9dae651-63bc-4a98-a7c5-d8322b20c962", "dataFeedName": "azsqlDatafeed", @@ -517,37 +272,6 @@ } } ], - "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/dataFeeds?$top=2\u0026$skip=4" - } - }, - { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds?$top=2\u0026$skip=4", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", - "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" - ], - "x-api-key": "Sanitized", - "x-ms-client-request-id": "4bc34dd5ea43b96802b937a6d15ad554", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "ca3e975d-54a1-400a-ba28-572ee97e1c16", - "Content-Length": "29", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:41 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "71", - "X-Request-ID": "ca3e975d-54a1-400a-ba28-572ee97e1c16" - }, - "ResponseBody": { - "value": [], "@nextLink": null } } @@ -557,6 +281,6 @@ "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "1745502526" + "RandomSeed": "1479016253" } -} +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetMetricAnomalyDetectionConfigurations.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetMetricAnomalyDetectionConfigurations.json index 7f2e720765a9b..6487e46aca7f8 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetMetricAnomalyDetectionConfigurations.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetMetricAnomalyDetectionConfigurations.json @@ -6,26 +6,26 @@ "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-3ca6cd044313734cbcb44398eee1fd9a-cc8636a953862d4b-00", + "traceparent": "00-d33f17e1dde50f48970b579460b5e1f7-32a01b263970e849-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200928.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "054fa8e1f68ed8011ba0067b8a963988", + "x-ms-client-request-id": "236f3eee633e814b7b3ebca2aeef3a6c", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "550155df-9fc8-46f9-ba48-22bdda015d2d", + "apim-request-id": "a9f76acf-a89c-4105-8f35-de2e41aaf87e", "Content-Length": "2925", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 28 Sep 2020 19:19:01 GMT", + "Date": "Tue, 29 Sep 2020 23:42:17 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "216", - "X-Request-ID": "550155df-9fc8-46f9-ba48-22bdda015d2d" + "x-envoy-upstream-service-time": "143", + "X-Request-ID": "a9f76acf-a89c-4105-8f35-de2e41aaf87e" }, "ResponseBody": { "value": [ @@ -202,6 +202,6 @@ "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "1176024278" + "RandomSeed": "938003637" } } \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetMetricAnomalyDetectionConfigurationsAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetMetricAnomalyDetectionConfigurationsAsync.json index 92f83fe643995..fe4d3994d2fea 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetMetricAnomalyDetectionConfigurationsAsync.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/GetMetricAnomalyDetectionConfigurationsAsync.json @@ -6,26 +6,26 @@ "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-2435840a60101b4d9a3e03e164ce70f7-82b3a18cba54d64e-00", + "traceparent": "00-c5b735b50806a3479143b4ec647b98de-16dd45ecdb2a0e4c-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200928.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "af7ea8aac15955d8c02009fff1e04253", + "x-ms-client-request-id": "8e37856d40046a04b3309d8b08638ac4", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "03028331-53bc-4faa-aee2-0492be6c04d2", + "apim-request-id": "bdd28843-1edc-4d03-81e5-02a912527572", "Content-Length": "2925", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 28 Sep 2020 19:19:06 GMT", + "Date": "Tue, 29 Sep 2020 23:42:27 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "5249", - "X-Request-ID": "03028331-53bc-4faa-aee2-0492be6c04d2" + "x-envoy-upstream-service-time": "104", + "X-Request-ID": "bdd28843-1edc-4d03-81e5-02a912527572" }, "ResponseBody": { "value": [ @@ -202,6 +202,6 @@ "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "1219315523" + "RandomSeed": "88212133" } } \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/HookOperations.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/HookOperations.json index 5c0ca86312deb..df274e8a87084 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/HookOperations.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/HookOperations.json @@ -8,13 +8,13 @@ "Content-Length": "93", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-00657123ebfba2449baadb2f4d5ff7e4-54995224dd372f40-00", + "traceparent": "00-8dbe73b4b26ad94eb52889095583777f-001883ea12925248-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200928.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "ef13a550828d349ce3cdf78f20e00f2b", + "x-ms-client-request-id": "f7ef46af6db0696fb7235603c50cf19b", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -24,51 +24,51 @@ ] }, "hookType": "Email", - "hookName": "testXPUZpF34" + "hookName": "testhLRoiLqc" }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "b66976e5-2386-4e88-b334-8e5da71cad9a", + "apim-request-id": "66bd7404-e7fe-451c-b062-8fdbe022d521", "Content-Length": "0", - "Date": "Mon, 28 Sep 2020 15:00:02 GMT", - "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/039d4fc2-c214-4975-83d6-fa4e42ec2b7c", + "Date": "Tue, 29 Sep 2020 23:42:18 GMT", + "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/b807a5e4-6199-4e8d-8980-62e07e2cd8fa", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "431", - "X-Request-ID": "b66976e5-2386-4e88-b334-8e5da71cad9a" + "x-envoy-upstream-service-time": "305", + "X-Request-ID": "66bd7404-e7fe-451c-b062-8fdbe022d521" }, "ResponseBody": [] }, { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/039d4fc2-c214-4975-83d6-fa4e42ec2b7c", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/b807a5e4-6199-4e8d-8980-62e07e2cd8fa", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-1413155649eb4e4a895e093d6686acc2-8f2c0aa1aaf0d547-00", + "traceparent": "00-bfc638b44ce1344fa2afb59529e596fc-52f2553bcd09c442-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200928.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "fdc49839ec881311a3d661d5a4e43a58", + "x-ms-client-request-id": "d85b26071e87ba11c913a7a893d47e1e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "a63dee27-4d18-476a-92c9-a2ca3caf5eb7", + "apim-request-id": "0497b94c-9b73-4e3e-936b-96e01d497007", "Content-Length": "234", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 28 Sep 2020 15:00:02 GMT", + "Date": "Tue, 29 Sep 2020 23:42:18 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "163", - "X-Request-ID": "a63dee27-4d18-476a-92c9-a2ca3caf5eb7" + "x-envoy-upstream-service-time": "137", + "X-Request-ID": "0497b94c-9b73-4e3e-936b-96e01d497007" }, "ResponseBody": { - "hookId": "039d4fc2-c214-4975-83d6-fa4e42ec2b7c", - "hookName": "testXPUZpF34", + "hookId": "b807a5e4-6199-4e8d-8980-62e07e2cd8fa", + "hookName": "testhLRoiLqc", "hookType": "Email", "externalLink": "", "description": "", @@ -85,36 +85,36 @@ } }, { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks?hookName=testXPUZpF34", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks?hookName=testhLRoiLqc", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200928.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "525ba997b8c7f6a7d5cc8e869980d609", + "x-ms-client-request-id": "ad619cc3b357894fac382dfd735cd7d2", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "b1eca170-41d9-4684-811c-2822dfed6b9d", + "apim-request-id": "e9050c6a-dd6a-48c4-8d02-178804ae6b18", "Content-Length": "263", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 28 Sep 2020 15:00:02 GMT", + "Date": "Tue, 29 Sep 2020 23:42:18 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "105", - "X-Request-ID": "b1eca170-41d9-4684-811c-2822dfed6b9d" + "x-envoy-upstream-service-time": "82", + "X-Request-ID": "e9050c6a-dd6a-48c4-8d02-178804ae6b18" }, "ResponseBody": { "value": [ { - "hookId": "039d4fc2-c214-4975-83d6-fa4e42ec2b7c", - "hookName": "testXPUZpF34", + "hookId": "b807a5e4-6199-4e8d-8980-62e07e2cd8fa", + "hookName": "testhLRoiLqc", "hookType": "Email", "externalLink": "", "description": "", @@ -134,30 +134,30 @@ } }, { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/039d4fc2-c214-4975-83d6-fa4e42ec2b7c", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/b807a5e4-6199-4e8d-8980-62e07e2cd8fa", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-a12266361e0ecd45b88cf21d2b371991-d907ac0ea101394a-00", + "traceparent": "00-fcfecb01838e8549bb17e4f5f013c3d0-b2c26723634d3148-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200928.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "09002b3b7386631b93004cb720c78ffe", + "x-ms-client-request-id": "add47c3ec2d690bf35352d9cc5c7d5e3", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "69e3c663-9a26-476e-afb8-bb62c1283da6", + "apim-request-id": "c6a705e6-9b57-4866-b1f0-b53425936c5c", "Content-Length": "0", - "Date": "Mon, 28 Sep 2020 15:00:03 GMT", + "Date": "Tue, 29 Sep 2020 23:42:19 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "182", - "X-Request-ID": "69e3c663-9a26-476e-afb8-bb62c1283da6" + "x-envoy-upstream-service-time": "178", + "X-Request-ID": "c6a705e6-9b57-4866-b1f0-b53425936c5c" }, "ResponseBody": [] } @@ -167,6 +167,6 @@ "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "653416426" + "RandomSeed": "183701320" } -} +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/HookOperationsAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/HookOperationsAsync.json index 53ad29bc65e9f..016b97fe00ed0 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/HookOperationsAsync.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/HookOperationsAsync.json @@ -8,13 +8,13 @@ "Content-Length": "93", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-68567ed38d2da54e914d0aa9079abc7f-e7d70cb5ca82f84f-00", + "traceparent": "00-050e9ad0f38fdd46931f5a773bdf9d84-a8e45c65cf25664e-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200928.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "e4a61c7873efb11d0194cce3f825718a", + "x-ms-client-request-id": "94fce033505ee7f017b5fad010ac520d", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -24,51 +24,51 @@ ] }, "hookType": "Email", - "hookName": "test2vKEPCBK" + "hookName": "testgS4stRMv" }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "da559e7a-af4a-416f-93d0-a39beefbe2ac", + "apim-request-id": "89328fa3-e467-4575-b8f6-6c6aad3d1da3", "Content-Length": "0", - "Date": "Mon, 28 Sep 2020 15:00:03 GMT", - "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/bd7176fc-49e2-4e1c-8db2-4c679c570a6e", + "Date": "Tue, 29 Sep 2020 23:42:28 GMT", + "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/fa8c01dc-d5aa-46f3-9f4a-693495211366", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "294", - "X-Request-ID": "da559e7a-af4a-416f-93d0-a39beefbe2ac" + "x-envoy-upstream-service-time": "342", + "X-Request-ID": "89328fa3-e467-4575-b8f6-6c6aad3d1da3" }, "ResponseBody": [] }, { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/bd7176fc-49e2-4e1c-8db2-4c679c570a6e", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/fa8c01dc-d5aa-46f3-9f4a-693495211366", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-b258d58df1542c4ab9452fec0867a73b-d33314ca940a3c46-00", + "traceparent": "00-b0233706eaa307429693e3269ada041b-6809dc14485e9e42-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200928.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "60e8a950ad88b746621693e66872fce5", + "x-ms-client-request-id": "1df78668895c28929688f9156c34cfc9", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "fcc335af-b180-40ef-8d23-754e2f58a901", + "apim-request-id": "5728349b-f938-45d8-b0e2-02f802ab9d92", "Content-Length": "234", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 28 Sep 2020 15:00:04 GMT", + "Date": "Tue, 29 Sep 2020 23:42:28 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "171", - "X-Request-ID": "fcc335af-b180-40ef-8d23-754e2f58a901" + "x-envoy-upstream-service-time": "121", + "X-Request-ID": "5728349b-f938-45d8-b0e2-02f802ab9d92" }, "ResponseBody": { - "hookId": "bd7176fc-49e2-4e1c-8db2-4c679c570a6e", - "hookName": "test2vKEPCBK", + "hookId": "fa8c01dc-d5aa-46f3-9f4a-693495211366", + "hookName": "testgS4stRMv", "hookType": "Email", "externalLink": "", "description": "", @@ -85,36 +85,36 @@ } }, { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks?hookName=test2vKEPCBK", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks?hookName=testgS4stRMv", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200928.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "aa7e42ae44caf10b7fc492870b116966", + "x-ms-client-request-id": "2ac8b2a2fc894c4b4bad6bc83b97056e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "1db591e5-9794-4c8f-9faa-9c1689e4fcfc", + "apim-request-id": "0a3d02d5-0bee-41dd-aeaa-374efc5313a9", "Content-Length": "263", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 28 Sep 2020 15:00:04 GMT", + "Date": "Tue, 29 Sep 2020 23:42:28 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "100", - "X-Request-ID": "1db591e5-9794-4c8f-9faa-9c1689e4fcfc" + "x-envoy-upstream-service-time": "94", + "X-Request-ID": "0a3d02d5-0bee-41dd-aeaa-374efc5313a9" }, "ResponseBody": { "value": [ { - "hookId": "bd7176fc-49e2-4e1c-8db2-4c679c570a6e", - "hookName": "test2vKEPCBK", + "hookId": "fa8c01dc-d5aa-46f3-9f4a-693495211366", + "hookName": "testgS4stRMv", "hookType": "Email", "externalLink": "", "description": "", @@ -134,30 +134,30 @@ } }, { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/bd7176fc-49e2-4e1c-8db2-4c679c570a6e", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/fa8c01dc-d5aa-46f3-9f4a-693495211366", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-5340c96c3e7c88439478e267cc2861ea-527e875028f24448-00", + "traceparent": "00-80e7e375a04fe044a06f1f556c32d3a7-7b232aa04c9e1346-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200928.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "35e8c7cfd168ca67d6ee82d9e036488f", + "x-ms-client-request-id": "ea2eafc95d7fa9974ed4fdd656db7ae3", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "069b007d-53b3-47c6-bbc9-923e03986175", + "apim-request-id": "66c348a8-d5bf-45fa-aa87-a8486d2d09af", "Content-Length": "0", - "Date": "Mon, 28 Sep 2020 15:00:04 GMT", + "Date": "Tue, 29 Sep 2020 23:42:29 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "193", - "X-Request-ID": "069b007d-53b3-47c6-bbc9-923e03986175" + "x-envoy-upstream-service-time": "173", + "X-Request-ID": "66c348a8-d5bf-45fa-aa87-a8486d2d09af" }, "ResponseBody": [] } @@ -167,6 +167,6 @@ "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "2141747034" + "RandomSeed": "847518663" } -} +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/ResetDataFeedIngestionStatus.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/ResetDataFeedIngestionStatus.json index 98d390640e4c7..6acc5358028fd 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/ResetDataFeedIngestionStatus.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/ResetDataFeedIngestionStatus.json @@ -1,20 +1,20 @@ { "Entries": [ { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds/dd64cd95-f22f-4176-9554-ded0b8db83a1/ingestionProgress/reset", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds/0072a752-1476-4cfa-8cf0-f226995201a0/ingestionProgress/reset", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Content-Length": "69", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-3360f12137fbfe4c9d8c77aaefdd9bfe-16ffaa2cd5224c4a-00", + "traceparent": "00-a361abdc55d0064296f5f0361d7ead2f-ac327f16fa7c2847-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200928.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "58ea5e7bf8a7bc761f6ab6da9c31f413", + "x-ms-client-request-id": "e120aa5403af757a8ce673b591b3bd7c", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -23,13 +23,13 @@ }, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "9cba60c0-8ef2-4ec8-ad8e-5a42dba637f2", + "apim-request-id": "555ef3de-b79a-40e3-a0f9-34e00a6c0013", "Content-Length": "0", - "Date": "Mon, 28 Sep 2020 16:32:15 GMT", + "Date": "Tue, 29 Sep 2020 23:47:39 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "10495", - "X-Request-ID": "9cba60c0-8ef2-4ec8-ad8e-5a42dba637f2" + "x-envoy-upstream-service-time": "10334", + "X-Request-ID": "555ef3de-b79a-40e3-a0f9-34e00a6c0013" }, "ResponseBody": [] } @@ -39,6 +39,6 @@ "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "2056230417" + "RandomSeed": "104598531" } } \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/ResetDataFeedIngestionStatusAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/ResetDataFeedIngestionStatusAsync.json index eac87be0fc938..6cfbe784d4b33 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/ResetDataFeedIngestionStatusAsync.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorAdministrationClientLiveTests/ResetDataFeedIngestionStatusAsync.json @@ -1,20 +1,20 @@ { "Entries": [ { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds/dd64cd95-f22f-4176-9554-ded0b8db83a1/ingestionProgress/reset", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/dataFeeds/0072a752-1476-4cfa-8cf0-f226995201a0/ingestionProgress/reset", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Content-Length": "69", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-6613082dd164d647bf829c246d14405d-1a8cc9ad5999de49-00", + "traceparent": "00-079183814fc7804586ee2c1fb66ed8df-34ab7051711b4a4f-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200928.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "f2e867daacf95a6783ddf14d8525d59d", + "x-ms-client-request-id": "e190b0b5b24721d58dce333f2995ade8", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -23,13 +23,13 @@ }, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "31713e24-cff6-4d18-8b2a-3afd4c08bf14", + "apim-request-id": "4a0f0b52-1738-48e7-a74a-8deeaf421fad", "Content-Length": "0", - "Date": "Mon, 28 Sep 2020 16:32:16 GMT", + "Date": "Tue, 29 Sep 2020 23:47:46 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "370", - "X-Request-ID": "31713e24-cff6-4d18-8b2a-3afd4c08bf14" + "x-envoy-upstream-service-time": "172", + "X-Request-ID": "4a0f0b52-1738-48e7-a74a-8deeaf421fad" }, "ResponseBody": [] } @@ -39,6 +39,6 @@ "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "595783161" + "RandomSeed": "373673191" } } \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/CreateMetricFeedback.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/CreateMetricFeedback.json index 963ab18eaedc0..308e472b27e79 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/CreateMetricFeedback.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/CreateMetricFeedback.json @@ -8,18 +8,18 @@ "Content-Length": "266", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-93e8d2d2b8277646885180976e27db58-0d465ff91304504a-00", + "traceparent": "00-7a12cfd5d0ecf14d9010a1b552b6a3e1-c94e0cf6dbdae247-00", "User-Agent": [ "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "57b2961051926b3c42cae257f50a5ec6", + "x-ms-client-request-id": "49bf1169321d66a80dd868895547d3c8", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "startTime": "2020-05-29T21:25:03.1450673Z", - "endTime": "2020-09-29T21:25:03.1450673Z", + "startTime": "2020-05-29T23:42:30.2534263Z", + "endTime": "2020-09-29T23:42:30.2534263Z", "value": { "anomalyValue": "NotAnomaly" }, @@ -34,17 +34,65 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "9e70d222-c79c-49fb-b110-0e2a3cdf1263", + "apim-request-id": "936e02f0-d213-429f-a5e3-9187770efb64", "Content-Length": "0", - "Date": "Tue, 29 Sep 2020 21:25:03 GMT", - "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/2b7a7dde-f417-4f22-8c3e-8da317322f3e", + "Date": "Tue, 29 Sep 2020 23:42:29 GMT", + "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/fe12deea-858c-4af8-ad3c-35ba8acc4705", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "416", - "X-Request-ID": "9e70d222-c79c-49fb-b110-0e2a3cdf1263" + "x-envoy-upstream-service-time": "276", + "X-Request-ID": "936e02f0-d213-429f-a5e3-9187770efb64" }, "ResponseBody": [] }, + { + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/fe12deea-858c-4af8-ad3c-35ba8acc4705", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-35d00579b279f54bac63a8b0869281cb-798f3d81fa80e74d-00", + "User-Agent": [ + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-api-key": "Sanitized", + "x-ms-client-request-id": "a9d381d8b363fdcb9d0a3eaa83b63a3a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "2f8b3b0d-cadd-41f8-8827-647b240af2db", + "Content-Length": "469", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Sep 2020 23:42:30 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "109", + "X-Request-ID": "2f8b3b0d-cadd-41f8-8827-647b240af2db" + }, + "ResponseBody": { + "feedbackId": "fe12deea-858c-4af8-ad3c-35ba8acc4705", + "createdTime": "2020-09-29T23:42:30.188Z", + "userPrincipal": "foo@contoso.com", + "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", + "dimensionFilter": { + "dimension": { + "Dim1": "Common Lime", + "Dim2": "Ant" + } + }, + "feedbackType": "Anomaly", + "startTime": "2020-05-29T23:42:30.253Z", + "endTime": "2020-09-29T23:42:30.253Z", + "value": { + "anomalyValue": "NotAnomaly" + }, + "anomalyDetectionConfigurationId": null, + "anomalyDetectionConfigurationSnapshot": null + } + }, { "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric", "RequestMethod": "POST", @@ -53,18 +101,18 @@ "Content-Length": "278", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-8f0e23aa14c47845968adf5a790e2384-775f5495ae25fb44-00", + "traceparent": "00-6125e67d0f8f854ba67b11ad17274467-a005b7635600a744-00", "User-Agent": [ "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "dd1f936cb5a41862f7d6fed5147c5b5c", + "x-ms-client-request-id": "2eaf20776f1e80cfe9c65c68d7583039", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "startTime": "2020-05-29T21:25:03.1450673Z", - "endTime": "2020-09-29T21:25:03.1450673Z", + "startTime": "2020-05-29T23:42:30.2534263Z", + "endTime": "2020-09-29T23:42:30.2534263Z", "value": { "changePointValue": "NotChangePoint" }, @@ -79,17 +127,63 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "f6d8c927-e60a-4141-9abd-3a11e12680d0", + "apim-request-id": "ee3b5d34-64f8-41d9-b233-20cebb45f81c", "Content-Length": "0", - "Date": "Tue, 29 Sep 2020 21:25:04 GMT", - "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/fa98d4c0-803c-42a3-8251-55a620de2cd9", + "Date": "Tue, 29 Sep 2020 23:42:30 GMT", + "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/6606f969-3eb5-4649-a123-3b7427ce3071", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "416", - "X-Request-ID": "f6d8c927-e60a-4141-9abd-3a11e12680d0" + "x-envoy-upstream-service-time": "264", + "X-Request-ID": "ee3b5d34-64f8-41d9-b233-20cebb45f81c" }, "ResponseBody": [] }, + { + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/6606f969-3eb5-4649-a123-3b7427ce3071", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-7918dbc103649a46a6c1289ac06e4c64-2dc5d432e91ee840-00", + "User-Agent": [ + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-api-key": "Sanitized", + "x-ms-client-request-id": "2844bf9d1900b67a46c2ac13f3fee257", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "dbd851e4-03ae-4d52-9b99-890edd2d7759", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Sep 2020 23:42:30 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "77", + "X-Request-ID": "dbd851e4-03ae-4d52-9b99-890edd2d7759" + }, + "ResponseBody": { + "feedbackId": "6606f969-3eb5-4649-a123-3b7427ce3071", + "createdTime": "2020-09-29T23:42:30.876Z", + "userPrincipal": "foo@contoso.com", + "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", + "dimensionFilter": { + "dimension": { + "Dim1": "Common Lime", + "Dim2": "Ant" + } + }, + "feedbackType": "ChangePoint", + "startTime": "2020-05-29T23:42:30.253Z", + "endTime": "2020-09-29T23:42:30.253Z", + "value": { + "changePointValue": "NotChangePoint" + } + } + }, { "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric", "RequestMethod": "POST", @@ -98,13 +192,13 @@ "Content-Length": "196", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-8badad727ead444792d0b8795963e498-f77a1e74be2cd74d-00", + "traceparent": "00-373cb0f1c0a23645a8b01462511c6f68-862e2216f919604c-00", "User-Agent": [ "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "6b6ec2d00cc49c0530da69c9f7493f69", + "x-ms-client-request-id": "35112e9ea59868aab253c09c56622645", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -123,17 +217,62 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "a7f6ffdf-340c-4227-9b7c-17b7f01d1355", + "apim-request-id": "f999ebaa-3102-47d7-be5f-5ea70c2fceaf", "Content-Length": "0", - "Date": "Tue, 29 Sep 2020 21:25:10 GMT", - "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/2806569d-1bb2-4959-b145-10b2215ebd58", + "Date": "Tue, 29 Sep 2020 23:42:31 GMT", + "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/32a2201b-eb51-4cff-ab83-0fb10ddc937f", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "5446", - "X-Request-ID": "a7f6ffdf-340c-4227-9b7c-17b7f01d1355" + "x-envoy-upstream-service-time": "284", + "X-Request-ID": "f999ebaa-3102-47d7-be5f-5ea70c2fceaf" }, "ResponseBody": [] }, + { + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/32a2201b-eb51-4cff-ab83-0fb10ddc937f", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-f7db2b9652c4444a8f65c238af24f57b-e4e8d0b7cc728141-00", + "User-Agent": [ + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-api-key": "Sanitized", + "x-ms-client-request-id": "c40c05d911725d3aa5f9e85bc2bb8ceb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "236fbafb-3bfb-43e4-9dee-7652e4904f5f", + "Content-Length": "323", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Sep 2020 23:42:31 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "76", + "X-Request-ID": "236fbafb-3bfb-43e4-9dee-7652e4904f5f" + }, + "ResponseBody": { + "feedbackId": "32a2201b-eb51-4cff-ab83-0fb10ddc937f", + "createdTime": "2020-09-29T23:42:31.525Z", + "userPrincipal": "foo@contoso.com", + "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", + "dimensionFilter": { + "dimension": { + "Dim1": "Common Lime", + "Dim2": "Ant" + } + }, + "feedbackType": "Period", + "value": { + "periodType": "AssignValue", + "periodValue": 5 + } + } + }, { "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric", "RequestMethod": "POST", @@ -142,13 +281,13 @@ "Content-Length": "182", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-3603cef60404a349877422949f64c33a-e06d75f4a94bbf4f-00", + "traceparent": "00-43d28aee60ac904e996a9cdb73f4301b-db5607cf18073f4b-00", "User-Agent": [ "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "cc187bba50a05a01349960bb536756c6", + "x-ms-client-request-id": "a9ca05e4fa46f8a015db76ad59dd5fe3", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -166,24 +305,70 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "4e484fdd-90be-4e5f-a7c0-9deb9a3c6831", + "apim-request-id": "5b1b82f1-15bb-455b-8048-e36e9557a4bd", "Content-Length": "0", - "Date": "Tue, 29 Sep 2020 21:25:10 GMT", - "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/3eacdd08-cfa1-4d57-bc7e-452343e01d92", + "Date": "Tue, 29 Sep 2020 23:42:31 GMT", + "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/448bba91-d349-49ff-81ce-bf99ec9da110", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "254", - "X-Request-ID": "4e484fdd-90be-4e5f-a7c0-9deb9a3c6831" + "x-envoy-upstream-service-time": "234", + "X-Request-ID": "5b1b82f1-15bb-455b-8048-e36e9557a4bd" }, "ResponseBody": [] + }, + { + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/448bba91-d349-49ff-81ce-bf99ec9da110", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-9f26b1622dc89c47894834574edd2d1f-597804df532bd942-00", + "User-Agent": [ + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-api-key": "Sanitized", + "x-ms-client-request-id": "ee3a679b1df18ce4f3b3909fbd4ea6f7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "fb57d951-8019-4198-ac70-aadaf8432b24", + "Content-Length": "341", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Sep 2020 23:42:31 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "75", + "X-Request-ID": "fb57d951-8019-4198-ac70-aadaf8432b24" + }, + "ResponseBody": { + "feedbackId": "448bba91-d349-49ff-81ce-bf99ec9da110", + "createdTime": "2020-09-29T23:42:32.136Z", + "userPrincipal": "foo@contoso.com", + "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", + "dimensionFilter": { + "dimension": { + "Dim1": "Common Lime", + "Dim2": "Ant" + } + }, + "feedbackType": "Comment", + "startTime": null, + "endTime": null, + "value": { + "commentValue": "my comment" + } + } } ], "Variables": { - "DateTimeOffsetNow": "2020-09-29T16:25:03.1450673-05:00", + "DateTimeOffsetNow": "2020-09-29T18:42:30.2534263-05:00", "METRICSADVISOR_ACCOUNT_NAME": "anuchan-cg-metric-advisor", "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "2099604715" + "RandomSeed": "2137714405" } } \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/CreateMetricFeedbackAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/CreateMetricFeedbackAsync.json index 3de92dfcb8154..17f32b9358b3e 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/CreateMetricFeedbackAsync.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/CreateMetricFeedbackAsync.json @@ -8,18 +8,18 @@ "Content-Length": "266", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-d51ecd7c3aaf1b4e969c9abc249fb301-621456174fe8794a-00", + "traceparent": "00-34494507a846814a951e8fcac3e0c464-abc851a816a1844e-00", "User-Agent": [ "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "3f8cf269c328fe102a77b4ec24f0740d", + "x-ms-client-request-id": "f7e7f99141dc52bbb8373c59583280ad", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "startTime": "2020-05-29T21:25:11.3315111Z", - "endTime": "2020-09-29T21:25:11.3315111Z", + "startTime": "2020-05-29T23:42:44.0072643Z", + "endTime": "2020-09-29T23:42:44.0072643Z", "value": { "anomalyValue": "NotAnomaly" }, @@ -34,17 +34,65 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "5565e234-ac41-434d-9dd8-d6d9d6d86c51", + "apim-request-id": "93827b76-2217-4330-8abf-b62328ba9138", "Content-Length": "0", - "Date": "Tue, 29 Sep 2020 21:25:11 GMT", - "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/ee288903-f369-46bd-a667-536b448a602a", + "Date": "Tue, 29 Sep 2020 23:42:43 GMT", + "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/2fb44e7e-d33a-47e8-b752-235ee858797d", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "282", - "X-Request-ID": "5565e234-ac41-434d-9dd8-d6d9d6d86c51" + "x-envoy-upstream-service-time": "266", + "X-Request-ID": "93827b76-2217-4330-8abf-b62328ba9138" }, "ResponseBody": [] }, + { + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/2fb44e7e-d33a-47e8-b752-235ee858797d", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-9ee5b2bb60af544e8bcb0940ab8b07fa-2205862c08751543-00", + "User-Agent": [ + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-api-key": "Sanitized", + "x-ms-client-request-id": "10622bf656f7a61b8b2526bff0eb9804", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "fb240a48-f211-4f59-b753-82d86a62fb1f", + "Content-Length": "469", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Sep 2020 23:42:43 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "73", + "X-Request-ID": "fb240a48-f211-4f59-b753-82d86a62fb1f" + }, + "ResponseBody": { + "feedbackId": "2fb44e7e-d33a-47e8-b752-235ee858797d", + "createdTime": "2020-09-29T23:42:43.931Z", + "userPrincipal": "foo@contoso.com", + "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", + "dimensionFilter": { + "dimension": { + "Dim1": "Common Lime", + "Dim2": "Ant" + } + }, + "feedbackType": "Anomaly", + "startTime": "2020-05-29T23:42:44.007Z", + "endTime": "2020-09-29T23:42:44.007Z", + "value": { + "anomalyValue": "NotAnomaly" + }, + "anomalyDetectionConfigurationId": null, + "anomalyDetectionConfigurationSnapshot": null + } + }, { "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric", "RequestMethod": "POST", @@ -53,18 +101,18 @@ "Content-Length": "278", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-dcd778af7c89c14193470328f628ba01-8b3c694f765c9e42-00", + "traceparent": "00-908003c0b75b0a47af03923614abccba-093fb4ddb61adf43-00", "User-Agent": [ "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "418d2fb2cf2528a3887e27abfef2d851", + "x-ms-client-request-id": "c32297f239598bb919b7bde4519465f7", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "startTime": "2020-05-29T21:25:11.3315111Z", - "endTime": "2020-09-29T21:25:11.3315111Z", + "startTime": "2020-05-29T23:42:44.0072643Z", + "endTime": "2020-09-29T23:42:44.0072643Z", "value": { "changePointValue": "NotChangePoint" }, @@ -79,17 +127,63 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "9d06004a-80a2-4578-a898-98dc2655d3b7", + "apim-request-id": "8e44cb4b-b5c4-4fcf-a46a-94b6585601d1", "Content-Length": "0", - "Date": "Tue, 29 Sep 2020 21:25:11 GMT", - "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/2b0883e6-ff87-415e-93d0-85218add6cc7", + "Date": "Tue, 29 Sep 2020 23:42:44 GMT", + "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/3c1ed4fd-a8d9-4b6d-a1bd-e46b08b11625", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "314", - "X-Request-ID": "9d06004a-80a2-4578-a898-98dc2655d3b7" + "x-envoy-upstream-service-time": "351", + "X-Request-ID": "8e44cb4b-b5c4-4fcf-a46a-94b6585601d1" }, "ResponseBody": [] }, + { + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/3c1ed4fd-a8d9-4b6d-a1bd-e46b08b11625", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-902b12728ec2ef4d8be9ad310591c967-c47059d56e2c104a-00", + "User-Agent": [ + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-api-key": "Sanitized", + "x-ms-client-request-id": "84d9577c17623bdfde416cb71afb61cc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "5b4715a4-3419-40d8-a0a2-d843ee9722e9", + "Content-Length": "397", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Sep 2020 23:42:44 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "72", + "X-Request-ID": "5b4715a4-3419-40d8-a0a2-d843ee9722e9" + }, + "ResponseBody": { + "feedbackId": "3c1ed4fd-a8d9-4b6d-a1bd-e46b08b11625", + "createdTime": "2020-09-29T23:42:44.646Z", + "userPrincipal": "foo@contoso.com", + "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", + "dimensionFilter": { + "dimension": { + "Dim1": "Common Lime", + "Dim2": "Ant" + } + }, + "feedbackType": "ChangePoint", + "startTime": "2020-05-29T23:42:44.007Z", + "endTime": "2020-09-29T23:42:44.007Z", + "value": { + "changePointValue": "NotChangePoint" + } + } + }, { "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric", "RequestMethod": "POST", @@ -98,13 +192,13 @@ "Content-Length": "196", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-2ca7f6957059ad4e9b0ae507d5d0f793-ca773ec3204f624e-00", + "traceparent": "00-a075aff8ed996a4da9c11cc1c5b0c95b-6677cd4995e9de45-00", "User-Agent": [ "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "f592159bcc79fa68ae84a4acebc43588", + "x-ms-client-request-id": "c166379fbc10bc5371d7f740983654f7", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -123,17 +217,62 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "d3d11343-d08e-41ce-b47c-f28ed73adf49", + "apim-request-id": "4e18fa3e-1717-4c8c-89d1-fdda2b15112a", "Content-Length": "0", - "Date": "Tue, 29 Sep 2020 21:25:12 GMT", - "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/0ec6be06-5f1e-4317-b40e-dbf252547efa", + "Date": "Tue, 29 Sep 2020 23:42:44 GMT", + "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/79cf3681-7aea-4acb-bd63-ffc19dee6c2e", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "312", - "X-Request-ID": "d3d11343-d08e-41ce-b47c-f28ed73adf49" + "x-envoy-upstream-service-time": "244", + "X-Request-ID": "4e18fa3e-1717-4c8c-89d1-fdda2b15112a" }, "ResponseBody": [] }, + { + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/79cf3681-7aea-4acb-bd63-ffc19dee6c2e", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-61176894db1da44e96bb1cfb41408ef1-870bade38d6db341-00", + "User-Agent": [ + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-api-key": "Sanitized", + "x-ms-client-request-id": "99432fbf1412daa1b8e6e518cd02701e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "29248278-2854-4e25-a0b1-ab85d1c1bbd6", + "Content-Length": "323", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Sep 2020 23:42:45 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "73", + "X-Request-ID": "29248278-2854-4e25-a0b1-ab85d1c1bbd6" + }, + "ResponseBody": { + "feedbackId": "79cf3681-7aea-4acb-bd63-ffc19dee6c2e", + "createdTime": "2020-09-29T23:42:45.283Z", + "userPrincipal": "foo@contoso.com", + "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", + "dimensionFilter": { + "dimension": { + "Dim1": "Common Lime", + "Dim2": "Ant" + } + }, + "feedbackType": "Period", + "value": { + "periodType": "AssignValue", + "periodValue": 5 + } + } + }, { "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric", "RequestMethod": "POST", @@ -142,13 +281,13 @@ "Content-Length": "182", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-79000ef1977ec542b40798e804d83598-4c663cd08ad34b44-00", + "traceparent": "00-ac7ba171c35be442953064e5adfd4caa-b19c8c0efe04e341-00", "User-Agent": [ "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "85a8c5de05609a214e64b6aa9b650037", + "x-ms-client-request-id": "1945f155a42dc0e6031d128b209ea2a7", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -166,24 +305,70 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "2febe8d6-0699-4125-9102-6f4ba1b60e8d", + "apim-request-id": "f9c5ec2a-74c0-4421-b2e5-89bd86f5ebaa", "Content-Length": "0", - "Date": "Tue, 29 Sep 2020 21:25:12 GMT", - "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/2b353f77-8333-46a4-83dc-76da528b69ca", + "Date": "Tue, 29 Sep 2020 23:42:45 GMT", + "Location": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/d2744fdb-35cb-41d5-b167-0e03626df36d", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "282", - "X-Request-ID": "2febe8d6-0699-4125-9102-6f4ba1b60e8d" + "x-envoy-upstream-service-time": "210", + "X-Request-ID": "f9c5ec2a-74c0-4421-b2e5-89bd86f5ebaa" }, "ResponseBody": [] + }, + { + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/d2744fdb-35cb-41d5-b167-0e03626df36d", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-d997375c795fc84ca190050ec7316b2f-e8cc61d46997f645-00", + "User-Agent": [ + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-api-key": "Sanitized", + "x-ms-client-request-id": "ebf775ecc8b78aba968c0829d63bef6f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "912c32ff-6f98-4883-8d96-e4dfd7a66378", + "Content-Length": "340", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 29 Sep 2020 23:42:45 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "68", + "X-Request-ID": "912c32ff-6f98-4883-8d96-e4dfd7a66378" + }, + "ResponseBody": { + "feedbackId": "d2744fdb-35cb-41d5-b167-0e03626df36d", + "createdTime": "2020-09-29T23:42:45.86Z", + "userPrincipal": "foo@contoso.com", + "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", + "dimensionFilter": { + "dimension": { + "Dim1": "Common Lime", + "Dim2": "Ant" + } + }, + "feedbackType": "Comment", + "startTime": null, + "endTime": null, + "value": { + "commentValue": "my comment" + } + } } ], "Variables": { - "DateTimeOffsetNow": "2020-09-29T16:25:11.3315111-05:00", + "DateTimeOffsetNow": "2020-09-29T18:42:44.0072643-05:00", "METRICSADVISOR_ACCOUNT_NAME": "anuchan-cg-metric-advisor", "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "633668253" + "RandomSeed": "414478822" } } \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetAlerts.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetAlerts.json index 013c819913f3d..78467d4a626e9 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetAlerts.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetAlerts.json @@ -9,28 +9,28 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "0d1720474c2e956f2c503479f3162f79", + "x-ms-client-request-id": "0854efda2067d48f44441a0c32b8743d", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "startTime": "2015-09-25T22:41:31Z", - "endTime": "2020-09-25T22:41:31Z", + "startTime": "2015-09-29T23:42:32Z", + "endTime": "2020-09-29T23:42:32Z", "timeMode": "CreatedTime" }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "7232da15-f376-4b2f-8c0b-bb06229d8a99", + "apim-request-id": "8ac655be-1df2-47d7-bef0-608810fe9834", "Content-Length": "348", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 25 Sep 2020 22:41:31 GMT", + "Date": "Tue, 29 Sep 2020 23:42:32 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "209", - "X-Request-ID": "7232da15-f376-4b2f-8c0b-bb06229d8a99" + "x-envoy-upstream-service-time": "110", + "X-Request-ID": "8ac655be-1df2-47d7-bef0-608810fe9834" }, "ResponseBody": { "value": [ @@ -53,28 +53,28 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "443c46d4eb1da73d33495cd4232e68a0", + "x-ms-client-request-id": "9f016db4e280d1bd3b89ec160a341473", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "startTime": "2015-09-25T22:41:31Z", - "endTime": "2020-09-25T22:41:31Z", + "startTime": "2015-09-29T23:42:32Z", + "endTime": "2020-09-29T23:42:32Z", "timeMode": "CreatedTime" }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "1c6ab458-a1ba-49df-86c0-e61f60d75779", + "apim-request-id": "c8f0df21-23e1-41ff-ab30-1b8c0122ab5d", "Content-Length": "349", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 25 Sep 2020 22:41:37 GMT", + "Date": "Tue, 29 Sep 2020 23:42:32 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "6237", - "X-Request-ID": "1c6ab458-a1ba-49df-86c0-e61f60d75779" + "x-envoy-upstream-service-time": "110", + "X-Request-ID": "c8f0df21-23e1-41ff-ab30-1b8c0122ab5d" }, "ResponseBody": { "value": [ @@ -97,28 +97,28 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "d0c882391609f537b05143550f06fd8f", + "x-ms-client-request-id": "284b743da3638e5bcd3107f314f52ee0", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "startTime": "2015-09-25T22:41:31Z", - "endTime": "2020-09-25T22:41:31Z", + "startTime": "2015-09-29T23:42:32Z", + "endTime": "2020-09-29T23:42:32Z", "timeMode": "CreatedTime" }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "eb9d2e01-c44a-4f68-9520-a0131852386e", + "apim-request-id": "f3a22c09-d6b7-429f-b42d-47f410ca646e", "Content-Length": "349", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 25 Sep 2020 22:41:37 GMT", + "Date": "Tue, 29 Sep 2020 23:42:32 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "194", - "X-Request-ID": "eb9d2e01-c44a-4f68-9520-a0131852386e" + "x-envoy-upstream-service-time": "87", + "X-Request-ID": "f3a22c09-d6b7-429f-b42d-47f410ca646e" }, "ResponseBody": { "value": [ @@ -134,11 +134,11 @@ } ], "Variables": { - "DateTimeOffsetNow": "2020-09-25T17:41:31.1214752-05:00", + "DateTimeOffsetNow": "2020-09-29T18:42:32.8558168-05:00", "METRICSADVISOR_ACCOUNT_NAME": "anuchan-cg-metric-advisor", "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "1661016270" + "RandomSeed": "599892032" } } \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetAlertsAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetAlertsAsync.json index 1761728ba6d99..6bd04e83fb9c5 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetAlertsAsync.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetAlertsAsync.json @@ -9,28 +9,28 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "e691f64ebfda6934f03ac497005e925e", + "x-ms-client-request-id": "f0e5a43e32d9474cb06f5f9d864f2d83", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "startTime": "2015-09-25T22:41:39Z", - "endTime": "2020-09-25T22:41:39Z", + "startTime": "2015-09-29T23:42:46Z", + "endTime": "2020-09-29T23:42:46Z", "timeMode": "CreatedTime" }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "93b077f0-c802-4f6a-8618-eb1488323d51", + "apim-request-id": "189f70a6-c8c6-4508-82c7-c6cf3012151b", "Content-Length": "348", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 25 Sep 2020 22:41:38 GMT", + "Date": "Tue, 29 Sep 2020 23:42:45 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "80", - "X-Request-ID": "93b077f0-c802-4f6a-8618-eb1488323d51" + "x-envoy-upstream-service-time": "81", + "X-Request-ID": "189f70a6-c8c6-4508-82c7-c6cf3012151b" }, "ResponseBody": { "value": [ @@ -53,28 +53,28 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "adb09f7b1e164ccd43e9443379d31d50", + "x-ms-client-request-id": "9d0a0f3c1a09718e2dde4035f7a1e8a0", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "startTime": "2015-09-25T22:41:39Z", - "endTime": "2020-09-25T22:41:39Z", + "startTime": "2015-09-29T23:42:46Z", + "endTime": "2020-09-29T23:42:46Z", "timeMode": "CreatedTime" }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "e8d66bb8-6d27-4880-933c-2997572b0db3", + "apim-request-id": "cca8649f-864f-42df-8cd3-9b19350c55d6", "Content-Length": "349", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 25 Sep 2020 22:41:38 GMT", + "Date": "Tue, 29 Sep 2020 23:42:46 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "72", - "X-Request-ID": "e8d66bb8-6d27-4880-933c-2997572b0db3" + "x-envoy-upstream-service-time": "85", + "X-Request-ID": "cca8649f-864f-42df-8cd3-9b19350c55d6" }, "ResponseBody": { "value": [ @@ -97,28 +97,28 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "c03c127d712309c2ae15c10c2b1a7e67", + "x-ms-client-request-id": "afc9b53350aea9367e90bfa5ae15821f", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "startTime": "2015-09-25T22:41:39Z", - "endTime": "2020-09-25T22:41:39Z", + "startTime": "2015-09-29T23:42:46Z", + "endTime": "2020-09-29T23:42:46Z", "timeMode": "CreatedTime" }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "a04cdfac-52b5-4501-914b-e105a37f7032", + "apim-request-id": "f43ab72c-fd18-468a-8e9d-9a6369c9595c", "Content-Length": "349", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 25 Sep 2020 22:41:38 GMT", + "Date": "Tue, 29 Sep 2020 23:42:46 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "74", - "X-Request-ID": "a04cdfac-52b5-4501-914b-e105a37f7032" + "x-envoy-upstream-service-time": "87", + "X-Request-ID": "f43ab72c-fd18-468a-8e9d-9a6369c9595c" }, "ResponseBody": { "value": [ @@ -134,11 +134,11 @@ } ], "Variables": { - "DateTimeOffsetNow": "2020-09-25T17:41:39.0289627-05:00", + "DateTimeOffsetNow": "2020-09-29T18:42:46.5681596-05:00", "METRICSADVISOR_ACCOUNT_NAME": "anuchan-cg-metric-advisor", "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "593697474" + "RandomSeed": "1569289811" } } \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetAnomaliesForAlert.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetAnomaliesForAlert.json index f177984923c7e..7a27302b852b2 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetAnomaliesForAlert.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetAnomaliesForAlert.json @@ -7,24 +7,24 @@ "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "9a216da3d4c2bb1daffe73ccd7f8511a", + "x-ms-client-request-id": "17f99acbe548bf8532a2bf252fb719f7", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "b38c86d4-1dbd-4661-a684-530e23daf1b3", + "apim-request-id": "89cae43a-8ba8-444c-99d2-3a38dc2ce864", "Content-Length": "576", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 25 Sep 2020 22:47:14 GMT", + "Date": "Tue, 29 Sep 2020 23:42:32 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "185", - "X-Request-ID": "b38c86d4-1dbd-4661-a684-530e23daf1b3" + "x-envoy-upstream-service-time": "78", + "X-Request-ID": "89cae43a-8ba8-444c-99d2-3a38dc2ce864" }, "ResponseBody": { "value": [ @@ -54,24 +54,24 @@ "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "3b5505e8c8edcd88687c941342ef4548", + "x-ms-client-request-id": "77e17ac67f877c6a6e2df5157fba331f", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "1c66ffae-8c74-451d-88b7-742a249369fe", + "apim-request-id": "4c126de6-cc89-47c1-afcf-388780c921dc", "Content-Length": "603", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 25 Sep 2020 22:47:14 GMT", + "Date": "Tue, 29 Sep 2020 23:42:33 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "162", - "X-Request-ID": "1c66ffae-8c74-451d-88b7-742a249369fe" + "x-envoy-upstream-service-time": "67", + "X-Request-ID": "4c126de6-cc89-47c1-afcf-388780c921dc" }, "ResponseBody": { "value": [ @@ -101,24 +101,24 @@ "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "0e9c00dc451a4df93f3606e4f4c49acf", + "x-ms-client-request-id": "da2b2056ed3c79eeacef412c383bc0f3", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "97a25028-e481-4d5c-94fd-e55375092a52", + "apim-request-id": "0d6edebc-08a5-49b0-a8a6-a4fd3e81764e", "Content-Length": "574", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 25 Sep 2020 22:47:14 GMT", + "Date": "Tue, 29 Sep 2020 23:42:33 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "183", - "X-Request-ID": "97a25028-e481-4d5c-94fd-e55375092a52" + "x-envoy-upstream-service-time": "56", + "X-Request-ID": "0d6edebc-08a5-49b0-a8a6-a4fd3e81764e" }, "ResponseBody": { "value": [ @@ -147,6 +147,6 @@ "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "1935898218" + "RandomSeed": "963767571" } } \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetAnomaliesForAlertAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetAnomaliesForAlertAsync.json index 9d0f18b56946e..5a9701139830a 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetAnomaliesForAlertAsync.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetAnomaliesForAlertAsync.json @@ -7,24 +7,24 @@ "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "309f0fc05d828ebacfca14f35488322f", + "x-ms-client-request-id": "474a97e46aa6572781a5be0aacf73ab4", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "a936dcf8-40d3-4f08-bb32-0edbea5f7b4b", + "apim-request-id": "acafc08a-7d7b-4fb0-ac92-e8a60a1f438e", "Content-Length": "576", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 25 Sep 2020 22:47:15 GMT", + "Date": "Tue, 29 Sep 2020 23:42:46 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "53", - "X-Request-ID": "a936dcf8-40d3-4f08-bb32-0edbea5f7b4b" + "x-envoy-upstream-service-time": "78", + "X-Request-ID": "acafc08a-7d7b-4fb0-ac92-e8a60a1f438e" }, "ResponseBody": { "value": [ @@ -54,24 +54,24 @@ "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "341a715289a8b7fba48a9f54ceb9edf9", + "x-ms-client-request-id": "9ff1bb94236e2b732e5cd3999e0f0d98", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "0289edb8-0eac-43b0-bc89-0e5dd5584a3c", + "apim-request-id": "754c2bf5-11b8-4062-8edd-cbca7d226020", "Content-Length": "603", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 25 Sep 2020 22:47:15 GMT", + "Date": "Tue, 29 Sep 2020 23:42:46 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "48", - "X-Request-ID": "0289edb8-0eac-43b0-bc89-0e5dd5584a3c" + "x-envoy-upstream-service-time": "62", + "X-Request-ID": "754c2bf5-11b8-4062-8edd-cbca7d226020" }, "ResponseBody": { "value": [ @@ -101,24 +101,24 @@ "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "cbbc68059d5272ca7a811052c84eb709", + "x-ms-client-request-id": "a4295fb14b53b7140b1964d5437b5c47", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "b7a31c87-6c82-4832-85df-c9f95c710692", + "apim-request-id": "03649005-9a5f-460e-8388-8a893ff156d3", "Content-Length": "574", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 25 Sep 2020 22:47:15 GMT", + "Date": "Tue, 29 Sep 2020 23:42:46 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "56", - "X-Request-ID": "b7a31c87-6c82-4832-85df-c9f95c710692" + "x-envoy-upstream-service-time": "55", + "X-Request-ID": "03649005-9a5f-460e-8388-8a893ff156d3" }, "ResponseBody": { "value": [ @@ -147,6 +147,6 @@ "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "850178995" + "RandomSeed": "866826074" } } \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetAnomaliesForDetectionConfiguration.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetAnomaliesForDetectionConfiguration.json index 80c7bdd44ec42..06de113a487d2 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetAnomaliesForDetectionConfiguration.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetAnomaliesForDetectionConfiguration.json @@ -9,27 +9,27 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "005d70e3612213c06a79e834aac4e714", + "x-ms-client-request-id": "57e69636a474dfe417b759538a5fbe31", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "startTime": "2015-09-25T22:18:10Z", - "endTime": "2020-09-25T22:18:10Z" + "startTime": "2015-09-29T23:42:34Z", + "endTime": "2020-09-29T23:42:34Z" }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "8778717b-63a6-40e5-acfc-f45c231a3b4d", + "apim-request-id": "b705dd59-39c0-4cf5-8b13-b62deaf926b2", "Content-Length": "109965", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 25 Sep 2020 22:18:15 GMT", + "Date": "Tue, 29 Sep 2020 23:42:33 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "5251", - "X-Request-ID": "8778717b-63a6-40e5-acfc-f45c231a3b4d" + "x-envoy-upstream-service-time": "491", + "X-Request-ID": "b705dd59-39c0-4cf5-8b13-b62deaf926b2" }, "ResponseBody": { "value": [ @@ -7889,11 +7889,11 @@ } ], "Variables": { - "DateTimeOffsetNow": "2020-09-25T17:18:10.0775837-05:00", + "DateTimeOffsetNow": "2020-09-29T18:42:34.2763753-05:00", "METRICSADVISOR_ACCOUNT_NAME": "anuchan-cg-metric-advisor", "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "1500981598" + "RandomSeed": "645139889" } } \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetAnomaliesForDetectionConfigurationAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetAnomaliesForDetectionConfigurationAsync.json index 82e341ceca697..8f1d9706b36a9 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetAnomaliesForDetectionConfigurationAsync.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetAnomaliesForDetectionConfigurationAsync.json @@ -9,27 +9,27 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "0afe4af0da7a62515c52a772f706e5bf", + "x-ms-client-request-id": "6c7ea5efc20e4cb9b0d014b1e44feff8", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "startTime": "2015-09-25T22:18:16Z", - "endTime": "2020-09-25T22:18:16Z" + "startTime": "2015-09-29T23:42:47Z", + "endTime": "2020-09-29T23:42:47Z" }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "23e73d9d-a94e-4f87-9eaa-96759b8a95bb", + "apim-request-id": "612ef132-d220-4e84-97b7-6565adc03041", "Content-Length": "109965", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 25 Sep 2020 22:18:15 GMT", + "Date": "Tue, 29 Sep 2020 23:42:47 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "234", - "X-Request-ID": "23e73d9d-a94e-4f87-9eaa-96759b8a95bb" + "x-envoy-upstream-service-time": "227", + "X-Request-ID": "612ef132-d220-4e84-97b7-6565adc03041" }, "ResponseBody": { "value": [ @@ -7889,11 +7889,11 @@ } ], "Variables": { - "DateTimeOffsetNow": "2020-09-25T17:18:16.7326840-05:00", + "DateTimeOffsetNow": "2020-09-29T18:42:47.9351460-05:00", "METRICSADVISOR_ACCOUNT_NAME": "anuchan-cg-metric-advisor", "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "102291122" + "RandomSeed": "1775608776" } } \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetEnrichmentStatus.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetEnrichmentStatus.json index e63b5e9e863c5..cd7f75bf526b2 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetEnrichmentStatus.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetEnrichmentStatus.json @@ -9,27 +9,27 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200928.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "e0fb7aeb72cdf608bb55d87770f9168f", + "x-ms-client-request-id": "98b98835e57f46b24d59029b1d31e8ff", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "startTime": "2015-09-28T20:21:25Z", - "endTime": "2020-09-28T20:21:25Z" + "startTime": "2015-09-29T23:42:35Z", + "endTime": "2020-09-29T23:42:35Z" }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "da74732c-a394-40f7-bec9-34ba7ae61f7c", + "apim-request-id": "165eb52e-61a1-4588-9943-34b5ca4f49fe", "Content-Length": "532", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 28 Sep 2020 20:21:25 GMT", + "Date": "Tue, 29 Sep 2020 23:42:34 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "223", - "X-Request-ID": "da74732c-a394-40f7-bec9-34ba7ae61f7c" + "x-envoy-upstream-service-time": "211", + "X-Request-ID": "165eb52e-61a1-4588-9943-34b5ca4f49fe" }, "ResponseBody": { "value": [ @@ -56,27 +56,27 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200928.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "f53bafbeffd34b5535e12d1a1f80a16d", + "x-ms-client-request-id": "b771626467e09df232a2717ad2e9104b", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "startTime": "2015-09-28T20:21:25Z", - "endTime": "2020-09-28T20:21:25Z" + "startTime": "2015-09-29T23:42:35Z", + "endTime": "2020-09-29T23:42:35Z" }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "8ce43125-d00c-419a-bb0d-39acda826d95", + "apim-request-id": "5caae43b-a1a4-4928-a240-85d4465dbc9f", "Content-Length": "532", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 28 Sep 2020 20:21:26 GMT", + "Date": "Tue, 29 Sep 2020 23:42:34 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "157", - "X-Request-ID": "8ce43125-d00c-419a-bb0d-39acda826d95" + "x-envoy-upstream-service-time": "152", + "X-Request-ID": "5caae43b-a1a4-4928-a240-85d4465dbc9f" }, "ResponseBody": { "value": [ @@ -96,11 +96,11 @@ } ], "Variables": { - "DateTimeOffsetNow": "2020-09-28T15:21:25.3204603-05:00", + "DateTimeOffsetNow": "2020-09-29T18:42:35.1124591-05:00", "METRICSADVISOR_ACCOUNT_NAME": "anuchan-cg-metric-advisor", "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "1391027914" + "RandomSeed": "1233328857" } } \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetEnrichmentStatusAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetEnrichmentStatusAsync.json index 54e1d7e5be81f..0eef00f7271f0 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetEnrichmentStatusAsync.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetEnrichmentStatusAsync.json @@ -9,27 +9,27 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200928.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "31be08c38a925b21064557ec7145ad1e", + "x-ms-client-request-id": "7fa8df550d4e06839e56f583b884612d", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "startTime": "2015-09-28T20:21:26Z", - "endTime": "2020-09-28T20:21:26Z" + "startTime": "2015-09-29T23:42:48Z", + "endTime": "2020-09-29T23:42:48Z" }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "737e8761-2680-46d0-ac09-44135b7ebd3b", + "apim-request-id": "1fa8f292-2f06-4ad8-adba-ca7113480886", "Content-Length": "532", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 28 Sep 2020 20:21:31 GMT", + "Date": "Tue, 29 Sep 2020 23:42:47 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "5223", - "X-Request-ID": "737e8761-2680-46d0-ac09-44135b7ebd3b" + "x-envoy-upstream-service-time": "155", + "X-Request-ID": "1fa8f292-2f06-4ad8-adba-ca7113480886" }, "ResponseBody": { "value": [ @@ -56,27 +56,27 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200928.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "25a6d35b78abd1786af51a5c08593c96", + "x-ms-client-request-id": "fb288a17bfb3012e332ecc1eacb166d4", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "startTime": "2015-09-28T20:21:26Z", - "endTime": "2020-09-28T20:21:26Z" + "startTime": "2015-09-29T23:42:48Z", + "endTime": "2020-09-29T23:42:48Z" }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "2ef2e474-2d6a-446d-a25b-59a56f8b7380", + "apim-request-id": "c4214cc4-6a42-4bcc-b70e-7b350ed033fe", "Content-Length": "532", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 28 Sep 2020 20:21:31 GMT", + "Date": "Tue, 29 Sep 2020 23:42:48 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", "x-envoy-upstream-service-time": "156", - "X-Request-ID": "2ef2e474-2d6a-446d-a25b-59a56f8b7380" + "X-Request-ID": "c4214cc4-6a42-4bcc-b70e-7b350ed033fe" }, "ResponseBody": { "value": [ @@ -96,11 +96,11 @@ } ], "Variables": { - "DateTimeOffsetNow": "2020-09-28T15:21:26.7413945-05:00", + "DateTimeOffsetNow": "2020-09-29T18:42:48.5024704-05:00", "METRICSADVISOR_ACCOUNT_NAME": "anuchan-cg-metric-advisor", "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "1559158761" + "RandomSeed": "681814440" } } \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetIncidentRootCauses.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetIncidentRootCauses.json index c0ccc0ddb216c..fd0924cc41d4f 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetIncidentRootCauses.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetIncidentRootCauses.json @@ -6,26 +6,26 @@ "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-082427c8053fc04f80ec2d4fa848bdae-069eb6a46b038a41-00", + "traceparent": "00-3adb843b7ac58c4fa8b3552400e4a12c-80be24d808332643-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "c413227a60aed234c0ac2876e0f2c562", + "x-ms-client-request-id": "a84173372befdb97d6d13e5f4501a04c", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "6cb74f70-1879-49cc-a269-ec9f68ce2edc", + "apim-request-id": "af2d041c-7316-47b1-bdcf-401b2ce6074f", "Content-Length": "143", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 25 Sep 2020 22:10:16 GMT", + "Date": "Tue, 29 Sep 2020 23:42:35 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "407", - "X-Request-ID": "6cb74f70-1879-49cc-a269-ec9f68ce2edc" + "x-envoy-upstream-service-time": "395", + "X-Request-ID": "af2d041c-7316-47b1-bdcf-401b2ce6074f" }, "ResponseBody": { "value": [ @@ -49,6 +49,6 @@ "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "8087875" + "RandomSeed": "837824398" } } \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetIncidentRootCausesAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetIncidentRootCausesAsync.json index cc74b28510649..edff1ad9fb2ec 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetIncidentRootCausesAsync.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetIncidentRootCausesAsync.json @@ -6,26 +6,26 @@ "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-d8d83d2f7b5cd244a66488f2ec92c3eb-006b79ce5d541848-00", + "traceparent": "00-153a1549a13adc4f9a8c3fbebd2f0de1-bdbcf23704de6c48-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "4682dafb3be733821155311458ddf5f1", + "x-ms-client-request-id": "b2cb1dc37f0317ad375de1906703cb5c", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "51de5c3e-5da2-4505-86a7-e84d937249a3", + "apim-request-id": "00c3ca79-13d0-43df-ac31-f2190a8520ee", "Content-Length": "143", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 25 Sep 2020 22:10:17 GMT", + "Date": "Tue, 29 Sep 2020 23:42:48 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "322", - "X-Request-ID": "51de5c3e-5da2-4505-86a7-e84d937249a3" + "x-envoy-upstream-service-time": "258", + "X-Request-ID": "00c3ca79-13d0-43df-ac31-f2190a8520ee" }, "ResponseBody": { "value": [ @@ -49,6 +49,6 @@ "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "14121977" + "RandomSeed": "963813880" } } \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetIncidentsForAlert.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetIncidentsForAlert.json index fa1a01b289ff6..fdb933f339e1e 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetIncidentsForAlert.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetIncidentsForAlert.json @@ -7,24 +7,24 @@ "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "4e25fd993d5f9918c1754b116e0ccc20", + "x-ms-client-request-id": "4ac4ca457343b083d33ad7b92c303eb1", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "219dda66-f215-4fa8-82aa-7fd2ce13fff7", + "apim-request-id": "b6301448-fdcf-4130-91fc-a8b1e168854f", "Content-Length": "579", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 25 Sep 2020 22:49:10 GMT", + "Date": "Tue, 29 Sep 2020 23:42:35 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "253", - "X-Request-ID": "219dda66-f215-4fa8-82aa-7fd2ce13fff7" + "x-envoy-upstream-service-time": "264", + "X-Request-ID": "b6301448-fdcf-4130-91fc-a8b1e168854f" }, "ResponseBody": { "value": [ @@ -55,24 +55,24 @@ "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "618f07c057ec071caf3ef35664048a57", + "x-ms-client-request-id": "823705ba76a0fa35010bf440cf3b7b3c", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "25ba5ca8-c0b0-4d3c-9ce7-704d9a5ee07b", + "apim-request-id": "e5ec380f-d08d-4fc9-8a9a-aa8518f7d8fa", "Content-Length": "624", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 25 Sep 2020 22:49:12 GMT", + "Date": "Tue, 29 Sep 2020 23:42:36 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "282", - "X-Request-ID": "25ba5ca8-c0b0-4d3c-9ce7-704d9a5ee07b" + "x-envoy-upstream-service-time": "398", + "X-Request-ID": "e5ec380f-d08d-4fc9-8a9a-aa8518f7d8fa" }, "ResponseBody": { "value": [ @@ -104,24 +104,24 @@ "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "7ae79fa2334a0d4296bd2eeb70f9e806", + "x-ms-client-request-id": "24bc4f241348bfbdd1226d2be17af3c5", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "4bd16435-a28b-47f6-bcbf-ab7878ea027d", + "apim-request-id": "e7582bbb-f2e4-4a48-89d4-e7eadbe5c746", "Content-Length": "577", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 25 Sep 2020 22:49:12 GMT", + "Date": "Tue, 29 Sep 2020 23:42:36 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "264", - "X-Request-ID": "4bd16435-a28b-47f6-bcbf-ab7878ea027d" + "x-envoy-upstream-service-time": "238", + "X-Request-ID": "e7582bbb-f2e4-4a48-89d4-e7eadbe5c746" }, "ResponseBody": { "value": [ @@ -151,6 +151,6 @@ "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "567746569" + "RandomSeed": "997724452" } } \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetIncidentsForAlertAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetIncidentsForAlertAsync.json index fbebb2f4c2786..b4cc6e27c9508 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetIncidentsForAlertAsync.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetIncidentsForAlertAsync.json @@ -7,24 +7,24 @@ "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "3496db66611f7a9413e482becb523993", + "x-ms-client-request-id": "d9764eeacedf8816eb06a9116f8aebac", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "bb1fb91b-c2dc-4fce-8c91-6dd487b4bece", + "apim-request-id": "ec51e0b2-dd59-4efa-bacc-4823fa6608ca", "Content-Length": "579", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 25 Sep 2020 22:49:13 GMT", + "Date": "Tue, 29 Sep 2020 23:42:48 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "232", - "X-Request-ID": "bb1fb91b-c2dc-4fce-8c91-6dd487b4bece" + "x-envoy-upstream-service-time": "257", + "X-Request-ID": "ec51e0b2-dd59-4efa-bacc-4823fa6608ca" }, "ResponseBody": { "value": [ @@ -55,24 +55,24 @@ "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "d3ccd5eec01b907a9dee8bd6c832275c", + "x-ms-client-request-id": "5f927ce54a711252346b0202aa74e094", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "57e066df-6540-4a62-aaa2-3f732c95f1c2", + "apim-request-id": "246d9e8f-adba-4e75-a8f4-b453ef3c168b", "Content-Length": "624", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 25 Sep 2020 22:49:13 GMT", + "Date": "Tue, 29 Sep 2020 23:42:49 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "243", - "X-Request-ID": "57e066df-6540-4a62-aaa2-3f732c95f1c2" + "x-envoy-upstream-service-time": "277", + "X-Request-ID": "246d9e8f-adba-4e75-a8f4-b453ef3c168b" }, "ResponseBody": { "value": [ @@ -104,24 +104,24 @@ "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "407be44078ecdf0b9cfce5154bdea114", + "x-ms-client-request-id": "dc6c00f1f66f3296e1e7200ed25543aa", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "e321a00a-7b15-412b-8d4e-f1b2e0b790ba", + "apim-request-id": "e64d04ca-fea6-4221-acd2-387fb5ea2786", "Content-Length": "577", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 25 Sep 2020 22:49:13 GMT", + "Date": "Tue, 29 Sep 2020 23:42:49 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "224", - "X-Request-ID": "e321a00a-7b15-412b-8d4e-f1b2e0b790ba" + "x-envoy-upstream-service-time": "235", + "X-Request-ID": "e64d04ca-fea6-4221-acd2-387fb5ea2786" }, "ResponseBody": { "value": [ @@ -151,6 +151,6 @@ "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "1407964820" + "RandomSeed": "797099754" } } \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetIncidentsForDetectionConfiguration.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetIncidentsForDetectionConfiguration.json index 2c4552f22d8f2..8dd6915f21540 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetIncidentsForDetectionConfiguration.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetIncidentsForDetectionConfiguration.json @@ -9,28 +9,28 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "4dc6f4dced2daf215dbd14fdf5b64af0", + "x-ms-client-request-id": "dfb068d354664758af5cf540d0f8c1b8", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "startTime": "2015-09-25T22:07:05Z", - "endTime": "2020-09-25T22:07:05Z", + "startTime": "2015-09-29T23:42:37Z", + "endTime": "2020-09-29T23:42:37Z", "filter": {} }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "91f66a88-e467-4e09-bf49-802505cdf4d8", + "apim-request-id": "238dc4a4-454f-497c-bfce-6cffbc477cf8", "Content-Length": "860", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 25 Sep 2020 22:07:05 GMT", + "Date": "Tue, 29 Sep 2020 23:42:36 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "381", - "X-Request-ID": "91f66a88-e467-4e09-bf49-802505cdf4d8" + "x-envoy-upstream-service-time": "262", + "X-Request-ID": "238dc4a4-454f-497c-bfce-6cffbc477cf8" }, "ResponseBody": { "value": [ @@ -50,35 +50,35 @@ } } ], - "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/59f26a57-55f7-41eb-8899-a7268d125557/incidents/query?$top=1\u0026$token=eyJtZXRyaWNJZCI6IjgwMjE1M2E5LTE2NzEtNGE2Zi05MDFlLTY2YmJmMDkzODRkOSIsImRldGVjdENvbmZpZ0lkIjoiNTlmMjZhNTctNTVmNy00MWViLTg4OTktYTcyNjhkMTI1NTU3Iiwic3RhcnRUaW1lIjoiMjAxNS0wOS0yNVQyMjowNzowNVoiLCJlbmRUaW1lIjoiMjAyMC0wOS0yNVQyMjowNzowNVoiLCJuZXh0IjoiTWpBeU1DMHdPUzB4T0ZRd01Eb3dNRG93TUZvakl5TXdNVE5qTXpRME5UWmpOV0ZsWkRrd01XTTJObU5oTVdSbVpqQTNNVFJoWVE9PSIsImxpbWl0IjoxLCJmaWx0ZXIiOnt9fQ==" + "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/59f26a57-55f7-41eb-8899-a7268d125557/incidents/query?$top=1\u0026$token=eyJtZXRyaWNJZCI6IjgwMjE1M2E5LTE2NzEtNGE2Zi05MDFlLTY2YmJmMDkzODRkOSIsImRldGVjdENvbmZpZ0lkIjoiNTlmMjZhNTctNTVmNy00MWViLTg4OTktYTcyNjhkMTI1NTU3Iiwic3RhcnRUaW1lIjoiMjAxNS0wOS0yOVQyMzo0MjozN1oiLCJlbmRUaW1lIjoiMjAyMC0wOS0yOVQyMzo0MjozN1oiLCJuZXh0IjoiTWpBeU1DMHdPUzB4T0ZRd01Eb3dNRG93TUZvakl5TXdNVE5qTXpRME5UWmpOV0ZsWkRrd01XTTJObU5oTVdSbVpqQTNNVFJoWVE9PSIsImxpbWl0IjoxLCJmaWx0ZXIiOnt9fQ==" } }, { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/59f26a57-55f7-41eb-8899-a7268d125557/incidents/query?$top=1\u0026$token=eyJtZXRyaWNJZCI6IjgwMjE1M2E5LTE2NzEtNGE2Zi05MDFlLTY2YmJmMDkzODRkOSIsImRldGVjdENvbmZpZ0lkIjoiNTlmMjZhNTctNTVmNy00MWViLTg4OTktYTcyNjhkMTI1NTU3Iiwic3RhcnRUaW1lIjoiMjAxNS0wOS0yNVQyMjowNzowNVoiLCJlbmRUaW1lIjoiMjAyMC0wOS0yNVQyMjowNzowNVoiLCJuZXh0IjoiTWpBeU1DMHdPUzB4T0ZRd01Eb3dNRG93TUZvakl5TXdNVE5qTXpRME5UWmpOV0ZsWkRrd01XTTJObU5oTVdSbVpqQTNNVFJoWVE9PSIsImxpbWl0IjoxLCJmaWx0ZXIiOnt9fQ==", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/59f26a57-55f7-41eb-8899-a7268d125557/incidents/query?$top=1\u0026$token=eyJtZXRyaWNJZCI6IjgwMjE1M2E5LTE2NzEtNGE2Zi05MDFlLTY2YmJmMDkzODRkOSIsImRldGVjdENvbmZpZ0lkIjoiNTlmMjZhNTctNTVmNy00MWViLTg4OTktYTcyNjhkMTI1NTU3Iiwic3RhcnRUaW1lIjoiMjAxNS0wOS0yOVQyMzo0MjozN1oiLCJlbmRUaW1lIjoiMjAyMC0wOS0yOVQyMzo0MjozN1oiLCJuZXh0IjoiTWpBeU1DMHdPUzB4T0ZRd01Eb3dNRG93TUZvakl5TXdNVE5qTXpRME5UWmpOV0ZsWkRrd01XTTJObU5oTVdSbVpqQTNNVFJoWVE9PSIsImxpbWl0IjoxLCJmaWx0ZXIiOnt9fQ==", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "6885a6158f643c30de23f032769ca750", + "x-ms-client-request-id": "4941a8a192798f2430fca0cf5eed9432", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "043a9c51-ca27-43ee-ab85-9de759ff1e10", + "apim-request-id": "9090d175-95d4-46d2-ae72-2b7c8329865e", "Content-Length": "867", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 25 Sep 2020 22:07:05 GMT", + "Date": "Tue, 29 Sep 2020 23:42:37 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "200", - "X-Request-ID": "043a9c51-ca27-43ee-ab85-9de759ff1e10" + "x-envoy-upstream-service-time": "226", + "X-Request-ID": "9090d175-95d4-46d2-ae72-2b7c8329865e" }, "ResponseBody": { "value": [ @@ -98,35 +98,35 @@ } } ], - "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/59f26a57-55f7-41eb-8899-a7268d125557/incidents/query?$top=1\u0026$token=eyJtZXRyaWNJZCI6IjgwMjE1M2E5LTE2NzEtNGE2Zi05MDFlLTY2YmJmMDkzODRkOSIsImRldGVjdENvbmZpZ0lkIjoiNTlmMjZhNTctNTVmNy00MWViLTg4OTktYTcyNjhkMTI1NTU3Iiwic3RhcnRUaW1lIjoiMjAxNS0wOS0yNVQyMjowNzowNVoiLCJlbmRUaW1lIjoiMjAyMC0wOS0yNVQyMjowNzowNVoiLCJuZXh0IjoiTWpBeU1DMHdPUzB4T0ZRd01Eb3dNRG93TUZvakl5TXdPRE13T1dVNU9HWmhZekk1WmpFd1ltSTJNamRtTUdZME1EYzRPREZpTnc9PSIsImxpbWl0IjoxLCJmaWx0ZXIiOnt9fQ==" + "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/59f26a57-55f7-41eb-8899-a7268d125557/incidents/query?$top=1\u0026$token=eyJtZXRyaWNJZCI6IjgwMjE1M2E5LTE2NzEtNGE2Zi05MDFlLTY2YmJmMDkzODRkOSIsImRldGVjdENvbmZpZ0lkIjoiNTlmMjZhNTctNTVmNy00MWViLTg4OTktYTcyNjhkMTI1NTU3Iiwic3RhcnRUaW1lIjoiMjAxNS0wOS0yOVQyMzo0MjozN1oiLCJlbmRUaW1lIjoiMjAyMC0wOS0yOVQyMzo0MjozN1oiLCJuZXh0IjoiTWpBeU1DMHdPUzB4T0ZRd01Eb3dNRG93TUZvakl5TXdPRE13T1dVNU9HWmhZekk1WmpFd1ltSTJNamRtTUdZME1EYzRPREZpTnc9PSIsImxpbWl0IjoxLCJmaWx0ZXIiOnt9fQ==" } }, { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/59f26a57-55f7-41eb-8899-a7268d125557/incidents/query?$top=1\u0026$token=eyJtZXRyaWNJZCI6IjgwMjE1M2E5LTE2NzEtNGE2Zi05MDFlLTY2YmJmMDkzODRkOSIsImRldGVjdENvbmZpZ0lkIjoiNTlmMjZhNTctNTVmNy00MWViLTg4OTktYTcyNjhkMTI1NTU3Iiwic3RhcnRUaW1lIjoiMjAxNS0wOS0yNVQyMjowNzowNVoiLCJlbmRUaW1lIjoiMjAyMC0wOS0yNVQyMjowNzowNVoiLCJuZXh0IjoiTWpBeU1DMHdPUzB4T0ZRd01Eb3dNRG93TUZvakl5TXdPRE13T1dVNU9HWmhZekk1WmpFd1ltSTJNamRtTUdZME1EYzRPREZpTnc9PSIsImxpbWl0IjoxLCJmaWx0ZXIiOnt9fQ==", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/59f26a57-55f7-41eb-8899-a7268d125557/incidents/query?$top=1\u0026$token=eyJtZXRyaWNJZCI6IjgwMjE1M2E5LTE2NzEtNGE2Zi05MDFlLTY2YmJmMDkzODRkOSIsImRldGVjdENvbmZpZ0lkIjoiNTlmMjZhNTctNTVmNy00MWViLTg4OTktYTcyNjhkMTI1NTU3Iiwic3RhcnRUaW1lIjoiMjAxNS0wOS0yOVQyMzo0MjozN1oiLCJlbmRUaW1lIjoiMjAyMC0wOS0yOVQyMzo0MjozN1oiLCJuZXh0IjoiTWpBeU1DMHdPUzB4T0ZRd01Eb3dNRG93TUZvakl5TXdPRE13T1dVNU9HWmhZekk1WmpFd1ltSTJNamRtTUdZME1EYzRPREZpTnc9PSIsImxpbWl0IjoxLCJmaWx0ZXIiOnt9fQ==", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "a1be459756f3dd70a76d1256652b1edb", + "x-ms-client-request-id": "61dc61db24dfd30d4a5572a11c2f2b7a", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "5bf45556-60c6-40ca-8bbf-7294c20684c1", + "apim-request-id": "050788ae-4dd1-4e4e-b8c2-d00e5161648e", "Content-Length": "879", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 25 Sep 2020 22:07:05 GMT", + "Date": "Tue, 29 Sep 2020 23:42:37 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "213", - "X-Request-ID": "5bf45556-60c6-40ca-8bbf-7294c20684c1" + "x-envoy-upstream-service-time": "212", + "X-Request-ID": "050788ae-4dd1-4e4e-b8c2-d00e5161648e" }, "ResponseBody": { "value": [ @@ -146,16 +146,16 @@ } } ], - "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/59f26a57-55f7-41eb-8899-a7268d125557/incidents/query?$top=1\u0026$token=eyJtZXRyaWNJZCI6IjgwMjE1M2E5LTE2NzEtNGE2Zi05MDFlLTY2YmJmMDkzODRkOSIsImRldGVjdENvbmZpZ0lkIjoiNTlmMjZhNTctNTVmNy00MWViLTg4OTktYTcyNjhkMTI1NTU3Iiwic3RhcnRUaW1lIjoiMjAxNS0wOS0yNVQyMjowNzowNVoiLCJlbmRUaW1lIjoiMjAyMC0wOS0yNVQyMjowNzowNVoiLCJuZXh0IjoiTWpBeU1DMHdPUzB4T0ZRd01Eb3dNRG93TUZvakl5TXlNR1l5TURZek16UmhOemhqTmpoa1kyVmtaalppWmpOa09EbGhPR0k1Tnc9PSIsImxpbWl0IjoxLCJmaWx0ZXIiOnt9fQ==" + "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/59f26a57-55f7-41eb-8899-a7268d125557/incidents/query?$top=1\u0026$token=eyJtZXRyaWNJZCI6IjgwMjE1M2E5LTE2NzEtNGE2Zi05MDFlLTY2YmJmMDkzODRkOSIsImRldGVjdENvbmZpZ0lkIjoiNTlmMjZhNTctNTVmNy00MWViLTg4OTktYTcyNjhkMTI1NTU3Iiwic3RhcnRUaW1lIjoiMjAxNS0wOS0yOVQyMzo0MjozN1oiLCJlbmRUaW1lIjoiMjAyMC0wOS0yOVQyMzo0MjozN1oiLCJuZXh0IjoiTWpBeU1DMHdPUzB4T0ZRd01Eb3dNRG93TUZvakl5TXlNR1l5TURZek16UmhOemhqTmpoa1kyVmtaalppWmpOa09EbGhPR0k1Tnc9PSIsImxpbWl0IjoxLCJmaWx0ZXIiOnt9fQ==" } } ], "Variables": { - "DateTimeOffsetNow": "2020-09-25T17:07:05.2684029-05:00", + "DateTimeOffsetNow": "2020-09-29T18:42:37.6879327-05:00", "METRICSADVISOR_ACCOUNT_NAME": "anuchan-cg-metric-advisor", "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "679066508" + "RandomSeed": "1921701175" } } \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetIncidentsForDetectionConfigurationAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetIncidentsForDetectionConfigurationAsync.json index 9c6b5b46a4ca1..1a6351e7e09d4 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetIncidentsForDetectionConfigurationAsync.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetIncidentsForDetectionConfigurationAsync.json @@ -9,28 +9,28 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "ec020dd5f0c3fcbbfb7e9c35d9f0855c", + "x-ms-client-request-id": "9dc9617652bafd4ec2d246b80e7a6145", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "startTime": "2015-09-25T22:07:07Z", - "endTime": "2020-09-25T22:07:07Z", + "startTime": "2015-09-29T23:42:50Z", + "endTime": "2020-09-29T23:42:50Z", "filter": {} }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "96d9eacd-c16a-41e2-8c31-ea576077c026", + "apim-request-id": "ddd2a7f9-9288-4a8c-99a0-351d77631c21", "Content-Length": "860", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 25 Sep 2020 22:07:07 GMT", + "Date": "Tue, 29 Sep 2020 23:42:49 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "281", - "X-Request-ID": "96d9eacd-c16a-41e2-8c31-ea576077c026" + "x-envoy-upstream-service-time": "235", + "X-Request-ID": "ddd2a7f9-9288-4a8c-99a0-351d77631c21" }, "ResponseBody": { "value": [ @@ -50,35 +50,35 @@ } } ], - "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/59f26a57-55f7-41eb-8899-a7268d125557/incidents/query?$top=1\u0026$token=eyJtZXRyaWNJZCI6IjgwMjE1M2E5LTE2NzEtNGE2Zi05MDFlLTY2YmJmMDkzODRkOSIsImRldGVjdENvbmZpZ0lkIjoiNTlmMjZhNTctNTVmNy00MWViLTg4OTktYTcyNjhkMTI1NTU3Iiwic3RhcnRUaW1lIjoiMjAxNS0wOS0yNVQyMjowNzowN1oiLCJlbmRUaW1lIjoiMjAyMC0wOS0yNVQyMjowNzowN1oiLCJuZXh0IjoiTWpBeU1DMHdPUzB4T0ZRd01Eb3dNRG93TUZvakl5TXdNVE5qTXpRME5UWmpOV0ZsWkRrd01XTTJObU5oTVdSbVpqQTNNVFJoWVE9PSIsImxpbWl0IjoxLCJmaWx0ZXIiOnt9fQ==" + "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/59f26a57-55f7-41eb-8899-a7268d125557/incidents/query?$top=1\u0026$token=eyJtZXRyaWNJZCI6IjgwMjE1M2E5LTE2NzEtNGE2Zi05MDFlLTY2YmJmMDkzODRkOSIsImRldGVjdENvbmZpZ0lkIjoiNTlmMjZhNTctNTVmNy00MWViLTg4OTktYTcyNjhkMTI1NTU3Iiwic3RhcnRUaW1lIjoiMjAxNS0wOS0yOVQyMzo0Mjo1MFoiLCJlbmRUaW1lIjoiMjAyMC0wOS0yOVQyMzo0Mjo1MFoiLCJuZXh0IjoiTWpBeU1DMHdPUzB4T0ZRd01Eb3dNRG93TUZvakl5TXdNVE5qTXpRME5UWmpOV0ZsWkRrd01XTTJObU5oTVdSbVpqQTNNVFJoWVE9PSIsImxpbWl0IjoxLCJmaWx0ZXIiOnt9fQ==" } }, { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/59f26a57-55f7-41eb-8899-a7268d125557/incidents/query?$top=1\u0026$token=eyJtZXRyaWNJZCI6IjgwMjE1M2E5LTE2NzEtNGE2Zi05MDFlLTY2YmJmMDkzODRkOSIsImRldGVjdENvbmZpZ0lkIjoiNTlmMjZhNTctNTVmNy00MWViLTg4OTktYTcyNjhkMTI1NTU3Iiwic3RhcnRUaW1lIjoiMjAxNS0wOS0yNVQyMjowNzowN1oiLCJlbmRUaW1lIjoiMjAyMC0wOS0yNVQyMjowNzowN1oiLCJuZXh0IjoiTWpBeU1DMHdPUzB4T0ZRd01Eb3dNRG93TUZvakl5TXdNVE5qTXpRME5UWmpOV0ZsWkRrd01XTTJObU5oTVdSbVpqQTNNVFJoWVE9PSIsImxpbWl0IjoxLCJmaWx0ZXIiOnt9fQ==", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/59f26a57-55f7-41eb-8899-a7268d125557/incidents/query?$top=1\u0026$token=eyJtZXRyaWNJZCI6IjgwMjE1M2E5LTE2NzEtNGE2Zi05MDFlLTY2YmJmMDkzODRkOSIsImRldGVjdENvbmZpZ0lkIjoiNTlmMjZhNTctNTVmNy00MWViLTg4OTktYTcyNjhkMTI1NTU3Iiwic3RhcnRUaW1lIjoiMjAxNS0wOS0yOVQyMzo0Mjo1MFoiLCJlbmRUaW1lIjoiMjAyMC0wOS0yOVQyMzo0Mjo1MFoiLCJuZXh0IjoiTWpBeU1DMHdPUzB4T0ZRd01Eb3dNRG93TUZvakl5TXdNVE5qTXpRME5UWmpOV0ZsWkRrd01XTTJObU5oTVdSbVpqQTNNVFJoWVE9PSIsImxpbWl0IjoxLCJmaWx0ZXIiOnt9fQ==", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "daab24b06008a50ccfd62605ed045482", + "x-ms-client-request-id": "889ce3185ade22d0c1a769702ce72f5c", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "7940c5d1-3453-4d1f-b726-031b7e782680", + "apim-request-id": "afb29a85-5f73-411e-b48b-dde9ff8e6ce6", "Content-Length": "867", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 25 Sep 2020 22:07:07 GMT", + "Date": "Tue, 29 Sep 2020 23:42:50 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "210", - "X-Request-ID": "7940c5d1-3453-4d1f-b726-031b7e782680" + "x-envoy-upstream-service-time": "212", + "X-Request-ID": "afb29a85-5f73-411e-b48b-dde9ff8e6ce6" }, "ResponseBody": { "value": [ @@ -98,35 +98,35 @@ } } ], - "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/59f26a57-55f7-41eb-8899-a7268d125557/incidents/query?$top=1\u0026$token=eyJtZXRyaWNJZCI6IjgwMjE1M2E5LTE2NzEtNGE2Zi05MDFlLTY2YmJmMDkzODRkOSIsImRldGVjdENvbmZpZ0lkIjoiNTlmMjZhNTctNTVmNy00MWViLTg4OTktYTcyNjhkMTI1NTU3Iiwic3RhcnRUaW1lIjoiMjAxNS0wOS0yNVQyMjowNzowN1oiLCJlbmRUaW1lIjoiMjAyMC0wOS0yNVQyMjowNzowN1oiLCJuZXh0IjoiTWpBeU1DMHdPUzB4T0ZRd01Eb3dNRG93TUZvakl5TXdPRE13T1dVNU9HWmhZekk1WmpFd1ltSTJNamRtTUdZME1EYzRPREZpTnc9PSIsImxpbWl0IjoxLCJmaWx0ZXIiOnt9fQ==" + "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/59f26a57-55f7-41eb-8899-a7268d125557/incidents/query?$top=1\u0026$token=eyJtZXRyaWNJZCI6IjgwMjE1M2E5LTE2NzEtNGE2Zi05MDFlLTY2YmJmMDkzODRkOSIsImRldGVjdENvbmZpZ0lkIjoiNTlmMjZhNTctNTVmNy00MWViLTg4OTktYTcyNjhkMTI1NTU3Iiwic3RhcnRUaW1lIjoiMjAxNS0wOS0yOVQyMzo0Mjo1MFoiLCJlbmRUaW1lIjoiMjAyMC0wOS0yOVQyMzo0Mjo1MFoiLCJuZXh0IjoiTWpBeU1DMHdPUzB4T0ZRd01Eb3dNRG93TUZvakl5TXdPRE13T1dVNU9HWmhZekk1WmpFd1ltSTJNamRtTUdZME1EYzRPREZpTnc9PSIsImxpbWl0IjoxLCJmaWx0ZXIiOnt9fQ==" } }, { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/59f26a57-55f7-41eb-8899-a7268d125557/incidents/query?$top=1\u0026$token=eyJtZXRyaWNJZCI6IjgwMjE1M2E5LTE2NzEtNGE2Zi05MDFlLTY2YmJmMDkzODRkOSIsImRldGVjdENvbmZpZ0lkIjoiNTlmMjZhNTctNTVmNy00MWViLTg4OTktYTcyNjhkMTI1NTU3Iiwic3RhcnRUaW1lIjoiMjAxNS0wOS0yNVQyMjowNzowN1oiLCJlbmRUaW1lIjoiMjAyMC0wOS0yNVQyMjowNzowN1oiLCJuZXh0IjoiTWpBeU1DMHdPUzB4T0ZRd01Eb3dNRG93TUZvakl5TXdPRE13T1dVNU9HWmhZekk1WmpFd1ltSTJNamRtTUdZME1EYzRPREZpTnc9PSIsImxpbWl0IjoxLCJmaWx0ZXIiOnt9fQ==", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/59f26a57-55f7-41eb-8899-a7268d125557/incidents/query?$top=1\u0026$token=eyJtZXRyaWNJZCI6IjgwMjE1M2E5LTE2NzEtNGE2Zi05MDFlLTY2YmJmMDkzODRkOSIsImRldGVjdENvbmZpZ0lkIjoiNTlmMjZhNTctNTVmNy00MWViLTg4OTktYTcyNjhkMTI1NTU3Iiwic3RhcnRUaW1lIjoiMjAxNS0wOS0yOVQyMzo0Mjo1MFoiLCJlbmRUaW1lIjoiMjAyMC0wOS0yOVQyMzo0Mjo1MFoiLCJuZXh0IjoiTWpBeU1DMHdPUzB4T0ZRd01Eb3dNRG93TUZvakl5TXdPRE13T1dVNU9HWmhZekk1WmpFd1ltSTJNamRtTUdZME1EYzRPREZpTnc9PSIsImxpbWl0IjoxLCJmaWx0ZXIiOnt9fQ==", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "29b7c42ac0e9256b0a479a47ba10d6fe", + "x-ms-client-request-id": "50827f307158354d5701db25e73e942f", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "a1eef87e-78a1-43ac-89b1-fdb4699a5352", + "apim-request-id": "5ee13046-d3c1-4b82-ad71-3ad2187a1dca", "Content-Length": "879", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 25 Sep 2020 22:07:08 GMT", + "Date": "Tue, 29 Sep 2020 23:42:50 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "213", - "X-Request-ID": "a1eef87e-78a1-43ac-89b1-fdb4699a5352" + "x-envoy-upstream-service-time": "207", + "X-Request-ID": "5ee13046-d3c1-4b82-ad71-3ad2187a1dca" }, "ResponseBody": { "value": [ @@ -146,16 +146,16 @@ } } ], - "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/59f26a57-55f7-41eb-8899-a7268d125557/incidents/query?$top=1\u0026$token=eyJtZXRyaWNJZCI6IjgwMjE1M2E5LTE2NzEtNGE2Zi05MDFlLTY2YmJmMDkzODRkOSIsImRldGVjdENvbmZpZ0lkIjoiNTlmMjZhNTctNTVmNy00MWViLTg4OTktYTcyNjhkMTI1NTU3Iiwic3RhcnRUaW1lIjoiMjAxNS0wOS0yNVQyMjowNzowN1oiLCJlbmRUaW1lIjoiMjAyMC0wOS0yNVQyMjowNzowN1oiLCJuZXh0IjoiTWpBeU1DMHdPUzB4T0ZRd01Eb3dNRG93TUZvakl5TXlNR1l5TURZek16UmhOemhqTmpoa1kyVmtaalppWmpOa09EbGhPR0k1Tnc9PSIsImxpbWl0IjoxLCJmaWx0ZXIiOnt9fQ==" + "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/59f26a57-55f7-41eb-8899-a7268d125557/incidents/query?$top=1\u0026$token=eyJtZXRyaWNJZCI6IjgwMjE1M2E5LTE2NzEtNGE2Zi05MDFlLTY2YmJmMDkzODRkOSIsImRldGVjdENvbmZpZ0lkIjoiNTlmMjZhNTctNTVmNy00MWViLTg4OTktYTcyNjhkMTI1NTU3Iiwic3RhcnRUaW1lIjoiMjAxNS0wOS0yOVQyMzo0Mjo1MFoiLCJlbmRUaW1lIjoiMjAyMC0wOS0yOVQyMzo0Mjo1MFoiLCJuZXh0IjoiTWpBeU1DMHdPUzB4T0ZRd01Eb3dNRG93TUZvakl5TXlNR1l5TURZek16UmhOemhqTmpoa1kyVmtaalppWmpOa09EbGhPR0k1Tnc9PSIsImxpbWl0IjoxLCJmaWx0ZXIiOnt9fQ==" } } ], "Variables": { - "DateTimeOffsetNow": "2020-09-25T17:07:07.2207549-05:00", + "DateTimeOffsetNow": "2020-09-29T18:42:50.7599586-05:00", "METRICSADVISOR_ACCOUNT_NAME": "anuchan-cg-metric-advisor", "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "734969016" + "RandomSeed": "1560795021" } } \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricDimensionValues.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricDimensionValues.json index 7ec8a825ee3fb..fbc1868a1352d 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricDimensionValues.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricDimensionValues.json @@ -7,39 +7,39 @@ "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "b2711300a04f83ec0066f7c24993005b", + "x-ms-client-request-id": "8a1c0cdef771fc75f842c6f1d833f1f8", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "cf5a0122-5791-4b9f-97fc-a3ad0e110403", - "Content-Length": "1631", + "apim-request-id": "98e9a6b2-218e-4e98-be63-3e1f160062c6", + "Content-Length": "1630", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:43 GMT", + "Date": "Tue, 29 Sep 2020 23:42:37 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "101", - "X-Request-ID": "cf5a0122-5791-4b9f-97fc-a3ad0e110403" + "x-envoy-upstream-service-time": "128", + "X-Request-ID": "98e9a6b2-218e-4e98-be63-3e1f160062c6" }, "ResponseBody": { "value": [ { - "dataFeedId": "dd64cd95-f22f-4176-9554-ded0b8db83a1", - "dataFeedName": "testElasticsearchDataFeed2", + "dataFeedId": "0072a752-1476-4cfa-8cf0-f226995201a0", + "dataFeedName": "testElasticsearchDataFeed", "metrics": [ { - "metricId": "2b11308b-9233-403c-bb9e-6b573cda3c08", + "metricId": "04f6e969-2302-412e-98b2-8c41e3a0e22e", "metricName": "Metric1", "metricDisplayName": "Metric1", "metricDescription": "" }, { - "metricId": "36fe66a2-b1fe-4930-baa0-09efe7d08a31", + "metricId": "4e5ea50b-d983-4d91-bc00-f9630941fd2d", "metricName": "Metric2", "metricDisplayName": "Metric2", "metricDescription": "" @@ -89,7 +89,7 @@ "viewers": [], "creator": "foo@contoso.com", "status": "Active", - "createdTime": "2020-09-25T17:11:17Z", + "createdTime": "2020-09-25T00:58:52Z", "isAdmin": true, "actionLinkTemplate": "", "dataSourceParameter": { @@ -104,7 +104,7 @@ } }, { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/2b11308b-9233-403c-bb9e-6b573cda3c08/dimension/query", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/04f6e969-2302-412e-98b2-8c41e3a0e22e/dimension/query", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -112,11 +112,11 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "29137ff62542d51ad9946cb0925ce78a", + "x-ms-client-request-id": "0ccbdc8cf448dba9bcc95a78782c39c4", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -124,14 +124,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "13d99a6f-6d7f-49c2-bfa2-b6ae7315c272", + "apim-request-id": "354f6f05-8654-4543-99d9-4f78050bfbd1", "Content-Length": "29", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:43 GMT", + "Date": "Tue, 29 Sep 2020 23:42:38 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "88", - "X-Request-ID": "13d99a6f-6d7f-49c2-bfa2-b6ae7315c272" + "x-envoy-upstream-service-time": "80", + "X-Request-ID": "354f6f05-8654-4543-99d9-4f78050bfbd1" }, "ResponseBody": { "value": [], @@ -139,7 +139,7 @@ } }, { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/2b11308b-9233-403c-bb9e-6b573cda3c08/dimension/query", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/04f6e969-2302-412e-98b2-8c41e3a0e22e/dimension/query", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -147,11 +147,11 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "eb7c6ca258706350a04398ffa3f4a38e", + "x-ms-client-request-id": "18fa9b755341f29a51dc7fb7c8ca8079", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -159,14 +159,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "68651418-11a5-4004-8c58-830ea60d742e", + "apim-request-id": "4cf9a594-9d64-4b84-8adf-9b6b6eb1d212", "Content-Length": "29", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:43 GMT", + "Date": "Tue, 29 Sep 2020 23:42:38 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "78", - "X-Request-ID": "68651418-11a5-4004-8c58-830ea60d742e" + "x-envoy-upstream-service-time": "90", + "X-Request-ID": "4cf9a594-9d64-4b84-8adf-9b6b6eb1d212" }, "ResponseBody": { "value": [], @@ -174,7 +174,7 @@ } }, { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/36fe66a2-b1fe-4930-baa0-09efe7d08a31/dimension/query", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/4e5ea50b-d983-4d91-bc00-f9630941fd2d/dimension/query", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -182,11 +182,11 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "224693dcd966da81f99cd8bb343bf0a3", + "x-ms-client-request-id": "493d1785744ce9546240cda79cfc84cc", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -194,14 +194,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "662d1b6d-a3fc-491f-8169-905013456301", + "apim-request-id": "a54952c8-5a83-43f0-aadb-a89a8f343c08", "Content-Length": "29", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:43 GMT", + "Date": "Tue, 29 Sep 2020 23:42:38 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "77", - "X-Request-ID": "662d1b6d-a3fc-491f-8169-905013456301" + "x-envoy-upstream-service-time": "82", + "X-Request-ID": "a54952c8-5a83-43f0-aadb-a89a8f343c08" }, "ResponseBody": { "value": [], @@ -209,7 +209,7 @@ } }, { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/36fe66a2-b1fe-4930-baa0-09efe7d08a31/dimension/query", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/4e5ea50b-d983-4d91-bc00-f9630941fd2d/dimension/query", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -217,11 +217,11 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "dd1f6c7e15169eeb2fb088ff8d1a31e5", + "x-ms-client-request-id": "3d7b0109d83938b642d8bb6c74f213f2", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -229,14 +229,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "7963172a-74ed-4bf3-a47a-fc51432b6b50", + "apim-request-id": "d69e2be1-b851-4587-a54a-3a62d28389ba", "Content-Length": "29", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:44 GMT", + "Date": "Tue, 29 Sep 2020 23:42:38 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "75", - "X-Request-ID": "7963172a-74ed-4bf3-a47a-fc51432b6b50" + "x-envoy-upstream-service-time": "87", + "X-Request-ID": "d69e2be1-b851-4587-a54a-3a62d28389ba" }, "ResponseBody": { "value": [], @@ -249,6 +249,6 @@ "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "1712533915" + "RandomSeed": "1477673138" } -} +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricDimensionValuesAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricDimensionValuesAsync.json index c9d58c3f68aa4..cc14f9bbc720b 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricDimensionValuesAsync.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricDimensionValuesAsync.json @@ -7,39 +7,39 @@ "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "b82470337173edb21037da832f13b715", + "x-ms-client-request-id": "edd213c8913de1d14c79daa35733ac6e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "333f8af1-2c36-478b-bb30-c7d730fc1f90", - "Content-Length": "1631", + "apim-request-id": "481940cb-417c-4e12-a397-fa07fc22583f", + "Content-Length": "1630", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:47 GMT", + "Date": "Tue, 29 Sep 2020 23:42:50 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "126", - "X-Request-ID": "333f8af1-2c36-478b-bb30-c7d730fc1f90" + "x-envoy-upstream-service-time": "112", + "X-Request-ID": "481940cb-417c-4e12-a397-fa07fc22583f" }, "ResponseBody": { "value": [ { - "dataFeedId": "dd64cd95-f22f-4176-9554-ded0b8db83a1", - "dataFeedName": "testElasticsearchDataFeed2", + "dataFeedId": "0072a752-1476-4cfa-8cf0-f226995201a0", + "dataFeedName": "testElasticsearchDataFeed", "metrics": [ { - "metricId": "2b11308b-9233-403c-bb9e-6b573cda3c08", + "metricId": "04f6e969-2302-412e-98b2-8c41e3a0e22e", "metricName": "Metric1", "metricDisplayName": "Metric1", "metricDescription": "" }, { - "metricId": "36fe66a2-b1fe-4930-baa0-09efe7d08a31", + "metricId": "4e5ea50b-d983-4d91-bc00-f9630941fd2d", "metricName": "Metric2", "metricDisplayName": "Metric2", "metricDescription": "" @@ -89,7 +89,7 @@ "viewers": [], "creator": "foo@contoso.com", "status": "Active", - "createdTime": "2020-09-25T17:11:17Z", + "createdTime": "2020-09-25T00:58:52Z", "isAdmin": true, "actionLinkTemplate": "", "dataSourceParameter": { @@ -104,7 +104,7 @@ } }, { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/2b11308b-9233-403c-bb9e-6b573cda3c08/dimension/query", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/04f6e969-2302-412e-98b2-8c41e3a0e22e/dimension/query", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -112,11 +112,11 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "76aeeeff29a877b178a372b7a18bdc02", + "x-ms-client-request-id": "762836917ebe3bb2350ce9a6aca788d9", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -124,14 +124,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "fef6f8e3-f841-4c3e-a988-d8bba31a61f3", + "apim-request-id": "41a40036-b27d-41c5-a6b1-a36f7ca2b3a5", "Content-Length": "29", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:47 GMT", + "Date": "Tue, 29 Sep 2020 23:42:51 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "79", - "X-Request-ID": "fef6f8e3-f841-4c3e-a988-d8bba31a61f3" + "x-envoy-upstream-service-time": "89", + "X-Request-ID": "41a40036-b27d-41c5-a6b1-a36f7ca2b3a5" }, "ResponseBody": { "value": [], @@ -139,7 +139,7 @@ } }, { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/2b11308b-9233-403c-bb9e-6b573cda3c08/dimension/query", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/04f6e969-2302-412e-98b2-8c41e3a0e22e/dimension/query", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -147,11 +147,11 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "72edcb4d830b7ab7d0ba9c38fab2860c", + "x-ms-client-request-id": "0e4ef1990b6db58f0d6c365ed11fe071", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -159,14 +159,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "e376586f-a238-46ff-814d-4c16c276a12c", + "apim-request-id": "ad5e0950-985a-40ac-87af-9e01ca58223a", "Content-Length": "29", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:47 GMT", + "Date": "Tue, 29 Sep 2020 23:42:51 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "80", - "X-Request-ID": "e376586f-a238-46ff-814d-4c16c276a12c" + "x-envoy-upstream-service-time": "75", + "X-Request-ID": "ad5e0950-985a-40ac-87af-9e01ca58223a" }, "ResponseBody": { "value": [], @@ -174,7 +174,7 @@ } }, { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/36fe66a2-b1fe-4930-baa0-09efe7d08a31/dimension/query", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/4e5ea50b-d983-4d91-bc00-f9630941fd2d/dimension/query", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -182,11 +182,11 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "ff5c6e77216009dbbfad3fd0fefa4b85", + "x-ms-client-request-id": "1dfaf7a2053049196096b831a72b35a5", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -194,14 +194,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "3a69f207-3e6b-4392-b3a0-a43d14e39286", + "apim-request-id": "f6bf43a4-a88c-45bd-a3b1-7303d8a54786", "Content-Length": "29", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:47 GMT", + "Date": "Tue, 29 Sep 2020 23:42:51 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "81", - "X-Request-ID": "3a69f207-3e6b-4392-b3a0-a43d14e39286" + "x-envoy-upstream-service-time": "73", + "X-Request-ID": "f6bf43a4-a88c-45bd-a3b1-7303d8a54786" }, "ResponseBody": { "value": [], @@ -209,7 +209,7 @@ } }, { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/36fe66a2-b1fe-4930-baa0-09efe7d08a31/dimension/query", + "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/4e5ea50b-d983-4d91-bc00-f9630941fd2d/dimension/query", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -217,11 +217,11 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "6436d75b45267b093634a6ee8d797dc5", + "x-ms-client-request-id": "660900f09de58601a773695148546a15", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -229,14 +229,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "102ad3dd-10c6-48cd-942b-b8858f61459c", + "apim-request-id": "e48a5de2-c708-416e-89d9-609ff62bdc19", "Content-Length": "29", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:47 GMT", + "Date": "Tue, 29 Sep 2020 23:42:51 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "81", - "X-Request-ID": "102ad3dd-10c6-48cd-942b-b8858f61459c" + "x-envoy-upstream-service-time": "83", + "X-Request-ID": "e48a5de2-c708-416e-89d9-609ff62bdc19" }, "ResponseBody": { "value": [], @@ -249,6 +249,6 @@ "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "377768748" + "RandomSeed": "268493700" } -} +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricEnrichedSeriesData.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricEnrichedSeriesData.json index 25f65d862cd52..3a6ea773e451d 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricEnrichedSeriesData.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricEnrichedSeriesData.json @@ -8,18 +8,18 @@ "Content-Length": "187", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-01698b37c7cc5e439e3345a8fa4279ea-1fbc8e97f2e7cc4c-00", + "traceparent": "00-1492289c05f50a4cb0a800b71942d80a-309768787b880841-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "043eec38bdd21498517199b5269dbf93", + "x-ms-client-request-id": "943799e643d82674ec57b6f6dce16b40", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "startTime": "2020-04-25T23:25:51Z", - "endTime": "2020-09-25T23:25:51Z", + "startTime": "2020-04-29T23:42:40Z", + "endTime": "2020-09-29T23:42:40Z", "series": [ { "dimension": { @@ -37,14 +37,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "769ef93c-5b24-4057-a7ab-5fa75eec6814", + "apim-request-id": "4f63b58d-adb3-416d-9b8f-98feaa01ec4d", "Content-Length": "416", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 25 Sep 2020 23:25:52 GMT", + "Date": "Tue, 29 Sep 2020 23:42:39 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "213", - "X-Request-ID": "769ef93c-5b24-4057-a7ab-5fa75eec6814" + "x-envoy-upstream-service-time": "205", + "X-Request-ID": "4f63b58d-adb3-416d-9b8f-98feaa01ec4d" }, "ResponseBody": { "value": [ @@ -83,11 +83,11 @@ } ], "Variables": { - "DateTimeOffsetNow": "2020-09-25T18:25:51.5123841-05:00", + "DateTimeOffsetNow": "2020-09-29T18:42:40.0515349-05:00", "METRICSADVISOR_ACCOUNT_NAME": "anuchan-cg-metric-advisor", "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "499636386" + "RandomSeed": "837307772" } } \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricEnrichedSeriesDataAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricEnrichedSeriesDataAsync.json index 825a46c016873..da28d5300176f 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricEnrichedSeriesDataAsync.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricEnrichedSeriesDataAsync.json @@ -8,18 +8,18 @@ "Content-Length": "187", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-7f52cbe7f5a8bc4dbb575c2c793e1837-48e4469bbbf73445-00", + "traceparent": "00-ddf58d41448e3949a03d5caa4f468240-f968f6aba584f04c-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "fbfb8ce85006b13cd9cb938e5f8b82d9", + "x-ms-client-request-id": "6df17646b7903d7fa735b23f84e955e7", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "startTime": "2020-04-25T23:25:52Z", - "endTime": "2020-09-25T23:25:52Z", + "startTime": "2020-04-29T23:42:53Z", + "endTime": "2020-09-29T23:42:53Z", "series": [ { "dimension": { @@ -37,14 +37,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "b3125748-f24c-48df-9371-b4436221152d", + "apim-request-id": "e1bcd591-f553-4f9b-8619-c7e614c6a933", "Content-Length": "416", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 25 Sep 2020 23:25:52 GMT", + "Date": "Tue, 29 Sep 2020 23:42:53 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "206", - "X-Request-ID": "b3125748-f24c-48df-9371-b4436221152d" + "x-envoy-upstream-service-time": "243", + "X-Request-ID": "e1bcd591-f553-4f9b-8619-c7e614c6a933" }, "ResponseBody": { "value": [ @@ -83,11 +83,11 @@ } ], "Variables": { - "DateTimeOffsetNow": "2020-09-25T18:25:52.5867599-05:00", + "DateTimeOffsetNow": "2020-09-29T18:42:53.0764373-05:00", "METRICSADVISOR_ACCOUNT_NAME": "anuchan-cg-metric-advisor", "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "244586586" + "RandomSeed": "1193359626" } } \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricFeedbacks.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricFeedbacks.json index 87c0f38f69fcf..1eac3ae427177 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricFeedbacks.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricFeedbacks.json @@ -13,7 +13,7 @@ "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "8a0010be4647ee1458de7bbe77b92036", + "x-ms-client-request-id": "7b237c8b3bd8f69659419d1de36dcfb1", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -21,38 +21,40 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "cd9c3667-6b1e-4968-abca-78bff016f8c1", - "Content-Length": "826", + "apim-request-id": "7ecb44f6-d024-43a8-a646-f01cfbbf474f", + "Content-Length": "960", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 29 Sep 2020 14:21:45 GMT", + "Date": "Tue, 29 Sep 2020 23:42:39 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "137", - "X-Request-ID": "cd9c3667-6b1e-4968-abca-78bff016f8c1" + "x-envoy-upstream-service-time": "84", + "X-Request-ID": "7ecb44f6-d024-43a8-a646-f01cfbbf474f" }, "ResponseBody": { "value": [ { - "feedbackId": "3b1954b3-b053-4508-ba0f-1fd6593ddf6a", - "createdTime": "2020-09-28T18:13:58.252Z", + "feedbackId": "fe12deea-858c-4af8-ad3c-35ba8acc4705", + "createdTime": "2020-09-29T23:42:30.188Z", "userPrincipal": "foo@contoso.com", "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", "dimensionFilter": { "dimension": { "Dim1": "Common Lime", - "Dim2": "Amphibian" + "Dim2": "Ant" } }, - "feedbackType": "Comment", - "startTime": null, - "endTime": null, + "feedbackType": "Anomaly", + "startTime": "2020-05-29T23:42:30.253Z", + "endTime": "2020-09-29T23:42:30.253Z", "value": { - "commentValue": "This is a comment" - } + "anomalyValue": "NotAnomaly" + }, + "anomalyDetectionConfigurationId": null, + "anomalyDetectionConfigurationSnapshot": null }, { - "feedbackId": "2103664c-a540-410e-84a6-fb949089a9f9", - "createdTime": "2020-09-28T18:13:56.267Z", + "feedbackId": "448bba91-d349-49ff-81ce-bf99ec9da110", + "createdTime": "2020-09-29T23:42:32.136Z", "userPrincipal": "foo@contoso.com", "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", "dimensionFilter": { @@ -61,10 +63,11 @@ "Dim2": "Ant" } }, - "feedbackType": "Period", + "feedbackType": "Comment", + "startTime": null, + "endTime": null, "value": { - "periodType": "AutoDetect", - "periodValue": 4 + "commentValue": "my comment" } } ], @@ -84,7 +87,7 @@ "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "7194a137dc3bd5f45f12ed92a9d7b514", + "x-ms-client-request-id": "e3a02f898255e0bc470ca58faee28018", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -92,20 +95,20 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "10872df8-d44b-43f8-97f8-da123a68dbf8", - "Content-Length": "997", + "apim-request-id": "ce336681-236e-436d-a053-d580eeab2841", + "Content-Length": "870", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 29 Sep 2020 14:21:45 GMT", + "Date": "Tue, 29 Sep 2020 23:42:39 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "140", - "X-Request-ID": "10872df8-d44b-43f8-97f8-da123a68dbf8" + "x-envoy-upstream-service-time": "76", + "X-Request-ID": "ce336681-236e-436d-a053-d580eeab2841" }, "ResponseBody": { "value": [ { - "feedbackId": "552ced7f-5f73-468b-80d9-dafd07f29e07", - "createdTime": "2020-09-28T18:13:54.582Z", + "feedbackId": "32a2201b-eb51-4cff-ab83-0fb10ddc937f", + "createdTime": "2020-09-29T23:42:31.525Z", "userPrincipal": "foo@contoso.com", "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", "dimensionFilter": { @@ -114,16 +117,15 @@ "Dim2": "Ant" } }, - "feedbackType": "ChangePoint", - "startTime": "2020-08-05T07:00:00Z", - "endTime": "2020-08-05T07:00:00Z", + "feedbackType": "Period", "value": { - "changePointValue": "ChangePoint" + "periodType": "AssignValue", + "periodValue": 5 } }, { - "feedbackId": "23132657-ab7b-4fff-8221-b97cdbedcba4", - "createdTime": "2020-09-28T18:13:51.585Z", + "feedbackId": "6606f969-3eb5-4649-a123-3b7427ce3071", + "createdTime": "2020-09-29T23:42:30.876Z", "userPrincipal": "foo@contoso.com", "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", "dimensionFilter": { @@ -132,14 +134,12 @@ "Dim2": "Ant" } }, - "feedbackType": "Anomaly", - "startTime": "2020-08-05T07:00:00Z", - "endTime": "2020-08-07T07:00:00Z", + "feedbackType": "ChangePoint", + "startTime": "2020-05-29T23:42:30.253Z", + "endTime": "2020-09-29T23:42:30.253Z", "value": { - "anomalyValue": "NotAnomaly" - }, - "anomalyDetectionConfigurationId": null, - "anomalyDetectionConfigurationSnapshot": null + "changePointValue": "NotChangePoint" + } } ], "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/feedback/metric/query?$top=2\u0026$skip=4" @@ -151,6 +151,6 @@ "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "1890793544" + "RandomSeed": "701152740" } } \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricFeedbacksAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricFeedbacksAsync.json index ad8e29c83d867..0ae5237196a92 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricFeedbacksAsync.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricFeedbacksAsync.json @@ -13,7 +13,7 @@ "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "21de015dd3bc09338e9e6959c6369830", + "x-ms-client-request-id": "37f9c93239b2505f13c34e92b3b0955c", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -21,38 +21,40 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "7d62ff7e-874a-4a9d-9c82-a4e4a46e24c8", - "Content-Length": "826", + "apim-request-id": "9a61671d-4aa4-473c-b2d6-634be5476ea4", + "Content-Length": "959", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 29 Sep 2020 14:21:45 GMT", + "Date": "Tue, 29 Sep 2020 23:42:53 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "138", - "X-Request-ID": "7d62ff7e-874a-4a9d-9c82-a4e4a46e24c8" + "x-envoy-upstream-service-time": "79", + "X-Request-ID": "9a61671d-4aa4-473c-b2d6-634be5476ea4" }, "ResponseBody": { "value": [ { - "feedbackId": "3b1954b3-b053-4508-ba0f-1fd6593ddf6a", - "createdTime": "2020-09-28T18:13:58.252Z", + "feedbackId": "2fb44e7e-d33a-47e8-b752-235ee858797d", + "createdTime": "2020-09-29T23:42:43.931Z", "userPrincipal": "foo@contoso.com", "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", "dimensionFilter": { "dimension": { "Dim1": "Common Lime", - "Dim2": "Amphibian" + "Dim2": "Ant" } }, - "feedbackType": "Comment", - "startTime": null, - "endTime": null, + "feedbackType": "Anomaly", + "startTime": "2020-05-29T23:42:44.007Z", + "endTime": "2020-09-29T23:42:44.007Z", "value": { - "commentValue": "This is a comment" - } + "anomalyValue": "NotAnomaly" + }, + "anomalyDetectionConfigurationId": null, + "anomalyDetectionConfigurationSnapshot": null }, { - "feedbackId": "2103664c-a540-410e-84a6-fb949089a9f9", - "createdTime": "2020-09-28T18:13:56.267Z", + "feedbackId": "d2744fdb-35cb-41d5-b167-0e03626df36d", + "createdTime": "2020-09-29T23:42:45.86Z", "userPrincipal": "foo@contoso.com", "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", "dimensionFilter": { @@ -61,10 +63,11 @@ "Dim2": "Ant" } }, - "feedbackType": "Period", + "feedbackType": "Comment", + "startTime": null, + "endTime": null, "value": { - "periodType": "AutoDetect", - "periodValue": 4 + "commentValue": "my comment" } } ], @@ -84,7 +87,7 @@ "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "447e6e465efec31cc9cb78f7a929ab96", + "x-ms-client-request-id": "d699ca555d19fd584ab730767d068d35", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -92,20 +95,20 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "b0edd74c-4ceb-4256-ad3f-e61c4d521c32", - "Content-Length": "997", + "apim-request-id": "c3ddc901-ab7e-4fcb-bc21-a4ba28d6fa9d", + "Content-Length": "870", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 29 Sep 2020 14:21:46 GMT", + "Date": "Tue, 29 Sep 2020 23:42:53 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "94", - "X-Request-ID": "b0edd74c-4ceb-4256-ad3f-e61c4d521c32" + "x-envoy-upstream-service-time": "77", + "X-Request-ID": "c3ddc901-ab7e-4fcb-bc21-a4ba28d6fa9d" }, "ResponseBody": { "value": [ { - "feedbackId": "552ced7f-5f73-468b-80d9-dafd07f29e07", - "createdTime": "2020-09-28T18:13:54.582Z", + "feedbackId": "79cf3681-7aea-4acb-bd63-ffc19dee6c2e", + "createdTime": "2020-09-29T23:42:45.283Z", "userPrincipal": "foo@contoso.com", "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", "dimensionFilter": { @@ -114,16 +117,15 @@ "Dim2": "Ant" } }, - "feedbackType": "ChangePoint", - "startTime": "2020-08-05T07:00:00Z", - "endTime": "2020-08-05T07:00:00Z", + "feedbackType": "Period", "value": { - "changePointValue": "ChangePoint" + "periodType": "AssignValue", + "periodValue": 5 } }, { - "feedbackId": "23132657-ab7b-4fff-8221-b97cdbedcba4", - "createdTime": "2020-09-28T18:13:51.585Z", + "feedbackId": "3c1ed4fd-a8d9-4b6d-a1bd-e46b08b11625", + "createdTime": "2020-09-29T23:42:44.646Z", "userPrincipal": "foo@contoso.com", "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", "dimensionFilter": { @@ -132,14 +134,12 @@ "Dim2": "Ant" } }, - "feedbackType": "Anomaly", - "startTime": "2020-08-05T07:00:00Z", - "endTime": "2020-08-07T07:00:00Z", + "feedbackType": "ChangePoint", + "startTime": "2020-05-29T23:42:44.007Z", + "endTime": "2020-09-29T23:42:44.007Z", "value": { - "anomalyValue": "NotAnomaly" - }, - "anomalyDetectionConfigurationId": null, - "anomalyDetectionConfigurationSnapshot": null + "changePointValue": "NotChangePoint" + } } ], "@nextLink": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com:443/metricsadvisor/v1.0/feedback/metric/query?$top=2\u0026$skip=4" @@ -151,6 +151,6 @@ "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "1821697463" + "RandomSeed": "1105967984" } } \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricSeriesData.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricSeriesData.json index 151fab5e94e83..3ea60de0cac29 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricSeriesData.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricSeriesData.json @@ -8,18 +8,18 @@ "Content-Length": "104", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-a73dd5a108742a418b56eab9962daa8b-ef0aadeaba759641-00", + "traceparent": "00-c7ab9d78bc7c894d91fa0620273f5e3a-feee32175a946841-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "6f7ff1ebf01edf820ef48b59916fa3c5", + "x-ms-client-request-id": "770d9e4cb28d9c29e7a811d7bb51af47", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "startTime": "2015-09-26T00:10:44Z", - "endTime": "2020-09-26T00:10:44Z", + "startTime": "2015-09-29T23:42:40Z", + "endTime": "2020-09-29T23:42:40Z", "series": [ { "Dim1": "*", @@ -29,14 +29,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "8822e30f-4448-40f6-bbf6-1b34f7a04064", + "apim-request-id": "24e770fd-eee0-4bfc-9a00-106adf125346", "Content-Length": "140", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:44 GMT", + "Date": "Tue, 29 Sep 2020 23:42:39 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "310", - "X-Request-ID": "8822e30f-4448-40f6-bbf6-1b34f7a04064" + "x-envoy-upstream-service-time": "311", + "X-Request-ID": "24e770fd-eee0-4bfc-9a00-106adf125346" }, "ResponseBody": { "value": [ @@ -56,11 +56,11 @@ } ], "Variables": { - "DateTimeOffsetNow": "2020-09-25T19:10:44.9957118-05:00", + "DateTimeOffsetNow": "2020-09-29T18:42:40.8782128-05:00", "METRICSADVISOR_ACCOUNT_NAME": "anuchan-cg-metric-advisor", "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "549759138" + "RandomSeed": "1204385147" } -} +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricSeriesDataAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricSeriesDataAsync.json index a852cae7bf022..7a1f6cce3df2a 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricSeriesDataAsync.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricSeriesDataAsync.json @@ -8,18 +8,18 @@ "Content-Length": "104", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-c7325ad4262b0f4eb0177f5b57713ad1-5f980a89ae786342-00", + "traceparent": "00-07f8ef06136eb343b36b3f0058ae865e-5e28324a52b7a246-00", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "f4be39e22a9a8db3b91e3dcb361a66f4", + "x-ms-client-request-id": "204519d894fe0b890e4dd3c2512c3401", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "startTime": "2015-09-26T00:10:48Z", - "endTime": "2020-09-26T00:10:48Z", + "startTime": "2015-09-29T23:42:53Z", + "endTime": "2020-09-29T23:42:53Z", "series": [ { "Dim1": "*", @@ -29,14 +29,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "5d7d77ab-7026-43aa-97dc-50fd636ab93d", + "apim-request-id": "2fdddfa2-2de9-43de-8081-f1ad6e060904", "Content-Length": "140", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:48 GMT", + "Date": "Tue, 29 Sep 2020 23:42:53 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "309", - "X-Request-ID": "5d7d77ab-7026-43aa-97dc-50fd636ab93d" + "x-envoy-upstream-service-time": "295", + "X-Request-ID": "2fdddfa2-2de9-43de-8081-f1ad6e060904" }, "ResponseBody": { "value": [ @@ -56,11 +56,11 @@ } ], "Variables": { - "DateTimeOffsetNow": "2020-09-25T19:10:48.8644285-05:00", + "DateTimeOffsetNow": "2020-09-29T18:42:53.9394519-05:00", "METRICSADVISOR_ACCOUNT_NAME": "anuchan-cg-metric-advisor", "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "640491152" + "RandomSeed": "1263883258" } -} +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricSeriesDefinitions.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricSeriesDefinitions.json index 36827980c722c..c67ff99e98c86 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricSeriesDefinitions.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricSeriesDefinitions.json @@ -7,98 +7,27 @@ "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "95cfe7cf1b58545818d91f0f82ab4486", + "x-ms-client-request-id": "fbd887958f2c9a62fe990c7eeaa26da3", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "6bd90277-5b18-424d-8dd7-69bcf7dc9e04", - "Content-Length": "5901", + "apim-request-id": "275c9d3a-53bb-4bf2-8521-16b857009ae8", + "Content-Length": "4406", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:44 GMT", + "Date": "Tue, 29 Sep 2020 23:42:41 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "104", - "X-Request-ID": "6bd90277-5b18-424d-8dd7-69bcf7dc9e04" + "x-envoy-upstream-service-time": "107", + "X-Request-ID": "275c9d3a-53bb-4bf2-8521-16b857009ae8" }, "ResponseBody": { "value": [ - { - "dataFeedId": "dd64cd95-f22f-4176-9554-ded0b8db83a1", - "dataFeedName": "testElasticsearchDataFeed2", - "metrics": [ - { - "metricId": "2b11308b-9233-403c-bb9e-6b573cda3c08", - "metricName": "Metric1", - "metricDisplayName": "Metric1", - "metricDescription": "" - }, - { - "metricId": "36fe66a2-b1fe-4930-baa0-09efe7d08a31", - "metricName": "Metric2", - "metricDisplayName": "Metric2", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "Dim1", - "dimensionDisplayName": "Dim1" - }, - { - "dimensionName": "Dim2", - "dimensionDisplayName": "Dim2" - } - ], - "dataStartFrom": "2020-08-09T00:00:00Z", - "dataSourceType": "Elasticsearch", - "timestampColumn": "Timestamp", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "granularityAmount": null, - "allUpIdentification": null, - "needRollup": "NoRollup", - "fillMissingPointType": "SmartFilling", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "rollUpColumns": [], - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": -1, - "viewMode": "Private", - "admins": [ - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com" - ], - "viewers": [], - "creator": "foo@contoso.com", - "status": "Active", - "createdTime": "2020-09-25T17:11:17Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "authHeader": "Sanitized", - "port": "9200", - "query": "select * from adsample where timestamp = @StartTime", - "host": "ad-sample-es.westus2.cloudapp.azure.com" - } - }, { "dataFeedId": "0072a752-1476-4cfa-8cf0-f226995201a0", "dataFeedName": "testElasticsearchDataFeed", @@ -314,76 +243,6 @@ "@nextLink": null } }, - { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/2b11308b-9233-403c-bb9e-6b573cda3c08/series/query?$top=2", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "38", - "Content-Type": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", - "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" - ], - "x-api-key": "Sanitized", - "x-ms-client-request-id": "cc15a0b041f6f55eea7d0f3e2dacd99f", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "activeSince": "2015-09-26T00:10:45Z" - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "614486db-1519-4c37-b04a-839fde4b8bc3", - "Content-Length": "29", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:45 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "76", - "X-Request-ID": "614486db-1519-4c37-b04a-839fde4b8bc3" - }, - "ResponseBody": { - "value": [], - "@nextLink": null - } - }, - { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/36fe66a2-b1fe-4930-baa0-09efe7d08a31/series/query?$top=2", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "38", - "Content-Type": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", - "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" - ], - "x-api-key": "Sanitized", - "x-ms-client-request-id": "b4edfa2b69c14a72212d1e4f49e0f582", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "activeSince": "2015-09-26T00:10:45Z" - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "3e28c1c7-b870-4f07-b058-e0fe3da41816", - "Content-Length": "29", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:45 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "77", - "X-Request-ID": "3e28c1c7-b870-4f07-b058-e0fe3da41816" - }, - "ResponseBody": { - "value": [], - "@nextLink": null - } - }, { "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/04f6e969-2302-412e-98b2-8c41e3a0e22e/series/query?$top=2", "RequestMethod": "POST", @@ -393,26 +252,26 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "96c7dd22a2898ea089d9abda0b19276c", + "x-ms-client-request-id": "75ee85f22a67a905002679b5f43e102b", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "activeSince": "2015-09-26T00:10:45Z" + "activeSince": "2015-09-29T23:42:41Z" }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "bae18f90-3d17-4449-8d63-8938c1209eb8", + "apim-request-id": "59d753ec-5561-4997-aba4-67c3033c3a2b", "Content-Length": "29", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:45 GMT", + "Date": "Tue, 29 Sep 2020 23:42:41 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "75", - "X-Request-ID": "bae18f90-3d17-4449-8d63-8938c1209eb8" + "x-envoy-upstream-service-time": "80", + "X-Request-ID": "59d753ec-5561-4997-aba4-67c3033c3a2b" }, "ResponseBody": { "value": [], @@ -428,26 +287,26 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "87e480008fbd47c52ecaaac8230eab0a", + "x-ms-client-request-id": "cc3c2561f8de12b4b9541d5844fecc94", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "activeSince": "2015-09-26T00:10:45Z" + "activeSince": "2015-09-29T23:42:41Z" }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "4eac2b05-b7bb-4bc8-a43c-c9d95198333d", + "apim-request-id": "4ad20e17-49bb-4ae0-acd4-14fb49bb8685", "Content-Length": "29", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:45 GMT", + "Date": "Tue, 29 Sep 2020 23:42:41 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "79", - "X-Request-ID": "4eac2b05-b7bb-4bc8-a43c-c9d95198333d" + "x-envoy-upstream-service-time": "86", + "X-Request-ID": "4ad20e17-49bb-4ae0-acd4-14fb49bb8685" }, "ResponseBody": { "value": [], @@ -463,26 +322,26 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "501b8d8843e48915595f2be7be983f07", + "x-ms-client-request-id": "3df8ab964a8c6b35812efb0616ada5bf", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "activeSince": "2015-09-26T00:10:45Z" + "activeSince": "2015-09-29T23:42:41Z" }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "0420b65a-18c9-4ac0-a2a1-57839f3876d2", - "Content-Length": "402", + "apim-request-id": "8af04a5d-f2a5-4dc1-b9cb-cd29fa35bff8", + "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:46 GMT", + "Date": "Tue, 29 Sep 2020 23:42:41 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "81", - "X-Request-ID": "0420b65a-18c9-4ac0-a2a1-57839f3876d2" + "x-envoy-upstream-service-time": "83", + "X-Request-ID": "8af04a5d-f2a5-4dc1-b9cb-cd29fa35bff8" }, "ResponseBody": { "value": [ @@ -496,8 +355,8 @@ { "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", "dimension": { - "Dim1": "Common Lime", - "Dim2": "African buffalo" + "Dim1": "Cabbage Palm", + "Dim2": "Amphibian" } } ], @@ -513,26 +372,26 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "c94fb1066dfb93c4178068bff7d76b7a", + "x-ms-client-request-id": "c41ce088a166f9c5d0dcbb120cad6502", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "activeSince": "2015-09-26T00:10:45Z" + "activeSince": "2015-09-29T23:42:41Z" }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "8a275a9e-a261-4d0b-a2e1-7dcca3b7f7d3", - "Content-Length": "395", + "apim-request-id": "5f439fa8-f604-4791-9780-462b9fd2c68c", + "Content-Length": "402", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:46 GMT", + "Date": "Tue, 29 Sep 2020 23:42:41 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "78", - "X-Request-ID": "8a275a9e-a261-4d0b-a2e1-7dcca3b7f7d3" + "x-envoy-upstream-service-time": "80", + "X-Request-ID": "5f439fa8-f604-4791-9780-462b9fd2c68c" }, "ResponseBody": { "value": [ @@ -547,7 +406,7 @@ "metricId": "6b593f73-345c-40eb-a15c-7ec1fc73b028", "dimension": { "Dim1": "Common Lime", - "Dim2": "Anteater" + "Dim2": "African buffalo" } } ], @@ -563,26 +422,26 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "7e51a02dd6febd886a5b2d5e64dd8995", + "x-ms-client-request-id": "491ee55ad345179ef0d04aaffdadfc0c", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "activeSince": "2015-09-26T00:10:45Z" + "activeSince": "2015-09-29T23:42:41Z" }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "68181e60-3665-480e-832c-b6308936fb35", + "apim-request-id": "e985e06a-1119-4bed-a94a-208b7a24f7e5", "Content-Length": "412", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:46 GMT", + "Date": "Tue, 29 Sep 2020 23:42:42 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "83", - "X-Request-ID": "68181e60-3665-480e-832c-b6308936fb35" + "x-envoy-upstream-service-time": "80", + "X-Request-ID": "e985e06a-1119-4bed-a94a-208b7a24f7e5" }, "ResponseBody": { "value": [ @@ -613,26 +472,26 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "71c2a38be2be1a0ec9883864da569181", + "x-ms-client-request-id": "63cf5dae07e1f52de5ff6cb08e225ed4", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "activeSince": "2015-09-26T00:10:45Z" + "activeSince": "2015-09-29T23:42:41Z" }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "18accda9-22cf-47a1-b173-fd05bd8b205c", + "apim-request-id": "83e76710-dbdb-4bf4-9252-e24d64ae0fa2", "Content-Length": "412", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:46 GMT", + "Date": "Tue, 29 Sep 2020 23:42:42 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "118", - "X-Request-ID": "18accda9-22cf-47a1-b173-fd05bd8b205c" + "x-envoy-upstream-service-time": "82", + "X-Request-ID": "83e76710-dbdb-4bf4-9252-e24d64ae0fa2" }, "ResponseBody": { "value": [ @@ -656,11 +515,11 @@ } ], "Variables": { - "DateTimeOffsetNow": "2020-09-25T19:10:45.7253323-05:00", + "DateTimeOffsetNow": "2020-09-29T18:42:41.6105291-05:00", "METRICSADVISOR_ACCOUNT_NAME": "anuchan-cg-metric-advisor", "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "1584337364" + "RandomSeed": "1831572014" } -} +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricSeriesDefinitionsAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricSeriesDefinitionsAsync.json index 24770749789f6..be06be77cfa28 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricSeriesDefinitionsAsync.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetMetricSeriesDefinitionsAsync.json @@ -7,98 +7,27 @@ "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "ed0021db7c96a2fa04cfb0b5c7e29fd3", + "x-ms-client-request-id": "8ede1fbfdcb398191520359139f58b16", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "084d1fdb-bd42-4b45-84a5-91ee3d457443", - "Content-Length": "5901", + "apim-request-id": "3626fc6e-1346-4897-907c-528263d43ab2", + "Content-Length": "4406", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:48 GMT", + "Date": "Tue, 29 Sep 2020 23:42:54 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "107", - "X-Request-ID": "084d1fdb-bd42-4b45-84a5-91ee3d457443" + "x-envoy-upstream-service-time": "106", + "X-Request-ID": "3626fc6e-1346-4897-907c-528263d43ab2" }, "ResponseBody": { "value": [ - { - "dataFeedId": "dd64cd95-f22f-4176-9554-ded0b8db83a1", - "dataFeedName": "testElasticsearchDataFeed2", - "metrics": [ - { - "metricId": "2b11308b-9233-403c-bb9e-6b573cda3c08", - "metricName": "Metric1", - "metricDisplayName": "Metric1", - "metricDescription": "" - }, - { - "metricId": "36fe66a2-b1fe-4930-baa0-09efe7d08a31", - "metricName": "Metric2", - "metricDisplayName": "Metric2", - "metricDescription": "" - } - ], - "dimension": [ - { - "dimensionName": "Dim1", - "dimensionDisplayName": "Dim1" - }, - { - "dimensionName": "Dim2", - "dimensionDisplayName": "Dim2" - } - ], - "dataStartFrom": "2020-08-09T00:00:00Z", - "dataSourceType": "Elasticsearch", - "timestampColumn": "Timestamp", - "startOffsetInSeconds": 0, - "maxQueryPerMinute": 30.0, - "granularityName": "Daily", - "granularityAmount": null, - "allUpIdentification": null, - "needRollup": "NoRollup", - "fillMissingPointType": "SmartFilling", - "fillMissingPointValue": 0.0, - "rollUpMethod": "None", - "rollUpColumns": [], - "dataFeedDescription": "", - "stopRetryAfterInSeconds": -1, - "minRetryIntervalInSeconds": -1, - "maxConcurrency": -1, - "viewMode": "Private", - "admins": [ - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com", - "foo@contoso.com" - ], - "viewers": [], - "creator": "foo@contoso.com", - "status": "Active", - "createdTime": "2020-09-25T17:11:17Z", - "isAdmin": true, - "actionLinkTemplate": "", - "dataSourceParameter": { - "authHeader": "Sanitized", - "port": "9200", - "query": "select * from adsample where timestamp = @StartTime", - "host": "ad-sample-es.westus2.cloudapp.azure.com" - } - }, { "dataFeedId": "0072a752-1476-4cfa-8cf0-f226995201a0", "dataFeedName": "testElasticsearchDataFeed", @@ -314,76 +243,6 @@ "@nextLink": null } }, - { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/2b11308b-9233-403c-bb9e-6b573cda3c08/series/query?$top=2", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "38", - "Content-Type": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", - "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" - ], - "x-api-key": "Sanitized", - "x-ms-client-request-id": "91c911f43555b5f98a146e394ffa2524", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "activeSince": "2015-09-26T00:10:49Z" - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "47ab68fc-de51-43b2-99f3-498934ad803b", - "Content-Length": "29", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:48 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "77", - "X-Request-ID": "47ab68fc-de51-43b2-99f3-498934ad803b" - }, - "ResponseBody": { - "value": [], - "@nextLink": null - } - }, - { - "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/36fe66a2-b1fe-4930-baa0-09efe7d08a31/series/query?$top=2", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "38", - "Content-Type": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", - "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" - ], - "x-api-key": "Sanitized", - "x-ms-client-request-id": "b7099b3a89fc0b708c75d2c82b43a3d0", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "activeSince": "2015-09-26T00:10:49Z" - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "561a1687-11c7-435e-8952-ad4e9cfd1a2d", - "Content-Length": "29", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:48 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "80", - "X-Request-ID": "561a1687-11c7-435e-8952-ad4e9cfd1a2d" - }, - "ResponseBody": { - "value": [], - "@nextLink": null - } - }, { "RequestUri": "https://anuchan-cg-metric-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/04f6e969-2302-412e-98b2-8c41e3a0e22e/series/query?$top=2", "RequestMethod": "POST", @@ -393,26 +252,26 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "7c0fd819645aa5a1284a63810ec15209", + "x-ms-client-request-id": "6bf8b1732eb697938cc5f3b56b2c228d", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "activeSince": "2015-09-26T00:10:49Z" + "activeSince": "2015-09-29T23:42:54Z" }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "331de6b1-e53b-4310-a684-840ff6472073", + "apim-request-id": "f757b79f-0db7-4b4d-a6b2-63ce362b0c60", "Content-Length": "29", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:49 GMT", + "Date": "Tue, 29 Sep 2020 23:42:54 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "77", - "X-Request-ID": "331de6b1-e53b-4310-a684-840ff6472073" + "x-envoy-upstream-service-time": "90", + "X-Request-ID": "f757b79f-0db7-4b4d-a6b2-63ce362b0c60" }, "ResponseBody": { "value": [], @@ -428,26 +287,26 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "2b7a8ca9e7d96ad7a0bd04e063308a47", + "x-ms-client-request-id": "b93fd2ffd6ff5e7caacc07ac412e2bc9", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "activeSince": "2015-09-26T00:10:49Z" + "activeSince": "2015-09-29T23:42:54Z" }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "bd417d35-7dc1-4393-adbd-74706b15147d", + "apim-request-id": "c93cf435-f9cd-4f92-83b1-823953ada09e", "Content-Length": "29", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:49 GMT", + "Date": "Tue, 29 Sep 2020 23:42:54 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "77", - "X-Request-ID": "bd417d35-7dc1-4393-adbd-74706b15147d" + "x-envoy-upstream-service-time": "90", + "X-Request-ID": "c93cf435-f9cd-4f92-83b1-823953ada09e" }, "ResponseBody": { "value": [], @@ -463,26 +322,26 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "77209d70a8ebd5c9fa638fb126eefdcb", + "x-ms-client-request-id": "f1c8b758b15c913d8b4601ede9642de9", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "activeSince": "2015-09-26T00:10:49Z" + "activeSince": "2015-09-29T23:42:54Z" }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "1e88cbcf-a85e-4e9c-a7be-a6a8cd01fd9e", - "Content-Length": "402", + "apim-request-id": "21b3d7ed-468b-4f46-9bcc-e24886394a35", + "Content-Length": "397", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:49 GMT", + "Date": "Tue, 29 Sep 2020 23:42:54 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "79", - "X-Request-ID": "1e88cbcf-a85e-4e9c-a7be-a6a8cd01fd9e" + "x-envoy-upstream-service-time": "86", + "X-Request-ID": "21b3d7ed-468b-4f46-9bcc-e24886394a35" }, "ResponseBody": { "value": [ @@ -496,8 +355,8 @@ { "metricId": "3d48ed3e-6e6e-4391-b78f-b00dfee1e6f5", "dimension": { - "Dim1": "Common Lime", - "Dim2": "African buffalo" + "Dim1": "Cabbage Palm", + "Dim2": "Amphibian" } } ], @@ -513,26 +372,26 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "9e1ec82277c831f700a5db9c60c042f8", + "x-ms-client-request-id": "6791a8fed1b69c17349ac0ea26e7565e", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "activeSince": "2015-09-26T00:10:49Z" + "activeSince": "2015-09-29T23:42:54Z" }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "f159e75b-8a6d-4370-b26f-bcada4289d88", - "Content-Length": "395", + "apim-request-id": "b910d366-2d65-4c1c-904d-f3673297ef43", + "Content-Length": "402", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:49 GMT", + "Date": "Tue, 29 Sep 2020 23:42:55 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "90", - "X-Request-ID": "f159e75b-8a6d-4370-b26f-bcada4289d88" + "x-envoy-upstream-service-time": "82", + "X-Request-ID": "b910d366-2d65-4c1c-904d-f3673297ef43" }, "ResponseBody": { "value": [ @@ -547,7 +406,7 @@ "metricId": "6b593f73-345c-40eb-a15c-7ec1fc73b028", "dimension": { "Dim1": "Common Lime", - "Dim2": "Anteater" + "Dim2": "African buffalo" } } ], @@ -563,26 +422,26 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "71111cc0dba1011ec2a53175582644b1", + "x-ms-client-request-id": "b35d299931634e3094ad2db8d48e7446", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "activeSince": "2015-09-26T00:10:49Z" + "activeSince": "2015-09-29T23:42:54Z" }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "41dc4bd9-e99a-44f5-9b0e-87b1be48fad8", + "apim-request-id": "20cc0b8c-51eb-46bb-a952-504584b6e62d", "Content-Length": "412", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:50 GMT", + "Date": "Tue, 29 Sep 2020 23:42:55 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "80", - "X-Request-ID": "41dc4bd9-e99a-44f5-9b0e-87b1be48fad8" + "x-envoy-upstream-service-time": "83", + "X-Request-ID": "20cc0b8c-51eb-46bb-a952-504584b6e62d" }, "ResponseBody": { "value": [ @@ -613,26 +472,26 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "9abd39c0eb12f87ea6ee7645cd2c7539", + "x-ms-client-request-id": "98ad1e9fc49c8613a02bbdc2f0536ba3", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "activeSince": "2015-09-26T00:10:49Z" + "activeSince": "2015-09-29T23:42:54Z" }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "490e61fa-b14c-46d6-9313-931c25fef152", + "apim-request-id": "7e7fc8a4-90ef-4425-b864-83efe2333150", "Content-Length": "412", "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 26 Sep 2020 00:10:50 GMT", + "Date": "Tue, 29 Sep 2020 23:42:55 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "75", - "X-Request-ID": "490e61fa-b14c-46d6-9313-931c25fef152" + "x-envoy-upstream-service-time": "83", + "X-Request-ID": "7e7fc8a4-90ef-4425-b864-83efe2333150" }, "ResponseBody": { "value": [ @@ -656,11 +515,11 @@ } ], "Variables": { - "DateTimeOffsetNow": "2020-09-25T19:10:49.5833581-05:00", + "DateTimeOffsetNow": "2020-09-29T18:42:54.6432831-05:00", "METRICSADVISOR_ACCOUNT_NAME": "anuchan-cg-metric-advisor", "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "938070574" + "RandomSeed": "562491998" } -} +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetValuesOfDimensionWithAnomalies.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetValuesOfDimensionWithAnomalies.json index 4e78d29684e48..a84c5e87a2d82 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetValuesOfDimensionWithAnomalies.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetValuesOfDimensionWithAnomalies.json @@ -9,28 +9,28 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "6da0a1941b040f7208d4ee68991117bf", + "x-ms-client-request-id": "5c19c1471853a02eb7196be3f6807c16", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "startTime": "2015-09-25T22:27:28Z", - "endTime": "2020-09-25T22:27:28Z", + "startTime": "2015-09-29T23:42:42Z", + "endTime": "2020-09-29T23:42:42Z", "dimensionName": "city" }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "4aa8a622-643a-4328-902b-95771eab3430", + "apim-request-id": "548ccd6f-87ab-4a62-83fe-dcd3eaee085b", "Content-Length": "242", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 25 Sep 2020 22:27:28 GMT", + "Date": "Tue, 29 Sep 2020 23:42:42 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "194", - "X-Request-ID": "4aa8a622-643a-4328-902b-95771eab3430" + "x-envoy-upstream-service-time": "198", + "X-Request-ID": "548ccd6f-87ab-4a62-83fe-dcd3eaee085b" }, "ResponseBody": { "value": [ @@ -48,28 +48,28 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "24c5af875831461e3cc3b5758e633495", + "x-ms-client-request-id": "9a6dda04e2ecdf7e40b11ebd6a92df5d", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "startTime": "2015-09-25T22:27:28Z", - "endTime": "2020-09-25T22:27:28Z", + "startTime": "2015-09-29T23:42:42Z", + "endTime": "2020-09-29T23:42:42Z", "dimensionName": "city" }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "966614df-a2c6-4d28-a2f3-0a9be7822441", + "apim-request-id": "7323bf48-00c6-444d-b662-6f4243ec0075", "Content-Length": "240", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 25 Sep 2020 22:27:28 GMT", + "Date": "Tue, 29 Sep 2020 23:42:42 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "183", - "X-Request-ID": "966614df-a2c6-4d28-a2f3-0a9be7822441" + "x-envoy-upstream-service-time": "177", + "X-Request-ID": "7323bf48-00c6-444d-b662-6f4243ec0075" }, "ResponseBody": { "value": [ @@ -87,28 +87,28 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "227b6ae0ab7328b69f4e1798fc441c02", + "x-ms-client-request-id": "472416586329aa21a3b5b75c55cf9a00", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "startTime": "2015-09-25T22:27:28Z", - "endTime": "2020-09-25T22:27:28Z", + "startTime": "2015-09-29T23:42:42Z", + "endTime": "2020-09-29T23:42:42Z", "dimensionName": "city" }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "7278ce46-fa08-4a2f-a2bc-b55c3ea31e73", + "apim-request-id": "6bd451fa-4ce2-4c84-9d98-d7777d89c15f", "Content-Length": "242", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 25 Sep 2020 22:27:29 GMT", + "Date": "Tue, 29 Sep 2020 23:42:43 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "180", - "X-Request-ID": "7278ce46-fa08-4a2f-a2bc-b55c3ea31e73" + "x-envoy-upstream-service-time": "195", + "X-Request-ID": "6bd451fa-4ce2-4c84-9d98-d7777d89c15f" }, "ResponseBody": { "value": [ @@ -119,11 +119,11 @@ } ], "Variables": { - "DateTimeOffsetNow": "2020-09-25T17:27:28.4420981-05:00", + "DateTimeOffsetNow": "2020-09-29T18:42:42.9919862-05:00", "METRICSADVISOR_ACCOUNT_NAME": "anuchan-cg-metric-advisor", "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "754495791" + "RandomSeed": "245988263" } } \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetValuesOfDimensionWithAnomaliesAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetValuesOfDimensionWithAnomaliesAsync.json index 38af7d0290a12..8577813ebc077 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetValuesOfDimensionWithAnomaliesAsync.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricsAdvisorClientLiveTests/GetValuesOfDimensionWithAnomaliesAsync.json @@ -9,28 +9,28 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "23c40db5625cfe3984a36975f1da7458", + "x-ms-client-request-id": "99ebd6ca892a4a21ac92aae198a6784e", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "startTime": "2015-09-25T22:27:30Z", - "endTime": "2020-09-25T22:27:30Z", + "startTime": "2015-09-29T23:42:56Z", + "endTime": "2020-09-29T23:42:56Z", "dimensionName": "city" }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "0d9208a9-6f16-4615-b96a-bbbb6ac80643", + "apim-request-id": "fd25b5fe-e9da-47d5-9617-b3570c26d46f", "Content-Length": "242", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 25 Sep 2020 22:27:29 GMT", + "Date": "Tue, 29 Sep 2020 23:42:55 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "179", - "X-Request-ID": "0d9208a9-6f16-4615-b96a-bbbb6ac80643" + "x-envoy-upstream-service-time": "175", + "X-Request-ID": "fd25b5fe-e9da-47d5-9617-b3570c26d46f" }, "ResponseBody": { "value": [ @@ -48,28 +48,28 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "906fd13644b4c82af63732aaded2187b", + "x-ms-client-request-id": "490c4e3756f3a3abbb97e4f454bc207d", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "startTime": "2015-09-25T22:27:30Z", - "endTime": "2020-09-25T22:27:30Z", + "startTime": "2015-09-29T23:42:56Z", + "endTime": "2020-09-29T23:42:56Z", "dimensionName": "city" }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "ce0866a5-915d-46dd-b63e-c2e912dae5be", + "apim-request-id": "71548517-bd03-41d2-9eaf-7c1085e5ff7b", "Content-Length": "240", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 25 Sep 2020 22:27:30 GMT", + "Date": "Tue, 29 Sep 2020 23:42:56 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "174", - "X-Request-ID": "ce0866a5-915d-46dd-b63e-c2e912dae5be" + "x-envoy-upstream-service-time": "177", + "X-Request-ID": "71548517-bd03-41d2-9eaf-7c1085e5ff7b" }, "ResponseBody": { "value": [ @@ -87,28 +87,28 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200925.1", + "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20200929.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], "x-api-key": "Sanitized", - "x-ms-client-request-id": "46534e1e7f43cc02c741342b6e77fe1d", + "x-ms-client-request-id": "6c4805fe16a112458a08a467f5ad4359", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "startTime": "2015-09-25T22:27:30Z", - "endTime": "2020-09-25T22:27:30Z", + "startTime": "2015-09-29T23:42:56Z", + "endTime": "2020-09-29T23:42:56Z", "dimensionName": "city" }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "3e6dacfe-89d9-4b1d-97e7-052a21acf2b7", + "apim-request-id": "7c2ecc98-54fa-4768-b5e8-95c43e4538af", "Content-Length": "242", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 25 Sep 2020 22:27:30 GMT", + "Date": "Tue, 29 Sep 2020 23:42:56 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "168", - "X-Request-ID": "3e6dacfe-89d9-4b1d-97e7-052a21acf2b7" + "x-envoy-upstream-service-time": "197", + "X-Request-ID": "7c2ecc98-54fa-4768-b5e8-95c43e4538af" }, "ResponseBody": { "value": [ @@ -119,11 +119,11 @@ } ], "Variables": { - "DateTimeOffsetNow": "2020-09-25T17:27:30.2706852-05:00", + "DateTimeOffsetNow": "2020-09-29T18:42:56.0660296-05:00", "METRICSADVISOR_ACCOUNT_NAME": "anuchan-cg-metric-advisor", "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "1524430049" + "RandomSeed": "981097764" } } \ No newline at end of file