This repository has been archived by the owner on Jul 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate ImportCdnStats to use JsonConfig (#524)
- Loading branch information
1 parent
ffb3d42
commit 64f9076
Showing
12 changed files
with
146 additions
and
64 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
src/Stats.ImportAzureCdnStatistics/Configuration/ImportAzureCdnStatisticsConfiguration.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,18 @@ | ||
// Copyright (c) .NET Foundation. All rights reserved. | ||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. | ||
|
||
namespace Stats.ImportAzureCdnStatistics | ||
{ | ||
public class ImportAzureCdnStatisticsConfiguration | ||
{ | ||
public string AzureCdnCloudStorageAccount { get; set; } | ||
|
||
public string AzureCdnCloudStorageContainerName { get; set; } | ||
|
||
public string AzureCdnPlatform { get; set; } | ||
|
||
public string AzureCdnAccountNumber { get; set; } | ||
|
||
public bool AggregatesOnly { get; set; } | ||
} | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"Initialization": { | ||
"AzureCdnCloudStorageAccount": "DefaultEndpointsProtocol=https;AccountName=nugetdevlegacy;AccountKey=$$Dev-NuGetDevLegacyStorage-Key$$", | ||
"AzureCdnCloudStorageContainerName": "nuget-cdnlogs-raw", | ||
"AzureCdnPlatform": "HttpLargeObject", | ||
"AzureCdnAccountNumber": "$$Dev-AzureCdn-AccountNumber$$" | ||
}, | ||
|
||
"StatisticsDb": { | ||
"ConnectionString": "Data Source=tcp:#{Deployment.Azure.Sql.StatisticsDatabaseAddress};Initial Catalog=nuget-dev-statistics;User ID=$$Dev-StatisticsDBWriter-UserName$$;Password=$$Dev-StatisticsDBWriter-Password$$;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;" | ||
}, | ||
|
||
"KeyVault_VaultName": "#{Deployment.Azure.KeyVault.VaultName}", | ||
"KeyVault_ClientId": "#{Deployment.Azure.KeyVault.ClientId}", | ||
"KeyVault_CertificateThumbprint": "#{Deployment.Azure.KeyVault.CertificateThumbprint}", | ||
"KeyVault_ValidateCertificate": true, | ||
"KeyVault_StoreName": "My", | ||
"KeyVault_StoreLocation": "LocalMachine" | ||
} |
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,19 @@ | ||
{ | ||
"Initialization": { | ||
"AzureCdnCloudStorageAccount": "DefaultEndpointsProtocol=https;AccountName=nugetint0;AccountKey=$$Int-NuGetInt0Storage-Key$$", | ||
"AzureCdnCloudStorageContainerName": "nuget-cdnlogs-raw", | ||
"AzureCdnPlatform": "HttpLargeObject", | ||
"AzureCdnAccountNumber": "$$Int-AzureCdn-AccountNumber$$" | ||
}, | ||
|
||
"StatisticsDb": { | ||
"ConnectionString": "Data Source=tcp:#{Deployment.Azure.Sql.StatisticsDatabaseAddress};Initial Catalog=nuget-int-statistics;User ID=$$Int-StatisticsDBWriter-UserName$$;Password=$$Int-StatisticsDBWriter-Password$$;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;" | ||
}, | ||
|
||
"KeyVault_VaultName": "#{Deployment.Azure.KeyVault.VaultName}", | ||
"KeyVault_ClientId": "#{Deployment.Azure.KeyVault.ClientId}", | ||
"KeyVault_CertificateThumbprint": "#{Deployment.Azure.KeyVault.CertificateThumbprint}", | ||
"KeyVault_ValidateCertificate": true, | ||
"KeyVault_StoreName": "My", | ||
"KeyVault_StoreLocation": "LocalMachine" | ||
} |
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,19 @@ | ||
{ | ||
"Initialization": { | ||
"AzureCdnCloudStorageAccount": "DefaultEndpointsProtocol=https;AccountName=nugetgallery;AccountKey=$$Prod-NuGetGalleryStorage-Key$$", | ||
"AzureCdnCloudStorageContainerName": "nuget-cdnlogs-raw", | ||
"AzureCdnPlatform": "HttpLargeObject", | ||
"AzureCdnAccountNumber": "$$Prod-AzureCdn-AccountNumber$$" | ||
}, | ||
|
||
"StatisticsDb": { | ||
"ConnectionString": "Data Source=tcp:#{Deployment.Azure.Sql.StatisticsDatabaseAddress};Initial Catalog=nuget-prod-statistics;User ID=$$Prod-StatisticsDBWriter-UserName$$;Password=$$Prod-StatisticsDBWriter-Password$$;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;" | ||
}, | ||
|
||
"KeyVault_VaultName": "#{Deployment.Azure.KeyVault.VaultName}", | ||
"KeyVault_ClientId": "#{Deployment.Azure.KeyVault.ClientId}", | ||
"KeyVault_CertificateThumbprint": "#{Deployment.Azure.KeyVault.CertificateThumbprint}", | ||
"KeyVault_ValidateCertificate": true, | ||
"KeyVault_StoreName": "My", | ||
"KeyVault_StoreLocation": "LocalMachine" | ||
} |
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.