Skip to content
Tracon

TimeSeriesPoint

Namespace Tracon · Assembly Tracon.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>
Inheritance
object ← TimeSeriesPoint
Implements
IEquatable<TimeSeriesPoint>
Inherited Members
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?

Also null on every point when the series spans more than one currency (TimeSeriesPoint.CurrencyCount).

The number of currencies the priced runs of the WHOLE series are in.

public int CurrencyCount { get; init; }

int

A point carries no currency, so the series is judged as one: above one, no point carries a Cost, since a chart would draw amounts in two currencies on one line. The value is the same on every point.

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