Module betterstack.uptime.helpers
This module is used to store some generic helper function that don’t belong anywhere else
Module contents
- betterstack.uptime.helpers.filter_on_attribute(objects: list, name: str, value: any) List[any] [source]
Used to be able to filter a list of objects on a specific variable
- Parameters:
objects (list) – Objects to be filtered
name (str) – Attribute to be filtered
value (any) – Value to be filtered
- Returns:
List of matching objects
- Return type:
list