This file contains hidden or 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
| DECLARE @compatibility_level TINYINT = 0; | |
| SELECT @compatibility_level = compatibility_level FROM sys.databases WHERE name = 'MyDatabase'; | |
| PRINT CONCAT('Database compatibility level is: ', @compatibility_level); | |
| IF @compatibility_level < 150 | |
| BEGIN | |
| RAISERROR('Data Classification will not be performed, as database compatibility level %d is not high enough', 10, 1, @compatibility_level); | |
| SET NOEXEC ON; | |
| END; | |
| GO |
This file contains hidden or 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
| public class ExponentialWeightedMovingAverage | |
| { | |
| private bool isInitialized; | |
| // Smoothing/damping coefficient | |
| private double alpha; | |
| public double Average { get; private set; } | |
| public ExponentialWeightedMovingAverage(int samplesPerWindow) |
This file contains hidden or 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
| builder | |
| .UseSerilog((ctx, _, logConfig) => | |
| { | |
| logConfig.ReadFrom.Configuration(ctx.Configuration, "Log"); | |
| }, writeToProviders: true) | |
| .ConfigureServices((ctx, services) => | |
| { | |
| services.AddOpenTelemetry() | |
| .ConfigureResource(res => { | |
| ... |
OlderNewer