Skip to content

RunTimeSeriesQuery

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

Filter for a time-series query.

public sealed record RunTimeSeriesQuery : IEquatable<RunTimeSeriesQuery>

objectRunTimeSeriesQuery

IEquatable<RunTimeSeriesQuery>

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

public RunTimeSeriesQuery()

Gets the agent whose runs are counted.

public string? AgentName { get; init; }

string?

Gets the bucket width. Defaults to hourly.

public TimeSeriesBucket Bucket { get; init; }

TimeSeriesBucket

Gets the start of the range (UTC, inclusive).

public required DateTimeOffset From { get; init; }

DateTimeOffset

Gets the kind whose runs are counted. null includes every kind — unlike IRunStore.GetStatisticsAsync, this query does not exclude eval and workflow runs by default.

public RunKind? Kind { get; init; }

RunKind?

Gets the model whose runs are counted.

public string? ModelId { get; init; }

string?

Gets the tenant filter. When empty, the current tenant is used.

public string? TenantId { get; init; }

string?

Gets the end of the range (UTC, exclusive).

public required DateTimeOffset To { get; init; }

DateTimeOffset

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(RunTimeSeriesQuery? other)

other RunTimeSeriesQuery?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(RunTimeSeriesQuery?, RunTimeSeriesQuery?)

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

left RunTimeSeriesQuery?

right RunTimeSeriesQuery?

bool

operator !=(RunTimeSeriesQuery?, RunTimeSeriesQuery?)

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

left RunTimeSeriesQuery?

right RunTimeSeriesQuery?

bool