feat(api): metrics table of errors
This commit is contained in:
parent
b4b3a6c26e
commit
1448cb45e9
2 changed files with 2 additions and 4 deletions
|
|
@ -59,9 +59,7 @@ def __get_funnel_chart(project_id, data: schemas.TryCustomMetricsPayloadSchema):
|
|||
|
||||
def __is_errors_list(data):
|
||||
return data.metric_type == schemas.MetricType.table \
|
||||
and data.metric_of == schemas.TableMetricOfType.issues \
|
||||
and len(data.metric_value) == 1 and data.metric_value[0] == schemas.IssueType.js_exception \
|
||||
and data.metric_format == schemas.MetricFormatType.errors_list
|
||||
and data.metric_of == schemas.TableMetricOfType.errors
|
||||
|
||||
|
||||
def __get_errors_list(project_id, user_id, data):
|
||||
|
|
|
|||
|
|
@ -481,7 +481,6 @@ class IssueType(str, Enum):
|
|||
|
||||
class MetricFormatType(str, Enum):
|
||||
session_count = 'sessionCount'
|
||||
errors_list = 'errors'
|
||||
|
||||
|
||||
class __MixedSearchFilter(BaseModel):
|
||||
|
|
@ -811,6 +810,7 @@ class TableMetricOfType(str, Enum):
|
|||
issues = FilterType.issue.value
|
||||
visited_url = EventType.location.value
|
||||
sessions = "SESSIONS"
|
||||
errors = IssueType.js_exception.value
|
||||
|
||||
|
||||
class TimeseriesMetricOfType(str, Enum):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue