Wiki source code of InitMetrics
Version 1.1 by Outhman Moustaghfir on 2024/02/01 12:57
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
1.1 | 1 | == InitMetrics Function Documentation == |
2 | |||
3 | === Overview === | ||
4 | |||
5 | The InitMetrics function provides functionality to initialize metrics in a flexible way. It allows for the deletion of metrics, projections, and the initialization of projections with fixed values or XPath expressions. | ||
6 | |||
7 | === Request Parameters === | ||
8 | |||
9 | 1. **metricName (Required):** The alias of the metric to be initialized. | ||
10 | 1. **projection (Optional):** The specific projection to initialize or delete. | ||
11 | 1. **value (Optional):** The value used for initialization. For deleting metrics or projections, this parameter can be omitted. | ||
12 | 1. **defaultValue (Optional):** The default value used in case of XPath expression evaluation failure. Defaults to 0 if not provided. |