Share via


ACSBillingUsage 테이블에 대한 쿼리

긴 통화 받기

1시간 이상 지속된 모든 호출을 다시 시도합니다.

ACSBillingUsage
| tolower(UsageType) == "audio" // only look at records that are calls
| extend Length = EndTime - StartTime
| where Length > 1h // return if the call is greater than an hour

사용 현황 분석

시간당 각 모드의 총 사용량을 가져옵니다(표시된 첫 번째 및 마지막 시간은 부분 데이터를 나타낸다는 점에 유의하세요).

ACSBillingUsage
| summarize Usage=sum(Quantity) by UsageType, bin(TimeGenerated, 1h) // count the number of units for each type of usage, per hour
| render columnchart

레코드 개수 분석

시간당 각 모드에 대한 고유한 사용 레코드 수를 가져옵니다(표시된 첫 번째 및 마지막 시간은 부분 데이터를 나타낸다는 점에 유의하세요).

ACSBillingUsage
| summarize Occurences=dcount(RecordId) by UsageType, bin(TimeGenerated, 1h) // count the number of unique records for each type of usage, per hour
| render columnchart

참가자 전화 번호

통화에 참가한 참가자의 전화 번호를 Lists. (전화 번호는 ACSBillingUsage 테이블에서 제공됩니다.)

ACSCallSummary
// Get the calls with CallType as Group
| where CallType == 'Group'
| project CorrelationId, ParticipantId, ParticipantStartTime, ParticipantDuration, EndpointType, CallType, CallStartTime, PstnParticipantCallType
// Join with ACSBillingUsage data on ParticipantId
| join kind=leftouter (ACSBillingUsage
                        | where isnotempty(ParticipantId)
                        | project ParticipantId, UserIdA, UserIdB, StartTime, Quantity)
    on ParticipantId
// Combine with calls of CallType P2P
| union (ACSCallSummary
| where CallType == 'P2P'
| project CorrelationId, ParticipantId, ParticipantStartTime, ParticipantDuration, EndpointType, CallType, CallStartTime, PstnParticipantCallType
// Join with ACSBillingUsage data on CorrelationId
| join kind=leftouter (ACSBillingUsage
                        | where isnotempty(ParticipantId)
                        | project CorrelationId, ParticipantId, UserIdA, UserIdB, StartTime, Quantity)
    on CorrelationId)
| order by CallStartTime, ParticipantStartTime