feat(api): perf module
This commit is contained in:
parent
adee10929f
commit
22134e49a8
1 changed files with 8 additions and 0 deletions
8
api/chalicelib/core/performance_event.py
Normal file
8
api/chalicelib/core/performance_event.py
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import schemas
|
||||
|
||||
|
||||
def get_col(perf: schemas.PerformanceEventType):
|
||||
return {
|
||||
schemas.PerformanceEventType.location_dom_complete: "dom_building_time",
|
||||
# schemas.PerformanceEventType.location_largest_contentful_paint_time: "timestamp"
|
||||
}.get(perf)
|
||||
Loading…
Add table
Reference in a new issue