QoE データベース クエリのサンプル

 

トピックの最終更新日: 2011-08-01

ここでは、QoE (Quality of Experience) データベースのサンプル クエリを示します。

次の例を使用すると、すべての音声ストリームのジッターとパケット損失の平均値を取得できます。

select avg(cast(JitterInterArrival as bigint)) as JitterAvg, avg(PacketLossRate) as PacketLossRateAvg from AudioStream

次の例を使用すると、Meeting コンソールを使用した会議の総数を取得できます。

select avg(ConversationalMOS)
from Session s
inner join MediaLine m
on s.ConferenceDateTime = m.ConferenceDateTime
   and s.SessionSeq = m.SessionSeq
   and m.MediaLineLabel = 0 -- audio media line
inner join UserAgent uaCaller
   on s.CallerUserAgent = uaCaller.UserAgentKey
      and uaCaller.UAType = 4 - Lync
inner join UserAgent uaCallee
   on s.CalleeUserAgent = uaCallee.UserAgentKey
      and uaCallee.UAType = 4 -- Lync

次の例を使用すると、キャプチャ デバイスごとに ConversstionalMOS、SendingMOS、および ListendingMOS を取得できます。

select t.DeviceName as Device, count(*) as SampleNum, avg(ConversationalMOS) as ConversationalMOS, avg(SendListenMOS) SendingMOS, avg(RecvListenMOS) as ListendingMOS
from
(
   select d.DeviceName, m.ConferenceDateTime, m.SessionSeq, a.StreamID, m.ConversationalMOS,a.SendListenMOS, a.RecvListenMOS
   from MediaLine m
   inner join AudioStream a
   on m.ConferenceDateTime = a.ConferenceDateTime
      and m.SessionSeq = a.SessionSeq
      and m.MediaLineLabel = 0
   inner join Device d
      on m.CallerCaptureDev = d.DeviceKey
         and d.DeviceType = 1
   union
   select d.DeviceName, m.ConferenceDateTime, m.SessionSeq, a.StreamID, m.ConversationalMOS,a.SendListenMOS, a.RecvListenMOS
   from MediaLine m
   inner join AudioStream a
   on m.ConferenceDateTime = a.ConferenceDateTime
      and m.SessionSeq = a.SessionSeq
      and m.MediaLineLabel = 0
   inner join Device d
      on m.CalleeCaptureDev = d.DeviceKey
         and d.DeviceType = 1
)as t
group by t.DeviceName
order by SampleNum desc