-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f8f95d4
commit f2a4779
Showing
7 changed files
with
68 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System; | ||
|
||
namespace BotNet.Services.GoogleSheets { | ||
[AttributeUsage(validOn: AttributeTargets.Property, AllowMultiple = false)] | ||
public sealed class FromColumnAttribute : Attribute { | ||
public string Column { get; } | ||
|
||
public FromColumnAttribute(string column) { | ||
Column = column; | ||
} | ||
} | ||
} |
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 @@ | ||
using System; | ||
using BotNet.Services.GoogleSheets; | ||
|
||
namespace BotNet.Services.VPS { | ||
public sealed record VPSBenchmark( | ||
[property: FromColumn("A")] string Provider, | ||
[property: FromColumn("B")] string Location, | ||
[property: FromColumn("C")] DateOnly BenchmarkDate, | ||
[property: FromColumn("E")] string? VerdictCons, | ||
[property: FromColumn("F")] decimal IdrMo, | ||
[property: FromColumn("G")] int Core, | ||
[property: FromColumn("H")] int SsdGb, | ||
[property: FromColumn("I")] int RamMb, | ||
[property: FromColumn("J")] int IoMbs, | ||
[property: FromColumn("K")] double? ToCacheFlyMbs, | ||
[property: FromColumn("L")] double? ToHkCnMbs, | ||
[property: FromColumn("M")] double? ToLinodeJpMbs, | ||
[property: FromColumn("N")] double? ToLinodeSgMbs, | ||
[property: FromColumn("O")] double? ToLinodeUkMbs, | ||
[property: FromColumn("P")] double? ToLinodeCaMbs, | ||
[property: FromColumn("R")] double? BzipSec, | ||
[property: FromColumn("S")] double? DlMbs, | ||
[property: FromColumn("T")] double? AvgMbs | ||
); | ||
} |
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,14 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace BotNet.Services.VPS { | ||
public sealed class VPSBenchmarkDataSource { | ||
// Source: https://docs.google.com/spreadsheets/d/14nAIFzIzkQuSxiayhc5tSFWFCWFncrV-GCA3Q5BbS4g/edit#gid=0 | ||
private const string SPREADSHEET_ID = "14nAIFzIzkQuSxiayhc5tSFWFCWFncrV-GCA3Q5BbS4g"; | ||
|
||
|
||
} | ||
} |
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