This message was deleted.
# general
s
This message was deleted.
i
yes, the rules are evaluated in order
r
Thanks! Would this keep my data in the cluster for 1 month and then delete?
Copy code
[
  {
    "period": "P1M",
    "includeFuture": false,
    "type": "loadByPeriod"
  },
  {
    "period": "P1D",
    "includeFuture": false,
    "type": "dropByPeriod"
  },
  {
    "tieredReplicants": {
      "_default_tier": 1
    },
    "type": "loadForever"
  }
]
i
I do not think you need to put the P1D
you could try something like this, adjust to 1M
Copy code
[
  {
    "period": "P1D",
    "includeFuture": true,
    "tieredReplicants": {
      "_default_tier": 1
    },
    "useDefaultTierForNull": true,
    "type": "loadByPeriod"
  },
  {
    "type": "dropForever"
  }
]
r
Thank you! I will try this 🙂
d
Or… you can do this: Same thing:
r
Ah, using
dropBeforeByPeriod
This would drop after 13 months?
d
yes
r
Interesting, thank you!
k
I generally recommend LoadRule DropRule Default Rule since it makes it easier to reason about load rules.
r
Sure that makes sense
For whatever reason my dumb brain has taken its sweet time to understand these concepts 😄