chore: add csharpier to husky, format backend with csharpier
This commit is contained in:
parent
5fab66444f
commit
7f971e8549
73 changed files with 2098 additions and 1048 deletions
|
@ -4,23 +4,35 @@ namespace Foxnouns.Backend;
|
|||
|
||||
public static class FoxnounsMetrics
|
||||
{
|
||||
public static readonly Gauge UsersCount =
|
||||
Metrics.CreateGauge("foxnouns_user_count", "Number of total users");
|
||||
public static readonly Gauge UsersCount = Metrics.CreateGauge(
|
||||
"foxnouns_user_count",
|
||||
"Number of total users"
|
||||
);
|
||||
|
||||
public static readonly Gauge UsersActiveMonthCount =
|
||||
Metrics.CreateGauge("foxnouns_user_count_active_month", "Number of users active in the last month");
|
||||
public static readonly Gauge UsersActiveMonthCount = Metrics.CreateGauge(
|
||||
"foxnouns_user_count_active_month",
|
||||
"Number of users active in the last month"
|
||||
);
|
||||
|
||||
public static readonly Gauge UsersActiveWeekCount =
|
||||
Metrics.CreateGauge("foxnouns_user_count_active_week", "Number of users active in the last week");
|
||||
public static readonly Gauge UsersActiveWeekCount = Metrics.CreateGauge(
|
||||
"foxnouns_user_count_active_week",
|
||||
"Number of users active in the last week"
|
||||
);
|
||||
|
||||
public static readonly Gauge UsersActiveDayCount =
|
||||
Metrics.CreateGauge("foxnouns_user_count_active_day", "Number of users active in the last day");
|
||||
public static readonly Gauge UsersActiveDayCount = Metrics.CreateGauge(
|
||||
"foxnouns_user_count_active_day",
|
||||
"Number of users active in the last day"
|
||||
);
|
||||
|
||||
public static readonly Gauge MemberCount =
|
||||
Metrics.CreateGauge("foxnouns_member_count", "Number of total members");
|
||||
public static readonly Gauge MemberCount = Metrics.CreateGauge(
|
||||
"foxnouns_member_count",
|
||||
"Number of total members"
|
||||
);
|
||||
|
||||
public static readonly Summary MetricsCollectionTime =
|
||||
Metrics.CreateSummary("foxnouns_time_metrics", "Time it took to collect metrics");
|
||||
public static readonly Summary MetricsCollectionTime = Metrics.CreateSummary(
|
||||
"foxnouns_time_metrics",
|
||||
"Time it took to collect metrics"
|
||||
);
|
||||
|
||||
public static Gauge ProcessPhysicalMemory =>
|
||||
Metrics.CreateGauge("foxnouns_process_physical_memory", "Process physical memory");
|
||||
|
@ -31,7 +43,9 @@ public static class FoxnounsMetrics
|
|||
public static Gauge ProcessPrivateMemory =>
|
||||
Metrics.CreateGauge("foxnouns_process_private_memory", "Process private memory");
|
||||
|
||||
public static Gauge ProcessThreads => Metrics.CreateGauge("foxnouns_process_threads", "Process thread count");
|
||||
public static Gauge ProcessThreads =>
|
||||
Metrics.CreateGauge("foxnouns_process_threads", "Process thread count");
|
||||
|
||||
public static Gauge ProcessHandles => Metrics.CreateGauge("foxnouns_process_handles", "Process handle count");
|
||||
}
|
||||
public static Gauge ProcessHandles =>
|
||||
Metrics.CreateGauge("foxnouns_process_handles", "Process handle count");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue