Class LogCountByServiceCell
- Namespace
- Quilt4Net.Toolkit.Features.ApplicationInsights
- Assembly
- Quilt4Net.Toolkit.dll
One bucket of the (service × severity × environment × source) log-count cube. The shape carries every dimension the admin UI filters on so a single server fetch covers any future combination of configuration / environment / source toggles — flipping a checkbox is then a pure local regroup with no extra Log Analytics queries.
public record LogCountByServiceCell : IEquatable<LogCountByServiceCell>
- Inheritance
-
LogCountByServiceCell
- Implements
- Inherited Members
Constructors
LogCountByServiceCell(string, SeverityLevel, string, LogSource, long, string)
One bucket of the (service × severity × environment × source) log-count cube. The shape carries every dimension the admin UI filters on so a single server fetch covers any future combination of configuration / environment / source toggles — flipping a checkbox is then a pure local regroup with no extra Log Analytics queries.
public LogCountByServiceCell(string Service, SeverityLevel Severity, string Environment, LogSource Source, long Count, string Machine = "")
Parameters
ServicestringSource application — coalesced from
Properties.ApplicationNamethenAppRoleName, falling back to"unknown".SeveritySeverityLevelEffective severity, unified across log sources: Information for successful requests, Error for failed requests or unhandled exceptions, otherwise the row's own
SeverityLevel.EnvironmentstringEnvironment name as projected by the Quilt4Net standard projection (
deployment.environment→AspNetCoreEnvironmentfallback). Empty when neither tag was logged.SourceLogSourceWhich AI table the row came from — Trace / Exception / Request.
CountlongRow count in the lookback window for that (service, severity, environment, source) cell.
Machinestring
Properties
Count
Row count in the lookback window for that (service, severity, environment, source) cell.
public long Count { get; init; }
Property Value
Environment
Environment name as projected by the Quilt4Net standard projection
(deployment.environment → AspNetCoreEnvironment fallback). Empty when neither tag
was logged.
public string Environment { get; init; }
Property Value
Machine
public string Machine { get; init; }
Property Value
Service
Source application — coalesced from Properties.ApplicationName then
AppRoleName, falling back to "unknown".
public string Service { get; init; }
Property Value
Severity
Effective severity, unified across log sources:
Information for successful requests, Error
for failed requests or unhandled exceptions, otherwise the row's own SeverityLevel.
public SeverityLevel Severity { get; init; }
Property Value
Source
Which AI table the row came from — Trace / Exception / Request.
public LogSource Source { get; init; }