-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for NetworkErrorReport (#1)
* Add support for NetworkErrorReport * Add Github actions into sln * Add Code-Style auto fixer --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
ec74f9b
commit 8b58c5c
Showing
8 changed files
with
141 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"problemMatcher": [ | ||
{ | ||
"owner": "dotnet-format", | ||
"pattern": [ | ||
{ | ||
"regexp": "^\\s*(.*)\\((\\d+),(\\d+)\\):\\s+(.*)\\s+(.*):\\s+(.*)\\s+\\[(.*)\\]$", | ||
"file": 1, | ||
"line": 2, | ||
"column": 3, | ||
"severity": 4, | ||
"code": 5, | ||
"message": 6 | ||
} | ||
] | ||
} | ||
] | ||
} |
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,30 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace ReportingApi.Models; | ||
|
||
public sealed record NetworkErrorReport : IReportBody | ||
{ | ||
[JsonPropertyName("sampling_fraction")] | ||
public decimal SamplingFraction { get; set; } | ||
|
||
[JsonPropertyName("referrer")] | ||
public string Referrer { get; set; } = null!; | ||
|
||
[JsonPropertyName("server_ip")] | ||
public string ServerIp { get; set; } = null!; | ||
|
||
[JsonPropertyName("protocol")] | ||
public string Protocol { get; set; } = null!; | ||
|
||
[JsonPropertyName("method")] | ||
public string Method { get; set; } = null!; | ||
|
||
[JsonPropertyName("status_code")] | ||
public int StatusCode { get; set; } | ||
|
||
[JsonPropertyName("elapsed_time")] | ||
public int ElapsedTime { get; set; } | ||
|
||
[JsonPropertyName("type")] | ||
public string Type { get; set; } = null!; | ||
} |
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