Table of Contents

Class TimeSeriesMetric

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

Constructors

TimeSeriesMetric()

public TimeSeriesMetric()

TimeSeriesMetric(TimeSeriesMetric)

public TimeSeriesMetric(TimeSeriesMetric other)

Parameters

other TimeSeriesMetric

Fields

LabelFieldNumber

Field number for the "label" field.

public const int LabelFieldNumber = 1

Field Value

int

ParticipantIdentityFieldNumber

Field number for the "participant_identity" field.

public const int ParticipantIdentityFieldNumber = 2

Field Value

int

RidFieldNumber

Field number for the "rid" field.

public const int RidFieldNumber = 5

Field Value

int

SamplesFieldNumber

Field number for the "samples" field.

public const int SamplesFieldNumber = 4

Field Value

int

TrackSidFieldNumber

Field number for the "track_sid" field.

public const int TrackSidFieldNumber = 3

Field Value

int

Properties

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

Label

Metric name e.g "speech_probablity". The string value is not directly stored in the message, but referenced by index in the str_data field of MetricsBatch

public uint Label { get; set; }

Property Value

uint

Parser

public static MessageParser<TimeSeriesMetric> Parser { get; }

Property Value

MessageParser<TimeSeriesMetric>

ParticipantIdentity

index into str_data

public uint ParticipantIdentity { get; set; }

Property Value

uint

Rid

index into 'str_data'

public uint Rid { get; set; }

Property Value

uint

Samples

public RepeatedField<MetricSample> Samples { get; }

Property Value

RepeatedField<MetricSample>

TrackSid

index into str_data

public uint TrackSid { get; set; }

Property Value

uint

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.

Clone()

Creates a deep clone of this object.

public TimeSeriesMetric Clone()

Returns

TimeSeriesMetric

A deep clone of this object.

Equals(TimeSeriesMetric)

public bool Equals(TimeSeriesMetric other)

Parameters

other TimeSeriesMetric

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(TimeSeriesMetric)

Merges the given message into this one.

public void MergeFrom(TimeSeriesMetric other)

Parameters

other TimeSeriesMetric

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.