Table of Contents

Class MetricsReport

Namespace
Livekit.Agent
Assembly
LiveKit.AspNetCore.ServerSdk.Abstractions.dll
public sealed class MetricsReport : IMessage<MetricsReport>, IEquatable<MetricsReport>, IDeepCloneable<MetricsReport>, IBufferMessage, IMessage
Inheritance
MetricsReport
Implements
IMessage<MetricsReport>
IDeepCloneable<MetricsReport>
IBufferMessage
IMessage
Inherited Members

Constructors

MetricsReport()

public MetricsReport()

MetricsReport(MetricsReport)

public MetricsReport(MetricsReport other)

Parameters

other MetricsReport

Fields

E2ELatencyFieldNumber

Field number for the "e2e_latency" field.

public const int E2ELatencyFieldNumber = 8

Field Value

int

EndOfTurnDelayFieldNumber

Field number for the "end_of_turn_delay" field.

public const int EndOfTurnDelayFieldNumber = 4

Field Value

int

LlmNodeTtftFieldNumber

Field number for the "llm_node_ttft" field.

public const int LlmNodeTtftFieldNumber = 6

Field Value

int

OnUserTurnCompletedDelayFieldNumber

Field number for the "on_user_turn_completed_delay" field.

public const int OnUserTurnCompletedDelayFieldNumber = 5

Field Value

int

StartedSpeakingAtFieldNumber

Field number for the "started_speaking_at" field.

public const int StartedSpeakingAtFieldNumber = 1

Field Value

int

StoppedSpeakingAtFieldNumber

Field number for the "stopped_speaking_at" field.

public const int StoppedSpeakingAtFieldNumber = 2

Field Value

int

TranscriptionDelayFieldNumber

Field number for the "transcription_delay" field.

public const int TranscriptionDelayFieldNumber = 3

Field Value

int

TtsNodeTtfbFieldNumber

Field number for the "tts_node_ttfb" field.

public const int TtsNodeTtfbFieldNumber = 7

Field Value

int

Properties

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

E2ELatency

public double E2ELatency { get; set; }

Property Value

double

EndOfTurnDelay

public double EndOfTurnDelay { get; set; }

Property Value

double

HasE2ELatency

Gets whether the "e2e_latency" field is set

public bool HasE2ELatency { get; }

Property Value

bool

HasEndOfTurnDelay

Gets whether the "end_of_turn_delay" field is set

public bool HasEndOfTurnDelay { get; }

Property Value

bool

HasLlmNodeTtft

Gets whether the "llm_node_ttft" field is set

public bool HasLlmNodeTtft { get; }

Property Value

bool

HasOnUserTurnCompletedDelay

Gets whether the "on_user_turn_completed_delay" field is set

public bool HasOnUserTurnCompletedDelay { get; }

Property Value

bool

HasTranscriptionDelay

Gets whether the "transcription_delay" field is set

public bool HasTranscriptionDelay { get; }

Property Value

bool

HasTtsNodeTtfb

Gets whether the "tts_node_ttfb" field is set

public bool HasTtsNodeTtfb { get; }

Property Value

bool

LlmNodeTtft

public double LlmNodeTtft { get; set; }

Property Value

double

OnUserTurnCompletedDelay

public double OnUserTurnCompletedDelay { get; set; }

Property Value

double

Parser

public static MessageParser<MetricsReport> Parser { get; }

Property Value

MessageParser<MetricsReport>

StartedSpeakingAt

public Timestamp StartedSpeakingAt { get; set; }

Property Value

Timestamp

StoppedSpeakingAt

public Timestamp StoppedSpeakingAt { get; set; }

Property Value

Timestamp

TranscriptionDelay

public double TranscriptionDelay { get; set; }

Property Value

double

TtsNodeTtfb

public double TtsNodeTtfb { get; set; }

Property Value

double

Methods

CalculateSize()

Calculates the size of this message in Protocol Buffer wire format, in bytes.

public int CalculateSize()

Returns

int

The number of bytes required to write this message to a coded output stream.

ClearE2ELatency()

Clears the value of the "e2e_latency" field

public void ClearE2ELatency()

ClearEndOfTurnDelay()

Clears the value of the "end_of_turn_delay" field

public void ClearEndOfTurnDelay()

ClearLlmNodeTtft()

Clears the value of the "llm_node_ttft" field

public void ClearLlmNodeTtft()

ClearOnUserTurnCompletedDelay()

Clears the value of the "on_user_turn_completed_delay" field

public void ClearOnUserTurnCompletedDelay()

ClearTranscriptionDelay()

Clears the value of the "transcription_delay" field

public void ClearTranscriptionDelay()

ClearTtsNodeTtfb()

Clears the value of the "tts_node_ttfb" field

public void ClearTtsNodeTtfb()

Clone()

Creates a deep clone of this object.

public MetricsReport Clone()

Returns

MetricsReport

A deep clone of this object.

Equals(MetricsReport)

public bool Equals(MetricsReport other)

Parameters

other MetricsReport

Returns

bool

Equals(object)

public override bool Equals(object other)

Parameters

other object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

MergeFrom(CodedInputStream)

Merges the data from the specified coded input stream with the current message.

public void MergeFrom(CodedInputStream input)

Parameters

input CodedInputStream

Remarks

See the user guide for precise merge semantics.

MergeFrom(MetricsReport)

Merges the given message into this one.

public void MergeFrom(MetricsReport other)

Parameters

other MetricsReport

Remarks

See the user guide for precise merge semantics.

ToString()

public override string ToString()

Returns

string

WriteTo(CodedOutputStream)

Writes the data to the given coded output stream.

public void WriteTo(CodedOutputStream output)

Parameters

output CodedOutputStream

Coded output stream to write the data to. Must not be null.