prefect.events.schemas.events
Event
Bases: PrefectBaseModel
The client-side view of an event that has happened to a Resource
Source code in src/prefect/events/schemas/events.py
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 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 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 |
|
resource_in_role: Mapping[str, RelatedResource]
property
Returns a mapping of roles to the first related resource in that role
resources_in_role: Mapping[str, Sequence[RelatedResource]]
property
Returns a mapping of roles to related resources in that role
find_resource_label(label)
Finds the value of the given label in this event's resource or one of its
related resources. If the label starts with related:<role>:
, search for the
first matching label in a related resource with that role.
Source code in src/prefect/events/schemas/events.py
158 159 160 161 162 163 164 165 166 167 168 |
|
ReceivedEvent
Bases: Event
The server-side view of an event that has happened to a Resource after it has been received by the server
Source code in src/prefect/events/schemas/events.py
171 172 173 174 175 176 177 178 179 180 |
|
RelatedResource
Bases: Resource
A Resource with a specific role in an Event
Source code in src/prefect/events/schemas/events.py
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 |
|
Resource
Bases: Labelled
An observable business object of interest to the user
Source code in src/prefect/events/schemas/events.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
|
prefect_object_id(kind)
Extracts the UUID from an event's resource ID if it's the expected kind of prefect resource
Source code in src/prefect/events/schemas/events.py
63 64 65 66 67 68 69 70 71 |
|
matches(expected, value)
Returns true if the given value matches the expected string, which may include a a negation prefix ("!this-value") or a wildcard suffix ("any-value-starting-with*")
Source code in src/prefect/events/schemas/events.py
183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 |
|