-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MetricsAdvisor] Implemented BoundaryMeasureType (#22297)
- Loading branch information
Showing
14 changed files
with
872 additions
and
661 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/BoundaryMeasureType.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 4 additions & 4 deletions
8
...sor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricBoundaryCondition.Serialization.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
6 changes: 3 additions & 3 deletions
6
sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricBoundaryCondition.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
51 changes: 0 additions & 51 deletions
51
sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ValueType.cs
This file was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/AlertTriggering/BoundaryMeasureType.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using Azure.Core; | ||
|
||
namespace Azure.AI.MetricsAdvisor.Models | ||
{ | ||
/// <summary> | ||
/// Used as part of a <see cref="MetricBoundaryCondition"/>. Specifies which measure type should be | ||
/// used when checking boundaries. Defaults to <see cref="BoundaryMeasureType.Value"/>. | ||
/// </summary> | ||
[CodeGenModel("ValueType")] | ||
public readonly partial struct BoundaryMeasureType | ||
{ | ||
/// <summary> | ||
/// The value of the metric is used as it is. | ||
/// </summary> | ||
public static BoundaryMeasureType Value { get; } = new BoundaryMeasureType(ValueValue); | ||
|
||
/// <summary> | ||
/// The mean of the latest metric values in the time series is used. | ||
/// </summary> | ||
public static BoundaryMeasureType Mean { get; } = new BoundaryMeasureType(MeanValue); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGenInternal/ValueType.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.