Skip to content

Commit ef4be14

Browse files
committed
chore: add requests per context
1 parent 409d5fc commit ef4be14

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

VirtualFinland.UserAPI/src/VirtualFinland.UsersAPI/Helpers/Services/AnalyticsService.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,21 @@ await _cloudwatchClient.PutMetricDataAsync(new PutMetricDataRequest()
8888
TimestampUtc = DateTime.UtcNow
8989
},
9090
new()
91+
{
92+
MetricName = "RequestsPerContext",
93+
Value = 1,
94+
Unit = StandardUnit.None,
95+
TimestampUtc = DateTime.UtcNow,
96+
Dimensions = new List<Dimension>()
97+
{
98+
new()
99+
{
100+
Name = "Context",
101+
Value = eventContextName
102+
}
103+
}
104+
},
105+
new()
91106
{
92107
MetricName = "RequestsTotalPerAudience",
93108
Value = 1,

0 commit comments

Comments
 (0)