jihoonson commented on a change in pull request #6415: Add period drop before
rule
URL: https://github.com/apache/incubator-druid/pull/6415#discussion_r226190152
##########
File path: docs/content/operations/rule-configuration.md
##########
@@ -129,6 +129,22 @@ Period drop rules are of the form:
The interval of a segment will be compared against the specified period. The
period is from some time in the past to the current time. The rule matches if
the period contains the interval.
+### Period Drop Before Rule
+
+Period drop before rules are of the form:
+
+```json
+{
+ "type" : "dropBeforeByPeriod",
+ "period" : "P1M"
+}
+```
+
+* `type` - this should always be "dropBeforeByPeriod"
+* `period` - A JSON Object representing ISO-8601 Periods
+
+The interval of a segment will be compared against the specified period. The
period is from some time in the past to the current time. The rule matches if
the interval before the period. If you just want to retain recent data, you can
use this rule to drop the old data that before a specified period.
Review comment:
Sounds good to me.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]