Skip to content

Commit 2f0110d

Browse files
committed
Clarifying valueCount and itemCount have a min value of 1
1 parent 272135f commit 2f0110d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

articles/azure-monitor/app/api-custom-events-metrics.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,9 @@ The telemetry is available in the `customMetrics` table in [Application Insights
212212
* `valueSum`: The sum of the measurements. To get the mean value, divide by `valueCount`.
213213
* `valueCount`: The number of measurements that were aggregated into this `trackMetric(..)` call.
214214

215+
> [!NOTE]
216+
> valueCount has a minimum value of one; the record itself represents an entry.
217+
215218
## Page views
216219

217220
In a device or webpage app, page view telemetry is sent by default when each screen or page is loaded. But you can change the default to track page views at more or different times. For example, in an app that displays tabs or blades, you might want to track a page whenever the user opens a new blade.
@@ -442,6 +445,9 @@ exceptions
442445
| summarize sum(itemCount) by type
443446
```
444447

448+
> [!NOTE]
449+
> itemCount has a minimum value of one; the record itself represents an entry.
450+
445451
Most of the important stack information is already extracted into separate variables, but you can pull apart the `details` structure to get more. Because this structure is dynamic, you should cast the result to the type you expect. For example:
446452

447453
```kusto

0 commit comments

Comments
 (0)