Skip to content

RunStatisticsQuery

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

The filter for a run statistics query.

public sealed record RunStatisticsQuery : IEquatable<RunStatisticsQuery>

objectRunStatisticsQuery

IEquatable<RunStatisticsQuery>

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

There is no pagination: the result is always a single summary row. Use RunStatisticsQuery.StartedAfter to limit the volume.

public RunStatisticsQuery()

Count only this agent’s runs.

public string? AgentName { get; init; }

string?

Count only runs carrying this label key. null applies no label filter.

public string? LabelKey { get; init; }

string?

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; }

string?

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; }

int

The same ceiling bounds every other breakdown — model, version, user and label. A statistics response is a summary; paging belongs to GET /api/runs.

Count only runs that started after this moment.

public DateTimeOffset? StartedAfter { get; init; }

DateTimeOffset?

The tenant filter. The current tenant is used if left empty.

public string? TenantId { get; init; }

string?

Count only this user’s runs. null counts every user.

public string? UserId { get; init; }

string?

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(RunStatisticsQuery? other)

other RunStatisticsQuery?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(RunStatisticsQuery?, RunStatisticsQuery?)

Section titled “ operator ==(RunStatisticsQuery?, RunStatisticsQuery?)”
public static bool operator ==(RunStatisticsQuery? left, RunStatisticsQuery? right)

left RunStatisticsQuery?

right RunStatisticsQuery?

bool

operator !=(RunStatisticsQuery?, RunStatisticsQuery?)

Section titled “ operator !=(RunStatisticsQuery?, RunStatisticsQuery?)”
public static bool operator !=(RunStatisticsQuery? left, RunStatisticsQuery? right)

left RunStatisticsQuery?

right RunStatisticsQuery?

bool