Table of Contents

Class DetailedStats

Namespace
Nyra.Entities
Assembly
Nyra.dll

Per-domain counter snapshot of NodeLink's stats manager, REST only.

public sealed record DetailedStats : IEquatable<DetailedStats>
Inheritance
DetailedStats
Implements
Inherited Members

Properties

Api

API request and error counters.

[JsonPropertyName("api")]
[JsonInclude]
public ApiCounters? Api { get; }

Property Value

ApiCounters

Playback

Playback event counters by event name.

[JsonPropertyName("playback")]
[JsonInclude]
public PlaybackCounters? Playback { get; }

Property Value

PlaybackCounters

Sources

Success and failure counters per source name.

[JsonPropertyName("sources")]
[JsonInclude]
public IReadOnlyDictionary<string, SourceCounters>? Sources { get; }

Property Value

IReadOnlyDictionary<string, SourceCounters>

Remarks

Null values the wire carries are dropped.

Methods

Equals(DetailedStats?)

Indicates whether both snapshots carry the same counters.

public bool Equals(DetailedStats? other)

Parameters

other DetailedStats

The snapshot to compare with.

Returns

bool

Whether the members match, the counters compared by content.

GetHashCode()

Returns a hash of the nested counters, the source map stays out of it.

public override int GetHashCode()

Returns

int

The hash code.