This repository has been archived by the owner on Oct 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge 'Metrics/master' to 'master'. Only Metrics sub-project is touch…
…ed. No need for CR. Merge 'Metrics/master' to 'master'. Only Metrics sub-project is touched. No need for CR.
- Loading branch information
Showing
65 changed files
with
3,696 additions
and
1,584 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
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
57 changes: 0 additions & 57 deletions
57
...ationInsights.Metrics.Core/Internal/Microsoft.ApplicationInsights.Metrics/MetricsCache.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
35 changes: 35 additions & 0 deletions
35
...blic/Microsoft.ApplicationInsights.Metrics.Extensibility/MetricConfigurationExtensions.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,35 @@ | ||
using System; | ||
using System.ComponentModel; | ||
|
||
namespace Microsoft.ApplicationInsights.Metrics.Extensibility | ||
{ | ||
/// <summary> | ||
/// Provides discoverable access to constants used by metric aggregates. | ||
/// Do not use directly. Instead, use: <c>MetricConfigurations.Common.Xxxx().Constants()</c>. | ||
/// </summary> | ||
[EditorBrowsable(EditorBrowsableState.Never)] | ||
public static class MetricConfigurationExtensions | ||
{ | ||
/// <summary> | ||
/// Groups constants used my metric aggregates produced by aggregators that are configured by metric configurations represented | ||
/// through instances of <see cref="MetricSeriesConfigurationForMeasurement"/>. See also <c>MetricConfigurations.Common.Measurement()</c>./> | ||
/// </summary> | ||
/// <param name="measurementConfig"></param> | ||
/// <returns></returns> | ||
public static MetricSeriesConfigurationForMeasurement.AggregateKindConstants Constants(this MetricSeriesConfigurationForMeasurement measurementConfig) | ||
{ | ||
return MetricSeriesConfigurationForMeasurement.AggregateKindConstants.Instance; | ||
} | ||
|
||
/// <summary> | ||
/// Groups constants used my metric aggregates produced by aggregators that are configured by metric configurations represented | ||
/// through instances of <see cref="MetricConfigurationForMeasurement"/>. See also <c>MetricConfigurations.Common.Measurement()</c>./> | ||
/// </summary> | ||
/// <param name="measurementConfig"></param> | ||
/// <returns></returns> | ||
public static MetricSeriesConfigurationForMeasurement.AggregateKindConstants Constants(this MetricConfigurationForMeasurement measurementConfig) | ||
{ | ||
return MetricSeriesConfigurationForMeasurement.AggregateKindConstants.Instance; | ||
} | ||
} | ||
} |
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
Oops, something went wrong.