def _RP_DAYS_14(cls):
     """2w duration for non-downsampled data of high count/day"""
     return RetentionPolicy(name="rp_days_14",
                            database=cls.__database,
                            duration="14d",
                            default=True)
 def _RP_DAYS_7(cls):
     """1w duration for special non-downsampled data of high count/day, to allow an aggregate before downsampling"""
     return RetentionPolicy(name="rp_days_7",
                            database=cls.__database,
                            duration="7d")
 def _RP_DAYS_90(cls):
     """3 Month duration for either non-downsampled data of low count/day or medium-downsampled of high count/day."""
     return RetentionPolicy(name="rp_days_90",
                            database=cls.__database,
                            duration="90d")
 def _RP_HALF_YEAR(cls):
     """Half-year duration for long time preservation of non-downsampled data"""
     return RetentionPolicy(name="rp_half_year",
                            database=cls.__database,
                            duration="28w")
 def _RP_YEAR(cls):
     """Year duration for long time preservation of non-downsampled data"""
     return RetentionPolicy(name="rp_year",
                            database=cls.__database,
                            duration="56w")
 def _RP_INF(
         cls):  # notice: just inf is a influx error -> counted as numberlit
     """Infinite duration for long time preservation of heavy downsampled data"""
     return RetentionPolicy(name="rp_inf",
                            database=cls.__database,
                            duration="INF")
 def _RP_AUTOGEN(cls):
     """"Default auto-generated RP, leave at inf to not loose data in case of non-definition"""
     return RetentionPolicy(name="autogen",
                            database=cls.__database,
                            duration="INF")