1. xConnect DevEx CLI plugin

The CLI estimate interactions command

Version:

The xConnect DevEx CLI plugin includes a purge command with an interactions subcommand. This command estimates the number of interactions a purge process would delete based on the provided StartedDaysCutoff and options.

Usage

You can use the command as follows:

sitecore xconnect estimate interactions [options]

Options

You can use the following options with the command:

OptionRequired?Description
-c, --configYesThe path to the sitecore.json configuration file (default: cwd). A DevEx CLI standard option.
-n, --environment-nameYesThe Sitecore environment to use. Default: default. A DevEx CLI standard option.
-d, --started-days-cutoffYesThe started-days-cutoff option specifies the number of days since the interaction started. This option filters interactions based on its StartDateTime value. The StartDateTime value reflects the interaction's starting DateTime. For example, -d 190.
Note

This option is the only requirement with no default value.



There is a list of restrictions for the started-days-cutoff option:

--sp, --start-percentileNoThe range-bound start percentile for the data extraction. For example, --sp 0.

There is a list of restrictions for the start-percentile option:

  • You must specify both the start and end percentile or none of them.
  • The range-bound for both is between 0 and 1.
  • The start-percentile must be lower than the end-percentile.
--ep, --end-percentileNoThe range-bound end percentile for data extraction. For example, --ep 1.

There is a list of restrictions for the end-percentile option:

  • You must specify both the start and end percentile or none of them.
  • The range-bound for both is between 0 and 1.
  • The end-percentile must be higher than the start-percentile.
-v, --verboseNoReport additional diagnostic and performance data.
-t, --traceNoReport additional diagnostic and performance data.
-?, -h, --helpNoHelp for the xconnect estimate interactions command.

Examples

The following are examples of the estimate interactions command use:

sitecore xconnect estimate interactions -d 180

sitecore xconnect estimate interactions -d 200 --sp 0.2 --ep 0.6 -n test --trace
--verbose
If you have suggestions for improving this article, let us know!