Skip to content

TimeSeriesPoint

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

A summary of the runs in a time bucket. The result unit of /api/stats/timeseries; empty buckets are also returned (with zero events).

public sealed record TimeSeriesPoint : IEquatable<TimeSeriesPoint>

objectTimeSeriesPoint

IEquatable<TimeSeriesPoint>

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

public TimeSeriesPoint()

The average duration of settled runs (milliseconds).

public double? AverageDurationMs { get; init; }

double?

The bucket’s start time (UTC).

public required DateTimeOffset Bucket { get; init; }

DateTimeOffset

The total cost. null if no run was ever priced.

public decimal? Cost { get; init; }

decimal?

The number of runs that ended in an error in this bucket.

public long FailedRuns { get; init; }

long

The total input tokens.

public long InputTokens { get; init; }

long

The total output tokens.

public long OutputTokens { get; init; }

long

The number of runs that started in this bucket.

public long Runs { get; init; }

long

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(TimeSeriesPoint? other)

other TimeSeriesPoint?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(TimeSeriesPoint?, TimeSeriesPoint?)

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

left TimeSeriesPoint?

right TimeSeriesPoint?

bool

operator !=(TimeSeriesPoint?, TimeSeriesPoint?)

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

left TimeSeriesPoint?

right TimeSeriesPoint?

bool