prefect.server.events.schemas.events
Event
Bases: PrefectBaseModel
The client-side view of an event that has happened to a Resource
Source code in src/prefect/server/events/schemas/events.py
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 169 170 171 172 173 174 175 176 |
|
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/server/events/schemas/events.py
166 167 168 169 170 171 172 173 174 175 176 |
|
EventCount
Bases: PrefectBaseModel
The count of events with the given filter value
Source code in src/prefect/server/events/schemas/events.py
324 325 326 327 328 329 330 331 332 333 |
|
EventPage
Bases: PrefectBaseModel
A single page of events returned from the API, with an optional link to the next page of results
Source code in src/prefect/server/events/schemas/events.py
311 312 313 314 315 316 317 318 319 320 321 |
|
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/server/events/schemas/events.py
179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 |
|
RelatedResource
Bases: Resource
A Resource with a specific role in an Event
Source code in src/prefect/server/events/schemas/events.py
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
|
Resource
Bases: Labelled
An observable business object of interest to the user
Source code in src/prefect/server/events/schemas/events.py
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 72 73 74 75 76 77 |
|
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/server/events/schemas/events.py
69 70 71 72 73 74 75 76 77 |
|
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/server/events/schemas/events.py
218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 |
|