Table of Contents

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

Service string

Source application — coalesced from Properties.ApplicationName then AppRoleName, falling back to "unknown".

Severity SeverityLevel

Effective severity, unified across log sources: Information for successful requests, Error for failed requests or unhandled exceptions, otherwise the row's own SeverityLevel.

Environment string

Environment name as projected by the Quilt4Net standard projection (deployment.environmentAspNetCoreEnvironment fallback). Empty when neither tag was logged.

Source LogSource

Which AI table the row came from — Trace / Exception / Request.

Count long

Row count in the lookback window for that (service, severity, environment, source) cell.

Machine string

Properties

Count

Row count in the lookback window for that (service, severity, environment, source) cell.

public long Count { get; init; }

Property Value

long

Environment

Environment name as projected by the Quilt4Net standard projection (deployment.environmentAspNetCoreEnvironment fallback). Empty when neither tag was logged.

public string Environment { get; init; }

Property Value

string

Machine

public string Machine { get; init; }

Property Value

string

Service

Source application — coalesced from Properties.ApplicationName then AppRoleName, falling back to "unknown".

public string Service { get; init; }

Property Value

string

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

SeverityLevel

Source

Which AI table the row came from — Trace / Exception / Request.

public LogSource Source { get; init; }

Property Value

LogSource