RunStatisticsQuery
AgentPrism.Abstractions.dllThe filter for a run statistics query.
public sealed record RunStatisticsQuery : IEquatable<RunStatisticsQuery>Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”IEquatable<RunStatisticsQuery>
Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”There is no pagination: the result is always a single summary row. Use RunStatisticsQuery.StartedAfter to limit the volume.
Constructors
Section titled “Constructors”RunStatisticsQuery()
Section titled “ RunStatisticsQuery()”public RunStatisticsQuery()Properties
Section titled “Properties”AgentName
Section titled “ AgentName”Count only this agent’s runs.
public string? AgentName { get; init; }Property Value
Section titled “Property Value”LabelKey
Section titled “ LabelKey”Count only runs carrying this label key. null applies no label filter.
public string? LabelKey { get; init; }Property Value
Section titled “Property Value”LabelValue
Section titled “ LabelValue”The value RunStatisticsQuery.LabelKey must have. null matches any value of that key, and the field is ignored when RunStatisticsQuery.LabelKey is null.
public string? LabelValue { get; init; }Property Value
Section titled “Property Value”MaxAgents
Section titled “ MaxAgents”The maximum number of rows to return in the agent breakdown. Agents with the highest run count are returned first.
public int MaxAgents { get; init; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”The same ceiling bounds every other breakdown — model, version, user and
label. A statistics response is a summary; paging belongs to
GET /api/runs.
StartedAfter
Section titled “ StartedAfter”Count only runs that started after this moment.
public DateTimeOffset? StartedAfter { get; init; }Property Value
Section titled “Property Value”TenantId
Section titled “ TenantId”The tenant filter. The current tenant is used if left empty.
public string? TenantId { get; init; }Property Value
Section titled “Property Value”UserId
Section titled “ UserId”Count only this user’s runs. null counts every user.
public string? UserId { get; init; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Equals(object?)
Section titled “ Equals(object?)”public override bool Equals(object? obj)Parameters
Section titled “Parameters”obj object?
Returns
Section titled “Returns”Equals(RunStatisticsQuery?)
Section titled “ Equals(RunStatisticsQuery?)”public bool Equals(RunStatisticsQuery? other)Parameters
Section titled “Parameters”other RunStatisticsQuery?
Returns
Section titled “Returns”GetHashCode()
Section titled “ GetHashCode()”public override int GetHashCode()Returns
Section titled “Returns”ToString()
Section titled “ ToString()”public override string ToString()Returns
Section titled “Returns”Operators
Section titled “Operators”operator ==(RunStatisticsQuery?, RunStatisticsQuery?)
Section titled “ operator ==(RunStatisticsQuery?, RunStatisticsQuery?)”public static bool operator ==(RunStatisticsQuery? left, RunStatisticsQuery? right)Parameters
Section titled “Parameters”left RunStatisticsQuery?
right RunStatisticsQuery?
Returns
Section titled “Returns”operator !=(RunStatisticsQuery?, RunStatisticsQuery?)
Section titled “ operator !=(RunStatisticsQuery?, RunStatisticsQuery?)”public static bool operator !=(RunStatisticsQuery? left, RunStatisticsQuery? right)Parameters
Section titled “Parameters”left RunStatisticsQuery?
right RunStatisticsQuery?