Skip to content

Commit 7dda03d

Browse files
authored
Merge pull request #205852 from AaronMaxwell/aaronmax-clarify-count
Clarifying valueCount and itemCount have a min value of 1
2 parents 74cd7f6 + 63d0c84 commit 7dda03d

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
@@ -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).
@@ -212,6 +215,9 @@ The telemetry is available in the `customMetrics` table in [Application Insights
212215
* `valueSum`: The sum of the measurements. To get the mean value, divide by `valueCount`.
213216
* `valueCount`: The number of measurements that were aggregated into this `trackMetric(..)` call.
214217

218+
> [!NOTE]
219+
> valueCount has a minimum value of one; the record itself represents an entry.
220+
215221
## Page views
216222

217223
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.

0 commit comments

Comments
 (0)