.alter database extent tags retention policy
Alters a database-level extent tags retention policy. For more information, see extent tags retention policy.
Syntax
.alter database DatabaseName policy extent_tags_retention SerializedArrayOfPolicyObjects
Arguments
- DatabaseName - Specify the name of the database.
- SerializedArrayOfPolicyObjects - Define a serialized array of policy objects. For more information, see the extent tags retention policy.
Example
For database D1, set an extent tags retention policy so that any drop-by tags that are older than three days, and any ingest-by tags that are older than two hours will be automatically dropped.
.alter database D1 policy extent_tags_retention ```[
{
"TagPrefix": "drop-by:",
"RetentionPeriod": "3.00:00:00"
},
{
"TagPrefix": "ingest-by:",
"RetentionPeriod": "02:00:00"
}
]```
Feedback
Submit and view feedback for