ACSCallClientMediaStatsTimeSeries 表的查询
有关在 Azure 门户中使用这些查询的信息,请参阅 Log Analytics 教程。 有关 REST API,请参阅查询。
每个媒体类型的指标
列出每个媒体流类型的 ACSCallClientMediaStatsTimeSeries 日志中包含的所有媒体指标。
ACSCallClientMediaStatsTimeSeries
| distinct MetricName, MediaStreamType
每种媒体类型和方向的指标直方图
按 callId、participantId、媒体类型和媒体方向绘制所选指标的直方图
let PlotMetricHistogram = (_MetricName: string, _ParticipantId: string = '', _CallId: string = '', _MediaStreamType: string = '', _MediaStreamDirection: string = '') {
// _MetricName: the name of the metric. This must be set.
// _ParticipantId: set this variable if want to just plot the metric value histogram for a specific partiticpant.
// _CallId: set this variable if want to just plot the metric value histogram for a specific call.
// _MediaStreamType: possible values can be: 'audio', 'video', 'screen'.
// _MediaStreamDirection: possible values can be: 'recv', 'send'.
ACSCallClientMediaStatsTimeSeries
| where MetricName == _MetricName
| where isempty(_ParticipantId) or ParticipantId == _ParticipantId
| where isempty(_CallId) or CallId == _CallId
| where isempty(_MediaStreamType) or MediaStreamType == _MediaStreamType
| where isempty(_MediaStreamDirection) or MediaStreamDirection == _MediaStreamDirection
| summarize count=count() by Average
| render columnchart title=strcat(_MetricName, " Histogram")
};
// Below plots the histogram for jitter for all outbound audio streams
PlotMetricHistogram('JitterInMs', _MediaStreamType='audio', _MediaStreamDirection='send')