학습
모듈
Kusto 쿼리 언어를 사용하여 데이터에서 인사이트 얻기 - Training
집계 함수, 렌더링 연산자, 변수를 사용하여 KQL(Kusto 쿼리 언어)로 고급 쿼리를 작성하는 방법을 알아봅니다.
Azure Portal에서 이러한 쿼리를 사용하는 방법에 대한 자세한 내용은 Log Analytics 자습서를 참조하세요. REST API는 쿼리를 참조 하세요.
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
통화 중인 참가자의 전화 번호를 나열합니다. (전화 번호는 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
학습
모듈
Kusto 쿼리 언어를 사용하여 데이터에서 인사이트 얻기 - Training
집계 함수, 렌더링 연산자, 변수를 사용하여 KQL(Kusto 쿼리 언어)로 고급 쿼리를 작성하는 방법을 알아봅니다.
설명서
Azure Monitor 로그 참조 - ACSBillingUsage - Azure Monitor
Azure Monitor 로그의 ACSBillingUsage 테이블에 대한 참조입니다.
AACHttpRequest에 대한 예제 로그 테이블 쿼리 - Azure Monitor
AACHttpRequest 로그 테이블에 대한 예제 쿼리
ContainerInventory에 대한 예제 로그 테이블 쿼리 - Azure Monitor
ContainerInventory 로그 테이블에 대한 예제 쿼리