what is the type of duration in PageViews result in AppInsights Query is it Seconds, MilliSeconds Or Minutes?

Vinod Lokanatha (Harman Connected Services) 65 Reputation points Microsoft External Staff
2026-01-20T06:27:42.7066667+00:00

what is the type of duration in PageViews result in AppInsights Query is it Seconds, MilliSeconds Or Minutes?

below query gives me results of timespent based on duration, i would like to know what is the type of this duration ?


let startTime = datetime(2026-01-09T00:00:00Z);
let endTime   = datetime(2026-01-19T23:59:59Z);
let targetPage = "RevenueForecast";

pageViews
| where timestamp between (startTime .. endTime)
| where url has targetPage
| where user_AuthenticatedId in ("xxxxx")
| summarize
    timeSpent = sum(duration)
    avgTime   = avg(duration),
    // viewCount = count()
  by user_AuthenticatedId
| order by timeSpentinMins desc

Azure Analysis Services
0 comments No comments

Answer accepted by question author

AI answer

2026-01-20T06:27:50.0233333+00:00

In Application Insights, the duration property for pageViews is represented as a TimeSpan. This means that the duration is typically measured in milliseconds, as TimeSpan can represent durations in a variety of formats including days, hours, minutes, seconds, and milliseconds. Therefore, when you query the duration in your Application Insights data, it is effectively in milliseconds.


References:

AI-generated content may be incorrect. Read our transparency notes for more information.

Was this answer helpful?

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.