Helpers (certego_saas.ext.helpers)

certego_saas.ext.helpers.cache_action_response(*args, **kwargs)[source]

Decorator to apply cache to a DRF’s @action view.

certego_saas.ext.helpers.parse_humanized_range(range_str: str) → Tuple[datetime.datetime, str][source]

Utility function to parse time range given as a str. Used in metrics/aggregation views.