def get_all(
        self,
        exclude_attributes=None,
        include_attributes=None,
        sort=None,
        offset=0,
        limit=None,
        requester_user=None,
        **raw_filters,
    ):
        """
        List all triggerinstances.

        Handles requests:
            GET /triggerinstances/
        """
        # If trigger_type filter is provided, filter based on the TriggerType via Trigger object
        trigger_type_ref = raw_filters.get("trigger_type", None)

        if trigger_type_ref:
            # 1. Retrieve TriggerType object id which match this trigger_type ref
            trigger_dbs = Trigger.query(
                type=trigger_type_ref, only_fields=["ref", "name", "pack", "type"]
            )
            trigger_refs = [trigger_db.ref for trigger_db in trigger_dbs]
            raw_filters["trigger"] = trigger_refs

        if trigger_type_ref and len(raw_filters.get("trigger", [])) == 0:
            # Empty list means trigger_type_ref filter was provided, but we matched no Triggers so
            # we should return back empty result
            return []

        trigger_instances = self._get_trigger_instances(
            exclude_fields=exclude_attributes,
            include_fields=include_attributes,
            sort=sort,
            offset=offset,
            limit=limit,
            raw_filters=raw_filters,
            requester_user=requester_user,
        )
        return trigger_instances

        List all triggerinstances.

        Handles requests:
            GET /triggerinstances/
        
st2api/st2api/controllers/v1/triggers.py