prefect.server.events.filters
AutomationFilterCreated
Bases: PrefectFilterBaseModel
Filter by Automation.created
.
Source code in src/prefect/server/events/filters.py
28 29 30 31 32 33 34 35 36 37 38 39 40 |
|
AutomationFilterName
Bases: PrefectFilterBaseModel
Filter by Automation.created
.
Source code in src/prefect/server/events/filters.py
43 44 45 46 47 48 49 50 51 52 53 54 55 |
|
EventDataFilter
Bases: PrefectBaseModel
A base class for filtering event data.
Source code in src/prefect/server/events/filters.py
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 |
|
build_where_clauses()
Convert the criteria to a WHERE clause.
Source code in src/prefect/server/events/filters.py
102 103 104 105 106 107 |
|
excludes(event)
Would the given filter exclude this event?
Source code in src/prefect/server/events/filters.py
98 99 100 |
|
includes(event)
Does the given event match the criteria of this filter?
Source code in src/prefect/server/events/filters.py
94 95 96 |
|
EventFilter
Bases: EventDataFilter
Source code in src/prefect/server/events/filters.py
576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 |
|
logical_limit: int
property
The logical limit for this query, which is a maximum number of rows that it could return (regardless of what the caller has requested). May be used as an optimization for DB queries
EventOccurredFilter
Bases: EventDataFilter
Source code in src/prefect/server/events/filters.py
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 |
|
clamp(max_duration)
Limit how far the query can look back based on the given duration
Source code in src/prefect/server/events/filters.py
123 124 125 126 |
|