insight purge
Sets the retention period, in days, for the insights data on Apache Iceberg table.
Insight data is retained for the specified number of days in Apache Iceberg. Insight data that is older than the specified number of days specified as the retention period is purged from Apache Iceberg.
Use the insight purge
subcommand to set the retention period for
insight data, in days.
Syntax
- CLI
-
maprcli insight purge [ -retentionDays set retention days ]
- REST
-
Request Type PUT Request URL http[s]://<host>:<port>/rest/insight/purge?<parameters>
Parameters
Parameter | Description |
---|---|
retentionDays |
(Optional) The number of days for which the insight data
present on Iceberg is to be retained. Default: 5. The number of days
must be mentioned when you use the retentionDays
option with the insight purge command. |
Example
Set the retention period to 10 days.
# maprcli insight purge -retentionDays 10 -json
{
"timestamp":1721997840346,
"timeofday":"2024-07-26 05:44:00.346 GMT-0700 AM",
"status":"OK",
"total":0,
"data":[
],
"messages":[
"Set insight purge configuration Successfully. "
]
}