Skip to content

Commit 63d0c84

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ The telemetry is available in the `customEvents` table on the [Application Insig
150150

151151
If [sampling](./sampling.md) is in operation, the `itemCount` property shows a value greater than `1`. For example, `itemCount==10` means that of 10 calls to `trackEvent()`, the sampling process transmitted only one of them. To get a correct count of custom events, use code such as `customEvents | summarize sum(itemCount)`.
152152

153+
> [!NOTE]
154+
> itemCount has a minimum value of one; the record itself represents an entry.
155+
153156
## GetMetric
154157

155158
To learn how to effectively use the `GetMetric()` call to capture locally pre-aggregated metrics for .NET and .NET Core applications, see [Custom metric collection in .NET and .NET Core](./get-metric.md).
@@ -445,9 +448,6 @@ exceptions
445448
| summarize sum(itemCount) by type
446449
```
447450

448-
> [!NOTE]
449-
> itemCount has a minimum value of one; the record itself represents an entry.
450-
451451
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:
452452

453453
```kusto

0 commit comments

Comments
 (0)