Package 

Interface LivekitMetrics.MetricsBatchOrBuilder

    • Method Summary

      Modifier and Type Method Description
      abstract long getTimestampMs()
      time at which this batch is sent based on a monotonic clock (millisecond resolution)
      
      int64 timestamp_ms = 1;
      abstract boolean hasNormalizedTimestamp() .google.protobuf.Timestamp normalized_timestamp = 2;
      abstract Timestamp getNormalizedTimestamp() .google.protobuf.Timestamp normalized_timestamp = 2;
      abstract List<String> getStrDataList()
      To avoid repeating string values, we store them in a separate list and reference them by index
      This is useful for storing participant identities, track names, etc.
      There is also a predefined list of labels that can be used to reference common metrics.
      They have reserved indices from 0 to (METRIC_LABEL_PREDEFINED_MAX_VALUE - 1).
      Indexes pointing at str_data should start from METRIC_LABEL_PREDEFINED_MAX_VALUE,
      such that str_data[0] == index of METRIC_LABEL_PREDEFINED_MAX_VALUE.
      
      repeated string str_data = 3;
      abstract int getStrDataCount()
      To avoid repeating string values, we store them in a separate list and reference them by index
      This is useful for storing participant identities, track names, etc.
      There is also a predefined list of labels that can be used to reference common metrics.
      They have reserved indices from 0 to (METRIC_LABEL_PREDEFINED_MAX_VALUE - 1).
      Indexes pointing at str_data should start from METRIC_LABEL_PREDEFINED_MAX_VALUE,
      such that str_data[0] == index of METRIC_LABEL_PREDEFINED_MAX_VALUE.
      
      repeated string str_data = 3;
      abstract String getStrData(int index)
      To avoid repeating string values, we store them in a separate list and reference them by index
      This is useful for storing participant identities, track names, etc.
      There is also a predefined list of labels that can be used to reference common metrics.
      They have reserved indices from 0 to (METRIC_LABEL_PREDEFINED_MAX_VALUE - 1).
      Indexes pointing at str_data should start from METRIC_LABEL_PREDEFINED_MAX_VALUE,
      such that str_data[0] == index of METRIC_LABEL_PREDEFINED_MAX_VALUE.
      
      repeated string str_data = 3;
      abstract ByteString getStrDataBytes(int index)
      To avoid repeating string values, we store them in a separate list and reference them by index
      This is useful for storing participant identities, track names, etc.
      There is also a predefined list of labels that can be used to reference common metrics.
      They have reserved indices from 0 to (METRIC_LABEL_PREDEFINED_MAX_VALUE - 1).
      Indexes pointing at str_data should start from METRIC_LABEL_PREDEFINED_MAX_VALUE,
      such that str_data[0] == index of METRIC_LABEL_PREDEFINED_MAX_VALUE.
      
      repeated string str_data = 3;
      abstract List<LivekitMetrics.TimeSeriesMetric> getTimeSeriesList() repeated .livekit.TimeSeriesMetric time_series = 4;
      abstract LivekitMetrics.TimeSeriesMetric getTimeSeries(int index) repeated .livekit.TimeSeriesMetric time_series = 4;
      abstract int getTimeSeriesCount() repeated .livekit.TimeSeriesMetric time_series = 4;
      abstract List<LivekitMetrics.EventMetric> getEventsList() repeated .livekit.EventMetric events = 5;
      abstract LivekitMetrics.EventMetric getEvents(int index) repeated .livekit.EventMetric events = 5;
      abstract int getEventsCount() repeated .livekit.EventMetric events = 5;
      • Methods inherited from class com.google.protobuf.MessageLiteOrBuilder

        getDefaultInstanceForType, isInitialized
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getTimestampMs

         abstract long getTimestampMs()
        time at which this batch is sent based on a monotonic clock (millisecond resolution)
        
        int64 timestamp_ms = 1;
      • hasNormalizedTimestamp

         abstract boolean hasNormalizedTimestamp()

        .google.protobuf.Timestamp normalized_timestamp = 2;

      • getNormalizedTimestamp

         abstract Timestamp getNormalizedTimestamp()

        .google.protobuf.Timestamp normalized_timestamp = 2;

      • getStrDataList

         abstract List<String> getStrDataList()
        To avoid repeating string values, we store them in a separate list and reference them by index
        This is useful for storing participant identities, track names, etc.
        There is also a predefined list of labels that can be used to reference common metrics.
        They have reserved indices from 0 to (METRIC_LABEL_PREDEFINED_MAX_VALUE - 1).
        Indexes pointing at str_data should start from METRIC_LABEL_PREDEFINED_MAX_VALUE,
        such that str_data[0] == index of METRIC_LABEL_PREDEFINED_MAX_VALUE.
        
        repeated string str_data = 3;
      • getStrDataCount

         abstract int getStrDataCount()
        To avoid repeating string values, we store them in a separate list and reference them by index
        This is useful for storing participant identities, track names, etc.
        There is also a predefined list of labels that can be used to reference common metrics.
        They have reserved indices from 0 to (METRIC_LABEL_PREDEFINED_MAX_VALUE - 1).
        Indexes pointing at str_data should start from METRIC_LABEL_PREDEFINED_MAX_VALUE,
        such that str_data[0] == index of METRIC_LABEL_PREDEFINED_MAX_VALUE.
        
        repeated string str_data = 3;
      • getStrData

         abstract String getStrData(int index)
        To avoid repeating string values, we store them in a separate list and reference them by index
        This is useful for storing participant identities, track names, etc.
        There is also a predefined list of labels that can be used to reference common metrics.
        They have reserved indices from 0 to (METRIC_LABEL_PREDEFINED_MAX_VALUE - 1).
        Indexes pointing at str_data should start from METRIC_LABEL_PREDEFINED_MAX_VALUE,
        such that str_data[0] == index of METRIC_LABEL_PREDEFINED_MAX_VALUE.
        
        repeated string str_data = 3;
        Parameters:
        index - The index of the element to return.
      • getStrDataBytes

         abstract ByteString getStrDataBytes(int index)
        To avoid repeating string values, we store them in a separate list and reference them by index
        This is useful for storing participant identities, track names, etc.
        There is also a predefined list of labels that can be used to reference common metrics.
        They have reserved indices from 0 to (METRIC_LABEL_PREDEFINED_MAX_VALUE - 1).
        Indexes pointing at str_data should start from METRIC_LABEL_PREDEFINED_MAX_VALUE,
        such that str_data[0] == index of METRIC_LABEL_PREDEFINED_MAX_VALUE.
        
        repeated string str_data = 3;
        Parameters:
        index - The index of the element to return.
      • getTimeSeriesCount

         abstract int getTimeSeriesCount()

        repeated .livekit.TimeSeriesMetric time_series = 4;

      • getEventsCount

         abstract int getEventsCount()

        repeated .livekit.EventMetric events = 5;