What's the default limit in RollupMetricSpec

#1

The description for RollupMetricSpec.limit says “Default limit is as set by the database engine i.e. 2000 objects”. Is the default limit configurable? How to find out what is the default limit?

0 Likes

#2

The documentation says the default limit. You can specify limit:-1 in the spec to not have any limit (i.e. all the rollup will be performed for all the objects as returned by the filter criteria). You can alternatively set any other limit and that should be respected

Checkout the documentation on the type c3ShowType(RollupMetricSpec)

  /**
   * If ids is not specified, alternatively a filter could be used to fetch the ids that one is interested in evaluating for a single source type
   * This filter will be applied on the source type and a default limit of 2000 sources will be applied if not otherwise
   * specified using {@link EvalMetricsSpec#limit}. The ids generated as a result of fetch using this filter will be used for
   * evaluation of the metrics. This should not be used to filter values on the results of the time series.
   */
  filter: string

  /**
   * Optionally you can also provide a limit with a filter to limit the number of sources. Default limit is as set by
   * the database engine i.e. 2000 objects
   */
  limit: int
0 Likes